body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #2c3e50;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#game-container {
    width: 800px;
    height: 600px;
    background-color: #34495e;
    position: relative;
    border: 5px solid #bdc3c7;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

#scene-background {
    width: 100%;
    height: 100%;
    background-color: #95a5a6; /* Placeholder color for background */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
}

.character {
    width: 300px;
    height: 400px;
    position: relative;
    bottom: 0;
    transition: transform 0.3s ease;
}

.character-placeholder {
    width: 100%;
    height: 100%;
    background-color: #ecf0f1; /* White-ish for Zebra */
    border: 2px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    color: #333;
    /* Zebra pattern simulation */
    background-image: repeating-linear-gradient(
        45deg,
        #ecf0f1,
        #ecf0f1 10px,
        #2c3e50 10px,
        #2c3e50 20px
    );
    border-radius: 10px 10px 0 0;
}

#dialogue-box {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 150px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #bdc3c7;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
}

#speaker-name {
    margin: 0 0 10px 0;
    color: #f1c40f;
    font-size: 1.2em;
    text-transform: uppercase;
}

#dialogue-text {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.4;
    flex-grow: 1;
}

#next-btn {
    align-self: flex-end;
    padding: 5px 15px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

#next-btn:hover {
    background-color: #c0392b;
}

#choices-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 20;
    width: 80%;
}

.hidden {
    display: none !important;
}

.choice-btn {
    padding: 15px 20px;
    background-color: rgba(52, 152, 219, 0.9);
    color: white;
    border: 2px solid #2980b9;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.choice-btn:hover {
    background-color: rgba(41, 128, 185, 1);
    transform: scale(1.02);
}

#status-bar {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    display: flex;
    gap: 15px;
    z-index: 15;
}

/* Animations */
.shake {
    animation: shake 0.5s;
    animation-iteration-count: 1;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.fade-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Character mood styles (placeholder) */
.mood-angry .character-placeholder {
    border-color: #e74c3c;
    box-shadow: 0 0 15px #e74c3c;
}

.mood-happy .character-placeholder {
    border-color: #2ecc71;
    box-shadow: 0 0 15px #2ecc71;
}

.mood-sad .character-placeholder {
    border-color: #3498db;
    box-shadow: 0 0 15px #3498db;
}