.navbar {
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar.bg-dark .navbar-brand,
.navbar.bg-dark .nav-link {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-size: 0.95rem;
    /* Smaller than default */
}

.title {
    color: gray;
    text-transform: uppercase;
    margin-left: 30px;
}

#first-list {
    /* Styles for the list container */
    font-family: Arial, sans-serif;
    font-size: 18.5px;
    line-height: 2;
    text-transform: uppercase;
    justify-content: space-between;
    margin-left: 20px;
}

.yellow {
    color: orange;
    font-weight: bold;
}

#readmore {
    margin-left: 50px;
}

.bodytext {
    font-size: 18px;
}

@media (min-width: 768px) {
    .news {
        width: 50%;
    }
}

.boldfont {
    font-weight: bold;
}

.gray {
    color: gray;
}

.small {
    font-size: 0.7em;
}

footer {
    background-color: #f5f5f5;
    padding: 0.25rem 1.25rem;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 0.95rem;
}

footer p,
footer a {
    margin: 0;
    padding: 0;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
}

form input,
form textarea {
    margin-bottom: 10px;
    padding: 5px;
}

form button {
    padding: 10px;
}

body,
html {
    min-height: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-padding-top: 60px;
}

body {
    padding-top: 60px;
    padding-bottom: 40px;
}

.image {
    width: 400px;
    height: auto;
    border-radius: 5px;
}

.text-center {
    text-align: center;
}


/* graphs*/
.responsive-plotly-container {
    min-height: 400px;
    height: auto;
    overflow: hidden;
}

/* Make ploty titles responsive */
.plotly .main-title {
    font-size: clamp(14px, 2.5vw, 20px) !important;
    line-height: 1.2;
    padding: 0 10px;
}

.text-darkest-blue {
    color: #000066;
}

.alert.alert-success>ul,
.alert.alert-success>ol {
    padding-left: 0;
    list-style-position: inside;
}

.alert {
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

body {
    padding-bottom: 25px !important;
    position: relative;
}

footer {
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-container {
    padding-top: 30px;
    padding-bottom: 40px;
    margin-bottom: 30px;
}

/* google translate button */
#google_translate_element {
    position: absolute;
    top: 8px;
    left: 10px;
    z-index: 1000;
    transform: scale(0.75);
    transform-origin: left top;
}

.goog-te-combo {
    padding: 4px 8px;
    border-radius: 4px;
    background: #333;
    color: gray;
    border: 1px solid #555;
    max-width: 138px;
}

.navbar-brand {
    margin-left: 105px !important;
}

@media (max-width: 991.98px) {
    #google_translate_element {
        transform: scale(0.65);
        left: 5px;
    }

    .navbar-brand {
        margin-left: 85px !important;
        font-size: 0.9rem !important;
        /* Shrink title  */
    }
}

.graph-section-source {
    margin-top: 0.5rem;
}

/* Chatbot style */
.chat-history {
    height: 60vh;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    margin-bottom: 15px;
}

@media (max-width: 767.98px) {
    .container {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    .border.border-warning {
        margin-left: -5px;
        margin-right: -5px;
        width: calc(100% + 10px);
        padding: 15px 5px;
    }
    
    .responsive-plotly-container {
        width: 100% !important;
        min-height: 450px; /* Perfect for mobile readability */
    }
    
    #Introduction.p-5 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .bodytext {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    #Restatement .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}


/* Align the main title with the subtitle */
section.bg-light .title {
    margin-left: 0;
}

/* Optional: Align the list and button too */
section.bg-light #first-list {
    margin-left: 0;
}

section.bg-light #readmore {
    margin-left: 0;
    margin-top: 10px;
}