@import url('https://fonts.googleapis.com/css2?family=Delius&display=swap');

.container {
    width: 100%;
    height: 100%;
}

.images {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100vw;
    height: 100vh;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #87CEEB; /* Sky blue fallback for letterboxing */
}

.map{
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    display: block;
}

#button_container {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: none;
    z-index: 200;
}

#next_button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

#next_button img {
    max-width: 12rem;
    max-height: 12rem;
    display: block;
}

#game_container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    width: 80%;
    max-width: 600px;
    margin-left: 18vw;
}

#word_lines{
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    min-height: 50px;
    color: #2c1810;
    font-weight: bold;
    letter-spacing: 0.5em;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.3);
}

#hint {
    display: none;
    font-family: "Delius", cursive;
    font-size: 1.5em;
    color: #2c1810;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.3);
    text-align: center;
}

#box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
    padding: 15px;
    background-color: rgba(139, 69, 19, 0.3);
    border: 3px solid #8B4513;
    border-radius: 10px;
}

#box button {
    width: 35px;
    height: 35px;
    font-size: 16px;
    font-weight: bold;
    background-color: #DEB887;
    border: 2px solid #8B4513;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#box button:hover {
    background-color: #F4A460;
    transform: scale(1.1);
}

#box button:disabled {
    background-color: #A0A0A0;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

html, body{
    margin: 0;
    padding: 0;
    height: 100%;
}