* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

html,
body {
    height: 100%;
    width: 100%;
    background-color: grey;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

button {
    padding: 1rem 1.4rem;
    font-size: 1.5rem;
    border-radius: .4rem;
    outline: none;
    border: none;
    background-color: purple;
    color: white;
}

.box-wrapper {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: all ease .5s;
}

.display {
    pointer-events: auto;
    opacity: 1;
}

.box {
    max-width: 400px;
    border-radius: 10px;
    background-color: aliceblue;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.box-wrapper h2 {
    margin: 1rem 0;
}

.box-wrapper button {
    max-width: 40%;
    align-self: flex-end;
}

.box p {
    margin-bottom: 1rem;
}

.box-wrapper .close {
    font-size: 3rem;
    padding: 1rem;
    background-color: transparent;
    color: black;
    cursor: pointer;
}