body {
    font-family: Arial, sans-serif;
    background-color: #1c1c1c;
    color: white;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
}

header {
    text-align: center;
    margin: 20px 0;
}

.caution-message {
    color: #ffcc00; /* Warning color */
    font-size: 0.9em;
}

/* Loading overlay styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s;
}

.loading-content {
    text-align: center;
}

.blood-splash {
    position: relative;
    width: 100px;
    height: 100px;
    background: red;
    border-radius: 50%;
    animation: bloodSplashAnimation 1s infinite;
}

@keyframes bloodSplashAnimation {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Main container styles for chat and news */
.main-container {
    display: flex; /* Flex container for side-by-side layout */
    width: 80%; /* Adjusted width */
    height: 80vh; /* Height of the main container */
    margin-top: 20px; /* Margin to separate from header */
}

/* Chat container styles */
#chat-container {
    flex: 1; /* Equal space allocation */
    max-height: 100%;
    border: 1px solid #444;
    border-radius: 10px;
    background-color: #2c2c2c;
    padding: 10px;
    margin-right: 10px; /* Space between chat and news */
    display: flex;
    flex-direction: column; /* Vertical layout for chat */
}

#conversation {
    margin-bottom: 10px;
    max-height: 60vh; /* Max height for conversation area */
    overflow-y: auto; /* Scrollable conversation area */
}

#userInput {
    width: calc(100% - 22px); /* Adjusting width for padding */
    padding: 10px;
    border: none;
    border-radius: 5px;
}

/* Button container */
.button-container {
    display: flex; /* Flex container for buttons */
    justify-content: space-between; /* Space out buttons */
    margin-top: 10px;
}

/* Dynamic button styles */
.dynamic-button {
    background-color: #444; /* Button background color */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s; /* Transition for hover effect */
    flex: 1; /* Make buttons take equal space */
    margin: 0 5px; /* Space between buttons */
    position: relative; /* For blood effect positioning */
    overflow: hidden; /* Ensure blood effect stays within button */
}

.dynamic-button:hover {
    background-color: #666; /* Change background on hover */
}

/* Blood effect */
.blood-effect::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0.6);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    animation: bloodEffectAnimation 0.6s forwards;
}

@keyframes bloodEffectAnimation {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* News Section */
#news-section {
    flex: 1; /* Equal space allocation */
    margin-left: 10px; /* Space between chat and news */
    border: 1px solid #444;
    border-radius: 10px;
    background-color: #3c3c3c;
    padding: 15px;
}

#news-section h2 {
    text-align: center;
    color: #ff0000; /* Red for thriller theme */
}

.news-item {
    border: 1px solid #444;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #4c4c4c; /* Darker background for news items */
}

.news-headline {
    font-size: 1.2em;
    color: #ffcc00; /* Gold color for headlines */
}

.speak-icon {
    cursor: pointer;
    color: #ff0000; /* Red color for speak icon */
    margin-left: 10px;
}

/* Conversation styles */
#conversation {
    margin-bottom: 10px;
}
