/* 1. Importar la fuente */
@font-face {
    font-family: 'Mermaid Babies';
    src: url('../fonts/MermaidBabies.woff2') format('woff2'),
         url('fonts/MermaidBabies.woff') format('woff'),
         url('fonts/MermaidBabies.eot') format('eot'),
         url('fonts/MermaidBabies.otf') format('otf'),
         url('../fonts/MermaidBabies.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }

  
h1, h2, h3 {
  font-family: 'Mermaid Babies', sans-serif;
  line-height: 100%;
  font-size: 2em;
}

body {
    margin: 0;
    font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
    background-color: #a5dce1;
    color: #142A40;
    text-align: center;
    overflow-y: scroll;
}
header {
    background-color: #a5dce1;
    color: #142a40;
    padding: 0px;
}

header h1 {
    font-size: 3em;
    margin: 0;
    font-family: 'Mermaid babies', Helvetica, Arial, Lucida, sans-serif;
}
header p {
    font-style: italic;
    font-size: 1.2em;
}
.main-content {
    padding: 0px 20px;
    padding-bottom: 30px;
}

.main-content p {
    font-size: 1.2em;
    margin: 20px 0;
    text-align: justify;
}

img {
    max-width: 100%;
    height: auto;
}

.main-content button {
    font-size: 1.2em;
    padding: 15px 30px;
    cursor: pointer;
    color: #142A40 !important;
    border-width: 1px !important;
    border-radius: 100px;
    text-transform: uppercase !important;
    background-color: rgba(255, 255, 255, 0.55);
}
.main-content button:hover {
    background-color: #e5fdff;
}

.main-content input[type="text"], 
.main-content input[type="email"], 
.main-content input[type="password"] {
    font-size: 1.3em;
    padding: 15px;
    border: 2px solid #142A40;
    border-radius: 5px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.55);
}

.main-content input[type="text"]:focus, 
.main-content input[type="email"]:focus, 
.main-content input[type="password"]:focus {
    outline: none;
    border-color: #142A40;
    box-shadow: 0 0 10px #e5fdff;
}


.center-section {
    text-align: center;
    margin-top: 20px;
}

.key-container {
    display: inline-block;
    margin-top: 20px;
}

footer {
    background-color: #001f3f;
    color: white;
    padding: 10px 0;
    position: static;
    width: 100%;
    bottom: 0;
    font-size: 0.9em;
}

/* Página de Victoria */
.victory-message {
    font-size: 2em;
    color: #142A40;
    margin-top: 30px;
}

.gif-container {
    margin: 40px 0;
}

.gif-container img {
    width: 250px;
    border-radius: 10px;
}

/* Animaciones */
@keyframes confetti {
    0% { opacity: 0; transform: translateY(-100%); }
    100% { opacity: 1; transform: translateY(0); }
}

.confetti img {
    width: 100%;
    animation: confetti 2s ease-out;
}

.btn-back {
    background-color: #007bff;
    color: white;
    font-size: 1.5em;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    text-decoration: none;
}

.btn-back:hover {
    background-color: #0056b3;
}

/* Animación Fin Tiempo */

/* Estilos para el contador */
#countdown {
    font-family: 'Mermaid Babies', sans-serif;
    font-size: 2em;
    color: #142A40; /* Color principal de la web */
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    border-radius: 10px;
    background-color: #74ace313;
    animation: pulse 2s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.05);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}


@keyframes shake {
    0% { transform: translate(0); }
    25% { transform: translate(-5px); }
    50% { transform: translate(5px); }
    75% { transform: translate(-5px); }
    100% { transform: translate(0); }
}

.defeat-animation {
    animation: shake 0.5s ease-in-out;
    color: #ff6347 !important; /* Color rojo para enfatizar la derrota */
    font-family: 'Mermaid Babies', sans-serif;
    font-size: 2em;
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    border: 2px solid #ff6347 !important;
    border-radius: 10px;
    background-color: rgba(255, 99, 71, 0.1) !important;
    box-shadow: 0 0 10px rgba(255, 99, 71, 0.5) !important;
    animation: pulse 2s infinite;
}

/* Estilos para el GIF de derrota */
#defeatGif {
    display: none;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    border: 2px solid #ff6347;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 99, 71, 0.5);
}