/* Custom properties for theming */
:root {
    --primary: #ff6f00;
    /* Vibrant saffron for sunny days */
    --accent: #d81b60;
    /* Deep pink for interactive elements */
    --sunny: #ffd700;
    /* Bright gold for clear weather */
    --cloudy: #b0bec5;
    /* Soft blue-gray for cloudy weather */
    --rainy: #004d40;
    /* Deep teal for rainy weather */
    --monsoon: #01579b;
    /* Rich blue for monsoon season */
    --text-dark: #1a237e;
    /* Deep indigo for text */
    --text-light: #ffffff;
    /* Pure white for high contrast */
    --card-bg: rgba(255, 245, 224, 0.95);
    /* Light saffron for cards */
    --shadow: rgba(0, 0, 0, 0.15);
    --error-bg: rgba(200, 40, 40, 0.8);
    /* Error message background */
    --success-bg: rgba(46, 125, 50, 0.8);
    /* Success message background */
    --monsoon-alert-bg: rgba(255, 82, 82, 0.3);
    /* Monsoon alert background */
    --border-radius: 0.75rem;
    --transition: all 0.3s ease;
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dark theme */
[data-theme="dark"] {
    --primary: #3f51b5;
    --accent: #f06292;
    --sunny: #ffca28;
    --cloudy: #546e7a;
    --rainy: #1a3c34;
    --monsoon: #0277bd;
    --text-dark: #e0e0e0;
    --text-light: #f5f5f5;
    --card-bg: rgba(33, 33, 33, 0.95);
    --shadow: rgba(0, 0, 0, 0.3);
    --error-bg: rgba(244, 67, 54, 0.8);
    --success-bg: rgba(46, 125, 50, 0.8);
    --monsoon-alert-bg: rgba(244, 67, 54, 0.3);
}

/* Monsoon theme */
[data-theme="monsoon"] {
    --primary: #00695c;
    --accent: #0288d1;
    --sunny: #4fc3f7;
    --cloudy: #80deea;
    --rainy: #002f2f;
    --monsoon: #01579b;
    --text-dark: #000000;
    --text-light: #ffffff;
    --card-bg: rgba(128, 222, 234, 0.95);
    --shadow: rgba(0, 0, 0, 0.2);
    --error-bg: rgba(244, 67, 54, 0.8);
    --success-bg: rgba(46, 125, 50, 0.8);
    --monsoon-alert-bg: rgba(244, 67, 54, 0.3);
}

/* Hidden class for toggling visibility */
.hidden {
    display: none !important;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Weather-specific background adjustments */
.weather-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    transition: background 0.5s ease;
    contain: paint;
}

.weather-bg.rainy {
    background: linear-gradient(145deg, var(--rainy), var(--monsoon));
}

.weather-bg.sunny {
    background: linear-gradient(145deg, var(--sunny), var(--primary));
}

.weather-bg.cloudy {
    background: linear-gradient(145deg, var(--cloudy), var(--text-light));
}

.weather-bg.thunderstorm {
    background: linear-gradient(145deg, #1a237e, var(--monsoon));
}

.weather-bg.drizzle {
    background: linear-gradient(145deg, var(--cloudy), var(--rainy));
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-stack);
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(135deg, var(--primary), var(--monsoon));
    color: var(--text-dark);
    min-height: 100vh;
    padding: 0.5rem;
    font-size: 16px;
    line-height: 1.5;
    transition: background 0.5s ease, color 0.3s ease;
}

/* Weather animations */
.rain {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Crect x="0" y="0" width="2" height="10" fill="%23ffffff80"/%3E%3C/svg%3E') repeat;
    animation: heavyRain 0.5s linear infinite;
    will-change: background-position;
}

.rain.heavy {
    animation-duration: 0.3s;
    opacity: 0.9;
}

.rain:not(.heavy) {
    animation-duration: 0.7s;
    opacity: 0.7;
}

@keyframes heavyRain {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 100px;
    }
}

.sun {
    display: none;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: radial-gradient(circle, var(--sunny) 50%, transparent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--sunny);
    animation: pulseSun 4s ease-in-out infinite;
    will-change: box-shadow;
}

@keyframes pulseSun {

    0%,
    100% {
        box-shadow: 0 0 12px var(--sunny);
    }

    50% {
        box-shadow: 0 0 18px var(--sunny);
    }
}

.cloud {
    display: none;
    position: absolute;
    top: 1rem;
    width: 3.5rem;
    height: 1rem;
    background: var(--text-light);
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px var(--shadow);
    animation: float 5s linear infinite;
    will-change: transform;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: var(--text-light);
    border-radius: 50%;
}

.cloud::before {
    width: 1.5rem;
    height: 1.5rem;
    top: -0.75rem;
    left: 0.5rem;
}

.cloud::after {
    width: 1rem;
    height: 1rem;
    top: -0.5rem;
    right: 0.5rem;
    animation: puff 3s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes float {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(2rem);
    }
}

@keyframes puff {
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

.thunder {
    display: none;
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 2rem;
    height: 2rem;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Cpolyline points="40,20 60,40 40,60" fill="none" stroke="%23ffeb3b" stroke-width="5"/%3E%3C/svg%3E') no-repeat;
    animation: flash 1s infinite;
    will-change: opacity;
}

@keyframes flash {

    0%,
    50%,
    100% {
        opacity: 0;
    }

    25%,
    75% {
        opacity: 1;
    }
}

/* Container */
.container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
header {
    text-align: center;
    margin-bottom: 1rem;
}

header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 1px 1px 2px var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    animation: slideIn 0.5s ease-out;
}

header h1 i {
    color: var(--sunny);
    transition: var(--transition);
}

header h1:hover i {
    transform: scale(1.2) rotate(10deg);
}

@keyframes slideIn {
    from {
        transform: translateY(-0.5rem);
        opacity: 0;
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation */
.nav-toggle {
    display: block;
    background: none;
    border: 2px solid var(--text-light);
    color: var(--text-light);
    font-size: 1rem;
    padding: 0.5rem;
    cursor: pointer;
    position: absolute;
    top: 0.5rem;
    right: 2.5rem;
    border-radius: 0.25rem;
    transition: var(--transition);
}

.nav-toggle:hover,
.nav-toggle:focus {
    background: var(--accent);
    border-color: var(--accent);
    outline: 2px solid var(--text-light);
    outline-offset: 2px;
}

.nav-toggle[aria-expanded="true"] i {
    transform: rotate(90deg);
}

#main-nav {
    display: none;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    margin: 0.5rem 0;
    box-shadow: 0 2px 4px var(--shadow);
    transform: translateY(-0.5rem);
    opacity: 0;
    transition: var(--transition);
}

#main-nav.nav-open {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

#main-nav ul {
    list-style: none;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

#main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.25rem;
    transition: var(--transition);
}

#main-nav a:hover,
#main-nav a:focus {
    color: var(--accent);
    background: rgba(216, 27, 96, 0.1);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: 2px solid var(--text-light);
    color: var(--text-light);
    font-size: 1rem;
    padding: 0.5rem;
    cursor: pointer;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    border-radius: 0.25rem;
    transition: var(--transition);
}

.theme-toggle:hover,
.theme-toggle:focus {
    background: var(--accent);
    border-color: var(--accent);
    outline: 2px solid var(--text-light);
    outline-offset: 2px;
}

.theme-toggle i {
    transition: var(--transition);
}

.theme-toggle:hover i,
.theme-toggle:focus i {
    transform: rotate(180deg);
}

/* Search box */
.search-box {
    display: flex;
    align-items: center;
    margin: 0.75rem auto;
    position: relative;
    max-width: 18rem;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    color: var(--text-dark);
    font-size: 0.875rem;
    transition: var(--transition);
}

.search-box:focus-within .search-icon {
    color: var(--accent);
    transform: scale(1.2);
}

#city-input {
    padding: 0.75rem 2.25rem;
    font-size: 0.875rem;
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    width: 100%;
    background: var(--card-bg);
    color: var(--text-dark);
    box-shadow: 0 2px 4px var(--shadow);
    transition: var(--transition);
}

#city-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(216, 27, 96, 0.2);
    transform: scale(1.02);
    outline: none;
}

#city-input[list="city-list"]::-webkit-calendar-picker-indicator {
    display: none;
}

#city-list {
    background: var(--card-bg);
    color: var(--text-dark);
}

#city-list option {
    padding: 0.5rem;
    background: var(--card-bg);
    color: var(--text-dark);
}

.search-loading {
    position: absolute;
    right: 0.75rem;
    color: var(--accent);
    font-size: 0.875rem;
    animation: searchPulse 1.5s ease-in-out infinite;
}

@keyframes searchPulse {
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Search button */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.5rem auto;
    max-width: 18rem;
}

.standalone-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    background: var(--accent);
    color: var(--text-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.standalone-search-btn:hover,
.standalone-search-btn:focus {
    background: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(216, 27, 96, 0.5);
    outline: 2px solid var(--text-light);
    outline-offset: 2px;
}

.standalone-search-btn i {
    transition: var(--transition);
}

.standalone-search-btn:hover i {
    transform: rotate(20deg);
}

/* Unit toggle */
.unit-toggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.unit-toggle label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
}

.unit-toggle label:hover,
.unit-toggle label:focus-within {
    color: var(--sunny);
    transform: scale(1.1);
}

.unit-toggle input {
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--text-light);
    border-radius: 50%;
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
}

.unit-toggle input:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.unit-toggle input:focus {
    outline: 2px solid var(--sunny);
    outline-offset: 2px;
}

/* Weather card */
.weather-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px var(--shadow);
    animation: cardPop 0.5s ease-out;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.weather-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

@keyframes cardPop {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Current weather */
#current-weather-data {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.weather-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.weather-icon img {
    width: 4rem;
    animation: bounce 2s infinite;
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    width: 100%;
}

.weather-details h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.weather-details p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.weather-details p i {
    color: var(--primary);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.weather-details p:hover i {
    transform: scale(1.2);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-0.25rem);
    }
}

/* Sunrise and sunset */
.sun-times {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.sun-times p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Monsoon alert */
#monsoon-alert-data p {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    padding: 0.5rem;
    background: var(--monsoon-alert-bg);
    border-radius: 0.5rem;
    color: var(--text-dark);
    transition: background 0.3s ease, color 0.3s ease;
}

#monsoon-alert-data strong {
    color: var(--accent);
    transition: color 0.3s ease;
}

/* Forecast scroll */
.forecast-scroll {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    max-width: 100%;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

.forecast-scroll::-webkit-scrollbar {
    height: 0.25rem;
}

.forecast-scroll::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 0.125rem;
}

.forecast-item {
    background: var(--card-bg);
    border-radius: 0.5rem;
    padding: 0.75rem;
    text-align: center;
    min-width: 5.5rem;
    font-size: 0.875rem;
    box-shadow: 0 2px 3px var(--shadow);
    scroll-snap-align: start;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.forecast-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px var(--shadow);
}

.forecast-item img {
    width: 2rem;
    margin: 0 auto;
    transition: transform 0.2s ease;
}

.forecast-item:hover img {
    transform: scale(1.1);
}

.forecast-item p {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: color 0.3s ease;
}

.forecast-item p i {
    font-size: 0.75rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

/* Air quality */
.air-quality-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.air-quality-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Map */
#map {
    width: 100%;
    min-height: 16rem;
    height: 16rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px var(--shadow);
    background: var(--card-bg);
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-dark);
    text-shadow: 1px 1px 2px var(--shadow);
    transition: color 0.3s ease;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent);
}

/* Loading animation */
.loading {
    text-align: center;
    color: var(--text-light);
    background: rgba(58, 58, 58, 0.7);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 0.5rem auto;
    max-width: 18rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.loading i {
    color: var(--accent);
    font-size: 1.2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error and success messages */
.error-message {
    text-align: center;
    color: var(--text-light);
    background: var(--error-bg);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    margin: 0.5rem auto;
    max-width: 18rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.error-message.error::before {
    content: '!';
    font-weight: 700;
    color: var(--text-light);
}

.error-message.success {
    background: var(--success-bg);
}

.error-message.success::before {
    content: '✓';
    font-weight: 700;
    color: var(--text-light);
}

/* Location prompt */
#location-prompt {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-in;
}

#location-prompt.hidden {
    display: none;
}

#location-prompt>div {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 12px var(--shadow);
    max-width: 90%;
    width: 320px;
    text-align: center;
    transition: background 0.3s ease, color 0.3s ease;
}

#location-prompt h2 {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    transition: color 0.3s ease;

}

location-prompt .prompt-button {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}


#location-prompt .prompt-button.allow {
    background: var(--accent);
    color: var(--text-light);
    margin-right: 0.5rem;
}

#location-prompt .prompt-button.allow:hover,
#location-prompt .prompt-button.allow:focus {
    background: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(216, 27, 96, 0.5);
    outline: 2px solid var(--text-light);
    outline-offset: 2px;
}

#location-prompt .prompt-button.deny {
    background: var(--cloudy);
    color: var(--text-dark);
}

#location-prompt .prompt-button.deny:hover,
#location-prompt .prompt-button.deny:focus {
    background: #90a4ae;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(144, 164, 174, 0.5);
    outline: 2px solid var(--text-dark);
    outline-offset: 2px;
}

/* Media queries */
@media (min-width: 768px) {
    body {
        padding: 1rem;
    }

    .container {
        max-width: 37.5rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .nav-toggle {
        display: none;
    }

    .theme-toggle {
        right: 0.5rem;
    }

    #main-nav {
        display: block;
        background: none;
        box-shadow: none;
        transform: none;
        opacity: 1;
    }

    #main-nav ul {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        padding: 0;
    }

    #main-nav a {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .search-box,
    .button-group {
        max-width: 20rem;
    }

    .search-icon,
    .search-loading {
        font-size: 1rem;
    }

    #city-input {
        padding: 0.875rem 2.5rem;
        font-size: 1rem;
    }

    .standalone-search-btn {
        padding: 0.875rem;
        font-size: 1rem;
    }

    .button-group {
        flex-direction: row;
    }

    .unit-toggle {
        font-size: 0.875rem;
    }

    .weather-card {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .weather-card h2 {
        font-size: 1.125rem;
    }

    #current-weather-data {
        flex-direction: row;
        align-items: flex-start;
        gap: 1.5rem;
        font-size: 0.875rem;
    }

    .weather-info {
        flex-direction: row;
        align-items: flex-start;
    }

    .weather-icon img {
        width: 4.5rem;
    }

    .weather-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .weather-details h3 {
        font-size: 1.5rem;
        text-align: left;
    }

    .forecast-scroll {
        gap: 1rem;
    }

    .forecast-item {
        min-width: 6rem;
        font-size: 0.875rem;
        padding: 1rem;
    }

    .forecast-item img {
        width: 2.25rem;
    }

    .forecast-item p {
        font-size: 0.875rem;
    }

    #map {
        min-height: 18rem;
        height: 18rem;
    }

    .sun {
        width: 3rem;
        height: 3rem;
        top: 1rem;
        right: 1rem;
    }

    .cloud {
        width: 4rem;
        height: 1.25rem;
        top: 1.25rem;
    }

    .cloud::before {
        width: 1.75rem;
        height: 1.75rem;
        top: -0.875rem;
        left: 0.625rem;
    }

    .cloud::after {
        width: 1.25rem;
        height: 1.25rem;
        top: -0.625rem;
        right: 0.625rem;
    }

    #location-prompt>div {
        width: 360px;
        padding: 2rem;
    }

    #location-prompt h2 {
        font-size: 1rem;
    }

    #location-prompt .prompt-button {
        padding: 0.625rem 2rem;
        font-size: 1rem;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 56.25rem;
    }

    header h1 {
        font-size: 1.75rem;
    }

    .search-box,
    .button-group {
        max-width: 25rem;
    }

    .weather-card {
        padding: 1.5rem;
    }

    .weather-card h2 {
        font-size: 1.25rem;
    }

    #current-weather-data {
        gap: 2rem;
        font-size: 1rem;
    }

    .weather-icon img {
        width: 5rem;
    }

    .weather-details h3 {
        font-size: 1.75rem;
    }

    .weather-details p {
        font-size: 1rem;
    }

    .forecast-scroll {
        gap: 1.25rem;
    }

    .forecast-item {
        min-width: 7rem;
    }

    .forecast-item img {
        width: 2.5rem;
    }

    #map {
        min-height: 20rem;
        height: 20rem;
    }

    #location-prompt>div {
        width: 400px;
    }
}