body {
    font-size: 12px;
}

/* Location section with custom transition */
.location-section {
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #007bff, #00aaff);
    color: white;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.location-section-night {
    background: linear-gradient(135deg, #777777, #595959);
    .temp-high {
        color: #842641;
    }
}

.location-section.show {
    opacity: 1;
    transform: translateX(0);
}

.location-link {
    text-decoration: none;
    color: inherit;         /* Ensures the link has the same color as surrounding text */
}

.location-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.location-left{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.location-name {
    font-size: 2em;
    font-weight: 700;
}

.location-time {
    font-size: 1.2em;
    font-weight: 500;
    margin-top: 5px;
}

.location-icon {
    height: 120px;
    width: 120px;
}

.location-right {
    align-items: center;
}

.location-temp {
    font-size: 3em;
    font-weight: 700;
}

.location-desc {
    font-size: 1.3em;
    font-weight: 500;
    text-align: center;
}

.weather-content {
    display: flex;
    flex-wrap: wrap;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.current-weather-details {
    width: 100%;
    padding: 20px 10px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 40px;
    margin-right: 40px;
}

.forecast-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.forecast-card {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
    min-width: 70px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.forecast-day {
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 10px;
}

.forecast-icon {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forecast-temp-high {
    font-size: 1em;
    font-weight: 700;
    color: #ff0000;
}

.forecast-temp-low {
    font-size: 1em;
    font-weight: 700;
    color: #073ff9;
}

.forecast-desc {
    font-size: 0.8em;
}

.location-section {
    transform: scale(1.10);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.location-section:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.locations-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 equal-width columns */
    grid-template-rows: auto auto; /* 2 rows with automatic height */
    gap: 10px;  /* Optional spacing between grid items */
}

@media (max-width: 999px) {
    .locations-container {
        display: grid;
            grid-template-columns: 1fr;  /* 1 column */
            grid-template-rows: auto auto auto auto;  /* 4 rows */
            gap: 10px;  /* Optional spacing between rows */
    }
}

@media (min-width: 1000px) {
    .locations-container {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2 equal-width columns */
        grid-template-rows: auto auto; /* 2 rows with automatic height */
        gap: 10px;  /* Optional spacing between grid items */
    }
}