.overlay {
    z-index: 100;
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    animation-name: darkAnimation;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

.popup {
    position: fixed;
    top: 0px;
    left: 0px;
    margin-left: 5vw;
    margin-right: 5vw;
    margin-top: 15vh;
    margin-bottom: 15vh;
    width: 90vw;
    height: 70vh;
    border-radius: 20px;
    background-color: antiquewhite;
    animation-name: appearAnimation;
    animation-duration: 1s;
}

.closeButton {
    display: block;
    margin-left: auto;
    margin-right: 20px;
    width: min(3vw, 3vh);
    height: min(3vw, 3vh);
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.closeButton img {
    width: min(3vw, 3vh);
    height: min(3vw, 3vh);
}

.difficultySettings {
    display: flex;
    margin: auto;
    justify-content: center;
    flex-direction: column;
    width: 50%;
    height: 100%;
}

.difficultySettings h1, h2 {
    text-align: center;
}

.popupButton {
    border: 1px solid black;
    background-color: orange;
    border-radius: 20px;
    font-size: 2.8vh;
    height: 4vh;
    min-width: 40vw;
    transition-property: background-color;
    transition-duration: 0.5s;
    cursor: pointer;
}

.popupButton:hover:enabled {
    background-color: orangered;
}

.popupButton:disabled {
    cursor: auto;
}

.form {
    display: flex;
    grid-template-columns: auto auto;
    row-gap: 3vh;
    margin: 10vw;
    justify-content: center;
    flex-direction: column;
}

.form div {
    display: grid;
    grid-template-columns: auto 30vw;
    flex-grow: 1;
    text-align: center;
}

.form button:nth-of-type(1) {
    margin-top: 10vh;
}

.form input:invalid {
    background-color: tomato;
}

.form input:valid {
    background-color: palegreen;
}


.alertMessage {
    display: none;
    text-align: center;
    border-radius: 10px;
    font-size: 2.2vh;
    border: 1px solid black;
    animation-duration: 2.5s;
    animation-fill-mode: forwards;
}

.stats {
    display: grid;
}

label, input {
    font-size: 3vh;
}