body {
    background-color: #800000; /* Maroon for a warm, homely feel */
    color: #ffd1d1; /* Soft pinkish-red for text readability */
    font-family: 'Press Start 2P', cursive;
    text-align: center;
    margin: 0;
    padding: 20px;
    image-rendering: pixelated;
}

.navbar {
    background-color: #000000; /* Black base for contrast */
    border-bottom: 4px solid #ff0000; /* Red border for devilish pop */
    padding: 10px 0;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(128, 0, 0, 0.5); /* Subtle maroon shadow */
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.navbar li {
    display: inline;
}

.navbar a {
    color: #ffd1d1; /* Soft red for links */
    text-decoration: none;
    font-size: 16px;
    padding: 10px 20px;
    border: 2px solid #ff0000;
    background-color: #330000; /* Darker maroon for buttons */
    transition: background-color 0.3s, transform 0.2s;
    image-rendering: pixelated;
}

.navbar a:hover {
    background-color: #ff0000;
    color: #000000;
    transform: scale(1.05); /* Gentle hover effect */
}

h1 {
    font-size: 28px;
    text-shadow: 2px 2px 4px #000000; /* Soft black shadow for depth */
    margin-bottom: 30px;
}

#characterSprite {
    cursor: pointer;
    max-width: 300px; /* Adjust based on sprite size */
    margin-bottom: 20px;
}

.dialogue-box {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000000;
    border: 4px solid #ff0000;
    padding: 20px;
    max-width: 80%;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
}

#faceImage {
    width: 100px; /* Adjust based on face sprite size */
    height: auto;
    image-rendering: pixelated;
}

#dialogueText {
    font-size: 16px;
    color: #ffffff;
    line-height: 1.6;
    flex: 1;
}

#choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.choice-button {
    background-color: #330000;
    color: #ffd1d1;
    border: 2px solid #ff0000;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: left;
    font-size: 14px;
}

.choice-button:hover {
    background-color: #ff0000;
    color: #000000;
}

#audioToggle {
    background-color: #800000;
    color: #ffffff;
    border: 2px solid #ff0000;
    padding: 10px 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-bottom: 20px;
    image-rendering: pixelated;
}

#audioToggle:hover {
    background-color: #ff0000;
    color: #000000;
    transform: scale(1.05);
}

footer p {
    font-size: 12px;
    color: #ffd1d1;
    margin-top: 40px;
}