#time {
    font-size: 3rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #ffffff;
    background: #333;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
}
body {
    background: linear-gradient(120deg, #00c6ff, #a59633);
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
button {
    font-size: 1.2rem;
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

#startTime {
    background: #28a745;
    color: white;
}

#stopTime {
    background: #dc3545;
    color: white;
}

#resetTime {
    background: #007bff;
    color: white;
}

button:hover {
    transform: scale(1.1);
}
.dark-mode {
    background: #121212;
    color: white;
}
textarea {
    background: rgba(255, 255, 255, 0.8);
    border: 3px solid #007bff; 
    outline: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    max-width: 600px;
    transition: 0.3s;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(120deg, #b96b6b, #1f6098);
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

/* Typing Speed Section */
h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

#text {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Typing Box */
#typingContainer {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
}

#typedText {
    width: 100%;
    height: 150px;
    padding: 10px;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 3px solid #007bff;
    outline: none;
    transition: 0.3s;
    resize: vertical;
}

/* Border error handling */
#error {
    width: 100%;
    max-width: 620px;
    padding: 10px;
    border: 8px solid orangered;
    margin: 0 auto;
    background-color: transparent;
    display: flex;
    justify-content: center;
}

/* Stopwatch Section */
#stopwatchContainer {
    width: 90%;
    max-width: 600px;
    margin-top: 20px;
}

#time {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #ffffff;
    background: #333;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.button {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

button {
    font-size: 1rem;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    min-width: 100px;
}

/* Button Colors */
#startTime {
    background: #28a745;
    color: white;
}

#stopTime {
    background: #dc3545;
    color: white;
}

#resetTime {
    background: #007bff;
    color: white;
}

/* Button Hover Effect */
button:hover {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    h1 {
        font-size: 1.5rem;
    }
    
    #time {
        font-size: 2rem;
    }

    button {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}

/* styles.css */
body {
    background-color: lightgray;
  }




  