:root {
  color-scheme: dark;
  --primary-bg-color: #111111;
  --secondary-bg-color: #333333;
  /* overflow-y: scroll; */
  scrollbar-color: #333333 #11111100;
  background-attachment: fixed;
}

html {
  height: 100%;
  overflow-y: scroll;
}

html,
body {
  /* height: 100%; */
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5em;
}

/* This targets only iOS devices */
@supports (-webkit-touch-callout: none) {

  html,
  body {
    overflow-y: scroll;
    height: 100%;
  }
}

body#home {}

.heading {
  padding-left: 10px;
}

body#dth {
  background-image: url("/dth/sea2-1920-1080.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed !important;
  background-size: cover;
  line-height: 1.5em;
}

.centre {
  text-align: center;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/mountins3-1920-1080.webp') no-repeat center center fixed;
  background-size: cover;
  z-index: -1;
}

.content {
  position: relative;
  z-index: 1;
}

p {
  margin: 0em 0px 1em 0px;
}

hr {
  border: none;
  background-color: #ffffff3e;
  height: 0.0625em;
  /* border-radius: 1em; */
}

h1,
h2,
h3 {
  margin: 3px 0;
  line-height: 1.3;
}

h1 {
  font-size: 1.8em;
}

h2 {
  font-size: 1.3em;
}

h3 {
  z-index: 1000;
}

.title {
  font-size: 1.1em;
}

a {
 /* text-decoration: none; */
  color: hotpink;
}

a:hover {
  color: rgb(140, 118, 246);
}

.main-mapplot {
  padding-left: 10px;
  padding-right: 10px;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 10px;
  padding-right: 10px;
}

/* Don't apply max-width  pages */
#receivednodes main,
#mapplot main {
  max-width: initial;
  padding-left: 0px;
  padding-right: 0px;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.yellow {
  color: yellow;
}

.lightgreen {
  color: lightgreen;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
}

.share-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 5px;
  padding: 5px;
  background-color: #3e3d3d;
  z-index: 1000;
  line-height: 1;
}

.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-buttons a {
  text-decoration: none;
  padding: 4px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #c3bebe;
  color: #333;
  display: flex;
  align-items: center;
}

.share-buttons img {
  margin-right: 10px;
  width: 24px;
  height: 24px;
}

.share-buttons a:hover {
  background-color: #e0e0e0;
  transform: translateX(5px);
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
}

#release-info,
#android-info,
#version,
#release,
#alpha-version,
#ios-version,
#cli-release {
  color: yellow;
}

.kit_table {
  border: solid 2px;
  border-collapse: collapse;
  padding: 2px 6px 2px 8px;
  text-align: left;
  font-size: 0.8em;
}

.kit_table th,
td {
  border: solid 1px lightgrey;
  padding: 2px 6px 2px 6px;
  text-align: left;
}

.cloud_table {
  border: solid 2px;
  border-collapse: collapse;
  padding: 2px 6px 2px 6px;
  text-align: left;
  font-size: 1em;
}

.cloud_table th,
td {
  border: solid 1px rgb(134, 132, 132);
  padding: 2px 6px 2px 8px;
  text-align: left;
  font-size: 1em;
}

.cloud_table td:first-child {
  padding: 3px 1px 3px 3px !important;
}

.cloud_table th {
  font-size: 1.2em;
}

.styled_table {
  border: solid 3px yellow;
  border-collapse: collapse;
  width: 600px;
  font-size: 0.8em;
}

.styled_table th {
  border: solid 2px lightgrey;
  padding: 5px;
  word-wrap: break-word;
}

.styled_table td {
  border: solid 2px lightgrey;
  padding: 5px;
  word-wrap: break-word;
  text-align: center;
}

.styled_table th:first-child,
td:first-child {
  text-align: left;
  position: sticky;
}

.topnav {
  display: flex;
  justify-content: center;
  overflow: hidden;
  background-color: #1b1b1b;
  z-index: 5000;
  position: sticky;
  top: 0;
  width: 100%;
  line-height: 1.2em;
  transition: max-height 0.5s ease-out;
  max-height: 50px;
  /* Initial height */
  opacity: 1;
}

.topnav.responsive {
  max-height: 500px;
}

.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 19px;
  text-decoration: none;
  font-size: 17px;
  transition: 0.3s ease;
  border-radius: 4px;

}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  background-color: #c11c84;
  color: white;
}

.topnav .icon {
  display: none;
}

@media screen and (max-width: 950px) {
  .topnav {
    display: block;
    max-height: 50px;
  }

  .topnav a:not(:first-child) {
    display: none;
  }

  .topnav a.icon {
    float: right;
    display: block;
  }

  .topnav.responsive {
    position: sticky;
    max-height: 500px;
    /* Adjust to match the expanded height of your menu */
    background-color: #1b1b1b;
  }

  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }

  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }

  .fa {
    display: inline-block;
    font-size: 1.3em;
  }

  .fa-bars:before {
    content: "☰";
  }

  .popup {
    width: 90%;
  }

  .group {
    flex-direction: column;
  }

  #firmware-feed-container {
    flex-direction: column;
  }

  .box,
  .box-nb {
    padding: 10px;
    margin: 5px !important;
  }

}

.dth-calc {
  margin: 30px;
}

.container {
  max-width: 400px;
  margin: auto;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
  margin: 5px !important;
}

input,
button {
  width: 90%;
  padding: 5px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
  width: auto;
}

button:hover {
  background-color: #45a049;
}

.button-box {
  margin: 0 auto;
  display: flex;
  justify-content: center; 
  width: 100%;
  padding: 2px;
  box-sizing: border-box;
  z-index: 100
}

.gotomap-button {
  display: inline-block;
  font-size: smaller;
  margin-bottom: 5px;
  margin: 4px 0px;
  width: auto;
  background-color: #c11c84;
  color: white;
  padding: 3px 4px;
  border: white;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  margin-left: 5px;
  white-space: nowrap;
}
.gotomap-button:hover {
  background-color: #741450;
  transition: all 0.5s ease;
}

/*backgtound sticky */
selector:after {
  content: '';
  width: 100%;
  height: 100%;
  background-position: inherit;
  background-image: inherit;
  background-size: inherit;
  background-attachment: inherit;
  background-repeat: inherit;
  position: fixed;
  background-size: cover;
  top: 0;
  z-index: -1;
}

#tableWrapper {

  justify-content: left;
}

#receivednodes main,
#mapplot main {
  max-width: initial;
  padding-left: 0px;
  padding-right: 0px;
  justify-content: left;
}

.clickable {
  cursor: pointer;
  padding: 2px 4px;
  background-color: #0669d2;
  color: white;
  text-align: center;
  border-radius: 5px;
  white-space: nowrap;
}

.clickable:hover {
  background-color: #03376e;
  transition: all 0.5s ease;
}

.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  width: 80%;
  max-width: 500px;
  background-color: rgba(6, 6, 6, 1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  overflow: auto;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 10px;
  line-height: 1.2em;
  border: 1px solid #f1f1f1;
  z-index: 1000;
}

.popup-infront {
  z-index: 1001;
}

.popup .close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 35px;
}

.popup p {
  margin-bottom: 0;
  line-height: 1.4;
}

.but-mid-link,
.social-link {
  background-color: #c11c84;
  color: white;
  padding: 2px 5px;
  border: 2px;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  width: auto;

}

.social-link {
  width: 150px;
  display: inline-block;
  margin-bottom: 5px
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main.content {
  flex: 1;

}

.footer {
  background: #111;
  color: #fff;
  padding: 0px 0;
}

.footer .container {
  max-width: 100%;
  margin: auto;
  padding: 10px 0px 10px 40px;
  line-height: 1em;
}

.footer .row {
  display: flex;
  flex-wrap: wrap;
  max-width: 950px;
  margin: 0 auto;
}

.footer-col {
  width: 30%;
  padding: 0 5px;
}

.footer-col h4 {
  font-size: 18px;
  color: #fff;
  text-transform: capitalize;
  margin-bottom: 10px;
  margin-top: 5px;
  font-weight: 500;
  position: relative;
}

.footer-col ul {
  list-style: none;
  padding-left: 0;
}

.footer-col ul li:not(:last-child) {
  margin-bottom: 10px;
  padding-left: 0;
}

.footer-col ul li a {
  font-size: 16px;
  text-transform: capitalize;
  /* color: #bbb; */
  text-decoration: none;
  font-weight: 300;
  display: block;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: #fff;
  padding-left: 8px;
}

.footer-col .social-links a {
  display: inline-block;
  height: 40px;
  width: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 0 10px 10px 0;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  color: #fff;
  transition: all 0.5s ease;
}

.footer-col .social-links a:hover {
  color: #24262b;
  background-color: #fff;
}

@media (max-width: 767px) {
  .footer-col {
    width: 100%;
    margin-bottom: 10px;
  }
}

.group {
  display: flex;
  flex-wrap: wrap;
}

#firmware-feed-container {
  display: flex;
  flex-wrap: wrap;
}

.box {
  padding: 10px;
  margin: 10px;
  flex: 1;
  position: relative;
  border-radius: 10px;
  /*background: rgba(127, 126, 126, 0.25); */
  background: rgb(0 6 60 / 19%);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5.3px);
  -webkit-backdrop-filter: blur(5.3px);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.role-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.box-nb {
  padding: 0px;
  margin: 10px;
  flex: 1;
  position: relative;
  border-radius: 10px;
}

.firmware-feed-item {
  padding: 10px;
  margin: 10px;
  flex: 1;
  position: relative;
  border-radius: 10px;
  background: rgb(0 6 60 / 19%);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5.3px);
  -webkit-backdrop-filter: blur(5.3px);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.glass-button {
  padding: 2px 12px;
  margin: 3px;
  display: inline-block;
  text-align: center;
  color: #a0fb7b;
  text-decoration: none;
  border-radius: 5px;
  background: rgba(79, 79, 79, 0.16);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5.3px);
  -webkit-backdrop-filter: blur(5.3px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  font-size: smaller;
  padding: 0px 6px 0px 6px;
}

.glass-button:hover {
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  color: #e0e0e0;
  transition: all 0.5s ease;
  border-color: #d3d3d3;
}

.top-right {
  float: right;
  padding-left: 5px;
  padding-bottom: 5px;
}

svg circle {
  stroke: none !important;
  z-index: -1;
}

.thumbnail {
  width: 150px;
  height: auto;
  cursor: pointer;
  float: left;
  margin-right: 10px;
}

.thumb200 {
  width: 400px;
  height: auto;
  cursor: pointer;
  float: left;
  margin-right: 10px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.med {
  font-size: 2em;
}

.big {
  font-size: 3em;
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

@keyframes zoom {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

.modal-content {
  animation-name: zoom;
  animation-duration: 0.6s;
}

.close {
  position: absolute;
  top: 35px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

@media only screen and (max-width: 600px) {
  .thumbnail {
    width: 100%;
  }

  .modal-content {
    width: 100%;
  }
}

.padlock {
  filter: sepia(1) saturate(5) hue-rotate(60deg);

}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.animate-fadeout {
  animation: fadeout 10s forwards ease-in;
}

.animate-wave {
  animation: wave 1s ease infinite;
}

.animate-wavefade {
  animation: wave 1s ease infinite, fadeout 5s forwards ease-in;
}

.icon-container {
  width: 500px;
  height: 100px;
}

.container img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.icon-inline {
  display: flex;
  justify-content: space-evenly;
  max-width: 100%;
  margin-top: auto;
}

#client,
#client_mute,
#router,
#repeater,
#client_hidden,
#router_client,
.to-bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bottom-centre {
  position: absolute;
  bottom: 0;
} 

.icon-inline {
  display: flex;
  justify-content: space-evenly;
  max-width: 100%;
  margin-top: auto;
}

.push-to-bottom { 
  display: flex;
  flex-direction: column;
  justify-content: space-between;

}

.icon-image {
  display: inline;
  max-width: 150px;
  max-height: 40px;
  margin: 10px;
  width: auto;
  height: auto;
}

.icon-image-small {
  display: inline;
  max-width: 80px;
  max-height: 20px;
  margin: 5px;
  width: auto;
  height: auto;
}

.scroll-arrow {
  display: none;
  /* Hide by default */
  position: fixed;
  /* right: 0.75em; */
  bottom: 15%;
  font-family: Arial, sans-serif;
  font-size: 4em;
 color: #ffffff; 
/* background-color: rgba(0, 0, 0, 0.5) !important; */
  /* Add background for visibility */
  background-color: transparent !important;
  padding: 0px;
  border-radius: 10%;
  z-index: 999;
  /* Increase z-index */
  text-align: center;
  line-height: 0.75;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 1160px) {
  .scroll-arrow {
    display: block;
    /* Show on mobile devices */
  }
}

.scroll-leftright-arrows,
.scroll-fingerpoint {
  display: block;
  pointer-events: none;
}

@keyframes fadeout {
  100% {
    opacity: 0;
    display: none;
    z-index: -1;
  }
}

@keyframes wave {
  0% {
    right: 0;
  }

  50% {
    right: 1em;
  }

  100% {
    right: 0;
  }
}

.image {
  display: block;
  width: 100%;
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
}

.middle {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

.imagecontainer:hover .image {
 filter: brightness(50%);
}

.imagecontainer:hover .middle {
    opacity: 1; 
}

.text {
  background-color: #47f8b7 ;
  color: rgb(10, 0, 0);
  font-size: 16px;
  padding: 16px 32px;
  text-decoration: none;
}

#snow-container {
  position: relative; 
  overflow: hidden; 
  width: 100%;
}

#snow-container .snowflakes {
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; 
  pointer-events: none;
}

.snowflake {
  position: absolute;
  top: -10px;
  background: white;
  border-radius: 50%;
  filter: blur(2px); 
  animation: fall linear infinite;
}

@keyframes fall {
  to {
    transform: translateY(100vh) rotate(360deg);
  }
}

#snow-container img {
  display: block;
  max-width: 100%; 
  height: auto; 
  border-radius: 10px;
}
