.page-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px; /* Adjust as needed */
    margin: 1rem 0;
}

.game-settings {
    display: flex;
    gap: 1.5rem;
}

.setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-select {
    background-color: #2c2c2c;
    color: #f0f0f0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

#score-display {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Animations */
@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.pop {
    animation: pop 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.4s ease-in-out;
}


body {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.game-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
    align-items: flex-start;
}

.game-main {
    flex: 2;
    min-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.keyboard-container {
    flex: 1;
    min-width: 300px;
    background-color: #2c2c2c;
    padding: 1.5rem;
    border-radius: 8px;
}

.hangman-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

#hangman-canvas {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 2rem;
    background-color: #252525;
}
.hint-container {
    min-height: 24px;
    margin-bottom: 1rem;
    font-style: italic;
    color: var(--text-secondary);
}

.hint-text {
    font-size: 1rem;
    text-align: center;
}

.word-to-guess {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.letter-placeholder {
    width: 40px;
    height: 60px;
    border-bottom: 4px solid #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
}

.game-status {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    min-height: 25px;
    text-align: center;
}

.keyboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 0.5rem;
}

.key {
    background-color: #4a4a4a;
    border: none;
    border-radius: 6px;
    padding: 1rem 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.key:hover {
    background-color: #5a5a5a;
}

.key:disabled {
    background-color: #3a3a3a;
    color: #777;
    cursor: not-allowed;
}

.key.correct {
    background-color: var(--accent-green);
    color: #fff;
}

.key.incorrect {
    background-color: var(--accent-red);
    color: #fff;
}

.game-actions {
    margin-top: 1rem;
}

/* Toast Notifications - Same as team-guess.css */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: #333;
    color: #fff;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateX(100%);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: #2c2c2c;
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    position: relative;
    border: 1px solid #4a4a4a;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #f0f0f0;
    font-size: 2rem;
    cursor: pointer;
}

.modal-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--accent-blue);
    margin-top: 0;
}

.modal-content h3 {
    color: var(--accent-yellow);
    margin-top: 1.5rem;
    border-bottom: 1px solid #4a4a4a;
    padding-bottom: 0.5rem;
}

.modal-content ul, .modal-content ol {
    padding-left: 20px;
}

.modal-content li {
    margin-bottom: 0.75rem;
}
