* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f0f8ff;
    color: #333;
}

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #e6f2ff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.screen {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

h1 {
    font-size: 48px;
    margin-bottom: 30px;
    color: #1e6bb8;
    text-shadow: 0 0 10px rgba(30, 107, 184, 0.3);
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.characters {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 30px;
}

.character {
    cursor: pointer;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s;
}

.character:hover {
    background-color: rgba(30, 107, 184, 0.2);
}

.character.selected {
    background-color: rgba(30, 107, 184, 0.4);
    box-shadow: 0 0 10px rgba(30, 107, 184, 0.5);
}

.character img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 2px solid #1e6bb8;
}

.buttons {
    display: flex;
    gap: 15px;
}

button {
    padding: 12px 24px;
    font-size: 16px;
    background-color: #1e6bb8;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    background-color: #155592;
}

button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

.hidden {
    display: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    background-color: #f0f8ff;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 700px;
    max-height: 500px;
    overflow-y: auto;
    border-radius: 5px;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
}

.close:hover {
    color: #1e6bb8;
}

#info-text, #instructions-text {
    line-height: 1.6;
    color: #333;
}

#instructions-text ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

#instructions-text li {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

#instructions-text img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

/* Estilos pantalla de juego */
.hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: rgba(30, 107, 184, 0.8);
    color: white;
    z-index: 5;
}

.score, .timer {
    font-size: 20px;
    font-weight: bold;
}

.timer {
    display: flex;
    gap: 10px;
}

#game-area {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #e6f2ff;
    overflow: hidden;
}

#player {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 120px;
    z-index: 2;
}

#player-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #1e6bb8;
}

#tray {
    width: 120px;
    height: 30px;
    background-color: #1e6bb8;
    border-radius: 10px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.item {
    position: absolute;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Referencia de iconos */
#icon-reference {
    position: absolute;
    left: 10px;
    top: 60px;
    width: 150px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    padding: 10px;
    font-size: 12px;
    z-index: 4;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

#icon-reference h3 {
    text-align: center;
    margin-bottom: 10px;
    color: #1e6bb8;
}

#icon-reference h4 {
    font-size: 12px;
    margin: 5px 0;
    color: #1e6bb8;
}

.ref-group {
    margin-bottom: 10px;
}

.ref-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.ref-item img {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.ref-item span {
    font-size: 11px;
}

/* Estilos pantalla de resultados */
#results-screen {
    text-align: center;
    background-color: #e6f2ff;
}

#final-score {
    color: #1e6bb8;
}

.stats {
    margin: 30px 0;
    text-align: left;
    width: 80%;
}

#collected-items {
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

#collected-items li {
    display: flex;
    align-items: center;
    gap: 10px;
}

#collected-items img {
    width: 30px;
    height: 30px;
}
