* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    text-align: center;
    background-image: url('/src/img/fondo.webp');
    background-size: cover;
    background-attachment: fixed;
    background-position: top center;
    background-repeat: no-repeat;
    color: #34495e;
}



header {
    width: -webkit-fill-available;
    border-bottom: 2px solid #fff;
    padding: 31px 8px 18px 13px;
    margin: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

header>div {}

header>div>h2 {
    text-decoration: none;
    color: #fff;
    font-weight: lighter;
    font-size: 24px;
}

header>div>a {
    text-decoration: none;
    color: #fff;
    font-size: 19px;
    font-weight: bold;
    margin: 0 13px;
    cursor: pointer;
    transition: color 0.3s ease;
}

header>div>a:hover {
    color: #f4f4f4
}

header>div>a:active {
    color: #e9f5ff;
}



main {
    width: 100%;
    height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}




main#actividades {
    width: 100%;
    height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    justify-content: center;
}

.botonComienzo {
    background-color: #3498db00;
    position: relative;
    width: auto;
    height: auto;
    color: white;
    padding: 21px 125px;
    border: solid 2px #fff;
    border-radius: 18px;
    cursor: pointer;
    font-size: 25px;
    transition: background-color 0.3s ease;
}

.botonComienzo:hover {
    background-color: #9bcded57;
}

.botonComienzo:active {
    background-color: #9bcdeda8;
}



#card-container {
    background: #ffffffe3;
    padding: 20px;
    border-radius: 10px;
    max-width: 700px;
    margin: 60px 10px 0 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#situation-box {
    background-color: #e9f5ff;
    border-left: 6px solid #3498db;
    padding: 20px;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 0 8px 8px 0;
    animation: fadeIn 0.5s ease forwards;
}

#actividad .option-button {
    display: block;
    margin: 10px auto;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    background-color: #3498db;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    max-width: 80%;
}

#actividad .option-button:hover {
    background-color: #2980b9;
}

#actividad .option-button.correct {
    background-color: #2ecc71 !important;
}

#actividad .option-button.incorrect {
    background-color: #e74c3c !important;
}

#actividad .result {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff7d1;
    border-left: 6px solid #f1c40f;
    font-weight: bold;
    font-size: 1.1em;
    border-radius: 0 8px 8px 0;
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
    opacity: 0;
    transform: translateY(10px);
    }

    to {
    opacity: 1;
    transform: translateY(0);
    }
}

#next-button {
    margin-top: 25px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

@media (max-width: 768px) {
    header {}

    header>div>h2 {
    font-size: 20px;
    }

    header>div>a {
    font-size: 16px;
    }

    .botonComienzo {
    font-size: 18px;
    padding: 16px 30px;
    }

    #actividad .option-button {
    font-size: 14px;
    padding: 10px 15px;
    }

    #next-button {
    font-size: 14px;
    padding: 8px 15px;
    }
}

/* Media query para móviles más pequeños (menos de 480px) */
@media (max-width: 480px) {

    #situation-box,
    #actividad .result {
    font-size: 1em;
    }

    header>div>h2 {
    font-size: 18px;
    }

    .botonComienzo {
    font-size: 16px;
    padding: 14px 25px;
    }
}