body { 
    background-color: #141414;
    color: white;
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden; /* Prevents page from expanding */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

#textToType {
    font-size: 2em;
    margin-bottom: 10px;
}

#typedText {
    width: 100%;
    max-width: 600px;
    max-height: 200px;
    height: auto;
    font-size: 1.5em;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: #1e1e1e;
    color: #f1f1f1;
    resize: both;
}

#result {
    font-size: 2em;
    margin-top: 10px;
}

.button-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 20px;
}

button {
    background-color: #3b3b3b;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    margin: 5px;
    border-radius: 5px;
    width: 150px;
}

button:hover {
    background-color: #636363;
}

footer {
    background-color: transparent;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
    color: white;
}

.background-shape {
    position: absolute;
    opacity: 0.1;
    border-radius: 50%;
}

.shape1 {
    width: 100px;
    height: 100px;
    background-color: #ff4500;
    top: 50px;
    left: 20px;
}

.shape2 {
    width: 150px;
    height: 150px;
    background-color: #00ff00;
    top: 150px;
    right: 20px;
}

.shape3 {
    width: 120px;
    height: 120px;
    background-color: #ffd700;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    #textToType {
        font-size: 1.5em;
    }

    #typedText {
        font-size: 1em;
        height: 120px;
    }

    #result {
        font-size: 1.5em;
    }

    button {
        font-size: 1em;
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }

    #textToType {
        font-size: 1.2em;
    }

    #typedText {
        font-size: 0.9em;
        height: 100px;
    }

    #result {
        font-size: 1.2em;
    }

    button {
        font-size: 0.9em;
    }
}
