* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', 'Courier Prime', monospace;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    width: 100%;
    max-width: 1000px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.menu-bar {
    background: #2a2a2a;
    padding: 10px 15px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid #333;
}

.menu-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-label {
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    margin-right: 5px;
}

.menu-btn, .menu-select {
    background: #3a3a3a;
    color: #fff;
    border: 1px solid #444;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    transition: background 0.2s;
}

.menu-btn:hover {
    background: #4a4a4a;
}

.menu-select {
    padding: 5px 8px;
}

.game-window {
    display: flex;
    flex-direction: column;
    height: 70vh;
    min-height: 500px;
}

.text-display {
    flex: 1;
    background: #1a1a1a;
    color: #ffffff;
    padding: 20px;
    overflow-y: auto;
    border: 1px solid #333;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.text-display::-webkit-scrollbar {
    width: 10px;
}

.text-display::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.text-display::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 5px;
}

.text-display::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.button-area {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #2a2a2a;
    border-top: 1px solid #333;
}

.game-button {
    flex: 1;
    min-height: 45px;
    background: #3a3a3a;
    color: #fff;
    border: 2px solid #555;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.game-button:hover {
    background: #4a4a4a;
    border-color: #666;
    transform: translateY(-2px);
}

.game-button:active {
    transform: translateY(0);
}

.status-bar {
    background: #2a2a2a;
    color: #fff;
    padding: 8px 15px;
    font-size: 12px;
    border-top: 1px solid #333;
    font-family: 'Courier New', monospace;
}

/* Character-specific fonts */
.text-richard {
    font-family: 'Garamond', serif;
}

.text-peter {
    font-family: 'Papyrus', fantasy;
}

.text-becca, .text-heyena, .text-friend1 {
    font-family: 'Comic Sans MS', cursive;
}

.text-commodore, .text-friend2 {
    font-family: 'Courier New', monospace;
}

.text-optimus, .text-friend3 {
    font-family: 'Georgia', serif;
}

.text-developer {
    font-family: 'Times New Roman', serif;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #2a2a2a;
    margin: 10% auto;
    padding: 30px;
    border: 2px solid #555;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    color: #fff;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #fff;
}

.playlist-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.playlist-btn {
    background: #3a3a3a;
    color: #fff;
    border: 1px solid #555;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    transition: background 0.2s;
    text-align: left;
}

.playlist-btn:hover {
    background: #4a4a4a;
}

.playlist-tip {
    margin-top: 20px;
    color: #888;
    font-size: 12px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-window {
        height: 60vh;
        min-height: 400px;
    }
    
    .button-area {
        flex-direction: column;
    }
    
    .menu-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .text-display {
        font-size: 12px;
        padding: 15px;
    }
}

/* Text colors */
.text-red { color: #ff6b6b; }
.text-yellow { color: #ffd93d; }
.text-cyan { color: #4ecdc4; }
.text-gray { color: #888888; }
.text-white { color: #ffffff; }

