@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;600&family=Inter:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
   /* background: white; #f5f7fa */
    background-image: url('IMAGES/home.gif');
    background-size: cover; /* Ensures the image covers the entire screen */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents repetition */
    background-attachment: fixed; /* Keeps the image fixed while scrolling */
    image-rendering: crisp-edges;
}
body::after{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  filter: brightness(0.8); /* Adjust exposure (1 = normal, >1 = brighter, <1 = darker) */
  z-index: -1;
}
.weather-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.weather-card {
    width: 350px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 5px 5px 15px rgba(58, 123, 213, 0.3), -5px -5px 15px rgba(58, 96, 115, 0.3);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    animation: fade-in 1s ease-in-out, float 3s infinite ease-in-out alternate;
}

.weather-card:hover {
    transform: scale(1.05);
    box-shadow: 10px 10px 30px rgba(58, 123, 213, 0.5), -10px -10px 30px rgba(58, 96, 115, 0.5);
}

.weather-title {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
    animation: header-motion 3s infinite ease-in-out;
}

.weather-content {
    padding: 15px;
}

.temp {
    font-size: 55px;
    font-weight: bold;
    color: #ffdd57;
    
}
.temp.blue{
    color: rgb(50, 88, 255);
    text-shadow: 0px 5px 15px rgba(50, 88, 255, 0.6);
    animation: temp-glow 1.5s infinite alternate ease-in-out;
}
.temp.orange{
    color: rgb(253, 125, 0);
    text-shadow: 0px 5px 15px rgba(253, 125, 0, 0.6);
    animation: temp-glow 1.5s infinite alternate ease-in-out;
}
.temp.red{
    color: rgb(255, 0, 0);
    text-shadow: 0px 5px 15px rgba(255, 0, 0, 0.6);
    animation: temp-glow 1.5s infinite alternate ease-in-out;
}
.temp.yellow{
    color: #ffdd57;
        text-shadow: 0px 5px 15px rgba(255, 221, 87, 0.6);
        animation: temp-glow 1.5s infinite alternate ease-in-out;
}

.condition {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
}

.location {
    font-size: 16px;
    color: #d1eaff;
    font-weight: 500;
    margin-bottom: 15px;
}

/* Date & Time Styling */
.time-box {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.1), inset -2px -2px 5px rgba(255, 255, 255, 0.1);
    color: #fff;
}

#date, #timezone {
    font-size: 14px;
    font-weight: 500;
}

#time {
    font-size: 28px;
    font-weight: bold;
    color: #ffdd57;
    text-shadow: 0px 5px 15px rgba(255, 221, 87, 0.4);
}

@keyframes fade-in {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

@keyframes temp-glow {
    0% { text-shadow: 0px 5px 15px; }
    100% { text-shadow: 0px 5px 30px; }
}

@keyframes header-motion {
    0% { transform: scale(1); color: #fff; }
    50% { transform: scale(1.5); color: #ffdd57; }
    100% { transform: scale(1); color: #fff; }
}
@keyframes slideIn {
            from {
                left: -100px;
            }
            to {
                left: 0px;
            }
        }
.container {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: fixed;
    top: 0%;
    left: -100px;
    height: 10%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5); /* Creates shadow effect */
    z-index: 1000;
    border-radius: 0 50px 50px 0;
    animation: slideIn 0.8s ease-out forwards;
} 

.dropdown-container {
    position: relative;
}
select {
    appearance: none;
    padding: 10px;
    border: 2px solid #3498db;
    border-radius: 5px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    width:25%;
}
select:hover{
    background-color:rgba(255, 255, 255, 0.5) ;
}
.dropdown-container::after {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #3498db;
}
.button {
    background-color: #385be0;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 0 30px 30px 0;
    transition: background 0.3s;
}

button:hover {
    background-color: #2c3e50;
}

@media (min-width: 314px) {

    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;600&family=Inter:wght@400;700&display=swap');

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Poppins', sans-serif;
    }

    body {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        /* background: white; #f5f7fa */
        background-image: url('IMAGES/home.gif');
        background-size: cover; /* Ensures the image covers the entire screen */
        background-position: center; /* Centers the image */
        background-repeat: no-repeat; /* Prevents repetition */
        background-attachment: fixed; /* Keeps the image fixed while scrolling */
        image-rendering: crisp-edges;
    }
    body::after{
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: inherit;
        filter: brightness(0.8); /* Adjust exposure (1 = normal, >1 = brighter, <1 = darker) */
        z-index: -1;
    }

    .weather-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .weather-card {
        max-width: 300px;
        background-color: rgba(0, 0, 0, 0.8);
        padding: 25px;
        border-radius: 20px;
        text-align: center;
        box-shadow: 5px 5px 15px rgba(58, 123, 213, 0.3), -5px -5px 15px rgba(58, 96, 115, 0.3);
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
        animation: fade-in 1s ease-in-out, float 3s infinite ease-in-out alternate;
    }

    .weather-card:hover {
        transform: scale(1.05);
        box-shadow:10px 10px 30px rgba(58, 123, 213, 0.5), -10px -10px 30px rgba(58, 96, 115, 0.5);
    }

    .weather-title {
        font-size: min(22px);
        font-weight: 600;
        color: #fff;
        letter-spacing: 1px;
        animation: header-motion 3s infinite ease-in-out;
    }

    .weather-content {
        padding: 15px;
    }

    .temp {
        font-size: min(55px);
        font-weight: bold;
        color: #ffdd57;
    }
    .temp.blue{
        color: rgb(50, 88, 255);
        text-shadow: 0px 5px 15px rgba(50, 88, 255, 0.6);
        animation: temp-glow 1.5s infinite alternate ease-in-out;
    }
    .temp.orange{
        color: rgb(253, 125, 0);
        text-shadow: 0px 5px 15px rgba(253, 125, 0, 0.6);
        animation: temp-glow 1.5s infinite alternate ease-in-out;
    }
    .temp.red{
        color: rgb(255, 0, 0);
        text-shadow: 0px 5px 15px rgba(255, 0, 0, 0.6);
        animation: temp-glow 1.5s infinite alternate ease-in-out;
    }
    .temp.yellow{
        color: #ffdd57;
            text-shadow: 0px 5px 15px rgba(255, 221, 87, 0.6);
            animation: temp-glow 1.5s infinite alternate ease-in-out;
    }

    .condition {
        font-size: min(20px;
        font-weight: bold;
        color: #ffffff;
    }

    .location {
        font-size: min(16px);
        color: #d1eaff;
        font-weight: 500;
        margin-bottom: 15px;
    }

    /* Date & Time Styling */
    .time-box {
        margin-top: 15px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.1), inset -2px -2px 5px rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    #date, #timezone {
        font-size: 14px;
        font-weight: 500;
    }

    #time {
        font-size: 28px;
        font-weight: bold;
        color: #ffdd57;
        text-shadow: 0px 5px 15px rgba(255, 221, 87, 0.4);
    }

    @keyframes fade-in {
        0% { opacity: 0; transform: translateY(-10px); }
        100% { opacity: 1; transform: translateY(0); }
    }

    @keyframes float {
        0% { transform: translateY(0px); }
        100% { transform: translateY(-10px); }
    }

    @keyframes temp-glow {
        0% { text-shadow: 0px 5px 15px; }
        100% { text-shadow: 0px 5px 30px; }
    }

    @keyframes header-motion {
        0% { transform: scale(0.5); color: #fff; }
        50% { transform: scale(0.75); color: #ffdd57; }
        100% { transform: scale(0.5); color: #fff; }
    }
    @keyframes slideIn {
                from {
                    left: -100px;
                }
                to {
                    left: 0px;
                }
            }
    .container {
        min-width: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        color: white;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 5px;
        position: fixed;
        top: 0%;
        left: -100%;
        height: 8%;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5); /* Creates shadow effect */
        z-index: 1000;
        border-radius: 0 50px 50px 0;
        animation: slideIn 0.8s ease-out forwards;
    }   

    .dropdown-container {
        position: relative;
    }
    select {
        appearance: none;
        padding: 10px;
        border: 2px solid #3498db;
        border-radius: 5px;
        background-color: white;
        font-size: min(10px);
        cursor: pointer;
        outline: none;
        min-width:27%;
    }
    select:hover{
        background-color:rgba(255, 255, 255, 0.5) ;
    }
    .dropdown-container::after {
        position: absolute;
        top: 50%;
        right: 10%;
        transform: translateY(-50%);
        pointer-events: none;
        color: #3498db;
    }
    .button {
        background-color: #385be0;
        color: white;
        border: none;
        padding: 10px 15px;
        cursor: pointer;
        font-size: min(11px);
        border-radius: 0 30px 30px 0;
        transition: background 0.3s;
    }

    .button:hover {
        background-color: #2c3e50;
    }
}
