body, html {
    height: 100%;
    margin: 0;
    font-family: 'Arial', sans-serif;
}

#background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('flower-field.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

#game-container {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    z-index: 3;
}

h1 {
    color: #343a40;
    font-weight: bold;
}

#game-board {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    gap: 5px;
    max-width: 330px;
    margin: 0 auto;
}

.row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.tile {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 2px solid #ced4da;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    background-color: #fff;
    transition: all 0.3s ease;
}

.tile {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 2px solid #ced4da;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    background-color: #fff;
    transition: all 0.3s ease;
}

.tile.correct {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

.tile.present {
    background-color: #ffc107;
    border-color: #ffc107;
    color: white;
}

.tile.absent {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.key.correct {
    background-color: #198754;
    color: white;
}

.key.present {
    background-color: #ffc107;
    color: white;
}

.key.absent {
    background-color: #6c757d;
    color: white;
}

#keyboard {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 5px;
    max-width: 500px;
    margin: 0 auto;
}

/* ... (mantén los estilos existentes para .keyboard-row, .key, etc.) ... */

#bees-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    overflow: hidden;
}

.bee {
    position: absolute;
    width: 50px;
    height: 50px;
    background-image: url('./cute-bee.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    will-change: transform;
    z-index: 1001; /* Asegúrate de que las abejas estén por encima de otros elementos */
}

@media (max-width: 400px) {
    #game-container {
        padding: 1rem;
    }
    .tile {
        font-size: 1.5rem;
    }
    .key {
        font-size: 0.8rem;
        padding: 8px;
        min-width: 25px;
    }
    .key.wide {
        min-width: 50px;
    }
}
#keyboard {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 5px;
    max-width: 100%; /* Cambiado de 500px a 100% */
    margin: 0 auto;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.key {
    background-color: #e9ecef;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    padding: 10px;
    min-width: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.key:hover {
    background-color: #ced4da;
    transform: scale(1.1);
}

.key.wide {
    min-width: 60px;
}

/* Estilos para las teclas según su estado */
.key.correct {
    background-color: #198754;
    color: white;
}

.key.present {
    background-color: #ffc107;
    color: white;
}

.key.absent {
    background-color: #6c757d;
    color: white;
}

@media (max-width: 400px) {
    .key {
        font-size: 0.8rem;
        padding: 8px;
        min-width: 25px;
    }
    
    .key.wide {
        min-width: 50px;
    }
}
@keyframes moveCloud {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

#cloud-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.cloud {
    position: absolute;
    width: 2000px;
    height: 300px;
    background-image: url('clouds.png');
    background-repeat: repeat-x;
    animation: moveCloud 60s linear infinite; /* Cambia 60s al valor que desees */
}

/* Para las otras capas de nubes */
.cloud:nth-child(2) {
    top: 20%;
    animation-duration: 80s; /* Ajusta este valor */
}

.cloud:nth-child(3) {
    top: 40%;
    animation-duration: 100s; /* Ajusta este valor */
}
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Arial', sans-serif;
}

#background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('flower-field.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

#game-container {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

h1 {
    color: #343a40;
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 1rem;
}

#game-board {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    gap: 5px;
    width: 100%;
    max-width: 330px;
    margin: 0 auto 1rem;
}

.row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.tile {
    aspect-ratio: 1 / 1;
    border: 2px solid #ced4da;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    background-color: #fff;
    transition: all 0.3s ease;
}

#keyboard {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 5px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 3px;
}

.key {
    background-color: #e9ecef;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 8px;
    min-width: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.key:hover {
    background-color: #ced4da;
    transform: scale(1.05);
}

.key.wide {
    min-width: 40px;
}

/* Estilos para las teclas según su estado */
.key.correct, .tile.correct {
    background-color: #198754;
    color: white;
}

.key.present, .tile.present {
    background-color: #ffc107;
    color: white;
}

.key.absent, .tile.absent {
    background-color: #6c757d;
    color: white;
}

@media (max-width: 400px) {
    #game-container {
        padding: 0.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }

    .tile {
        font-size: 1.2rem;
    }

    .key {
        font-size: 0.8rem;
        padding: 6px;
        min-width: 18px;
    }

    .key.wide {
        min-width: 35px;
    }
}

/* Estilos adicionales para las nubes y las abejas */
#cloud-container, #bees-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

#cloud-container {
    z-index: 2;
}

#bees-container {
    z-index: 4;
}

.cloud, .bee {
    position: absolute;
}

.bee {
    width: 50px;
    height: 50px;
    background-image: url('./cute-bee.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    will-change: transform;
}

@keyframes moveCloud {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

.cloud {
    width: 2000px;
    height: 300px;
    background-image: url('clouds.png');
    background-repeat: repeat-x;
    animation: moveCloud 60s linear infinite;
}

.cloud:nth-child(2) {
    top: 20%;
    animation-duration: 80s;
}

.cloud:nth-child(3) {
    top: 40%;
    animation-duration: 100s;
}