/* style.css */
body {
    background: linear-gradient(135deg, #e0eafc, #cfdef3);
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
}
#game-container {
    max-width: 400px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 32px 24px;
    text-align: center;
}
#image-container img {
    width: 240px;
    height: 240px;
    object-fit: contain;
    margin-bottom: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    animation: pop 0.5s;
}
@keyframes pop {
    0% { transform: scale(0.7);}
    80% { transform: scale(1.1);}
    100% { transform: scale(1);}
}
#feedback {
    font-size: 1.2em;
    margin-top: 10px;
    min-height: 24px;
}
#feedback.correct {
    color: #2ecc40;
    animation: bounce 0.5s;
}
#feedback.wrong {
    color: #e74c3c;
    animation: shake 0.5s;
}
@keyframes bounce {
    0% { transform: scale(1);}
    50% { transform: scale(1.2);}
    100% { transform: scale(1);}
}
@keyframes shake {
    0%, 100% { transform: translateX(0);}
    20%, 60% { transform: translateX(-8px);}
    40%, 80% { transform: translateX(8px);}
}
button {
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 16px;
    transition: background 0.2s;
}
button:hover {
    background: #217dbb;
}
input[type="text"] {
    padding: 8px;
    font-size: 1.3em; /* Aumenta el tamaño aquí */
    border-radius: 6px;
    border: 1px solid #bbb;
    margin-bottom: 12px;
    width: 80%;
}
.hidden { display: none; }
#goodbye-section {
    text-align: center;
    margin-top: 40px;
}
#goodbye-title {
    margin-bottom: 24px;
}
#goodbye-score {
    margin-top: 12px;
}
#euskera-word {
    margin-bottom: 18px;
    font-size: 1.2em;
    font-weight: bold;
}

#image-container {
    margin-bottom: 24px;
}

#answer-input {
    margin-top: 18px;
    margin-bottom: 18px;
}

#score-info {
    margin-bottom: 24px;
}
#greatest-scores {
    margin: 18px 0 12px 0;
    background: #f7fafc;
    border-radius: 10px;
    padding: 12px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
#greatest-scores h3 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
}
#scores-list {
    margin: 0;
    padding-left: 18px;
    text-align: left;
}

/* Adaptación para móviles (iPhone) */
@media (max-width: 600px) {
    #game-container {
        max-width: 90vw;
        margin: 10px auto;
        padding: 16px 4px;
        border-radius: 10px;
    }
    #image-container img {
        width: 90vw;
        max-width: 220px;
        height: auto;
    }
    input[type="text"], button {
        width: 70%;
        font-size: 2em;
        margin-bottom: 10px;
        box-sizing: border-box;
    }
    input[type="text"] {
        font-size: 16px; /* Evita el zoom automático en iOS */
    }
    h1, h2 {
        font-size: 2em;
    }
    #score-info, #euskera-word, #feedback {
        font-size: 1em;
    }
}

/* Adaptación para tablets (iPad) */
@media (min-width: 601px) and (max-width: 1024px) {
    #game-container {
        max-width: 70vw;
        margin: 24px auto;
        padding: 28px 12px;
        border-radius: 14px;
    }
    #image-container img {
        width: 60vw;
        max-width: 260px;
        height: auto;
    }
    input[type="text"], button {
        width: 70%;
        font-size: 2em;
        margin-bottom: 12px;
        box-sizing: border-box;
    }
    input[type="text"] {
        font-size: 1.3em;
    }
    h1, h2 {
        font-size: 2em;
    }
    #score-info, #euskera-word, #feedback {
        font-size: 1.1em;
    }
}