*{
    margin: 0;
    padding:0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}
body{
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    background: #028391;
}

.modal{
    margin-left: 30%;
    margin-top: 8%;
    background-color: #ecedf8;
    border-radius: 10px;
    justify-content: center;
    width: 40%;
    padding: 1.5% 4%;
    box-shadow: 10px 10px 6px #022444;
    animation: fadeIn forwards 5s;
    transition: transform 0.4s top 0.4s;
}

.modal h1{
    text-align: center;
    padding-bottom: 10%;
    color: #022444;
}

.modal h3{
    text-align: center;
    font-size: 1.4em;
}

.modal p{
    text-align: center;
    padding-top: 4%;
    padding-bottom: 5%;
    font-size: 1.05em;
}

.modal button{
    font-size: 1.1em;
    margin-top: 8%;
    padding: 4% 6%;
    border-radius: 30px;
    margin-bottom: 2%;
}
.bt1{
    margin-left: 12%;
    border: 3px solid #EA907A;
}

.bt1:hover{
    background-color: #EA907A;
}

.bt2{
    margin-left: 20%;
    border: solid 3px #ACE1AF;
}

.bt2:hover{
    background-color: #ACE1AF;
}

.container{
    display: none;
    margin-top: 5%;
    width: 44%;
    height: 53%;
    position: relative;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 30px;
    background: #3AA6B9;
    padding: 40px 60px;
}

.back{
    margin-top: 0%;
    float: left;
    visibility:hidden;
    text-decoration: none;
    font-size: 1.5em;
}

h2{
    font-size: 2em;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.reset{
    position: relative;
    padding: 10px 15px;
    color: #3AA6B9;
    background: #fff;
    border: none;
    font-size: 1.4em;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 600;
    border-radius: 5px;
}

.reset:focus{
    color:#fff;
    background: #3AA6B9;
}

.game{
    width: 92%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    transform-style: preserve-3d;
    perspective: 500px;
}

.item{
    position: static;
    width: 2.7em;
    height: 2.7em;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 260%;
    background: #fff;
    transform: rotateY(180deg);
    transition: 0.25s;
    border-radius: 5px;
}

.item .boxOpen{
    transform: rotateY(0deg);
}

.item::after{
    content:'';
    position: absolute;
    inset: 0;
    background: #79cedd;
    border-radius: 5px;
    transition: 0.25s;
    transform: rotateY(0deg);
    backface-visibility: hidden;
    opacity: 100%;
}

.boxOpen:after, .boxMatch:after{
    transform: rotateY(180deg);
}

#key{
    font-size: 2.7em;
    position: fixed;
    background: none;
    display: none;
}

#lock{
    margin-right: 40%;
    font-size: 3em;
    position: fixed;
    opacity: 0%;
}

#next_page{
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 150%;
    background-color: #e4f5f8;
    padding: 4% 8%;
    text-decoration: none;
    border: aliceblue solid;
    border-radius: 10px;
    color:#028391;
    display: none;
}

@keyframes fadeIn{
    from {
        margin-top: 0%;
        opacity: 0%;
    }
    to{
        margin-top: 8%;
        opacity: 100%;
    }
}