* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.page {
    height: 100vh;
    width: 100vw;
    background-color: #e8fdf5;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.head {
    background-color: #cfffe1;
    box-shadow: 0px 4px 10px rgba(250, 52, 52, 0.1);
    text-shadow: 0px 2px 4px rgb(46, 139, 87, 0.3);
    border-radius: 10px;
}

.h1 {
    color: #00ced1;
    text-align: center;
    text-shadow: 0px 2px 4px rgb(46, 139, 87, 0.3);
}

.turns {
    margin-top: 0px;
}

.turn {
    width: 150px;
    margin-top: 35px;
    margin-bottom: 25px;
    background-color: #cfffe1;
    box-shadow: 0px 4px 10px rgb(0, 0, 0, 0.1);
    border-radius: 10px;
}

.rstrtBtn {
    width: 150px;
    background-color: #cfffe1;
    box-shadow: 0px 4px 10px rgb(0, 0, 0, 0.1);
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
}

.rstrtBtn:hover {
    background-color: #2e8b57;
    transform: translateY(-2px);
}

.rstrtBtn:active {
    transform: translateY(0);
}

.result {
    color: #045d5d;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: pop 0.4s ease;
}

.h2 {
    color: #045d5d;
    text-align: center;
    margin-bottom: 15px;
}

.h2:hover {
    color: white;
    transition: 0.1s ease-in-out;
}

.parent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 6px;
    width: 270px;
    height: 270px;
    padding: 6px;
    margin: 0 auto;
    border-radius: 16px;
    background-color: #a5e6ba;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.parent:hover {
    box-shadow: 0px 8px 20px rgba(91, 199, 133, 0.35);
    background-color: #8fd9b0;
}

.innerbox {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8fdf5;
    border-radius: 12px;
    cursor: pointer;
    font-size: 55px;
    color: #256d1b;
    transition: transform 0.2s ease;
}

.innerbox:active {
    transform: scale(0.95);
}

.parent,
.turn,
.rstrtBtn {
    margin-left: auto;
    margin-right: auto;
}

@keyframes pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile devices */

@media screen and (max-width: 600px) {

    .page {
        height: 100vh;
        width: 100%;
        padding: 16px;
        gap: 24px;
    }

    .h1 {
        font-size: 22px;
        margin-top: 8px;
    }

    .h2 {
        font-size: 22px;
    }

    .turn {
        width: 140px;
        margin: 23px auto;
    }

    .parent {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        width: 260px;
        height: 260px;
        padding: 6px;
        gap: 6px;
        margin: 0 auto;
    }

    .innerbox {
        font-size: 44px;
        border-radius: 10px;
    }

    .result {
        font-size: 20px;
    }

    .rstrtBtn {
        width: 140px;
        margin: 20px auto;
    }
}