body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #2980B8;
    user-select: none;
}

.container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;

    background: rgb(41,128,184);
    background: linear-gradient(
        180deg,
        rgba(41,128,184,1) 0%,
        rgba(21,85,133,1) 30%,
        rgba(0,53,102,1) 63%,
        rgba(0,29,61,1) 100%
    );

    padding: 40px 60px;
}

h2 {
    font-size: 3em;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.reset {
    padding: 15px 20px;
    width: 100%;
    color: #000000;
    background-color: #ffffff;
    border: 3px solid #2980B8;
    border-radius: 30px;
    font-size: 1.5em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 600;
}

.reset:focus {
    color: #ec38bc;
    background-color: #262809;
}

.footer {
    padding: 60px 0px 0px 0px;
    text-align: center;
    align-items: center;
}

.footer p {
    color:#ffffff;
}

.footer a {
    color: #FEFF02;;
    font-weight: bold;
    text-decoration: none;
}


@-webkit-keyframes ef-pulse-grow {
    to {
      -webkit-transform: scale(1.1);
      transform: scale(1.1);
    }
}
@keyframes ef-pulse-grow {
    to {
      -webkit-transform: scale(1.1);
      transform: scale(1.1);
    }
}
.ef-pulse-grow {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px transparent;
}

.ef-pulse-grow-active {
    -webkit-animation-name: ef-pulse-grow;
    animation-name: ef-pulse-grow;
    -webkit-animation-duration: .8s;
    animation-duration: .8s;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-direction: alternate;
    animation-direction: alternate;

}

.game {
    width: 430px;
    height: 430px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    transform-style: preserve-3d;
    perspective: 500px;
}

.item {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    font-size: 3em;
    transform: rotateY(180deg);
    transition: 0.25s;
    cursor: pointer;
    
}

.item::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/logo1.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #2980B8;
    transition: 0.25s;
    transform: rotateY(0deg);
    backface-visibility: hidden;
}

.item.boxOpen {
    transform: rotateY(0deg);
}

.boxOpen::after, .boxmatch::after {
    transform: rotateY(180deg);
}


@media screen and (max-width: 768px) {

    .container {
        background: none;
        width: 100%;
        padding: 40px 0px;
        gap: 3px;
    }

    .game {
        padding: 10px;
        gap: 3px;
    }

    .reset {
        width: 70%;
    }
    .item {
        width: 100px;
        height: 100px;
    }

    h2 {
        padding: 20px 100px ;
    }

}