#earthVideo {
    position: fixed;
    /* keep it fixed behind everything */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* makes video fill entire screen */
    z-index: -1;
    /* pushes it behind all other elements */
}

body {
    font-family: "Montserrat", sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.weatherForm {
    display: flex;
    align-items: center;
    background: linear-gradient(to right, #fff, #f3f3f7);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    overflow: hidden;
}

.cityInput {
    border: none;
    outline: none;
    padding: 15px 20px;
    font-size: 1.2rem;
    width: 280px;
    border-radius: 12px 0 0 12px;
    background-color: transparent;
    color: #333;
    text-transform: capitalize;
    /*first letter for user input is capital*/
}

button[type="submit"] {
    background: linear-gradient(135deg, #5a2e91, #d33c6e);
    border: none;
    color: #fff;
    font-size: 1.3rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 0 12px 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

button[type="submit"]:hover {
    opacity: 0.85;
}

.card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 60px;
    margin-top: 60px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);

    /* Layout styling */
    display: flex;
    flex-direction: column;
    /* stack elements vertically */
    align-items: center;
    /* center horizontally */
    justify-content: center;
    /* center vertically */
    gap: 10px;
    /* adds space between elements */

    text-align: center;
    width: 90%;
    max-width: 420px;
}

.cityDisplay {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.tempDisplay {
    font-size: 4rem;
    font-weight: 700;
    margin: 10px 0;
}

.humidityDisplay,
.descriptionDisplay {
    font-size: 1.5rem;
    color: #555;
}

.weatherEmoji {
    font-size: 7rem;
    margin: 50px 0;
    font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
}

.errorDisplay {
    color: #d9534f;
    font-weight: 500;
}