/* CSS de 120Fly */
/* Autor: IG @ivanjst */
/* 120fly.iobase.com.br */

html, body {
    margin: 0;
    padding: 0px;
    width: 100%;
    border-radius: 8px;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
}
body {
    font-family: Arial, sans-serif;
    background: #eef2f5;
    word-break: break-word;
    overflow-wrap: break-word;
}
#card {
    max-width: 900px;
    margin: auto;
    padding: 1px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}
#info {
    padding: 0 10px;
}
h1 {
    text-align: center;
    margin: clamp(0.5rem, 1vw, 0.625rem);
    font-size: clamp(1.3rem, 2vw, 1.5rem);
}
h2 {
    text-align: center;
    margin: clamp(0.5rem, 1vw, 0.625rem);
}
.h2-title {
    background: #052c00;
    color: #ffffff;
    padding: 2px;
    border-radius: 8px;
}
h4 {
    padding: 0px;
    margin: 0px;
}
#container-grafico {
    position: relative;
    width: 100%;
    height: 420px;
}
@media (max-width: 768px) {
    #container-grafico {
        height: 300px;
    }
}
#loading-grafico {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.3rem, 2vw, 1.5rem);
    font-weight: bold;
    color: #666;
    background: rgba(255,255,255,0.6);
    z-index: 10;
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0%   { opacity: 0.4; }
    50%  { opacity: 1; }
    100% { opacity: 0.4; }
}
#grafico {
    width: 100%;
    height: 100%;
}
#emojis-lateral {
    position: absolute;
    z-index: 9999;
}
#emojis-lateral .emoji-item {
    pointer-events: auto;
    cursor: help;
}
.emoji-item {
    position: absolute;
    left: 5px;
    font-size: clamp(1rem, 2vw, 1.3rem);
    transform: translateY(-50%);
    white-space: nowrap;
}
.emoji-tooltip {
    position: absolute;
    background: rgba(30,30,30,0.95);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: clamp(0.6rem, 2vw, 0.8rem);
    white-space: nowrap;
    transform: translateX(40px);
    z-index: 9999;
}
.google-visualization-tooltip {
    padding: 5px 0px 0px 5px !important;
    margin: 0;
}
#controles button {
    touch-action: manipulation;
}
.controles-zoom {
    display: grid;
    grid-template-columns: repeat(5, auto);
    gap: 4px;
    padding:
    clamp(10px, 3vw, 30px)
    clamp(5px, 2vw, 10px)
    0
    clamp(5px, 2vw, 10px);
}
.controles-zoom button {
    padding: 6px 5px;
    font-size: clamp(0.9rem, 2vw, 1.5rem);;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    min-width: 60px;
}
.controles-zoom button:active {
    background: #0d47a1;
}
#local-form {
    padding: 10px;
}
#local-form h3 {
    margin-top: 0;
    text-align: center;
    font-size: clamp(0.8rem, 2vw, 1.6rem);
    color: #2b3e55;
    margin-bottom: 1px;
}
#local-form label {
    display: block;
    margin: 
    clamp(0.01rem, 1vw, 0.2rem) 
    0 
    clamp(0.2rem, 2vw, 0.8rem);
    font-weight: bold;
    color: #334;
    font-size: clamp(0.75rem, 2vw, 1rem);
}
#local-form input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #ccd3db;
    border-radius: 8px;
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    transition: all .2s ease;
    background: #fdfdfd;
}
#local-form input[type="text"]:focus {
    border-color: #1976d2;
    box-shadow: 0 0 6px rgba(25,118,210,0.3);
    outline: none;
}
#local-form button {
    margin-top: 10px;
    padding: 8px 5px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: clamp(0.9rem, 2vw, 1.6rem);
    font-weight: bold;
    cursor: pointer;
    transition: background .2s ease, transform .1s ease;
    width: 100%;
}
#local-form button:hover {
    background: #125ca1;
}
#local-form button:active {
    transform: scale(0.98);
}
#local-form .linha {
    display: flex;
    gap: 12px;
}
#local-form .linha input {
    flex: 1;
}
#local-form button:nth-last-child(1) {
    background: #2e7d32;
}
#local-form button:nth-last-child(1):hover {
    background: #1b5e20;
}
.infoLocal {
    padding-left: 30px;
    font-size: clamp(0.75rem, 2vw, 1.1rem);
}
#minhaLegenda {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(2px, 2vw, 5px);
    margin-top: 1px;
    font-size: clamp(0.75rem, 2vw, 1.1rem);
    cursor: pointer;
}
#minhaLegenda .item {
    display: flex;
    align-items: center;
    gap: clamp(1px, 2vw, 6px);
    padding: 
    clamp(0.2px, 2vw, 1px) 
    clamp(1px, 2vw, 4px);
    border-radius: 6px;
    background: #f3f3f3;
    color: blue; 
}
#minhaLegenda .azul::before {
    content: "";
    width: 18px;
    height: 3px;
    background: blue;
    display: inline-block;
}
#minhaLegenda .verde::before {
    content: "";
    width: 18px;
    height: 3px;
    background: green;
    display: inline-block;
}
#minhaLegenda .raio::before {
    content: "⚡";
    font-size: 15px;
}
#minhaLegenda .vento::before {
    content: "🍃";
    font-size: 15px;
}
#minhaLegenda .kp::before {
    content: "🛰";
    font-size: 15px;
}
#minhaLegenda .temp::before {
    content: "🌡";
    font-size: 15px;
}
#minhaLegenda .drone::before {
    content: "🎮";
    font-size: 15px;
}
details {
    padding-left: 10px;
}
details summary {
    cursor: pointer;
}
.popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.popup-box {
    background: #fff;
    max-width: 450px;
    max-height: 80vh;
    padding: 10px;
    margin: 10px;
    border-radius: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    font-size: clamp(0.85rem, 2vw, 1.1rem);
}
.popup.hidden {
    display: none;
}
.popup-content {
    background: #fff;
    padding: 16px 18px;
    max-width: 350px;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    position: relative;
    font-size: clamp(0.75rem, 2vw, 1rem);
}
.popup-content h3 {
    margin: 0 0 6px;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
}
.popup-content p {
    margin: 0;
    font-size: clamp(0.85rem, 2vw, 1.15rem);
    line-height: 1.4;
}
.popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: none;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    cursor: pointer;
}
.popup-box p,
.popup-box ul,
.popup-box table,
.popup-box h4 {
    margin-top: 0.6em;
    margin-bottom: 0.6em;
}
.popup-box ul {
    padding-left: 18px;
}
#autocompleteList {
    border: 1px solid #ccc;
    padding: 1px;
    border: 1px solid #ccd3db;
    border-radius: 8px;
    font-size: clamp(0.8rem, 1vw, 1.1rem);
    transition: all .2s ease;
    background: #fdfdfd;
    z-index: 9999;
}
.autocomplete-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(0.2rem, 1vw, 0.5rem);
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}
.autocomplete-item:hover {
    background: #f0f0f0;
}
.autocomplete-item .texto {
    flex: 1;
    pointer-events: none;
}
.autocomplete-item .remover {
    color: #888;
    margin-left: 10px;
    cursor: pointer;
    pointer-events: auto;
}
.autocomplete-item .remover:hover {
    color: red;
}
.texto {
    pointer-events: none;
}
button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.btn-bloqueado {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(50%);
}
.img-tutorial {
    max-width: 99%;
    height: auto;
    display: block;
    margin: 0 auto;
}
#smenuBtn {
    position: fixed;
    top: 6px;
    left: auto;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: rgb(0 0 0 / 57%);
    color: white;
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    cursor: pointer;
    z-index: 99995;
    backdrop-filter: blur(8px);
    transition: 0.2s;
}
#sideMenu {
    position: fixed;
    top: 0;
    left: -260px;
    width: clamp(12.5rem, 2vw, 15rem);
    height: 100%;
    background: #052c00;
    padding-top: 50px;
    z-index: 99994;
    transition: left 0.25s ease;
    box-shadow: 2px 0 15px rgba(0,0,0,0.4);
}
#sideMenu.open {
    left: auto;
}
#sideMenu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: clamp(0.7rem, 1vw, 1rem)
    clamp(0.6rem, 1vw, 0.9rem);
    font-size: clamp(0.9rem, 2vw, 1rem);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.2s;
    position: relative;
    z-index: 99999;
}
#sideMenu a:hover {
    background: rgba(255,255,255,0.08);
}
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 99992;
}
#overlay.show {
    opacity: 1;
    pointer-events: auto;
}
#cookieBanner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    max-width: 520px;
    background: rgba(20,20,20,0.96);
    color: white;
    padding: 14px 16px;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    line-height: 1.4;
    box-shadow: 0 5px 25px rgba(0,0,0,0.35);
    z-index: 999999;
    backdrop-filter: blur(10px);
}
#cookieBanner button {
    border: none;
    background: #2d8cff;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    flex-shrink: 0;
}
#cookieBanner button:hover {
    opacity: 0.92;
}
@media (max-width: 600px) {
    #cookieBanner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}
.FlyCont {
  padding: 0px 5px 0px 5px;
}
.res120Fly {
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  padding: 0px 5px 0px 5px;
}

#footer {
    text-align:center;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    color:#888;
    padding: 0px 5px 0px 5px;
}