body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-container, .typing-container, .top100-container {
    background-color: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 90%;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.login-container:hover, .typing-container:hover, .top100-container:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
.top100-container {
    background-color: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 90%;
    text-align: center;
}
h1 {
    margin-bottom: 20px;
    font-size: 28px;
    color: #333;
}

label {
    display: block;
    margin-bottom: 8px;
    text-align: left;
    font-weight: bold;
    color: #555;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

input[type="text"]:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

button {
    padding: 12px 25px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

#timer {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #333;
}

#wordContainer {
    font-size: 20px;
    margin-bottom: 20px;
    color: #555;
    font-weight: bold;
}

.correct {
    color: green;
}

.incorrect {
    color: red;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Fikseeritud veerulaius */
}

thead th {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    text-align: left;
    word-wrap: break-word; /* Võimaldab pikkade sõnade mähkimise */
}

tbody td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    word-wrap: break-word; /* Võimaldab pikkade sõnade mähkimise */
    white-space: normal; /* Tagab teksti mähkimise, kui see on liiga pikk */
    overflow-wrap: anywhere; /* Murrab sõnad igal pool, kui need on liiga pikad */
}

tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

tbody tr:hover {
    background-color: #ddd;
}


/* Responsive Design */
@media (max-width: 600px) {
    .login-container, .typing-container, .top100-container {
        padding: 15px 20px;
        max-width: 100%;
    }

    h1 {
        font-size: 24px;
    }

    button {
        width: 100%;
        padding: 12px;
    }

    input[type="text"] {
        padding: 10px;
        font-size: 14px;
    }

    #timer {
        font-size: 20px;
    }

    #wordContainer {
        font-size: 18px;
    }
}
