/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
    --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
        "Noto Color Emoji";
    --heading-font: "Raleway", sans-serif;
    --nav-font: "Poppins", sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root {
    --background-color: #ffffff;
    /* Background color for the entire website, including individual sections */
    --default-color: #272829;
    /* Default color used for the majority of the text content across the entire website */
    --heading-color: #050d18;
    /* Color for headings, subheadings and title throughout the website */
    --accent-color: #149ddd;
    /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
    --surface-color: #ffffff;
    /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
    --contrast-color: #ffffff;
    /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
    --line-color: #ddd;
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
    --nav-color: #6c757d;
    /* The default color of the main navmenu links */
    --nav-hover-color: #0d6efd;
    /* Applied to main navmenu links when they are hovered over or active */
    --nav-mobile-background-color: #040b14;
    /* Used as the background color for mobile navigation menu */
    --nav-dropdown-background-color: #040b14;
    /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
    --nav-dropdown-color: #a8a9b4;
    /* Used for navigation links of the dropdown items in the navigation menu. */
    --nav-dropdown-hover-color: #0d6efd;
    /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
    --background-color: #f5f5f5;
    --surface-color: #ffffff;
}

.dark-background {
    --background-color: #040b14;
    --default-color: #ffffff;
    --heading-color: #ffffff;
    --surface-color: #151f2b;
    --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
    scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
    color: var(--default-color);
    background-color: var(--background-color);
    font-family: var(--default-font);
}

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

a:hover {
    color: color-mix(in srgb, var(--accent-color), transparent 25%);
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-family: var(--heading-font);
}

.linha {
    color: var(--line-color);
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
    color: var(--default-color);
    background-color: var(--background-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    padding: 0 15px;
    width: 300px;
    transition: all ease-in-out 0.3s;
    overflow-y: auto;
    z-index: 997;
    border-right: 1px solid
        color-mix(in srgb, var(--default-color), transparent 90%);
}

.header .profile-img img {
    margin: 15px auto;
    display: block;
    width: 120px;
    padding-bottom: 20px;
    /*border: 8px solid color-mix(in srgb, var(--default-color), transparent 85%);*/
}

.header .logo {
    line-height: 1;
    margin-bottom: 15px;
}

.header .logo img {
    max-height: 32px;
    margin-right: 8px;
}

.header .logo h1 {
    font-size: 24px;
    margin: 0;
    font-weight: 700;
    color: var(--heading-color);
}

.header .social-links {
    margin: 0 0 20px 0;
}

.header .social-links a {
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--default-color), transparent 90%);
    color: var(--default-color);
    margin: 0 2px;
    border-radius: 50%;
    text-align: center;
    width: 40px;
    height: 40px;
    transition: 0.3s;
}

.header .social-links a:hover {
    color: var(--contrast-color);
    background: var(--accent-color);
}

@media (min-width: 1200px) {
    .header ~ main,
    .header ~ #footer {
        margin-left: 300px;
    }
}

@media (max-width: 1199px) {
    .header {
        left: -100%;
    }
}

.header.header-show {
    left: 0;
}

.header .header-toggle {
    color: var(--contrast-color);
    background-color: var(--accent-color);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 9999;
    transition: background-color 0.3s;
}

.header .header-toggle:hover {
    color: var(--contrast-color);
    background-color: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.mobile-nav-toggle {
    display: none;
}

.navmenu {
    padding: 0;
    z-index: 9997;
}

.navmenu ul {
    list-style: none;
    /*padding: 0 0 20px 0;*/
    padding: 0;
    /*new*/
    margin: 0;
    text-align: center;
    /*new*/
}

.navmenu ul li {
    /*new*/
    border-bottom: 1px solid var(--line-color);
    padding: 15px 0;
}

.navmenu ul li:last-child {
    /*new*/
    border-bottom: none;
}

.navmenu ul li a p {
    /*new*/
    margin: 0;
}

.navmenu a,
.navmenu a:focus {
    color: var(--nav-color);
    /*  padding: 15px 10px;*/
    font-family: var(--nav-font);
    font-size: 16px;
    font-weight: 400;
    /*display: flex;*/
    align-items: center;
    white-space: nowrap;
    transition: 0.3s;
    width: 100%;
}

.navmenu a .navicon,
.navmenu a:focus .navicon {
    font-size: 20px;
    margin-right: 10px;
}

.navmenu a .toggle-dropdown,
.navmenu a:focus .toggle-dropdown {
    font-size: 12px;
    line-height: 0;
    margin-left: auto;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    flex-shrink: 0;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.navmenu a .toggle-dropdown:hover,
.navmenu a:focus .toggle-dropdown:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
    color: var(--nav-hover-color);
}

.navmenu a:hover .navicon,
.navmenu .active .navicon,
.navmenu .active:focus .navicon {
    color: var(--accent-color);
}

.navmenu .active .toggle-dropdown,
.navmenu .active:focus .toggle-dropdown {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
}

.navmenu .dropdown {
    display: block;
}

.navmenu .dropdown a,
.navmenu .dropdown a:focus {
    color: --nav-dropdown-color;
}

.navmenu .dropdown a:hover,
.navmenu .dropdown .active,
.navmenu .dropdown .active:focus {
    color: var(--nav-dropdown-hover-color);
}

.navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 5px 10px;
    margin: 5px 10px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
}

.navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
}

.navmenu .dropdown > .dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.6s ease-out;
}

#preloader:before {
    content: "";
    position: fixed;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    border: 6px solid #ffffff;
    border-color: var(--accent-color) transparent var(--accent-color)
        transparent;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: -15px;
    z-index: 99999;
    background-color: var(--accent-color);
    width: 44px;
    height: 44px;
    border-radius: 50px;
    transition: all 0.4s;
}

.scroll-top i {
    font-size: 24px;
    color: var(--contrast-color);
    line-height: 0;
}

.scroll-top:hover {
    background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
    color: var(--contrast-color);
}

.scroll-top.active {
    visibility: visible;
    opacity: 1;
    bottom: 15px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
    [data-aos-delay] {
        transition-delay: 0 !important;
    }
}

.alertas {
    font-size: 8pt;
}

.bg-green-light {
    background-color: #d7f0dd;
}

.bg-yellow-light {
    background-color: #fff3cd;
}

.bg-red-light {
    background-color: #f8d7da;
}

.ativo {
    background-color: lightyellow;
}

.modal-fullscreen {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0;
    height: 60%;
    top: 0;
    left: 0;
    position: fixed;
}

.point-details {
    font-size: 12px;
}

.detail {
    display: flex;
    margin-bottom: 6px;
}

.label {
    flex: 1;
    text-align: left;
    font-weight: bold;
    white-space: nowrap;
}

.value {
    flex: 1;
    text-align: left;
}

.map-source {
    position: absolute;
    bottom: 5px;
    left: 400px;
    text-align: left;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
}

/* inicio indice  seca */
.timeline {
    border-radius: 20px;
    background-color: #3fb8af;
    bottom: 4%;
    left: 58%;
}

.timeline .flex-fill {
    height: 0.8em;
}

.timeline .form-check-input {
    border: 0px;
    margin-top: 0.1em;
    width: 0.6em;
    height: 0.6em;
}

.form-check-input:checked {
    background-color: gray;
    border-color: gray;
}

/* fim indice seca */

/* queimadas */

.noUi-pips-horizontal {
    height: 60px !important;
}

/* fim queimadas */

.menu-desativado {
    color: #bbb;
    font-family: var(--default-font);
}

.menu-desativado p {
    margin-bottom: 0px !important;
}

/* boletim */

#pdf-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.pdf-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 calc(25% - 20px);
    max-width: 25%;
    box-sizing: border-box;
}

.canvas-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
}

.canvas-wrapper canvas.pdf-canvas {
    width: 100%;
    height: 100%;
    border: 1px solid #ddd;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.boletim-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 5px 0;
    font-size: 1rem;
    font-weight: bold;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    z-index: 10;
}

@media (max-width: 1024px) {
    .pdf-item {
        flex: 1 1 calc(33.33% - 20px);
    }
}

@media (max-width: 768px) {
    .pdf-item {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .pdf-item {
        flex: 1 1 100%;
    }
}

/* fim boletim */

/* previsao clima */

.modal-content {
    margin: auto;
}

h4 {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

/* Estilo do relógio */
.horario {
    font-size: 20px;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 12px;
    background: black;
    color: white;
    display: inline-block;
}

/* Estilo de localização e data */
.cidadeuf {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    margin-bottom: 20px;
}

.fa-location-dot {
    font-size: 22px;
    margin-right: 5px;
}

/* Tabela de previsão */
.sem-hover {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-bottom: 20px;
}

.previsao-numerica-num-grande {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.previsao-numerica-icone {
    font-size: 28px;
    color: #2196f3;
}

.chuva {
    color: #3490dc;
}

.temperatura-minima {
    color: #54aaf1;
}

.temperatura-maxima {
    color: #ff5858;
}

.umidade {
    color: #00579e;
}

.hoje {
    background: #f0f0f0;
    padding: 10px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.hoje-texto {
    padding-left: 10%;
}

.hoje .hoje-titulo {
    background-color: rgb(0, 0, 0);
    padding: 3px 20px 3px 20px;
    border-radius: 90px;
    color: white;
}

.tabela-prev {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.tabela-prev td {
    padding: 20px;
    box-sizing: border-box;
    font-size: 14px;
}

.previsao-numerica-num {
    font-size: 20px;
    font-weight: bold;
}

.previsao-semanal {
    margin-top: 20px;
}

.dias-semana {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.card-dia {
    text-align: center;
    justify-content: center;
    border-radius: 5px;
    overflow: hidden;
    margin: 0.7%;
    display: inline-block;
    min-width: 215px;
    height: 100px;
    background-color: #f0f0f0;
    font-size: 17px;
    border: none;
    pointer-events: none;
}

/* fim previsao clima */

.closeBox {
    width: 24px;
    height: 24px;
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 9999;
}

.closeBox::before {
    content: "×"; /* X de fechar */
    font-size: 20px;
    color: #333;
    line-height: 24px;
    display: block;
    text-align: center;
}

.cidadeufPopup {
    font-size: 18px;
    margin-bottom: 20px;
}
