body {
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-family: 'Lato', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

#game-container {
    width: 100%;
    max-width: 800px;
    background-color: #2b2b2b;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

h1 {
    font-family: 'MedievalSharp', cursive;
    color: #f39c12;
    text-align: center;
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#image-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #111;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#scene-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

#scene-image.hidden {
    opacity: 0;
}

#loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: #f39c12;
    z-index: 10;
}

#loader.hidden {
    display: none;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #f39c12;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#story-container {
    background-color: #1f1f1f;
    padding: 1.5rem;
    border-radius: 8px;
    min-height: 100px;
    border-left: 4px solid #f39c12;
}

#story-text {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

#input-container {
    display: flex;
    gap: 1rem;
}

#user-input {
    flex-grow: 1;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: #333;
    color: #e0e0e0;
    font-size: 1rem;
}

#user-input:focus {
    outline: none;
    border-color: #f39c12;
}

#user-input:disabled {
    background-color: #444;
    cursor: not-allowed;
}


button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    background-color: #f39c12;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover:not(:disabled) {
    background-color: #e67e22;
}

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

