body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
    margin: 0;
    flex-direction: column;
    background-image: url(../images/ventintonothing_background.png);
    background-size: cover;
    overflow-y: hidden;
    overflow-y: hidden;
}

h1 {
    color: #FFF;
    text-shadow: 1px 1px 1px rgb(255, 255, 255), 0 0 1em rgb(255, 255, 255), 0 0 0.2em rgb(255, 255, 255);
    font-size: 48px;
    margin-bottom: 100px;
}

#text-input {
    width: 80%;
    max-width: 500px;
    padding: 10px;
    padding-left: 8px;
    font-size: 20px;
    border: transparent;
    background-color: transparent;
    border-radius: 16px;
    color: #FFF;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

#text-input::placeholder {
    color: #FFF;
    padding-left: 8px;
    font-size: 20px;
    transition: all ease 1s;
}

#text-input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
}

#container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#container h1 {
    margin-bottom: 20px;
    font-size: 36px;
    text-align: center;
}

/* Styling submit button & hover state in the same style as the inputfield and h1*/
#submit-button {
    background-color: transparent;
    color: #FFF;
    border: transparent;
    padding: 10px 20px;
    font-size: 20px;
    border-radius: 16px;
    cursor: pointer;
    transition: all ease 0.3s;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    text-shadow: 1px 1px 1px rgb(255, 255, 255), 0 0 1em rgb(255, 255, 255), 0 0 0.2em rgb(255, 255, 255);
    letter-spacing: 2px;
}
#submit-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
#submit-button:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
/* Styling the display text */


#display-text {
    margin-top: 30px;
    font-size: 24px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    min-height: 30px;
}
.letter {
    display: inline-block;
    opacity: 1;
    transition: transform 2s ease-out, opacity 2s ease-out;
}
#wind-speed-label {
    margin-top: 20px;
    font-size: 18px;
    color: #FFF;
    text-shadow: 1px 1px 1px rgb(255, 255, 255), 0 0 1em rgb(255, 255, 255), 0 0 0.2em rgb(255, 255, 255);
}
#wind-speed {
    width: 50%;
    max-width: 300px;
    margin-top: 10px;
}


h1 {
    letter-spacing: 5px;
}

h1 .letter {
    display: inline-block;
    animation: float 4s ease-in-out infinite;
    white-space: pre; /* Ensures that spaces are respected */
}


@keyframes float {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-5px, -5px); }
    50% { transform: translate(5px, 10px); }
    75% { transform: translate(-10px, 5px); }
    100% { transform: translate(0, 0); }
}

#display-text {
    font-size: 36px;
    letter-spacing: 3px;
    display: flex;
    flex-wrap: wrap;
    color: #FFF;
    text-shadow: 1px 1px 1px rgb(255, 255, 255), 0 0 1em rgb(255, 255, 255), 0 0 0.2em rgb(255, 255, 255);
}

input[type="text"] {
    width: 60%;
    max-width: 500px;
    padding: 10px;
    font-size: 18px;
    color: #FFF;
    border-radius: 5px;
    margin-bottom: 20px;
}

#wind-speed {
    background-color: red;
}
