body {
    background-color: #121213;
    color: white;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
}

.navbar {
    margin-bottom: 20px;
    border-bottom: 1px solid #3a3a3c;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
}

.header {
    border-bottom: 1px solid #3a3a3c;
    padding: 10px 0;
}

.wordle-title {
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.2rem;
}

.game-board {
    max-width: 350px;
    margin: 20px auto;
}

.letter-row {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.letter-box {
    border: 2px solid #3a3a3c;
    width: 80px;
    height: 70px;
    margin: 0 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    -webkit-tap-highlight-color: transparent;
}

.filled-box {
    border: 2px solid #565758;
}

.correct {
    background-color: #538d4e;
    border-color: #538d4e;
}

.present {
    background-color: #b59f3b;
    border-color: #b59f3b;
}

.absent {
    background-color: #3a3a3c;
    border-color: #3a3a3c;
}

/* Animation classes for reveal effect */
.letter-box.animating {
    transform: scaleX(0);
    transform-origin: left;
}

.letter-box.reveal {
    transform: scaleX(1);
}

.keyboard {
    max-width: 600px;
    margin: 30px auto;
    padding: 0 10px;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    gap: 4px;
}

.key-button {
    background-color: #818384;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    height: 65px;
    min-width: 43px;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    flex: 1;
    max-width: 43px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.key-button-wide {
    min-width: 75px;
    max-width: 75px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .game-board {
        max-width: 420px;
    }
    
    .letter-box {
        width: 70px;
        height: 60px;
        font-size: 1.8rem;
        margin: 0 3px;
    }
    
    .keyboard {
        max-width: 100%;
        padding: 0 5px;
        margin: 20px auto;
    }
    
    .keyboard-row {
        gap: 3px;
        margin-bottom: 6px;
    }
    
    .key-button {
        max-width: 35px;
        font-size: 1rem;
        margin: 0;
    }
    
    .key-button-wide {
        min-width: 65px;
        max-width: 65px;
        font-size: 0.9rem;
    }
    
    .spacer {
        width: 10px !important;
    }
    
    .navbar-nav.flex-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .navbar-nav.flex-row .nav-item {
        flex-shrink: 0;
    }
    
    .navbar-nav.flex-row .nav-link {
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
        margin-right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .game-board {
        max-width: 380px;
    }
    
    .letter-box {
        width: 65px;
        height: 55px;
        font-size: 1.6rem;
        margin: 0 2px;
    }
    
    .keyboard {
        padding: 0 2px;
    }
    
    .keyboard-row {
        gap: 2px;
        margin-bottom: 5px;
    }
    
    .key-button {
        height: 50px;
        min-width: 30px;
        max-width: 30px;
        font-size: 0.9rem;
    }
    
    .key-button-wide {
        min-width: 55px;
        max-width: 55px;
        font-size: 0.8rem;
    }
    
    .spacer {
        width: 8px !important;
    }
}

/* Add these styles for a cleaner game message */
#game-message {
    height: 30px;
    margin-bottom: 20px;
}

.message-text {
    font-weight: bold;
    text-align: center;
    padding: 8px 16px;
    border-radius: 4px;
    margin: 0;
}

.message-error {
    background-color: #dc3545;
    color: white;
}

.message-warning {
    background-color: #ffc107;
    color: #212529;
}

.message-success {
    background-color: #198754;
    color: white;
}

.message-info {
    background-color: #0dcaf0;
    color: #212529;
}

.key-button.absent {
    background-color: #3a3a3c;
}

.key-button.absent:hover {
    background-color: #4a4a4c;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* PWA-specific styles for native app feel */
@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .navbar {
        padding-top: calc(0.5rem + env(safe-area-inset-top));
    }
    
    .game-board {
        margin-top: calc(20px + env(safe-area-inset-top));
    }
}

/* This file is already created, just making sure it's properly linked */ 

/* Completed challenge view styles */
.completed-challenge .letter-box {
    border: 2px solid #3a3a3c;
    transition: none;
}

.completed-challenge .letter-box.correct {
    background-color: #538d4e;
    border-color: #538d4e;
}

.completed-challenge .letter-box.present {
    background-color: #b59f3b;
    border-color: #b59f3b;
}

.completed-challenge .letter-box.absent {
    background-color: #3a3a3c;
    border-color: #3a3a3c;
}

/* Game results card styles */
.game-results-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #3a3a3c;
}

.game-results-card .card-header {
    background-color: #2d2d2d;
    border-bottom: 1px solid #3a3a3c;
}

/* Historical challenge link styles */
.historical-challenge-link {
    text-decoration: none;
    color: inherit;
}

.historical-challenge-link:hover {
    text-decoration: none;
    color: inherit;
}

.dropdown-menu {
    min-width: 200px;
} 