* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a315b, #2a5298);
    min-height: 100vh;
    padding: 2rem;
    color: #fff;
}

/* Timer Styles */
.timer-container {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 20px;
    font-size: 30px;
    font-weight: bold;
    border-radius: 5px;
    z-index: 999;
}


.container {
    max-width: 1000px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 10px;
    flex: 1;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.stat-box span:not(.stat-label) {
    font-size: 1.5rem;
    font-weight: bold;
}

.type-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quote {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    min-height: 100px;
}

.quote span {
    position: relative;
}

.quote span.correct {
    color: #4caf50;
}

.quote span.incorrect {
    color: #f44336;
    text-decoration: underline;
}

.quote span.current {
    background-color: rgba(255, 255, 255, 0.2);
}

textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 10px;
    padding: 1rem;
    color: #fff;
    font-size: 1.1rem;
    resize: none;
    margin-top: 1rem;
}

textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#time-select {
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 150px;
}

#time-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

#time-select option {
    background: rgba(30, 60, 114, 0.9);
    color: #fff;
    padding: 0.3rem;
    text-align: center;
}

.buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

button {
    background: rgb(246, 246, 193);
    border: none;
    padding: 0.8rem 2rem;
    color: #000000;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.footer {
    text-align: center;
    background-color: #000000;
    color: rgb(255, 255, 255);
    padding: 5px 0;
    font-size: 14px;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
}

.footer p {
    margin: 0;
}

@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
    }
    
    .stat-box {
        width: 100%;
    }
}
