*,
body {
  font-family: "Inter", sans-serif;
}

#main {
  display: flex;
  row-gap: 5px;
  /* justify-content: center; */
  flex-direction: column;
  height: 100%;
  overflow-x: hidden;

}

#title-cbh {
  color: #c20a0a;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  /* text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.3); */
  margin-top: 2px;
  margin-bottom: 0.8px;
}

/* Dias */
#button-selector {
  display: flex;
  column-gap: 5px;
  justify-content: center;
}

.dt_buttons {
  background-color: #d9d9d95b;
  border-radius: 2px;
  padding: 9px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 32px;
  text-align: center;
  font-size: 0.7rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: #0000006e;
  border-radius: 1px;
  border: 0px;
  transition: 0.1s;
  line-height: 14px;
}

.dt_buttons.active {
  background-color: #d9d9d9;
  color: #000000;
  pointer-events: none;
}

.dt_buttons>span {
  align-self: center;
  font-family: "Inter", sans-serif;

}

#dashboard {
  display: grid;
  grid-template-columns: repeat(1, 88px);
  /* grid-template-rows: fr; */
  column-gap: 5px;
  row-gap: 5px;
  /* margin-top: 10px; */
  align-items: center;
  justify-items: center;
  height: 100%;
  padding: 10px;
  overflow-x: hidden;
  overflow-y: auto;
}

.cards-weather {
  position: relative;
  background-color: #efefef;
  box-shadow: 0 4px 2px -2px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  width: 100%;
  border-radius: 15px;
  padding: 0px;
  grid-column: span 2;
}

/* Centraliza último item sozinho */
.cards-weather:last-child:nth-child(4n - 3) {
  grid-column-end: 4;
}

#santos {
  grid-column: span 4;
}

#svicente {
  grid-column: span 4;
}

#santos>#result-section {
  gap: 20px !important;
}

#svicente>#result-section {
  gap: 20px !important;
}

.minitext {
  font-size: small;
  font-weight: 600;
  text-align: center;
  width: 100%;
  line-height: 2px !important;
  padding-top: 2px;
}

.card-image {
  position: absolute;
  width: 100%;
  height: 32px;
  top: 0px;
  border-radius: 15px 15px 0px 0px;
  box-shadow: 1px 4px 10px #00000046;
}

#result-section {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  gap: 10px;
  padding-inline: 20px;
  padding-top: 1px;
  padding-bottom: 1px;
}

.result-line {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title-card {
  margin: 6px;
  font-size: 1.2rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  color: #ffffff;
  z-index: 2;

  text-shadow: 2px -1px 5px #0000006e;
}

.resultado {
  font-weight: 600;
  font-size: 13px;
  word-spacing: -2.1px;
  text-wrap: wrap;
  max-width: 48px;
  line-height: 11px;
}

/* Carousel buttons */
.slider_container {
  display: flex;
  justify-content: center;
}

.button_selector_slider {
  width: 300px;
  position: relative;
  height: 35px;
  padding: 3px;
  border-radius: 15px;
  display: flex;
  gap: 2px;
  display: flex;
  justify-content: center;
}

.btn_container {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: 91px;
  transition: 0.4s;
  left: calc(50% - 44px);
  top: 0px;
}

.footer {
  bottom: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  position: absolute !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  row-gap: 6px;
}

.foot-buttons {
  width: 100%;
  background-color: #0A2B59;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 500;
  padding: 4px;
  font-size: 11px;
  color: #fff;
}

.footer-source {
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  color: #0A2B59;
  line-height: 11px;
  gap: 5px;
}

.faixa-aviso {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 3px 7px 2px inset, rgba(0, 0, 0, 0.3) 0px 3px 4px 3px;
  margin-bottom: 10px;
  font-weight: 700;
}

.header-title {
  display: flex;
  justify-content: center;
}

.footer-apoio {
  display: flex;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-size: 12px;
  align-items: center;
  background-color: #0A2B59;
  gap: 5px;
  padding: 2px;
  border-radius: 1px;
}

#apoio-text {
  margin-right: 15px;
}

#conselho-text {
  font-size: 8px !important;
  line-height: 11px;
  margin-left: -4px;
  width: 145px;
}

@media only screen and (min-width: 1200px) {

  #main {
    row-gap: 0;
  }

  #dashboard {
    display: grid;
    grid-template-columns: repeat(4, 100px);
    column-gap: 5px;
    row-gap: 5px;
    align-items: center;
    justify-items: center;
    height: 100%;
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .footer {
    bottom: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    row-gap: 6px;
  }

  .foot-buttons {
    width: 100%;
    background-color: #0A2B59;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-weight: 500;
    padding: 4px;
    font-size: 11px;
    color: #fff;
  }

  .cards-weather {
    height: 11.7vh;
  }

  .footer-source {
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    color: #0A2B59;
    line-height: 11px;
    gap: 5px;
  }

  .faixa-aviso {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 3px 7px 2px inset, rgba(0, 0, 0, 0.3) 0px 3px 4px 3px;
    margin-bottom: 10px;
    font-weight: 700;
  }

  .header-title {
    display: flex;
    justify-content: center;
  }

  #title-cbh {
    font-size: 20px;
    padding: 2px;
  }

  .footer-apoio {
    display: flex;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-size: 12px;
    align-items: center;
    background-color: #0A2B59;
    gap: 8px;
    padding: 2px;
    border-radius: 1px;
  }

  #apoio-text {
    margin-right: 20px;
  }

  #conselho-text {
    font-size: 8px !important;
    line-height: 11px;
    margin-left: -4px;
    width: 145px;
  }

  #result-section {
    padding-inline: 2px !important;
    padding-top: 0 !important;
    justify-content: center;
    align-items: center;
    height: 80px !important;
  }

  .resultado {
    font-size: 11px;
    word-spacing: 0px !important;
    line-height: 9.5px;
  }

  .result-line {
    width: 40px;
  }
}

@media only screen and (min-width: 1500px) {
  #result-section {
    padding-inline: 2px !important;
    justify-content: center;
    align-items: center;
    height: 80px !important;
  }

  .resultado {
    font-size: 12px;
    line-height: 10px;
  }

  .result-line {
    width: 40px;
  }
}

@media only screen and (max-width: 330px) {

  #main {
    height: 100vh;
    row-gap: 1px;
  }

  #title-cbh {
    font-size: 16px;
    align-items: center;
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Cards */
  #dashboard {
    grid-template-columns: repeat(4, 60px);
    grid-template-rows: 1fr;
  }

  #santos {
    width: 90%;
    padding-top: 2px;
    padding-bottom: 2px;
  }

  #svicente {
    width: 90%;
    padding-top: 2px;
    padding-bottom: 2px;
  }

  #bertioga {
    width: 140px;
    padding-top: 1px;
  }

  .cards-weather {
    border-radius: 10px;
    height: 72px;
  }

  .card-image {
    border-radius: 10px 10px 0px 0px;
    box-shadow: 1px 2px 5px #00000046;
    height: 25px;
  }

  .title-card {
    font-size: 0.7rem;
  }

  .btn_container {
    transition: 0.1s;
  }

  .faixa-aviso {
    margin-bottom: 8px;
  }

  #result-section {
    gap: 8px;
    padding-inline: 6px;
    justify-content: center;
    align-items: center;
    height: 200px;
  }

  .result-line {
    gap: 1px;
    line-height: 7px;
  }

  .resultado {
    font-size: 0.55rem;
    line-height: 8px;
    word-spacing: -1px;
  }

  /* Carousel */
  .gallery {
    width: 81%;
    scroll-behavior: smooth;
    gap: 20px;
    display: flex;
    justify-content: space-between;
  }

  /* Texto Orla e Estuário */
  .minitext {
    font-size: 9px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    line-height: 2px !important;
    padding-top: 2px;
  }

  .button_selector_slider {
    width: 250px;
    height: 40px;
    border-radius: 5px;
    overflow: hidden;
  }

  #button-selector {
    display: flex;
    column-gap: 5px;
    justify-content: center;
    height: 30px;
  }

  .footer-source {
    justify-content: space-around !important;
    font-size: 9px !important;
  }

  .footer-apoio {
    justify-content: end !important;
  }

  .footer {
    bottom: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    position: relative;
    margin-top: -10px;
    flex-direction: column;
    justify-content: space-between;
    row-gap: 5px;
  }

  .splide__arrow--prev {
    left: 0.5em !important;
  }

  .splide__arrow--next {
    right: 0.5em !important;
  }
}

/* TELAS PEQUENAS COMO IPHONE 11 */
@media only screen and (min-width: 331px) and (max-width: 375px) {

  #main {
    height: 99%;
    row-gap: 0px;
  }

  /* Cards */
  #dashboard {
    grid-template-columns: repeat(4, 65px);
    grid-template-rows: 1fr;
    row-gap: 4px;
    padding: 8px;
  }

  #santos {
    width: 90%;
  }

  #svicente {
    width: 90%;
  }

  .cards-weather {
    border-radius: 10px;

  }

  .card-image {
    border-radius: 10px 10px 0px 0px;
    box-shadow: 1px 2px 5px #00000046;
    height: 25px;
  }

  .title-card {
    font-size: 0.8rem;
  }

  .btn_container {
    transition: 0.1s;
  }

  #result-section {
    gap: 8px;
    padding-inline: 10px;
    padding-bottom: 8px;
    justify-content: center;
    height: 6.5vh;
    align-items: center;
  }

  .resultado {
    font-size: 0.6rem;
    word-spacing: 0px;
    line-height: 8px;
  }

  /* Carousel */
  .gallery {
    width: 72%;
    scroll-behavior: smooth;
    display: flex;
    gap: 15px;
    justify-content: space-between;
  }

  /* Texto Orla e Estuário */
  .minitext {
    font-size: small;
    font-weight: 600;
    text-align: center;
    width: 100%;
    line-height: 2px !important;
    padding-top: 2px;
  }

  .button_selector_slider {
    width: 250px;
    position: relative;
    height: 40px;
    padding: 3px;
    border-radius: 5px;
    overflow: hidden;
  }

  .faixa-aviso {
    padding: 4px;
  }

  #button-selector {
    display: flex;
    column-gap: 5px;
    justify-content: center;
    height: 30px;
  }

  .footer {
    bottom: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    row-gap: 6px;
  }
}

/* TELAS PEQUENAS MAIS COMUNS */
@media only screen and (min-width: 376px) and (max-width: 420px) {

  #main {
    height: 100%;
  }

  /* Cards */
  #dashboard {
    grid-template-columns: repeat(4, 74px);
    grid-template-rows: 1fr;
  }

  #title-cbh {
    font-size: 18px !important;
    padding: 4px;
  }

  .faixa-aviso {
    padding: 5px;
  }

  #santos {
    width: 90%;
  }

  #svicente {
    width: 90%;
  }

  .cards-weather {
    border-radius: 10px;
  }

  .card-image {
    border-radius: 10px 10px 0px 0px;
    box-shadow: 1px 2px 5px #00000046;
    height: 25px;
  }

  .title-card {
    font-size: 0.9rem;
  }

  .btn_container {
    transition: 0.1s;
  }

  #result-section {
    gap: 8px;
    padding-inline: 6px;
    justify-content: center;
    height: 7.4vh;
    padding-bottom: 1px;
    align-items: center;
  }

  .resultado {
    font-size: 0.7rem;
    word-spacing: 0px;
    line-height: 10px !important;
  }

  /* Carousel */
  .gallery {
    width: 63.5%;
    scroll-behavior: smooth;
    display: flex;
    gap: 20px;
    justify-content: space-between;
  }

  /* Texto Orla e Estuário */
  .minitext {
    font-size: small;
    font-weight: 600;
    text-align: center;
    width: 100%;
    line-height: 2px !important;
    padding-bottom: 6px;
  }

  .button_selector_slider {
    /* width: 250px; */
    position: relative;
    height: 35px;
    padding: 3px;
    border-radius: 5px;
    overflow: hidden;
  }

  #button-selector {
    display: flex;
    column-gap: 5px;
    justify-content: center;
    height: 30px;
  }
}

/* TELAS UM POUCO PEQUENAS */
@media only screen and (min-width: 421px) and (max-width: 599px) {

  #main {
    height: 100%;
    row-gap: 0;
  }

  /* Cards */
  #dashboard {
    grid-template-columns: repeat(4, 75px);
  }

  .cards-weather {
    border-radius: 10px;
  }

  .card-image {
    border-radius: 10px 10px 0px 0px;
    box-shadow: 1px 2px 5px #00000046;
  }

  .title-card {
    font-size: 1rem;
  }

  .btn_container {
    transition: 0.1s;
  }

  #result-section {
    gap: 6px;
    padding-inline: 8px;
    justify-content: center;
    height: 8vh;
    align-items: center;
  }

  .resultado {
    font-size: 0.75rem;
    word-spacing: 0px;
  }

  /* Carousel */
  .gallery {
    width: 66.1%;
    scroll-behavior: smooth;
    display: flex;
    gap: 20px;
    justify-content: space-between;
  }

  /* Texto Orla e Estuário */
  .minitext {
    font-size: small;
    font-weight: 600;
    text-align: center;
    width: 100%;
    padding-bottom: 3px;
    line-height: 2px !important;
  }

  .button_selector_slider {
    width: 250px;
    position: relative;
    height: 40px;
    padding: 3px;
    border-radius: 5px;
    overflow: hidden;
  }

  #button-selector {
    display: flex;
    column-gap: 5px;
    justify-content: center;
    height: 35px;
  }

  .foot-buttons {
    font-size: 14px;
  }
}


/* TELAS MÉDIAS */
@media only screen and (min-width: 600px) and (max-width: 767px) {
  #main {
    height: 100%;
  }

  /* Cards */
  #dashboard {
    grid-template-columns: repeat(4, 12vw);
    grid-template-rows: 1fr;
  }

  .cards-weather {
    border-radius: 10px;
  }

  .card-image {
    border-radius: 10px 10px 0px 0px;
    box-shadow: 1px 2px 5px #00000046;
  }

  .title-card {
    font-size: 1rem;
  }

  .btn_container {
    transition: 0.1s;
  }

  #result-section {
    gap: 10px;
    padding-inline: 12px;
    padding-top: 1;
    justify-content: space-between;
    align-items: center;
  }

  .resultado {
    font-size: 1rem;
    word-spacing: 0px;
    display: flex;
  }

  .bi {
    font-size: large;
  }

  /* Carousel */
  .gallery {
    width: 62vw;
    scroll-behavior: smooth;
    display: flex;
    gap: 20px;
    justify-content: space-between;
  }

  /* Texto Orla e Estuário */
  .minitext {
    font-size: x-small;
    font-weight: 600;
    text-align: center;
    width: 100%;
    line-height: 2px !important;
    padding-top: 2px;
  }

  .button_selector_slider {
    width: 250px;
    position: relative;
    height: 60px;
    padding: 3px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 4px;
  }

  #button-selector {
    display: flex;
    column-gap: 5px;
    justify-content: center;
    height: 30px;
  }

}

/* TABLETS */
@media only screen and (min-width: 768px) and (max-width: 992px) {
  #main {
    height: 100%;
  }

  /* Cards */
  #dashboard {
    grid-template-columns: repeat(4, 15vw);
    grid-template-rows: 1fr;
    row-gap: 6px;
  }

  #title-cbh {
    font-size: 25px;
  }

  .faixa-aviso {
    font-size: 18px;
  }

  .cards-weather {
    border-radius: 10px;
  }

  .card-image {
    border-radius: 10px 10px 0px 0px;
    box-shadow: 1px 2px 5px #00000046;
    height: 40px;
  }

  .title-card {
    font-size: 1.2rem;
  }

  .btn_container {
    transition: 0.1s;
  }

  .dt_buttons {
    height: 45px;
    font-size: 13px;
  }

  #result-section {
    gap: 10px;
    padding-inline: 12px;
    justify-content: space-around;
    align-items: center;
    height: 9vh;
    width: 100%;
  }

  .resultado {
    font-size: 1rem;
    word-spacing: 0px;
    display: flex;
    line-height: 15px;
  }

  .bi {
    font-size: 20px !important;
  }

  /* Carousel */
  .gallery {
    width: 64vw;
    scroll-behavior: smooth;
    display: flex;
    gap: 20px;
    justify-content: space-between;
  }

  /* Texto Orla e Estuário */
  .minitext {
    font-size: medium;
    font-weight: 600;
    text-align: center;
    width: 100%;
    line-height: 2px !important;
    padding-top: 2px;
  }

  .button_selector_slider {
    width: 300px;
    position: relative;
    height: 45px;
    padding: 3px;
    border-radius: 5px;
    overflow: hidden;
  }

  #button-selector {
    display: flex;
    column-gap: 5px;
    justify-content: center;
    height: 30px;
  }

  .foot-buttons {
    font-size: 15px !important;
  }

  .footer-source {
    font-size: 17px !important;
    line-height: 15px;
  }

  body>div.footer>div.footer-source>div>img:nth-child(1) {
    width: 40px;
  }

  body>div.footer>div.footer-source>div>img:nth-child(2) {
    width: 40px;
  }

  .footer-apoio {
    font-size: 16px;
  }

  #condesb-logo {
    width: 70px !important;
  }

  #cbhbs-logo {
    width: 65px !important;
  }

  #conselho-text {
    font-size: 12px !important;
    width: 200px;
  }
}

@media only screen and (min-width: 993px) and (max-width: 1199px) {
  #main {
    height: 100%;
  }

  /* Cards */
  #dashboard {
    grid-template-columns: repeat(4, 15vw);
    grid-template-rows: 1fr;
    row-gap: 6px;
  }

  #title-cbh {
    font-size: 30px;
    padding-bottom: 2px;
  }

  .faixa-aviso {
    font-size: 25px;
  }

  .cards-weather {
    border-radius: 10px;
  }

  .card-image {
    border-radius: 10px 10px 0px 0px;
    box-shadow: 1px 2px 5px #00000046;
    height: 40px;
  }

  .title-card {
    font-size: 1.2rem;
  }

  .btn_container {
    transition: 0.1s;
  }

  .dt_buttons {
    height: 60px;
    font-size: 16px;
  }

  #result-section {
    gap: 10px;
    padding-inline: 12px;
    justify-content: space-around;
    align-items: center;
    height: 9vh;
    width: 100%;
  }

  .resultado {
    font-size: 1rem;
    word-spacing: 0px;
    display: flex;
    line-height: 15px;
  }

  .bi {
    font-size: 27px !important;
  }

  /* Carousel */
  .gallery {
    scroll-behavior: smooth;
    display: flex;
    gap: 20px;
    justify-content: space-between;
  }

  /* Texto Orla e Estuário */
  .minitext {
    font-size: medium;
    font-weight: 600;
    text-align: center;
    width: 100%;
    line-height: 2px !important;
    padding-top: 2px;
  }

  .button_selector_slider {
    width: 360px;
    position: relative;
    height: 65px;
    padding: 3px;
    border-radius: 5px;
    overflow: hidden;
  }

  #button-selector {
    display: flex;
    column-gap: 5px;
    justify-content: center;
    height: 30px;
  }

  .foot-buttons {
    font-size: 18px !important;
  }

  .footer-source {
    font-size: 17px !important;
    line-height: 20px;
  }

  body>div.footer>div.footer-source>div>img:nth-child(1) {
    width: 50px;
  }

  body>div.footer>div.footer-source>div>img:nth-child(2) {
    width: 50px;
  }

  .footer-apoio {
    font-size: 22px;
  }

  #condesb-logo {
    width: 70px !important;
  }

  #cbhbs-logo {
    width: 65px !important;
  }

  #conselho-text {
    font-size: 12px !important;
    width: 200px;
  }
}

.splide__arrow.is-disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}