body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: url('/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

header {
    background-color: #ffd700;
    color: #000;
    text-align: center;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

#logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
    border: 2px solid #000;
}

main {
    display: flex;
    flex: 1;
    padding: 2rem;
    gap: 2rem;
}

#game-area, #chat-area {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    backdrop-filter: blur(2px);
}

.control-section {
    background: rgba(248, 249, 250, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: rgba(249, 249, 249, 0.1);
    border-radius: 5px;
    height: 300px;
}

.message {
    margin-bottom: 10px;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#chat-input {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#username-input, #message-input {
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    flex: 1;
    background-color: rgba(255, 255, 255, 0.2);
    color: #000;
}

#chat-input button, #save-button, #selfie-button {
    padding: 8px 15px;
    background-color: rgba(142, 68, 173, 0.7);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

#chat-input button:hover, #save-button:hover, #selfie-button:hover {
    background-color: rgba(115, 45, 145, 0.8);
}

.username {
    font-weight: bold;
    color: #2c3e50;
    margin-right: 8px;
}

.time {
    color: rgba(127, 140, 141, 0.8);
    font-size: 0.9em;
    margin-right: 8px;
}

.text {
    color: #34495e;
}

h2 {
    color: #ffa500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

footer {
    background-color: rgba(46, 204, 113, 0.8);
    color: white;
    text-align: center;
    padding: 1rem;
}

.color-palette {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.color-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-btn:hover {
    transform: scale(1.1);
}

input[type="range"] {
    width: 100%;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.2);
}

#typing-indicator {
    font-style: italic;
    color: rgba(102, 102, 102, 0.8);
    margin-bottom: 5px;
}

#image-upload {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}