/* General Styling */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f9fafb;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #333;
}

/* Container Styling */
.container {
    transform: translate(0, 10%);
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    text-align: center;
    transition: all 0.3s ease;
    
}

#username{
    visibility: hidden;
}
.containerres {
    font-size: 14px;
    
   
    background-color: white;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

  
    max-width: 600px;
    text-align: center;
    transition: all 0.3s ease;
}

#result-modal{
    display: inherit;

}

/* Headings */
h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #0d7a90;
}

/* Story Container Styling */
#story-container {
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    padding: 10px;
    margin-bottom: 15px;
    height: 150px;
    background-color: #f4f6f8;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Story Text */
#story {
    font-size: 26px;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Typed Content Container Styling */
#input-container {
    font-size: 22px;
    line-height: 1.6;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    height: 100px;
    overflow-y: auto;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

/* Typed Content */
#typed-content {
    white-space: pre-wrap;
}

/* Input Field Styling */
#typing-input {
    width: 100%;
    padding: 10px;
    font-size: 22px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#typing-input:focus {
    border-color: #0a8573;
    box-shadow: 0 0 5px rgba(0, 187, 255, 0.5);
    outline: none;
}

/* Timer Styling */
#timer {
    font-size: 1.2em;
    margin: 20px 0;
    color: #555;
}

/* Buttons Styling */
button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background-color: #2d8070;
    color: white;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    background-color: #05966f;
    box-shadow: 0 2px 5px rgba(0, 91, 187, 0.3);
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Result Text Styling */
#result-details {
    font-size: 1.2em;
    margin-top: 20px;
    color: #6b278b;
   
}

#last-result-details{
    font-size: 1.2em;
    margin-top: 20px;
    color: #1c8551;
    
}

/* Highlight and Mistake Styling */
.highlight {
    background-color: #ffe58a;
}

.mistake {
    color: red;
}

/* Hidden Elements */
.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 20px;
        width: 90%;
    }

    #story-container, #input-container {
        height: 100px;
    }
}
