@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap");

/* Header/Blog Title */
.header {
    padding: 30px;
    text-align: center;
    background: rgb(167, 167, 167);
  }
  
  .header h1 {
    font-size: 50px;
  }
  
  /* Style the top navigation bar */
  .topnav {
    overflow: hidden;
    background-color: #333;
  }
  
  /* Style the topnav links */
  .topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none !important;
  }

:root {
  --text: #000;
  --bg: #fff;
}

.loader{
  width: 100px;
  aspect-ratio: 1;
  display: grid;
  border-radius: 50%;
  z-index: 2;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -50px;
  margin-left: -50px;
  width: 100px;
  height: 100px;
  animation: l23 1s infinite steps(12);
}

@media (prefers-color-scheme: light) {
  :root {
    --text: #fff;
    --bg: #000;
  }

  .header {
    padding: 30px;
    text-align: center;
    background: rgb(73, 73, 73);
  }

  .loader {
    background:
    linear-gradient(0deg ,rgb(255 255 255/50%) 30%,#0000 0 70%,rgb(255 255 255/100%) 0) 50%/8% 100%,
    linear-gradient(90deg,rgb(255 255 255/25%) 30%,#0000 0 70%,rgb(255 255 255/75% ) 0) 50%/100% 8%;
    background-repeat: no-repeat;
  }
}

body {
  font-family: "Source Sans Pro", sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #fff;
    --bg: #000;
  }

  .header {
    padding: 30px;
    text-align: center;
    background: rgb(73, 73, 73);
  }

  .loader {
    background:
    linear-gradient(0deg ,rgb(255 255 255/50%) 30%,#0000 0 70%,rgb(255 255 255/100%) 0) 50%/8% 100%,
    linear-gradient(90deg,rgb(255 255 255/25%) 30%,#0000 0 70%,rgb(255 255 255/75% ) 0) 50%/100% 8%;
    background-repeat: no-repeat;
  }
}

.iptables{
  overflow: scroll;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-x: hidden;
  margin: 5px;
  background-color: #333;
}

@media (pointer: coarse)  {
  .stat_blocks {
    display: grid;
    gap: 15px 10px;
    margin: 10px;
  }

    .profile-div{
      display: flex;
      flex-direction: column;
    }

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

}

@media (pointer: fine), (pointer: none) {
  .stat_blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 10px;
    margin: 10px;
  }

  .profile-div{
    justify-content: space-between;
  }

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

}

.video_block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgb(51 51 51);
  padding: 5px 5px;
}

a:link    { color: inherit; text-decoration: none; text-decoration-line: none; }
a:visited { color: inherit; text-decoration: none; text-decoration-line: none; }
a:hover   { color: inherit; text-decoration: none; text-decoration-line: none; }
a:active  { color: inherit; text-decoration: none; text-decoration-line: none; }


.loader::before,
.loader::after {
  content: "";
  grid-area: 1/1;
  border-radius: 50%;
  background: inherit;
  opacity: 0.915;
  transform: rotate(30deg);
}
.loader::after {
  opacity: 0.83;
  transform: rotate(60deg);
}
@keyframes l23 {
  100% {transform: rotate(1turn)}
}

.login-div{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 200px;
    left: 0;
    right: 0;
    margin: auto;
    min-height: 100px;
    overflow: hidden;
    display: flex;
    flex-flow: column;
    flex-wrap: nowrap
    align-items: center;
    background-color: #333;
    padding: 15px;
}

.profile-div{
  display: flex;
}

.info-div{
  display: flex;
  flex-direction: column;
}

table, th, td {
  border: 1px solid black;
}

th, td {
  padding: 15px;
}

.dot {
  height: 15px;
  width: 15px;
  border-radius: 50%;
  display: inline-block;
}

.container {
  position: absolute;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-flow: column;
  align-items: center;
  padding: 7px;
  top: 50%;
  left: 50%;
  display: block;
  width: 200px;
  min-height: 150px;
  margin-top: -107px; /* HALF OF THE HEIGHT */
  margin-left: -107px; /* HALF OF THE WIDTH */
}

.container-counter {
  background-color: #333;
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]:after {
  content: attr(data-tooltip);
  position: absolute;
  top: -100%;
  left: -250%;
  transform: translateX(-50%);
  background: gray;
  word-break: keep-all;
  opacity: 0;
  visibility: hidden;
}

[data-tooltip]:hover:after {
  opacity: 1;
  visibility: visible;
}
