/* Estilos para el cuestionario de historia de la enfermería */

/* Global box-sizing for easier responsive design */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 10px; /* Base padding for mobile */
}

/* Main App Title */
.main-app-title {
    font-size: 1.8em; /* Base font size for mobile */
    color: #0056b3;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Estilo para las introducciones de los juegos */
.game-intro {
    color: #4a5568;
    border: 1px solid #e2e8f0;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    font-size: 1em;
    line-height: 1.6;
    text-align: left;
    position: relative;
    overflow: hidden;
    padding-left: 30px;
}

.game-intro::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 6px;
}

/* Colores pastel para cada introducción */
.intro-quiz { background-color: #e6f2ff; }
.intro-quiz::before { background: linear-gradient(180deg, #007bff, #80bfff); }

.intro-memory { background-color: #f1e9ff; }
.intro-memory::before { background: linear-gradient(180deg, #6f42c1, #b39ddb); }

.intro-timeline { background-color: #ffebe6; }
.intro-timeline::before { background: linear-gradient(180deg, #dc3545, #ff8a80); }

.intro-guess { background-color: #fff8e1; }
.intro-guess::before { background: linear-gradient(180deg, #ffc107, #ffd54f); }

.intro-match { background-color: #e0f7fa; }
.intro-match::before { background: linear-gradient(180deg, #17a2b8, #80deea); }

.intro-speed { background-color: #f1f3f5; }
.intro-speed::before { background: linear-gradient(180deg, #6c757d, #b0bec5); }

.intro-connect { background-color: #e6fff7; }
.intro-connect::before { background: linear-gradient(180deg, #20c997, #80cbc4); }


/* Colores de fondo para cada sección de juego */
#quiz-section { background-color: #f0f7ff; }
#study-section { background-color: #fffaf0; }
#memory-section { background-color: #f8f5ff; }
#timeline-section { background-color: #fff5f5; }
#guess-nurse-section { background-color: #fffef0; }
#match-quote-section { background-color: #f0ffff; }
#speed-challenge-section { background-color: #f8f9fa; }
#connect-theory-section { background-color: #f0fff8; }


/* Welcome Section y Secciones de Juegos */
#welcome-section, .section {
    position: relative;
    overflow: hidden; /* Para contener las enfermeras flotantes */
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    min-height: 100vh; /* Asegurar que todas las secciones ocupen la pantalla */
}

/* Contenedores de contenido principal deben estar por encima de las enfermeras */
.welcome-content,
.quiz-container,
.study-container,
.memory-container,
.nurse-cards-container,
.year-slots-container,
.guess-nurse-container,
.match-quote-container,
.speed-challenge-container,
.connect-theory-container,
.result-container,
.restart-button,
.next-button,
.memory-reset,
.timeline-reset,
.match-quote-reset,
.connect-theory-reset,
.speed-challenge-start,
.game-intro {
    position: relative;
    z-index: 10;
}

.welcome-content {
    z-index: 10;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    max-width: 90%; /* Base max-width for mobile */
    margin: 0 auto 15px;
}

.welcome-content p {
    font-size: 0.95em;
    line-height: 1.5;
    color: #333333;
    margin-bottom: 10px;
}

.website-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff6b6b;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.website-button:hover {
    background-color: #ee5253;
}

.app-attribution {
    font-size: 0.9em;
    color: #666666;
    margin-top: 15px;
    margin-bottom: 5px;
}

.app-attribution a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.app-attribution a:hover {
    text-decoration: underline;
}

.floating-nurses-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-nurse {
    position: absolute;
    width: 60px; /* Base size for mobile */
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0.4; /* Base opacity for mobile */
    animation: float 15s ease-in-out infinite;
}

.nurse-1 { top: 10%; left: 5%; animation-delay: 0s; animation-duration: 18s; }
.nurse-2 { top: 30%; left: 80%; animation-delay: 3s; animation-duration: 16s; }
.nurse-3 { top: 60%; left: 20%; animation-delay: 6s; animation-duration: 20s; }
.nurse-4 { top: 80%; left: 60%; animation-delay: 9s; animation-duration: 17s; }
.nurse-5 { top: 20%; left: 25%; animation-delay: 1s; animation-duration: 19s; }
.nurse-6 { top: 70%; left: 10%; animation-delay: 4s; animation-duration: 15s; }
.nurse-7 { top: 40%; left: 90%; animation-delay: 7s; animation-duration: 21s; }
.nurse-8 { top: 5%; left: 70%; animation-delay: 10s; animation-duration: 16s; }
.nurse-9 { top: 15%; left: 40%; animation-delay: 2s; animation-duration: 22s; }
.nurse-10 { top: 50%; left: 50%; animation-delay: 5s; animation-duration: 18s; }
.nurse-11 { top: 85%; left: 5%; animation-delay: 8s; animation-duration: 20s; }
.nurse-12 { top: 95%; left: 85%; animation-delay: 11s; animation-duration: 15s; }
.nurse-13 { top: 5%; left: 15%; animation-delay: 1.5s; animation-duration: 19s; }
.nurse-14 { top: 25%; left: 65%; animation-delay: 4.5s; animation-duration: 17s; }
.nurse-15 { top: 75%; left: 35%; animation-delay: 7.5s; animation-duration: 21s; }
.nurse-16 { top: 55%; left: 95%; animation-delay: 10.5s; animation-duration: 16s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -20px) scale(1.05); }
    50% { transform: translate(0, 0) scale(1); }
    75% { transform: translate(-20px, 20px) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Floating Menu */
.floating-menu {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.menu-toggle-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #007bff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.menu-toggle-button:hover {
    background-color: #0056b3;
}

.hamburger-icon {
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    position: relative;
    transition: transform 0.3s;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    left: 0;
    transition: transform 0.3s;
}

.hamburger-icon::before {
    transform: translateY(-8px);
}

.hamburger-icon::after {
    transform: translateY(8px);
}

.floating-menu.open .hamburger-icon {
    background-color: transparent;
}

.floating-menu.open .hamburger-icon::before {
    transform: rotate(45deg);
}

.floating-menu.open .hamburger-icon::after {
    transform: rotate(-45deg);
}

/* Navigation */
.main-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 200px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 10px;
    transform: scale(0.95);
    transform-origin: bottom right;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s, opacity 0.2s, visibility 0.2s;
}

.floating-menu.open .main-nav {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}


.nav-button {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    text-align: left;
}

/* Specific Nav Button Colors */
.nav-button-1 { background-color: #007bff; border: 2px solid #007bff; color: #ffffff; }
.nav-button-1:hover, .nav-button-1.active { background-color: #0056b3; border-color: #0056b3; color: #ffffff; }
.nav-button-2 { background-color: #28a745; border: 2px solid #28a745; color: #ffffff; }
.nav-button-2:hover, .nav-button-2.active { background-color: #1e7e34; border-color: #1e7e34; color: #ffffff; }
.nav-button-3 { background-color: #fd7e14; border: 2px solid #fd7e14; color: #ffffff; }
.nav-button-3:hover, .nav-button-3.active { background-color: #e66a00; border-color: #e66a00; color: #ffffff; }
.nav-button-4 { background-color: #6f42c1; border: 2px solid #6f42c1; color: #ffffff; }
.nav-button-4:hover, .nav-button-4.active { background-color: #5a359a; border-color: #5a359a; color: #ffffff; }
.nav-button-5 { background-color: #dc3545; border: 2px solid #dc3545; color: #ffffff; }
.nav-button-5:hover, .nav-button-5.active { background-color: #c82333; border-color: #c82333; color: #ffffff; }
.nav-button-6 { background-color: #ffc107; border: 2px solid #ffc107; color: #ffffff; }
.nav-button-6:hover, .nav-button-6.active { background-color: #e0a800; border-color: #e0a800; color: #ffffff; }
.nav-button-7 { background-color: #17a2b8; border: 2px solid #17a2b8; color: #ffffff; }
.nav-button-7:hover, .nav-button-7.active { background-color: #138496; border-color: #138496; color: #ffffff; }
.nav-button-8 { background-color: #6c757d; border: 2px solid #6c757d; color: #ffffff; }
.nav-button-8:hover, .nav-button-8.active { background-color: #5a6268; border-color: #5a6268; color: #ffffff; }
.nav-button-9 { background-color: #20c997; border: 2px solid #20c997; color: #ffffff; }
.nav-button-9:hover, .nav-button-9.active { background-color: #17a2b8; border-color: #17a2b8; color: #ffffff; }

/* Sections */
.section { display: none; }
.section.active { display: block; }

/* General Game Containers */
.quiz-container,
.guess-nurse-container,
.speed-challenge-container,
.match-quote-container,
.connect-theory-container {
    max-width: 100%; /* Base full width for mobile */
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: auto;
    padding: 15px; /* Base padding for mobile */
    text-align: center;
}

/* Study Cards */
.study-container {
    display: grid;
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 10px;
    max-width: 100%;
    margin: 0 auto;
    padding: 5px;
}

.study-card {
    display: flex;
    flex-direction: column; /* Stack image and text vertically for mobile */
    align-items: center;
    gap: 10px; /* Reduced gap for mobile */
    background: linear-gradient(135deg, #f0f9ff 0%, #c9e8ff 100%);
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
    padding: 15px;
    text-align: center;
}

.study-card img {
    width: 80px; /* Base size for mobile */
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0;
    border: 3px solid #e0e6ed;
}

.study-card h3 {
    margin: 0;
    font-size: 1em; /* Base font size for mobile */
    color: #333333;
}

.study-card p {
    font-size: 0.8em; /* Base font size for mobile */
    color: #555555;
    line-height: 1.4; /* Adjusted line height */
    word-wrap: break-word;
}

/* Memory Game */
.memory-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Tarjetas más grandes en móvil */
    gap: 10px;
    max-width: 100%;
    margin: 15px auto;
}

.memory-card {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Maintain aspect ratio */
    height: auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
    border: 2px solid #d0d7de;
}

.memory-card.revealed {
    background-color: #f0f4f8;
}

.memory-card img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border-radius: 50%;
    object-fit: cover;
}

.memory-card span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7em; /* Ajustado para mejor visibilidad */
    color: #333333;
    text-align: center;
    padding: 5px;
    word-break: break-word;
}

.memory-card.matched {
    background-color: #d4edda;
    border-color: #28a745;
    pointer-events: none;
}

.memory-message {
    text-align: center;
    font-size: 1em;
    margin-top: 15px;
    color: #333333;
}

/* Timeline Game */
.timeline-instructions {
    text-align: center;
    margin-bottom: 15px;
    color: #333333;
    font-size: 0.9em;
}

.nurse-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    min-height: 120px; /* Aumentado para más espacio */
    border: 2px dashed #ccc;
    padding: 10px;
    border-radius: 8px;
}

.year-slots-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.nurse-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: grab;
    width: 110px; /* Aumentado para móvil */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nurse-card img {
    width: 80px; /* Aumentado para móvil */
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 5px;
}

.nurse-card span {
    font-size: 0.85em; /* Aumentado para móvil */
    font-weight: bold;
    color: #333;
}



.nurse-card.correct {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
    cursor: default;
}

.year-slot {
    background-color: #f8f9fa;
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 15px; /* Aumentado */
    min-width: 110px; /* Aumentado */
    min-height: 110px; /* Aumentado */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.1em; /* Aumentado */
    font-weight: bold;
    color: #007bff;
    transition: background-color 0.2s, border-color 0.2s;
}



.year-slot .nurse-card {
    margin: 0;
}

.timeline-result {
    margin-top: 20px;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
}

/* Quiz Section */
.question-image {
    width: 100px; /* Base size for mobile */
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 15px;
    border: 4px solid #e0e6ed;
}

.question-text {
    font-size: 1em; /* Base font size for mobile */
    margin-bottom: 15px;
    text-align: center;
    color: #333333;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Reduced gap for mobile */
}

.options-container button {
    padding: 10px 12px; /* Base padding for mobile */
    font-size: 0.9em; /* Base font size for mobile */
    border: 2px solid #a0d9ff;
    border-radius: 6px;
    background-color: #f0f8ff;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    text-align: left;
}

.options-container button:hover {
    background-color: #e0f2ff;
}

.options-container button.selected.correct {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.options-container button.selected.incorrect {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.options-container button.correct {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.next-button,
.restart-button,
.memory-reset {
    margin-top: 15px; /* Base margin for mobile */
    padding: 10px 15px; /* Base padding for mobile */
    font-size: 0.9em; /* Base font size for mobile */
    border: none;
    border-radius: 6px;
    background-color: #ff6b6b;
    color: #ffffff;
    cursor: pointer;
    display: block;
    width: 100%;
    max-width: 300px; /* Limit width for buttons */
    margin-left: auto;
    margin-right: auto;
    transition: background-color 0.2s;
}

.next-button:disabled {
    background-color: #ffadad;
    cursor: not-allowed;
}

.next-button:hover:not(:disabled),
.restart-button:hover,
.memory-reset:hover {
    background-color: #ee5253;
}

.explanation {
    margin-top: 10px; /* Base margin for mobile */
    font-size: 0.85em; /* Base font size for mobile */
    color: #333333;
}

.progress {
    font-size: 0.85em; /* Base font size for mobile */
    color: #666666;
    margin-bottom: 10px;
    text-align: right;
}

/* Result Container */
.result-container {
    max-width: 100%; /* Base full width for mobile */
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: auto;
    padding: 15px;
    text-align: center;
}

/* Guess Nurse Game */
.guess-instructions {
    font-size: 1em; /* Base font size for mobile */
    margin-bottom: 15px;
    color: #333333;
}

.guess-description {
    font-size: 1.1em; /* Base font size for mobile */
    margin-bottom: 15px;
    text-align: left;
    color: #555555;
    line-height: 1.5;
}

/* Match Quote Game */
.match-quote-instructions {
    font-size: 1em; /* Base font size for mobile */
    margin-bottom: 15px;
    color: #333333;
}

.quotes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Reduced gap for mobile */
    justify-content: center;
    margin-bottom: 15px;
    min-height: 80px; /* Adjusted min-height */
    border: 1px dashed #ccc;
    padding: 8px;
    border-radius: 8px;
}

.quote-card {
    background-color: #f0f8ff;
    border: 1px solid #a0d9ff;
    border-radius: 6px;
    padding: 8px; /* Base padding for mobile */
    text-align: center;
    cursor: grab;
    width: 100%; /* Full width for mobile */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 0.8em; /* Base font size for mobile */
    line-height: 1.3;
}



.quote-card.correct {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
    cursor: default;
}

.nurses-for-quotes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Reduced gap for mobile */
    justify-content: center;
    margin-top: 15px;
}

.nurse-slot-for-quote {
    background-color: #f8f9fa;
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 10px; /* Base padding for mobile */
    min-width: 90px; /* Base min-width for mobile */
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.9em; /* Base font size for mobile */
    font-weight: bold;
    color: #007bff;
    transition: background-color 0.2s, border-color 0.2s;
}

.nurse-slot-for-quote img {
    width: 60px; /* Base size for mobile */
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 5px;
}



.nurse-slot-for-quote .quote-card {
    margin-top: 8px; /* Adjusted margin */
}

.match-quote-result {
    margin-top: 15px;
    text-align: center;
    font-size: 1em;
    font-weight: bold;
}

/* Speed Challenge Game */
.speed-challenge-instructions {
    font-size: 1em; /* Base font size for mobile */
    margin-bottom: 15px;
    color: #333333;
}

.timer {
    font-size: 1.3em; /* Base font size for mobile */
    font-weight: bold;
    color: #dc3545;
    margin-bottom: 8px;
}

.score {
    font-size: 1.1em; /* Base font size for mobile */
    color: #28a745;
    margin-bottom: 15px;
}

/* Connect Theory Game */
.connect-theory-instructions {
    font-size: 1em; /* Base font size for mobile */
    margin-bottom: 15px;
    color: #333333;
}

.concept-card {
    background-color: #f0f8ff;
    border: 1px solid #a0d9ff;
    border-radius: 6px;
    padding: 8px; /* Base padding for mobile */
    text-align: center;
    cursor: grab;
    width: 100%; /* Full width for mobile */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 0.8em; /* Base font size for mobile */
    line-height: 1.3;
}



.concept-card.correct {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
    cursor: default;
}

.nurse-slot-for-theory {
    background-color: #f8f9fa;
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 10px; /* Base padding for mobile */
    min-width: 90px; /* Base min-width for mobile */
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.9em; /* Base font size for mobile */
    font-weight: bold;
    color: #007bff;
    transition: background-color 0.2s, border-color 0.2s;
}

.nurse-slot-for-theory img {
    width: 60px; /* Base size for mobile */
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 5px;
}



.nurse-slot-for-theory .concept-card {
    margin-top: 8px; /* Adjusted margin */
}

.connect-theory-result {
    margin-top: 15px;
    text-align: center;
    font-size: 1em;
    font-weight: bold;
}

.mobile-instruction {
    display: none;
    font-weight: bold;
    color: #007bff;
}

@media (hover: none) {
    .mobile-instruction {
        display: inline;
    }
}

.nurse-card.selected, .quote-card.selected, .concept-card.selected {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.7);
    border-color: #007bff;
}

.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
@media (min-width: 600px) {
    body {
        padding: 20px;
        padding-bottom: 60px;
    }

    .main-app-title {
        font-size: 2.2em;
    }

    .welcome-content {
        max-width: 600px;
        padding: 20px;
    }

    .welcome-content p {
        font-size: 1em;
    }

    .website-button {
        font-size: 1em;
    }

    .floating-nurse {
        width: 80px;
        height: 80px;
        opacity: 0.6;
    }

    

    .study-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 10px;
    }

    .study-card {
        flex-direction: row;
        text-align: left;
        gap: 15px;
        padding: 20px;
    }

    .study-card img {
        width: 100px;
        height: 100px;
    }

    .study-card h3 {
        font-size: 1.1em;
    }

    .study-card p {
        font-size: 0.9em;
    }

    .memory-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Más grande en desktop */
        gap: 15px;
        max-width: 800px;
        margin: 20px auto;
    }

    .memory-card span {
        font-size: 1em;
    }

    .quiz-container,
    .guess-nurse-container,
    .speed-challenge-container {
        max-width: 600px;
        padding: 20px;
    }

    .question-image {
        width: 120px;
        height: 120px;
    }

    .question-text,
    .guess-instructions,
    .speed-challenge-instructions,
    .match-quote-instructions,
    .connect-theory-instructions {
        font-size: 1.1em;
    }

    .options-container button,
    .next-button,
    .restart-button,
    .memory-reset {
        font-size: 1em;
        padding: 12px 16px;
    }

    .timer {
        font-size: 1.5em;
    }

    .score {
        font-size: 1.2em;
    }

    .nurse-card {
        width: 130px; /* Más grande en desktop */
    }

    .nurse-card img {
        width: 100px; /* Más grande en desktop */
        height: 100px;
    }

    .year-slot {
        min-width: 130px; /* Más grande en desktop */
        min-height: 130px;
    }

    .quotes-container {
        gap: 10px;
        min-height: 100px;
        padding: 10px;
    }

    .quote-card {
        width: 180px;
        font-size: 0.9em;
        padding: 10px;
    }

    .nurses-for-quotes-container {
        gap: 10px;
        margin-top: 20px;
    }

    .nurse-slot-for-quote {
        min-width: 120px;
        min-height: 120px;
        padding: 15px;
    }

    .nurse-slot-for-quote img {
        width: 80px;
        height: 80px;
    }

    .nurse-slot-for-quote span {
        font-size: 1em;
    }

    .match-quote-result {
        font-size: 1.1em;
    }

    .connect-theory-container {
        max-width: 800px;
        padding: 20px;
    }

    .concept-card {
        width: 180px;
        font-size: 0.9em;
        padding: 10px;
    }

    .nurse-slot-for-theory {
        min-width: 120px;
        min-height: 120px;
        padding: 15px;
    }

    .nurse-slot-for-theory img {
        width: 80px;
        height: 80px;
    }

    .nurse-slot-for-theory span {
        font-size: 1em;
    }

    .connect-theory-result {
        font-size: 1.1em;
    }
}

@media (min-width: 900px) {
    .main-app-title {
        font-size: 2.5em;
    }

    .welcome-content {
        max-width: 800px;
    }

    .welcome-content p {
        font-size: 1.1em;
    }

    

    .study-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .memory-container {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Aún más grande */
    }

    .quiz-container,
    .guess-nurse-container,
    .speed-challenge-container {
        max-width: 600px;
    }

    .match-quote-container,
    .connect-theory-container {
        max-width: 800px;
    }

    .nurse-card {
        width: 150px; /* Aún más grande */
    }

    .nurse-card img {
        width: 120px;
        height: 120px;
    }

    .year-slot {
        min-width: 150px;
        min-height: 150px;
    }
}