/*==================================================
                EL RETO 2.0
                  STYLE.CSS
                  PARTE 1
==================================================*/

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}

html,
body{

    width:100%;

    height:100%;

}

body{

    background:#1A0F0A;

    color:white;

    font-family:Arial,Helvetica,sans-serif;

    overflow-y:auto;
    
    overflow-x:hidden;

}

/*=============================
        PANTALLAS
=============================*/

.screen{

    width:100%;

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:flex-start;

    overflow-y:auto;

    padding:30px 0;

    box-sizing:border-box;

}

.hidden{

    display:none;

}

/*=============================
            PANEL
=============================*/

.panel{

    width:100%;

    max-width:700px;

    background:#2B1810;

    border-radius:20px;

    padding:35px;

    box-shadow:0 0 40px rgba(0,0,0,.45);

    margin:auto;

}

/*=============================
            TÍTULOS
=============================*/

h1{

    text-align:center;

    font-size:56px;

    margin-bottom:25px;

}

h2{

    text-align:center;

    font-size:34px;

    margin-bottom:30px;

}

.subtitle{

    text-align:center;

    font-size:22px;

    line-height:34px;

    color:#D1D5DB;

    margin-bottom:35px;

}

/*=============================
        ESTADÍSTICAS
=============================*/

.stats{

    margin-bottom:35px;

}

.stat{

    display:flex;

    justify-content:space-between;

    align-items:center;

    background:#C06500;

    padding:18px;

    border-radius:12px;

    margin-bottom:18px;

    font-size:22px;

}

.stat span:last-child{

    color:#000000;

    font-weight:bold;

}

/*=============================
            BOTONES
=============================*/

button{

    width:100%;

    padding:18px;

    border:none;

    border-radius:12px;

    font-size:22px;

    font-weight:bold;

    cursor:pointer;

    transition:.25s;

}

.mainButton{

    background:#FFC067;

    color:black;

}

.mainButton:hover{

    background:#16A34A;

}

.secondaryButton{

    background:#C06500;

    color:black;

    margin-top:18px;

}

.secondaryButton:hover{

    background:#EA580C;

}
/*==================================================
                STYLE.CSS
                  PARTE 2
==================================================*/

/*=============================
        CABECERA DEL JUEGO
=============================*/

.gameHeader{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:25px;

    font-size:22px;

    font-weight:bold;

}

#progress{

    color:#FFFFFF;

}

#timer{

    color:#22C55E;

    font-size:28px;

}

/*=============================
        BARRA DE TIEMPO
=============================*/

.timerContainer{

    width:100%;

    height:20px;

    background:#374151;

    border-radius:20px;

    overflow:hidden;

    margin-bottom:30px;

}

#timerBar{

    width:100%;

    height:100%;

    background:#22C55E;

    transition:width 1s linear;

}

/*=============================
            PREGUNTA
=============================*/

#question{

    min-height:90px;

    font-size:32px;

    line-height:42px;

    margin-bottom:35px;

    display:flex;

    justify-content:center;

    align-items:center;

}

/*=============================
        RESPUESTAS
=============================*/

#answers{

    display:flex;

    flex-direction:column;

    gap:18px;

}

.answer{

    width:100%;

    background:#C06500;

    color:white;

    border:none;

    border-radius:14px;

    padding:20px;

    font-size:22px;

    cursor:pointer;

    transition:.25s;

}

.answer:hover{

    background:#83672B;

    transform:translateY(-2px);

}

.answer:active{

    transform:scale(.98);

}

/*=============================
    RESPUESTA CORRECTA
=============================*/

.correct{

    background:#16A34A !important;

}

/*=============================
    RESPUESTA INCORRECTA
=============================*/

.incorrect{

    background:#DC2626 !important;

}

/*=============================
    RESPUESTAS DESACTIVADAS
=============================*/

.disabled{

    pointer-events:none;

    opacity:.75;

}
/*==================================================
                STYLE.CSS
                  PARTE 3
==================================================*/

/*=============================
        PANTALLA PREMIO
=============================*/

#rewardScreen{

    text-align:center;

}

#rewardScreen p{

    font-size:22px;

    color:#D1D5DB;

    margin-bottom:25px;

    line-height:34px;

}

#rewardImage{

    display:block;

    width:100%;

    max-width:380px;

    margin:25px auto;

    border-radius:18px;

    border:5px solid white;

    box-shadow:0 0 25px rgba(0,0,0,.45);

}

/*=============================
            COLECCIÓN
=============================*/

#gallery{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:18px;

    margin:30px 0;

    margin-bottom:30px;

}

/*=============================
        TARJETA FOTO
=============================*/

.photoCard{

    background:#374151;

    border-radius:14px;

    overflow:hidden;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    aspect-ratio:1/1;

    transition:.25s;

    cursor:pointer;

}

.photoCard:hover{

    transform:scale(1.03);

}

.photoCard img{

    width:100%;

    height:100%;

    object-fit:cover;

}

/*=============================
        FOTO BLOQUEADA
=============================*/

.locked{

    background:#1F2937;

    border:2px dashed #4B5563;

    position:relative;

}

.locked::before{

    content:"🔒";

    font-size:54px;

}

.locked::after{

    content:"Bloqueada";

    position:absolute;

    bottom:12px;

    font-size:16px;

    color:#9CA3AF;

}

/*=============================
        FOTO DESBLOQUEADA
=============================*/

.unlocked{

    border:3px solid #22C55E;

}

/*=============================
        TÍTULO FOTO
=============================*/

.photoTitle{

    width:100%;

    padding:10px;

    background:#111827;

    text-align:center;

    font-size:16px;

    font-weight:bold;

}

/*=============================
        PANTALLA VICTORIA
=============================*/

#victoryScreen{

    text-align:center;

}

#victoryScreen h1{

    font-size:90px;

    margin-bottom:15px;

}

#victoryScreen h2{

    margin-bottom:20px;

}

#victoryScreen p{

    font-size:24px;

    color:#D1D5DB;

    line-height:36px;

    margin-bottom:35px;

}
/*==================================================
                STYLE.CSS
                  PARTE 4
==================================================*/

/*=============================
        ANIMACIONES
=============================*/

@keyframes aparecer{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.panel{

    animation:aparecer .35s ease;

}

@keyframes pulse{

    0%{

        transform:scale(1);

    }

    50%{

        transform:scale(1.03);

    }

    100%{

        transform:scale(1);

    }

}

.correct{

    animation:pulse .35s;

}

/*=============================
        EFECTOS BOTONES
=============================*/

button{

    transition:
        background .25s,
        transform .15s,
        opacity .25s,
        box-shadow .25s;

}

button:hover{

    transform:translateY(-2px);

    box-shadow:0 8px 18px rgba(0,0,0,.30);

}

button:active{

    transform:scale(.98);

}

/*=============================
        SCROLL
=============================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#1F2937;

}

::-webkit-scrollbar-thumb{

    background:#4B5563;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#6B7280;

}

/*=============================
        RESPONSIVE TABLET
=============================*/

@media(max-width:900px){

.panel{

    max-width:95%;

    padding:28px;

}

h1{

    font-size:48px;

}

h2{

    font-size:30px;

}

.subtitle{

    font-size:20px;

}

#question{

    font-size:28px;

    line-height:38px;

}

.answer{

    font-size:20px;

}

}

/*=============================
        RESPONSIVE MÓVIL
=============================*/

@media(max-width:600px){

.screen{

    padding:12px;

}

.panel{

    padding:20px;

    border-radius:16px;

}

h1{

    font-size:36px;

}

h2{

    font-size:24px;

}

.subtitle{

    font-size:17px;

    line-height:28px;

}

.stat{

    font-size:18px;

    padding:14px;

}

.gameHeader{

    flex-direction:column;

    gap:12px;

    text-align:center;

}

#timer{

    font-size:24px;

}

#question{

    font-size:22px;

    line-height:32px;

    min-height:70px;

}

.answer{

    font-size:18px;

    padding:16px;

}

#gallery{

    grid-template-columns:repeat(2,1fr);

    gap:14px;

}

#rewardImage{

    max-width:280px;

}

}

/*=============================
    MÓVILES PEQUEÑOS
=============================*/

@media(max-width:400px){

h1{

    font-size:30px;

}

h2{

    font-size:22px;

}

.subtitle{

    font-size:16px;

}

#question{

    font-size:20px;

}

.answer{

    font-size:16px;

}

button{

    font-size:18px;

    padding:15px;

}

}

/*=============================
        UTILIDADES
=============================*/

.textCenter{

    text-align:center;

}

.mt20{

    margin-top:20px;

}

.mb20{

    margin-bottom:20px;

}

.hidden{

    display:none !important;

}

#collectionScreen{

    overflow-y:scroll;

}

/*==========================================
        VISOR DE FOTOGRAFÍAS
==========================================*/

.photoViewer{

    position:fixed;

    inset:0;

    z-index:1000;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:20px;

    background:rgba(0,0,0,.85);

}


.photoViewer.hidden{

    display:none;

}


.photoViewerContent{

    position:relative;

    width:100%;

    max-width:600px;

    max-height:90vh;

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:20px;

}


#viewerImage{

    max-width:100%;

    max-height:75vh;

    object-fit:contain;

    border-radius:15px;

    box-shadow:0 0 40px rgba(0,0,0,.7);

}


/*==========================================
            BOTÓN CERRAR
==========================================*/

.closePhotoViewer{

    position:absolute;

    top:-10px;

    right:-10px;

    width:42px;

    height:42px;

    border:none;

    border-radius:50%;

    background:#EF4444;

    color:white;

    font-size:20px;

    cursor:pointer;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:0;

    line-height:1;

}


/*==========================================
            BOTÓN DESCARGAR
==========================================*/

.downloadPhotoButton{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:14px 25px;

    border-radius:12px;

    background:#22C55E;

    color:white;

    text-decoration:none;

    font-weight:bold;

    cursor:pointer;

}


.downloadPhotoButton:hover{

    transform:scale(1.03);

}


/*==========================================
        FOTOS DESBLOQUEADAS
==========================================*/

.photoCard.unlocked{

    cursor:pointer;

}


.photoCard.unlocked img{

    transition:transform .2s ease;

}


.photoCard.unlocked:hover img{

    transform:scale(1.05);

}

/*=============================
        FIN STYLE.CSS
=============================*/