@font-face {
    font-family: GoogleSans-Regular;
    src: url("../fonts/GoogleSans-Regular.ttf") format('truetype');
}

@font-face {
    font-family: GoogleSans-Bold;
    src: url("../fonts/Google-Sans-Bold.ttf") format('truetype');
}

body {
    background-color: #000;
    min-height: 100vh;
    font-family: 'GoogleSans-Regular';
    color: #fff;

    background-image: url(../img/webps/PNGSNubia_fondo.webp);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

/* Estilos para la modal de inicio */
#startModal.modal {
    background-color: #2c2c2c !important;
}

#startModal .modal-backdrop.show {
    opacity: 0.95 !important;
    background-color: #666 !important;
}

#startModal .modal-content {
    background-color: #000;
    background-image: url(../img/webps/modal.webp);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    border: none;
    border-radius: 20px;
    min-height: 445px;

    box-shadow: 10px 10px 15px -3px rgba(0,0,0,0.1);
}

#startModal .modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    border-radius: 20px;
}

#startModal .modal-body img {
    max-width: 250px;
    margin-bottom: 40px;
}

#startButton {
    font-family: GoogleSans-Bold;
    font-size: 18px;
    padding: 12px 40px;
    min-width: 250px;
    color: white;
    background-color: red;
    border: none;
    border-radius: 10px;
    transition: background-color 0.3s;
    margin-top: auto;
}

#startButton:hover {
    background-color: darkred;
    color: white;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    z-index: 9999;
    display: none;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    background-color: #000;
    background-image: url(../img/webps/PNGSNubia_fondo.webp);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
}

.overlay>div {
    width: 300px;
}

.overlay .felicidades {
    font-size: 40px;
    line-height: 40px;
}

.overlay .puntos {
    font-size: 46px;
    line-height: 46px;
}

.memotest {
    display: flex;
    justify-content: center;
    padding: 0 15px;
}

.memotest .content-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    height: 100dvh;
    max-width: 1024px;
    /* max-width: 630px; */
    /* justify-content: center; */
    /* padding-top: 50px; */
}

.memotest .content-container>* {
    width: 100%;
}

.content-container .header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    align-content: center;
    gap:10px;
    padding: 20px 0;
    /* position: relative; */
}

.content-container .header>* {
    width: 100%;
}

.memotest h2 {
    /* color: #c57ae5; */
    color: white;
    font-family: GoogleSans-Bold;
    font-size: 50px;
    line-height: 50px;
    /* margin-bottom: 15px; */
    margin: 0;
}

.memotest p {
    font-size: 25px;
    line-height: 25px;
    /* margin-bottom: 30px; */
    margin: 0;
}

#game {
    /* height: calc(100% - 260px); */
    /* max-width: 340px; */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    align-content: center;
    gap: 10px;
    /* margin-bottom: 172px; */
    /* margin-bottom: 66px; */
}

#game .card-custom {
    transition: transform 0.5s;
    width: calc(25% - (30px / 4));
    border-radius: 10px;
    overflow: hidden;
}

#game .face {
    display: none;
}

#game .card-custom .face img {
    transform: rotateY(180deg);
}

#game .card-custom .back,
#game .card-custom .face {
    transition: transform 0.5s;
}

.memotest .timer {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    color: white;
    font-family: GoogleSans-Bold;
    font-size: 48px;
    line-height: 48px;
    padding: 20px 0;
    /* height: 100px; */
    /* margin: 25px 0 0 0; */
    /* padding-top: 30px; */
}

.flip .back {
    transform: rotateY(180deg);
}

.flip .face {
    transform: rotateY(0deg);
}

.flip {
    transform: rotateY(180deg);
    transition: transform 0.4s;
}

/* ===== BOTÓN DE PANTALLA COMPLETA ===== */
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.fullscreen-btn {
    background: none;
    border: 2px solid white;
    color: white;
    max-width: 25px;
    height: 25px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
    /* position: absolute;
    top: calc(50% - 20px);
    left: calc(80% - 20px); */
}

.fullscreen-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.fullscreen-btn:active {
    transform: scale(0.98);
}

.fullscreen-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* @media screen and (max-width: 576px) {
    #game {
        max-width: 100%;
        padding: 0 15px 0 15px;
    }

    #game .card-custom {
        width: calc(25% - (30px/4));
    }

    #startModal .modal-body {
        padding: 40px 20px;
    }

    #startButton {
        min-width: 100%;
    }
} */