body {
    background: linear-gradient(to bottom, #87ceeb, #4682b4); /* Darkened the gradient for better contrast */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
}

.container {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
    display: inline-block;
    overflow: hidden;
    border-right: .15em solid #ff4500; /* Used orange-red for better contrast */
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: typing 3.5s steps(30, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: transparent; }
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

label {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
}

input[type="date"] {
    padding: 10px;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    width: 80%;
    max-width: 300px;
}

button {
    padding: 10px 20px;
    font-size: 1.2em;
    color: #fff;
    background: #005f99; /* Darkened the blue for better contrast */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #004080; /* Darkened the hover blue for better contrast */
}

#result {
    margin-top: 20px;
    font-size: 1.5em;
    color: #333;
}
