@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --poppins: 'Poppins', sans-serif;
}

body {
    animation: gradientAnimation 180s ease infinite;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #fff;
    font-size: 16px;
}

.video-background {
    position: fixed;  /* Video tetap di tempat saat scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;  /* Video berada di belakang konten */
    overflow: hidden;
}

video {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.weather-container {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 30px;
    width: 350px;
    text-align: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease-in-out;
    background: rgba( 255, 255, 255, 0.15 );
    backdrop-filter: blur( 13px );
    -webkit-backdrop-filter: blur( 13px );
}

.weather-container:hover {
    transform: translateY(-10px);
}

.weather-container p {
    font-family: "Inter", sans-serif;
    font-size: small;
}

h1 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 1px;
    font-family: "Poppins", sans-serif;
}

.search-box {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    font-family: var(--poppins)
}

#city {
    padding: 12px;
    width: 60%;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    margin-right: 10px;
    background-color: #ffffff;
    color: #333;
    outline: none;
    transition: all 0.3s ease;

}

#city:focus {
    border: 2px solid #007bff;
    background-color: #f9f9f9;
}

button {
    padding: 12px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: var(--poppins);
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

#weather-info {
    margin-top: 20px;
    font-family: var(--poppins);
}

#weather-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
    font-family: var(--poppins);
}

#weather-info p {
    font-size: 18px;
    margin: 5px 0;
    font-weight: 300;
    font-family: var(--poppins);
}

#description {
    font-style: italic;
    margin-bottom: 10px;
    font-family: var(--poppins);
}

@media (max-width: 400px) {
    .weather-container {
        width: 90%;
        padding: 20px;
    }

    #city {
        width: 70%;
    }

    button {
        width: 100%;
        padding: 12px;
        margin-top: 10px;
    }
}

.weather-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}
