html {
  margin: 0px;
  padding: 0px;
  overflow-x: hidden;
  font-family: Helvetica Neue;
  background: #1e262e;
  font-family: Roboto, HelveticaNeue, arial;
}

body {
  margin: 0px;
  padding: 0px;
  overflow: hidden;
  padding-bottom: 10px;
}

#main {
  background-image: radial-gradient(rgba(136, 221, 255, 0.03) 20%, transparent 20%);
  background-position: 0px 0px;
  background-size: 10px 10px;
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
}

#overview {
  background-image: radial-gradient(rgba(136, 221, 255, 0.03) 20%, transparent 20%);
  background-position: 0px 0px;
  background-size: 10px 10px;
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  overflow-y: auto;
  display: block;
  z-index: 50;
  padding-top: 10px;
}

body.popup-open #overview {
  pointer-events: none;
  overflow: hidden;
}

body.popup-open #menu {
  display: none;
}

body.popup-open .overview-titlebar {
  opacity: 0;
}

.station-popup-backdrop {
  position: absolute;
  inset: 0px;
  background: rgba(10, 15, 20, 0.45);
  z-index: 0;
}

body.popup-open {
  overflow: hidden;
}

.station-popup {
  position: fixed;
  inset: 0px;
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  overflow: hidden;
}

.station-popup.open {
  opacity: 1;
  pointer-events: auto;
}

.station-popup-inner {
  position: absolute;
  z-index: 2;
  inset: 15px 10px 20px 10px;
  background-color: #1e262e;
  /*border: 1px #5b6e81 solid;*/
  border-radius: 8px;
  box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform: none;
  transition: transform 0.25s ease;
}

.station-popup.open .station-popup-inner {
  transform: none;
}

.station-titlebar {
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
}

#station_title {
  text-transform: none;
  letter-spacing: 0px;
  font-size: 19px;
}

.station-titlebar .icon.close {
  position: absolute;
  right: 10px;
  top: 10px;
  transform: none;
  font-size: 22px;
  margin: 0px;
  cursor: pointer;
}

.station-flag {
  position: absolute;
  left: 10px;
  top: 15px;
  width: 29px;
  height: 21px;
  border-radius: 3px;
  /*box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.5);*/
  object-fit: cover;
}

.station-titlebar .title {
  margin-left: 0px;
  margin-right: 0px;
  width: 100%;
  text-align: center;
  pointer-events: none;
}

.station-popup-inner #main {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.station-popup-inner #main::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2px;
  row-gap: 0px;
  padding: 2px;
}

.overview-card {
  margin: 0px;
}

.overview-location-card {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 0px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(39, 53, 63, 0.98), rgba(72, 91, 101, 0.96));
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.overview-location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
  padding: 0 22px;
}

.overview-location-title {
  min-width: 0;
  font-family: "Roboto";
  font-size: 17px;
  font-weight: 50;
  text-transform: uppercase;
  color: rgb(136, 221, 255);
  text-shadow: 0px 0px 8px rgba(136, 221, 255, 0.7);
}

.overview-location-weather {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.overview-location-icon {
  width: 18px;
  height: 18px;
  color: #f6fcff;
  opacity: 0.95;
}

.overview-location-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.overview-location-temp {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.overview-title-text {
  display: block;
}

.overview-dot {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

.overview-graph-card {
  margin: 0px 2px;
}

.overview-card .timebox .time {
  font-size: 60px;
}

.overview-card .timebox .date {
  margin-top: -8px;
  font-size: 11px;
  margin-bottom: 8px;
}

@media (max-width: 360px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-location-card {
    grid-column: auto;
  }

  .overview-location-row {
    min-height: 68px;
    padding: 0 18px;
    gap: 12px;
  }

  .overview-location-title {
    font-size: 17px;
  }

  .overview-location-weather {
    gap: 7px;
  }

  .overview-location-icon {
    width: 16px;
    height: 16px;
  }

  .overview-location-temp {
    font-size: 16px;
  }
}

.menu {
  position: fixed;
  width: 200px;
  top: 0px;
  left: 0px;
  bottom: 0px;
  background-color: rgba(32, 38, 45, 0.0);
  background-image: radial-gradient(rgba(136, 221, 255, 0.03) 20%, transparent 20%);
  background-position: 0px 0px;
  background-size: 10px 10px;
  border-right: 1px transparent solid;
  z-index: 300;
  box-shadow: none;
  transition: all 0.2s ease-in-out;
  transform: translateX(-200px);
}

.menu.visible {
  transform: translateX(0px);
  box-shadow: 1px 0px 16px rgba(0, 0, 0, 0.5);
  border-right: 1px #5b6e81 solid;
  background-color: rgba(32, 38, 45, 0.99);

}

.menu .header {
  position: absolute;
  top: 0px;
  height: 50px;
  right: 0px;
  left: 0px;
  background-color: rgba(32, 32, 32, 0.0);
  border-bottom: 1px transparent solid;
  transition: all 0.2s ease-in-out;
}

.menu .header .title {
  text-align: left;
  font-family: "Roboto";
  font-size: 24px;
  font-weight: 50;
  text-shadow: 0px 0px 8px rgba(136, 221, 255, 0.7);
  color: rgb(136, 221, 255);
  margin-top: 10px;
  margin-left: 10px;
}

.menu.visible .header {
  border-bottom: 1px #5b6e81 solid;
  background-color: rgba(32, 32, 32, 0.9);
}



.menu .header .icon {
  position: absolute;
  top: 14px;
  right: 10px;
  height: 20px;
  width: 20px;
  transition: all 0.2s ease-in-out;
  transform: translateX(40px);
  /*border:1px #5b6e81 solid;*/
}

.menu.visible .header .icon {
  transform: translateX(0px);
}

.menu .header .icon .iconline {
  width: 100%;
  height: 2px;
  background-color: rgb(136, 221, 255);
  box-shadow: none;
  margin-top: 4px;
  margin-bottom: 4px;
  transition: all 0.2s ease-in-out;
}

.menu.visible .header .icon .iconline {
  box-shadow: 0px 0px 8px rgba(136, 221, 255, 0.7);
}

.menu .content {
  opacity: 0;
  transition: all 0.2s ease-in-out;
  position: absolute;
  top: 50px;
  left: 0px;
  right: 0px;
  bottom: 0px;
}

.menu.visible .content {
  opacity: 1;
}

.menu .menuitem {
  font-family: "Roboto";
  font-size: 12px;
  font-weight: 400;
  text-shadow: 0px 0px 8px rgba(136, 221, 255, 0.7);
  color: rgb(136, 221, 255);
  margin: 20px 0px 20px 20px;
}

.titlebar {
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  height: 50px;
  background-color: #2a343dee;
  z-index: 200;
  /*border-bottom: 1px #5b6e81 solid;*/
  box-shadow: 0px 1px 16px rgba(0, 0, 0, 0.5);
}

.titlebar .icon {
  float: right;
  margin-right: 10px;
  font-size: 10px;
  font-weight: 50;
  font-family: Roboto;
  /*text-shadow: 0px 0px 8px rgba(136, 221, 255, 0.7);*/
  color: rgb(136, 221, 255);
  margin-top: -33px;
  font-size: 30px;
  transform: scaleX(-1) rotate(-45deg);

}

.titlebar .title {
  text-align: center;
  font-family: "Roboto";
  font-size: 20px;
  font-weight: 500;
  text-shadow: 0px 0px 8px rgba(136, 221, 255, 0.7);
  color: rgb(136, 221, 255);
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;

}

.card {
  /*width:calc(100%-20px);*/

  /*background-color: rgba(0,0,0,0.15);*/
  background-color: #111822;
  /*#2a343d;*/
  /*background: -webkit-linear-gradient(#212832, #111822);*/
  background: -webkit-linear-gradient(#121923, #111822);
  overflow-x: hidden;

  border-radius: 4px;

  /*
  border: 1px #4b5e71 solid;
  border-top: 1px #5b6e81 solid;
  */
  border-top: 1px rgba(255, 255, 255, 0.10) solid;
  border-bottom: 1px rgba(0, 0, 0, 0.5) solid;

  position: relative;
  margin: 9px 5px 9px 5px;
  border-radius: 8px;

  box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.2);

  display: block;
  max-height: 300px;
  transition: max-height 0.5s ease;
}

#overview .card {
  margin: 5px 5px 5px 5px;
}



.card.minimized {
  max-height: 27px;
  overflow: hidden;
}

.card.hidden {
  display: none;
}

.cardsection {}

.cardsection.top {
  /*border-bottom: 1px #5b6e81 solid;*/
}

.cardsection.bottom {
  /*border-top: 1px #5b6e81 solid;*/
}

.cardsection.humidity {
  position: relative;
  padding: 2px 5px 2px 5px;
  border-bottom: 1px #5b6e81 solid;
  border-right: 1px #5b6e81 solid;
}

.cardsection .left,
.cardsection .right {
  padding: 6px;
}

.cardsection .left {
  float: left;
}

.cardsection .right {
  float: right;
  border-left: 1px #5b6e81 solid;
}

.cardsection .caption,
.card .title,
.weather-day-label {
  /*color: #568599;*/
  color: rgb(136, 221, 255, 0.7);
  font-family: 'Roboto';
  font-weight: 400;
  font-size: 9px;
  text-transform: uppercase;
  text-shadow: 0px 1px 1px rgba(0, 0, 0, 1);

}



.cardsection .caption,
.weather-day-label {
  text-align: center;
  font-size: 10px;
  margin-bottom: 4px;
}


.card .title {
  font-size: 11px;
  padding: 8px 0px 8px 7px;
  /*background-color: rgba(0, 0, 0, 0.1);*/
  border-bottom: 1px rgba(0, 0, 0, 0.5) solid;

  text-shadow: 0px 0px 15px rgba(136, 221, 255, 0.9);
  color: rgb(136, 221, 255);

}

.card.overview-card .title {
  position: relative;
  padding: 10px 10px 10px 10px;
  text-align: center;
  font-size:10px;
}

.card .separator {
  height: 1px;
  margin-top: 0px;
  /*border-bottom: 1px #334250 solid;*/
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}

.card .expand {
  margin: 10px 5px 0px 8px;
  float: left;
  width: 10px;
  height: 10px;
  transition: transform 0.5s ease;
  transform: rotate(90deg);
  z-index: 2;
}

.card .expand polygon {
  fill: #50798b;
  stroke: transparent;
  stroke-width: 0;
}

.card.minimized .expand {
  transform: rotate(0deg);
}



.datetime,
.aqi,
.aqi_desc {
  font-family: "Roboto";
  font-size: 14px;
  font-weight: 400;
  text-shadow: 0px 0px 8px rgba(136, 221, 255, 0.7);
  color: rgb(136, 221, 255);
  margin-bottom: 3px;
  margin-top: 2px;
  text-align: center;
}

.aqi {
  font-weight: 450;
  font-size: 18px;
  margin-top: 12px;
  margin-bottom: 8px;
}

.aqi_desc {
  font-size: 13px;
  opacity: 0.5;
  margin-bottom: 8px;
  text-shadow: none;
}




.datetime .small {
  font-size: 9px;
  opacity: 0.8;
  margin-top: 5px;
}

#tide_delta {
  white-space: nowrap;
}

.data_table {
  border: 0px;

}

.data_table td {
  padding: 2px 5px 2px 5px;
  /*border-right: 1px #5b6e81 solid;*/
}

.data_table td:last-child {
  border-right: 0px;
}

.webcam-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.webcam-frame img {
  position: absolute;
  inset: 0px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.webcam-overlay {
  position: absolute;
  top: 6px;
  right: 8px;
  padding: 4px 6px;
  font-size: 10px;
  color: #d8e8f2;
  text-align: right;
  background: rgba(10, 14, 18, 0.55);
  border-radius: 6px;
}

.weathergraph {
  width: 100%;
  height: 100%;
  margin-top: -5px;
}

.weather-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 0px) / 7);
  gap: 0px;
  padding: 6px 4px 8px 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.weather-strip::-webkit-scrollbar {
  display: none;
}

.weather-day {
  text-align: center;
  display: grid;
  gap: 0px;
}

.weather-day-label {
  /*
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93a0ad;
  */
  padding-top: 2px;
}

.weather-day-icon {
  height: 34px;
  color: rgb(136, 221, 255);
  display: flex;
  align-items: center;
  justify-content: center;
}

.weather-day-icon svg {
  width: 28px;
  height: 28px;
}

.weather-day-high {
  font-size: 13px;
  font-weight: 500;
}

.weather-day-low {
  font-size: 13px;
  color: #c1c9d2;
}

.weather-day-rain {
  font-size: 10px;
  color: rgb(136, 221, 255);
  margin-top: 4px;
  padding-bottom: 2px;
}

.weather-day-rain-zero {
  opacity: 0.5;
}

.weather-day-current {
  background: rgba(31, 40, 50, 0.7);
}


.sungraph-wrap {
  position: relative;
}

.sungraph-overlay {
  position: absolute;
  inset: 0px;
  background: transparent;
}

.sungraph {
  position: relative;
  width: calc(100% - 20px);
  margin-left: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  height: 120px;

}

.timebox {
  text-align: center;
  color: #365866;
  font-family: 'Roboto';
  font-weight: 400;
  font-size: 13px;
}


.timebox .time {

  margin-top: 5;
  margin-bottom: 5px;
  font-size: 90px;
  font-weight: 20;
  text-shadow: 0px 0px 15px rgba(136, 221, 255, 0.9);
  color: rgb(136, 221, 255);
}

#card_rain .timebox .time,
#card_wind .timebox .time,
#card_water .timebox .time {
  font-size: 60px;
  margin-bottom: 10px;
}

.card .aqi_date {
  margin-bottom: 10px;
  color: #50798b;
  font-size: 14px;
}

.timebox .date {
  margin-top: -15px;
  margin-bottom: 10px;
  color: rgba(136, 221, 255, 0.5);
  font-size: 12px;
}
