*{
    box-sizing: border-box;
}
body{
    background-color: #02131e;
    font-family: "Cairo", serif;
    margin: 0;
}
.splash{
    width: 100%;
    height: 100%;
    background-color: #024e87c9;
    z-index: 1;
    position: absolute;
}
.splash span{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: white;
    background-color: #313172;
    padding: 10px 35px;
    border-radius: 8px;
    border: 2px solid #ffffffd1;
    transition: 0.3s;
    cursor: pointer;
    text-align: center;
}
@media (max-width:991px) {
    .splash span{
        font-size: 20px;
    }
}
@media (max-width: 767px) {
    .splash span{
        font-size: 15px;
    }
}
.splash i{
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: white;
    animation: up-down;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}
@keyframes up-down {
    0%, 10%, 20%, 50%, 80%, 100%{
        transform: translateY(0);
    }
    40%, 60%{
    transform: translateY(-15px);
    }
}
.splash span:hover{
    background-color: #121233;
    border-color: #ffffff87;
}
.center{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.reset-button{
    margin: 20px;
}
.info{
    margin: 0px auto 10px;
    background-color: #212121;
    width: 70%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    margin-bottom: 20px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #b7b3b3;
    border-radius: 6px;
}
.colors{
    animation-name:change-border;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}
.cards{
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px;
    background-color: #212121;
    border-radius: 6px;
    border: 2px solid #909091;
    animation-name:change-border;
    animation-duration: 8s;
    animation-iteration-count: infinite;
    perspective: 1000px;
}
@keyframes change-border {
    0%,20%{
        border: 3px solid rgb(229, 72, 72);
    }
    40%{
        border: 3px solid rgb(72, 143, 229);
    }
    60%{
        border: 3px solid rgb(110, 113, 14);
    }
    80%{
        border: 3px solid rgb(122, 72, 229);
    }
    100%{
        border: 3px solid rgb(229, 72, 156);
    }
}
.container{
    width: 40%;
    margin: 0 auto;

}
@media (max-width:1280px) {
    .container{
        width: 50%;
    }
}
@media (max-width:991px) {
    .container{
        width: 65%;
    }
}
@media (max-width: 767px) {
    .container{
        width: 85%;
    }
}
.card{
    width: calc(20% - 10px);
    aspect-ratio: 1;
    margin: 5px;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: 0.5s;
}
/* .card::before{
    content: "?";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color:#424242;
    color: white;
    font-size: 75px;
    transform: rotateY(180deg);
}
@media (max-width:991px) {
    .card::before{
        font-size: 90px;
    }
}
@media (max-width: 767px) {
    .card::before{
        font-size: 100px;
    }
}
@media (max-width: 600px) {
    .card::before{
        font-size: 70px;
    }
}
@media (max-width: 460px) {
    .card::before{
        font-size: 45px;
    }
} */
/* @media (max-width:991px) {
    .card{
        font-size: 60px;
    }
}
@media (max-width: 767px) {
    .card{
        font-size: 40px;
    }
} */

.card .front{
    background-color: #424242;
}
.card .front::before{
    content: "👻";
    color: white;
    font-weight: bold;
    font-size: 50px;
}
@media (max-width: 767px) {
    .card .front::before{
        font-size: 40px;
    }
}
.card .back{
    transform: rotateY(180deg);
}
.card .face{
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
    border: 2px solid #909091;
}
.flip{
    transform: rotateY(180deg);
}
.match{
    transform: rotateY(180deg);
}
.noclick{
    pointer-events: none;
}
.reset-button{
    font-size: 25px;
    color: white;
    background-color: #313172;
    padding: 5px 35px;
    border-radius: 8px;
    border: 2px solid #ffffffd1;
    transition: 0.3s;
    cursor: pointer;
    text-align: center;
    font-family: "Cairo", serif;
}
.reset-button:hover{
    background-color: #121233;
    border-color: #ffffff87;
}

