/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    overflow: hidden;
    background: #1a1a1a;
}

/* Game Container */
#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Game Header */
.game-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
}

/* Canvas */
#gameCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Word Input */
.word-input {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

.word-input input {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    border: none;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
    transition: background-color 0.2s;
}

/* Game Menu */
.game-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 200;
}

.game-menu h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 2rem;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-buttons button {
    padding: 1rem 2rem;
    font-size: 1.25rem;
    border: none;
    border-radius: 0.25rem;
    background: #4a90e2;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-buttons button:hover {
    background: #357abd;
}

/* Sound Controls */
.sound-controls {
    position: absolute;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.icon-button:hover {
    transform: scale(1.1);
}

#volume-slider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

/* Utility Classes */
.hidden {
    display: none !important;
}