.container {
    padding: 20px;
    text-align: center;
}

h1 {
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.timer-selection {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 50%;
}

.timer-btn {
    padding: 50px;
    background-color: #ddec08;
    border: none;
    border-radius: 50px;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.1s ease;
    margin: 5px;
}

.timer-btn:hover {
    background: #1461b3;
    transform: scale(1.3);
    transition: 2s;
}

.timer-btn.active {
    background: white;
    color: #667eea;
}

.game-area {
    background: rgba(250, 248, 248, 0.3);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.timer-display {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #bbf00f;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.words-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    min-height: 80px;
}

.word {
    font-size: 1.2rem;
    opacity: 0.6;
    transition: all 0.3s ease;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.word.typed {
    font-size: 1rem;
    opacity: 0.4;
}

.word.current {
    font-size: 5rem;
    font-weight: bold;
    opacity: 6;
    text-shadow: 2px 2px 4px rgba(14, 9, 9, 0.3);
}

.word.next {
    font-size: 2rem;
    opacity: 0.6;
}

.letter {
    transition: all 0.2s ease;
}

.letter.correct {
    color: #2196f3;
    background: rgba(33, 150, 243, 0.2);
    border-radius: 3px;
}

.letter.wrong {
    color: #f44336;
    background: rgba(244, 67, 54, 0.2);
    border-radius: 3px;
}

.stats {
    justify-content: space-around;
    display: flex;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1rem;
    font-weight: bold;
    color: #ffeb3b;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.start-btn {
    padding: 20px;
    background: #4caf50;
    border: none;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin: 5px;
}

.start-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.results {
    background: url('../../result.jpg') no-repeat center center/cover;
    padding: 30px 25px;
    margin: 20px auto;
    max-width: 500px;
    color: white;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 25px rgba(0,0,0,0.9);
    font-family: Arial, sans-serif;
}

/* Hide elements */
.hidden {
    display: none;
}

.wpm {
    font-size: 3rem;
    color: #4caf50;
}

.accuracy {
    font-size: 3.5rem;
    color: #ffeb3b;
}

/* ✅ Mobile & Tablet Adjustments */
@media (max-width: 1024px) {
    h1 {
        font-size: 2rem;
    }

    .timer-btn {
        padding: 30px;
        font-size: 1.5rem;
    }

    .word.current {
        font-size: 3.5rem;
    }

    .word.next {
        font-size: 1.5rem;
    }

    .start-btn {
        padding: 15px;
        font-size: 1rem;
    }

    .wpm, .accuracy {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .timer-btn {
        padding: 20px;
        font-size: 1.2rem;
    }

    .word.current {
        font-size: 2.5rem;
    }

    .word.next {
        font-size: 1.2rem;
    }

    .stats {
        flex-direction: column;
        gap: 10px;
    }

    .start-btn {
        padding: 12px;
        font-size: 1rem;
        width: 100%;
    }

    .results {
        max-width: 95%;
        padding: 15px;
    }

    .wpm, .accuracy {
        font-size: 2rem;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.2rem;
    }

    .timer-btn {
        padding: 15px;
        font-size: 1rem;
    }

    .word.current {
        font-size: 2rem;
    }

    .word.next {
        font-size: 1rem;
    }

    .start-btn {
        padding: 10px;
        font-size: 0.9rem;
    }

    .wpm, .accuracy {
        font-size: 1.5rem;
    }
}