
html, body {
    overscroll-behavior: auto;
    height: 100%;
    margin: 0;
    background-color: rgb(225, 247, 254);
    font-family: "Comfortaa", sans-serif;
    overflow: hidden; /* Prevent scrolling */
    display: flex;
    flex-direction: column;
}

.navbar {
    height: 50px; /* Adjust the height as needed */
    padding: 0.5rem 1rem; /* Adjust padding */
    flex-shrink: 0;
    border-bottom: 2px solid black;
}

#nav-title {
    padding-top: 20px;
}

#info-link {
    padding-top: 20px;
}

#info-link a {
    color: black;
    text-decoration: none; /* Remove default underline */
    position: relative; /* Position relative for the underline effect */
    transition: color 0.3s ease; /* Smooth transition for color change */
}

#info-link a:visited {
    color: black /* Ensure visited link has the same color */
}

#info-link a:active {
    color: black /* Slightly darker blue when the link is clicked */
}

#info-link a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px; /* Thickness of the underline */
    display: block;
    margin-top: 5px; /* Space between text and underline */
    right: 0;
    background: black; /* Match the link color */
    transition: width 0.3s ease; /* Smooth transition for the underline */
    -webkit-transition: width 0.3s ease;
}

#info-link a:hover {
    color: #366393; /* Slightly darker blue on hover */
}

#info-link a:hover::after {
    width: 100%; /* Full width underline on hover */
    left: 0;
    right: auto;
}


.navbar-nav .nav-link {
    padding: 0.0rem 0.0rem; /* Reduce padding for nav links */
}

.navbar-toggler {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    border: none; /* Optional: remove border */
    background: none; /* Optional: remove background */
}

.navbar-toggler-icon {
    width: 2rem; /* Adjust width */
    height: 2rem; /* Adjust height */
    background-size: contain; /* Ensure the icon fits within its container */
}

.navbar-content {
    margin-top: 20px; /* Adjust this value to move the element down */
    /* Optional: you can add padding or other styling as needed */
}

.content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('ms-background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom;
    width: 100%;
    overflow: hidden;
}

.content p {
    margin: 5px 0; /* Adjust the top and bottom margins as needed */
}

#content, #additional-info-container {
    transition: opacity 0.5s linear;
}

#additional-info-container {
    display: none; 
    visibility: visible; 
}



.weather-data-display {
    margin-top: 0px;
    margin-bottom: 0px;
}

#content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 70px - 40px); /* Full height minus navbar and footer heights */
    transition: opacity 0.5s ease;
    width: 100%;
}

.spin-svg {
    animation: spin 20s linear infinite;
    height: 150px;
    width: 150px;
    cursor: pointer;
    fill: black;
}

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

#spin-icon-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

#spin-icon {
    cursor: pointer;
    margin-bottom: 20px;
}

#display-text {
    text-align: center;
    font-size: 14px;
    color: #333;
    opacity: 0; 
    transition: opacity 0.5s ease; 
    width: 25%;
}

#display-weather {
    text-align: center;
    font-size: 16px;
    color: #333;
    opacity: 0; 
    transition: opacity 0.5s ease; 
}

.disabled-svg {
    pointer-events: none; 
    opacity: 0.5; 
}

footer {
    height: 40px;
    flex-shrink: 0;
    width: 100%;
    font-size: 10px;
    text-align: center;
    background-color: transparent;
    padding: 10px 0;
}

footer p {
    margin: 0; 
}

@media (max-width: 768px) {
    #display-text {
        width: 90%; 
    }

    .navbar {
        height: 70px; /* Adjust the height as needed */
        padding: 0.5rem 1rem; /* Adjust padding */
        flex-shrink: 0;
    }
}

/* Additional styles for the weather content */
.weather-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Start at the top of the container */
    width: 100%;
    overflow: auto; /* Allow scrolling */
    box-sizing: border-box; /* Include padding in the element's total width and height */

}

.weather-content {
    width: 100%;
    padding: 20px; /* Add padding */
}

.weather-content .content {
    text-align: center;
    font-size: 16px;
    color: #333;
    opacity: 1; 
    width: 80%; /* Narrower column */
    max-width: 600px; /* Maximum width */
    margin: 0 auto; /* Center horizontally */
}

.weather-content .additional-info {
    text-align: left; /* Align text to the left */
    margin-top: 20px; /* Add top margin for separation */
    width: 80%; /* Narrower column */
    max-width: 600px; /* Maximum width */
    margin: 0 auto; /* Center horizontally */
}

#additional-info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align items to the top */
    padding: 20px; /* General padding for readability */
    margin-top: 100px; /* Increased margin to move down more */
    width: 100%;
    height: calc(100vh - 100px); /* Adjust for the height minus the top margin */
    overflow-y: auto; /* Enable vertical scrolling */
    box-sizing: border-box; /* Include padding in the element's total width */
}

.smaller-font {
    font-size: 0.875em; /* This makes it approximately one size smaller */
    margin-left: 3px; /* Add left margin for separation */
  }

.additional-info {
    max-width: 800px; /* Max width for readability on larger screens */
    width: 100%;
    margin: 0 auto;
    padding: 10px; /* Additional padding for the content */
    padding-top: 50px;
}

@media (max-width: 768px) {
    #additional-info-container {
        padding: 10px; /* Reduced padding for smaller screens */
        margin-top: 40px; /* Adjust for the navbar on mobile */
        height: calc(100vh - 110px); /* Adjust height for mobile */
    }

    .additional-info {
        max-width: 100%; /* Full width on smaller screens */
    }

    #nav-title {
        padding-top: 0px;
    }

    #info-link {
        padding-top: 0px;
    }
}



.weather-content hr {
    border: 1px solid #333;
    width: 80%;
    max-width: 600px;
    margin: 20px auto; /* Center horizontally */
}


