@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Georgian&display=swap'); 
@import url('https://fonts.googleapis.com/css2?family=Parisienne&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond&display=swap');

body {
    font-family: 'Noto Serif Georgian', serif;
    /* background-color: #f4f4f4; 
    color: #333; */
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 0; 
    background-size: cover;
    background-position: center;
    justify-content: space-between;
    width: 100%; 
    overflow-x: hidden; 
}

/*
.heading { 
    display: flex; 
    align-items: center; 
    margin-left: 20px; 
    padding: 1px 0; 
    width: 100%; 
    cursor: pointer; 
}

#logo {
    height: 50px; 
    margin-right: 10px; 
    margin-left: 10px; 
}

#title {
    font-family: 'Parisienne', cursive;
    color: black;
    font-size: 32px; 
}

a { 
    text-decoration: none; 
}

#aboutus { 
    margin-right: 30px; 
}

.nav-buttons {
    margin-left: auto;
}

.nav-button { 
    margin-left: 10px; 
    padding: 5px 10px; 
    text-decoration: none; 
    background-color: transparent; 
    color: black; 
    cursor: pointer; 
    font-family: "EB Garamond", serif; 
    font-size: 20px; 
    font-weight: bold; 
}

.nav-button:hover {
    text-decoration: underline;
}
*/

main { 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    margin: 20px; 
}

.page-title { 
    text-align: center; 
    font-size: 2em; 
    margin-bottom: 20px; 
}

#current-weather {
    text-align: center;
    padding-left: 50px;
    padding-right: 50px; 
    padding-top: 20px; 
    padding-bottom: 20px; 
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
}

a { 
    color: black; 
}

.forecast-section { 
    padding: 55px; 
}

#forecast {
    display: flex;
    justify-content: space-around;
    flex-wrap: nowrap;
    margin-top: 20px;
    overflow-x: auto; 
}

.forecast-card {
    border: 1px solid #ddd;
    padding: 20px;
    margin: 10px;
    text-align: center;
    flex: 1 0 auto; 
    box-sizing: border-box;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.date {
    font-size: 1.5em;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

#forecast div {
    border: 1px solid #ddd;
    padding: 20px;
    margin: 10px;
    text-align: center;
    flex: 1 0 auto;
    box-sizing: border-box;
}

#hourly-forecast {
    width: 80%;
    overflow-x: auto;
    white-space: nowrap;
    margin-top: 20px;
}

#hourly-forecast div {
    display: inline-block;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 10px;
    text-align: center;
}

#details {
    width: 80%;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
}

@media (max-width: 768px) {
    #forecast div, #hourly-forecast div {
        flex: 1 0 100%;
    }
}


                    /* Mobile/tablet CSS */

@media screen and (max-width: 768px) {
    .heading {
        display: flex;
        height: 4em;
        align-items: center;
        width: auto;
    }

    #title {
        flex-grow: 1; /* Allows the title to fill available space */
        margin-right: 10px; /* Adds margin to the right of the title */
        white-space: nowrap; /* Prevents the title from wrapping */
        overflow: hidden; /* Hides overflow */
        text-overflow: ellipsis; /* Adds ellipsis to overflowing text */
    }

    .menu-icon {
        display: block; /* Only show the menu icon on mobile */
        cursor: pointer;
        font-size: 30px; /* Large enough to be easily clickable */
        position: absolute;
        right: 20px;
        top: 10px;
        z-index: 1010;
        color: #333; /* Subtle color */
    }

    .nav-buttons {
        display: none; /* Hidden by default, shown via JavaScript */
        flex-direction: column;
        background-color: #f8f8f8; /* Very light grey background */
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 10px 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* Soft shadow for depth */
        z-index: 1000;
        transition: all 0.3s ease; /* Smooth transition for dropdown */
    }

    .nav-buttons.show {
        display: flex; /* Shows the menu when active */
        opacity: 1;
        transform: translateY(0px); /* Ensures it transitions from top to bottom */
    }

    .nav-button{
        padding: 12px 20px;
        text-align: center;
        display: block;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #e1e1e1; /* Adds a separator between buttons */
        transition: background-color 0.2s ease; /* Smooth color transition on hover */
        margin-left: 0px;
    }

    .nav-button:hover {
        background-color: #e2e2e2; /* Light grey background on hover */
    }

    .dropdown-content {
        position: absolute;
        width: 100%;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        border-radius: 0 0 8px 8px;
        background-color: #ffffff;
        z-index: 1000;
    }

    .fullscreen-overlay {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.8);
    }

    #aboutus {
        padding: 12px 20px;
        text-align: center;
        display: block;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #e1e1e1; /* Adds a separator between buttons */
        transition: background-color 0.2s ease; /* Smooth color transition on hover */
        margin-right: 0px;
    }
    
    .nav-button {
        opacity: 0;
    }
    
    #title {
        flex-grow: 1;
        margin-right: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-right: 2em;
    }
}


@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-10px);
        opacity: 0;
    }
}





/* Base styles for mobile */
/* Base styles for mobile */
@media screen and (max-width: 600px) {

    /* Styling for the mobile date navigation bar */
   .mobile-date-nav {
    display: flex;
        overflow-x: auto;
        white-space: nowrap;
        /* padding: 10px 0; */
        background-color: #f4f4f4;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        width: 100%;
        margin-left: 15px;
        margin-top: 20px;
        margin-left: 0px;
    }
    
    .day-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-sizing: border-box;
    color: #000;
    flex-wrap: nowrap;
    height: 110px;
    margin: 0 5px; /* Updated to include margin-right for consistency */
    padding: 5px 0;
    text-align: center;
    position: relative;
    min-width: 74px;
    min-height: 126px;
    width: 100%;
    border-radius: 8px; /* Adding border-radius */
}

.date-label {
    font-size: 14px;
    color: #333;
}

.weather-icon {
    width: 30px; /* Fixed size for icons */
    height: 30px;
    margin-top: 5px; /* Space above the icon */
}

    .date-nav-button:hover {
        background-color: #005aff;
        color: white;
    }

    /* Ensuring forecast cards are initially hidden */
    .forecast-card {
        display: none; /* Hide all forecast cards initially */
        margin-top: 10px; /* Space from the nav bar */
    }

    /* Specific styling when a forecast card is displayed */
    .forecast-card.active {
        display: block; /* Only show the card that's active */
        animation: fadeIn 0.3s; /* Fade effect for smoother transition */
    }

    /* Animation keyframes for fade-in effect */
    

    /* Styling for current weather to align well with the new navigation bar */
    #current-weather {
        padding: 15px;
        background-color: #f9f9f9; /* Slightly different background for emphasis */
        border-bottom: 1px solid #eee; /* Subtle separation from the nav bar */
    }
    
    #forecast {
    display: flex;
    justify-content: space-around;
    flex-wrap: nowrap;
    margin-top: 20px;
    overflow-x: unset;
}
    .choose-day-text {
        margin: 40px 20px 10px;
        text-align: center;
        color: #333;
        font-size: 25px;
        font-weight: bold;
    }
    
.mobile-date-nav .day-container.week-end {
    background: #f4f5f8;
}

/* Ensure there's no border on the left for the first item */
.mobile-date-nav .day-container:first-child {
    border-left-width: 0;
    margin-left: 10px;
}

/* General styling tweaks for a responsive, scrollable horizontal bar */
.mobile-date-nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    background-color: #f4f4f4;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.temp-label {
    font-size: 12px;
    color: #666;
    text-align: center;
    padding: 2px;
}
.temp-max-label {
    color:red;
}
.temp-min-label {
    color:blue;
}
/* Hover effect to change the border color */
    .day-container:hover {
        border-bottom: 5px solid #0069ff;
    }

/* Active state styles */
.day-container:active {
    background-color: #f0f0f0; /* Slightly darker background when active */
}

/* Selected state styles, assuming you add 'selected' class via JS or server-rendered */
.day-container.selected {
    background-color: #e0e0e0; /* Different background for selected */
    border-color: #b0b0b0; /* Darker border for emphasis */
}

#weatherToggleButton {
    padding: 10px 20px;
    background-color: #f8f9fa; /* light grey background */
    color: #212529; /* nearly black text */
    border: 2px solid #dee2e6; /* slightly darker grey border */
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold; /* makes the text bold */
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

#weatherToggleButton:hover, #weatherToggleButton:focus {
    background-color: #e9ecef; /* slightly darker grey on hover/focus */
    color: #343a40; /* darker text on hover/focus */
    border-color: #ced4da; /* border color changes on hover/focus */
    outline: none; /* ensures no outline on focus for a cleaner look */
}

#weatherToggleButton:active {
    background-color: #dee2e6; /* even darker grey when the button is clicked */
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); /* subtle shadow for depth */
}
body {
    height: auto;
}
main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0px;
}
.page-title {
        font-size: 1.5em;
}
}

/* Additional responsive tweaks might be necessary depending on actual content and layout specifics */


@keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }























