* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 25%, #9b59b6 75%, #8e44ad 100%); /* Dark blue to light blue to purple gradient */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background: linear-gradient(135deg, #2c3e50 0%, #3498db 25%, #9b59b6 75%, #8e44ad 100%); }
    50% { background: linear-gradient(135deg, #34495e 0%, #2980b9 25%, #8e44ad 75%, #9b59b6 100%); }
}

#weather-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.7;
}

body::-webkit-scrollbar {
    display: none;
}

.locfinder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    font-size: x-large;
    min-height: 90vh; 
    padding: 1rem;
    text-align: center; 
    color: #ffffff; /* White text for new theme */
}

.cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: #ffffff;
    padding: 2rem;
    border-radius: 25px;
    width: 100%; 
    max-width: 600px;
    font-size: large;
    box-shadow: 
        0px 15px 35px rgba(0, 0, 0, 0.2),
        inset 0px 1px 0px rgba(255, 255, 255, 0.4),
        inset 0px -1px 0px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.cards::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.cards:hover::before {
    left: 100%;
}

.cards:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 
        0px 25px 50px rgba(0, 0, 0, 0.3),
        inset 0px 1px 0px rgba(255, 255, 255, 0.6),
        inset 0px -1px 0px rgba(0, 0, 0, 0.3);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.4);
}

.locName, .date {
    text-align: center;
}

.minMax, .windHumid {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap; 
}

.mapme {
    padding: 1.2rem 2rem;
    border-radius: 15px;
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    color: #ffffff;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: inherit;
    font-family: inherit;
    font-weight: 600;
    box-shadow: 
        0px 8px 25px rgba(231, 76, 60, 0.3),
        inset 0px 1px 0px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.mapme::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.mapme:hover::before {
    left: 100%;
}

.mapme:hover {
    background: linear-gradient(145deg, #c0392b, #a93226);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0px 12px 30px rgba(231, 76, 60, 0.4),
        inset 0px 1px 0px rgba(255, 255, 255, 0.3);
}

.mapme:active {
    transform: translateY(-1px) scale(1.02);
}

.imgg {
    text-align: center;
}

.loc {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap; 
}

.weather {
    font-size: xx-large;
    color: #ffffff; /* White for new theme */
    font-weight: bold;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.week {
    margin: 2%;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-radius: 25px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    flex-wrap: wrap; 
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0px 20px 40px rgba(0, 0, 0, 0.25),
        inset 0px 1px 0px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.week:hover {
    transform: translateY(-2px);
    box-shadow: 
        0px 25px 50px rgba(0, 0, 0, 0.3),
        inset 0px 1px 0px rgba(255, 255, 255, 0.4);
}

.one, .two, .three, .four, .five, .six {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    color: #ffffff;
    padding: 1.5rem 1rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    font-size: larger;
    opacity: 95%;
    gap: 1rem;
    width: 100%; 
    max-width: 200px; 
    text-align: center;
    align-items: flex-start;
    text-transform: capitalize;
    font-weight: 500;
    box-shadow: 
        0px 10px 25px rgba(0, 0, 0, 0.2),
        inset 0px 1px 0px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.one::before, .two::before, .three::before, .four::before, .five::before, .six::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.one:hover::before, .two:hover::before, .three:hover::before, .four:hover::before, .five:hover::before, .six:hover::before {
    left: 100%;
}

.one:hover, .two:hover, .three:hover, .four:hover, .five:hover, .six:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 
        0px 15px 35px rgba(0, 0, 0, 0.3),
        inset 0px 1px 0px rgba(255, 255, 255, 0.4);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.3);
}

hr {
    width: 100%;
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    margin: 0.5rem 0;
}

.time {
    align-self: center;
    font-weight: bold;
}

.upcoming {
    text-align: center;
    font-size: xx-large;
    color: #ffffff; /* White for new theme */
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 2rem 0;
}

@media screen and (max-width: 768px) {
    .locfinder {
        font-size: large; 
    }
    .loc{
        flex-direction: column;
        gap:.5rem ;
    }
    .minMax, .windHumid {
        flex-direction: column; 
        gap: 0.5rem;
    }

    .week {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .one, .two, .three, .four, .five, .six {
        max-width: 100%; 
        width: 100%;
    }

    .cards {
        max-width: 100%; 
    }
}

@media screen and (max-width: 480px) {
    .locfinder {
        font-size: medium; 
    }
    .loc{
        flex-direction: column;
        gap:.5rem ;
    }
    .weather {
        font-size: x-large; 
    }
}
