body {
    background-color: #000000d4;
    font-family: Arial, Helvetica, sans-serif
}

.container {
    margin: auto;
    width: 400px;
    color: #ffa6f3;
}

.display {
    border: none;
    color: #1dcf52;
    font-size: 150px;
    height: 200px;
    text-align: center;
}

h1 {
    text-align: center;
}


#understandRules {
    background-color: none;

}

.active {
    border: 1px solid pink;
}

.active h4 {
    line-height: 30px;
    font-weight: 200;

}

button {
    color: #ffffff;
    background-color: #ff7700;
    border: none;
    font-size: 25px;
    cursor: pointer;
    height: 60px;
    border-radius: 10px;
}

button:hover {
    background-color: #ff5e00;
    transition: ease-in-out 0.3s;
}

.nextButton {
    grid-column: 2;
    background-color: #5a9cff;
    color: #ffffff;
}

.nextButton:hover {
    background-color: #2f82fe;
    transition: ease-in-out 0.4s;
}

#restart {
    color: #2f82fe;
    font-size: 50px;
    background-color: transparent;
}

#modalRulesToggle {
    background-color: transparent;
    color: #ffa6f3;
    font-size: 20px;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 10px;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: #ffffff;
    margin: 25% auto;
    padding: 40px 20px;
    width: 70%;
    box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.2);
    font-size: 25px;
    line-height: 1.2;
    color: #ff52e8;
}

.closeBtn {
    float: right;
    padding: 5px;
    font-size: 22px;
}

.closeBtn:hover,
.closeBtn:focus {
    text-decoration: none;
    cursor: pointer;
}

.playButtons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    padding: 10px;
}

.bigButton {
    grid-column: 1/3;
    grid-row: 3/3;
}

@media (max-width: 640px) {
    .container {
        width: 70%;
    }
}

@media (max-width: 480px) {
    .container {
        width: 80%;
    }
}