#iframe-container {
  position: fixed;
  top : 30px;
  left: 30px;
  width: calc(100vw - 60px);
  height: calc(100vh - 60px);

  border: 5px solid #fff;
  background-color: #fff;

  z-index: 1000000;
}

#iframe-container.hidden {
  display: none;
}


#iframe-preview {
  width: 100%;
  height: 100%;
  border: none;
}

#close-iframe-container {
  cursor: pointer;
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 2rem;
}



/* =============================================== */
#header {
  padding: 10px;
  height: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

/* =============================================== */
.networks-switches {
  display: flex;
  align-items: center;
}
.networks-switches h2 {
  font-size: 1.5rem
}


.network-switch {
  border: 1px solid #fff;
  border-radius: 20px;
  padding: 2px 8px;
  background-color: #fffa;
  color: #000;
  margin: 4px;
}


.hidden {
  display: none;
}
/* =============================================== */


.map-element:hover {
  /* z-index: 1000000; */
}


/* ============================================== */


.map-element.network {
  /* transition: all; */
  opacity: 0.7;
  /* animation: flow 5s linear infinite; */
  will-change: opacity;
}
.map-element.network.network--web {
  filter: sepia(1) hue-rotate(180deg) saturate(3);
}

.map-element.network.network--global {
  filter: sepia(1) hue-rotate(90deg) saturate(3);
}

.map-element.network.network--docker-api {
  filter: sepia(1) hue-rotate(-45deg) saturate(3);
}



/* =============================================== */

.smoke::after,
.smoke::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    width: 12px;
    height: 25px;
    background: #f0f;
    border-radius: 50%;
    opacity: 0.7;
    animation: smoke 3s infinite;
}

.smoke::before {
    width: 15px;
    height: 30px;
    animation: smoke 4s infinite ease-in-out;
}

@keyframes smoke {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-50%) translateY(-30px) scale(1.5);
        opacity: 0.3;
    }
    100% {
        transform: translateX(-50%) translateY(-50px) scale(2);
        opacity: 0;
    }
}


/* =============================================== */

*[data-cpu-usage="xxs"] .cpu-indicator {
  background-color: #0f09;
  border: 1px solid #080;
  animation: orbit 20s linear infinite;
}

*[data-cpu-usage="xs"] .cpu-indicator {
  background-color: #af09;
  border: 1px solid #580;
  width: 25px;
  height: 25px;
  animation: orbit 10s linear infinite;
}


*[data-cpu-usage="critical"] .cpu-indicator {
  background-color: #f00;
  border: 4px solid #f0f;
  width: 30px;
  height: 30px;
  top: calc(50% - 15px);
  left: calc(50% - 15px);
  animation: orbit-pulse 0.5s linear infinite;
  z-index: 1000000;
}



.cpu-indicator {
  width: 20px;
  height: 20px;
  background-color: transparent;
  border-radius: 50%;
  position: absolute;
  top: calc(50% - 10px);
  left: calc(50% - 10px);
  transform: translate(-50%, -100px);
  animation: orbit 2s linear infinite;
  z-index:10
}

@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(100px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(100px) rotate(-360deg);
  }
}

@keyframes orbit-pulse {
  0% {
    transform: rotate(0deg) translateX(100px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(100px) rotate(-360deg) scale(2.5);
  }
}