@font-face {
  font-family: "Calibri";
  src: url("fonts/calibri-font-family/calibri-regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Calibri";
  src: url("fonts/calibri-font-family/calibri-bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Calibri";
  src: url("fonts/calibri-font-family/calibri-italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "Calibri";
  src: url("fonts/calibri-font-family/calibri-bold-italic.ttf")
    format("truetype");
  font-weight: bold;
  font-style: italic;
}

:root {
  --background-color: #fff;
  --text-color: #000;
  --header-status-item: #e1f5f9;
  --a-tag-regular: #191ba9;
  --a-tag-hover: #007bff;
  --return-unhover: #565151;
  --return-hover: #262525;
  --red-report-interruption: #940707;
  --red-report-interruption-hover: #ec0a0a;

  --operational-color: #0fe20f;
  --pending-color: #E4EB11;
  --maintenance-color: #0d7ae7;
  --incident-color: #ffbf00;
  --outage-color: #ff0000;
  --ceased-color: #FFA500;
  --terminated-color: #8B0000;
  --error-color: #b00020;
}

* {
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Calibri";
}

a {
  color: var(--a-tag-regular);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--a-tag-hover);
  border-bottom: 1px solid var(--a-tag-hover);
}

a.no-custom {
  color: var(--text-color);
  text-decoration: none;
  border-bottom: none;
  transition: none;
}
a.no-custom:hover {
  border-bottom: none;
}

/*Icon coloring*/
i.fa-solid.fa-circle-check {
  color: var(--operational-color);
}
i.fa-regular.fa-hourglass-half  {
  color: var(--pending-color);
}
i.fa-solid.fa-wrench {
  color: var(--maintenance-color);
}
i.fa-solid.fa-triangle-exclamation {
  color: var(--incident-color);
}
i.fa-solid.fa-circle-xmark {
  color: var(--outage-color);
}
i.fa-solid.fa-ban {
  color: var(--ceased-color);
}
i.fa-solid.fa-circle-minus {
  color: var(--terminated-color);
}
i.fa-solid.fa-circle-exclamation {
  color: var(--error-color);
}
/*Icon coloring*/

/*@media (prefers-color-scheme: dark) {
  body {
    --background-color: #131516;
    --header-status-item: #0c343d;
    --text-color: #fff;
    --return-unhover: #9f9595;
    --return-hover: #c5bebe;
    --a-tag-regular: #6d9bdb;
    --a-tag-hover: #699de6;
    background-color: var(--background-color);
  }
}*/

.dark-mode {
  --background-color: #131516;
  --header-status-item: #0c343d;
  --text-color: #fff;
  --return-unhover: #9f9595;
  --return-hover: #c5bebe;
  --a-tag-regular: #6d9bdb;
  --a-tag-hover: #699de6;
  background-color: var(--background-color);
}

.container {
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--background-color);
  color: var(--text-color);
  padding-bottom: 100px;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 1s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.terminal-loader {
  border: 0.1em solid #333;
  background-color: #1a1a1a;
  color: #0f0;
  font-size: 20px;
  padding: 20px 15px;
  width: 500px;
  height: 300px;
  margin: 100px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.terminal-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background-color: #333;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  padding: 2px 15px;
  box-sizing: border-box;
}

.terminal-controls {
  float: right;
}

.terminal-control {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-left: 5px;
  border-radius: 50%;
  background-color: #777;
}

.terminal-control.close {
  background-color: var(--outage-color);
}
.terminal-control.minimize {
  background-color: var(--incident-color);
}
.terminal-control.maximize {
  background-color: var(--operational-color);
}

.terminal-title {
  float: left;
  margin-top: 0;
  color: #eee;
}

.terminal-text-container {
  width: fit-content;
}

.terminal-text {
  color: var(--a-tag-hover);
  white-space: pre-line;
  text-align: left;
  font-size: 18px;
  margin-top: 25px;
  min-width: 2px;
}

.terminal-typewriter {
  overflow: hidden;
  border-right: 2px solid var(--a-tag-hover);
  white-space: nowrap;
  margin: 0;
  width: fit-content;
  display: block;
  text-align: left;
  letter-spacing: 2px;
  animation: blink-caret 0.75s step-end infinite alternate;
  position: relative;
  margin-bottom: 10px;
}

.terminal-typewriter::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid var(--a-tag-hover);
  margin-right: 10px;
}

.terminal-typewriter::after {
  content: "";
  display: inline-block;
}

.terminal-typewriter.error {
  color: var(--error-color);
  border-color: var(--error-color);
}

.terminal-typewriter.error::before {
  border-left-color: var(--error-color);
}

.loading-overlay.loading {
  opacity: 1;
  pointer-events: all;
}

@keyframes blink-caret {
  50% {
    border-right-color: transparent;
  }
}

.header {
  display: flex;
  width: 100%;
  background-color: var(--header-status-item);
  height: 100px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 20px 100px;
}

.header-pre {
  display: flex;
  align-items: center;
}

.header-img img {
  height: 75px;
  transition: all 0.3s ease;
}

.header-img a:hover {
  border-color: transparent;
}

.header-img a:hover img {
  transform: translateY(-10px) scale(1.02);
}

.header-return {
  margin-left: 100px;
}

.header-content .header-pre .header-return span.btb-show {
  display: none;
}

.header-return a {
  font-size: 18px;
  color: var(--return-unhover);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}

.header-return a:hover {
  font-size: 18px;
  color: var(--return-hover);
  border-bottom: 1px solid var(--return-hover);
}

.header-report {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.header-report button {
  font-size: 20px;
  width: 125px;
  height: 45px;
  outline: none;
  border: none;
  color: #fff;
  background-color: var(--red-report-interruption);
  border-radius: 5px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.3s ease;
}

.header-report button:hover {
  transform: translateY(-5px);
  background-color: var(--red-report-interruption-hover);
}

/* switch settings 👇 */

.ui-switch {
  /* switch */
  --switch-bg: rgb(135, 150, 165);
  --switch-width: 48px;
  --switch-height: 20px;
  /* circle */
  --circle-diameter: 32px;
  --circle-bg: rgb(0, 56, 146);
  --circle-inset: calc((var(--circle-diameter) - var(--switch-height)) / 2);
}

.ui-switch input {
  display: none;
}

.slider {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: var(--switch-width);
  height: var(--switch-height);
  background: var(--switch-bg);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
}

.slider .circle {
  top: calc(var(--circle-inset) * -1);
  left: 0;
  width: var(--circle-diameter);
  height: var(--circle-diameter);
  position: absolute;
  background: var(--circle-bg);
  border-radius: inherit;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiCiAgICAgICAgZD0iTTkuMzA1IDEuNjY3VjMuNzVoMS4zODlWMS42NjdoLTEuMzl6bS00LjcwNyAxLjk1bC0uOTgyLjk4Mkw1LjA5IDYuMDcybC45ODItLjk4Mi0xLjQ3My0xLjQ3M3ptMTAuODAyIDBMMTMuOTI3IDUuMDlsLjk4Mi45ODIgMS40NzMtMS40NzMtLjk4Mi0uOTgyek0xMCA1LjEzOWE0Ljg3MiA0Ljg3MiAwIDAwLTQuODYyIDQuODZBNC44NzIgNC44NzIgMCAwMDEwIDE0Ljg2MiA0Ljg3MiA0Ljg3MiAwIDAwMTQuODYgMTAgNC44NzIgNC44NzIgMCAwMDEwIDUuMTM5em0wIDEuMzg5QTMuNDYyIDMuNDYyIDAgMDExMy40NzEgMTBhMy40NjIgMy40NjIgMCAwMS0zLjQ3MyAzLjQ3MkEzLjQ2MiAzLjQ2MiAwIDAxNi41MjcgMTAgMy40NjIgMy40NjIgMCAwMTEwIDYuNTI4ek0xLjY2NSA5LjMwNXYxLjM5aDIuMDgzdi0xLjM5SDEuNjY2em0xNC41ODMgMHYxLjM5aDIuMDg0di0xLjM5aC0yLjA4NHpNNS4wOSAxMy45MjhMMy42MTYgMTUuNGwuOTgyLjk4MiAxLjQ3My0xLjQ3My0uOTgyLS45ODJ6bTkuODIgMGwtLjk4Mi45ODIgMS40NzMgMS40NzMuOTgyLS45ODItMS40NzMtMS40NzN6TTkuMzA1IDE2LjI1djIuMDgzaDEuMzg5VjE2LjI1aC0xLjM5eiIgLz4KPC9zdmc+");
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  -o-transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
    0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
}

.slider .circle::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  border-radius: inherit;
  -webkit-transition: all 500ms;
  -o-transition: all 500ms;
  transition: all 500ms;
  opacity: 0;
}

/* actions */

.ui-switch input:checked + .slider .circle {
  left: calc(100% - var(--circle-diameter));
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiCiAgICAgICAgZD0iTTQuMiAyLjVsLS43IDEuOC0xLjguNyAxLjguNy43IDEuOC42LTEuOEw2LjcgNWwtMS45LS43LS42LTEuOHptMTUgOC4zYTYuNyA2LjcgMCAxMS02LjYtNi42IDUuOCA1LjggMCAwMDYuNiA2LjZ6IiAvPgo8L3N2Zz4=");
}

.ui-switch input:active + .slider .circle::before {
  -webkit-transition: 0s;
  -o-transition: 0s;
  transition: 0s;
  opacity: 1;
  width: 0;
  height: 0;
}

.container-main {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.overall-status {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 80px;
}

.overall-status i {
  font-size: 80px;
  margin-bottom: 10px;
}

.overall-status h1 {
  font-size: 40px;
  margin: 10px;
  text-align: center;
}

.overall-status p {
  font-size: 22px;
  margin: auto 50px;
  text-align: center;
  width: 50%;
}

.interruption-desc {
  border: 2px solid var(--header-status-item);
  text-align: left !important;
  padding: 25px;
  border-radius: 8px;
}

#overallStatusInfo i {
  font-size: 22px;
}

.container-main {
  width: 100%;
}

.special-notice {
  width: 60%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}

.special-notice h2 {
  font-size: 30px;
  text-align: center;
}

.special-notice h3 {
  font-size: 20px;
  text-align: center;
}

.statuses {
  width: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.statuses-header {
  width: 100%;
  display: flex;
  justify-content: space-around;
  margin-bottom: 50px;
}

.statuses-header .title p {
  font-weight: 700;
  font-size: 22px;
}

.statuses-header .info {
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
  font-size: 20px;
}

.statuses-header .info i {
  margin-right: 5px;
  position: relative;
  top: 1px;
  font-size: 20px;
}

.statuses-main {
  width: 95%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  background-color: var(--header-status-item);
  padding: 20px;
  border-radius: 20px;
  box-shadow: -3px 2px 4px rgba(0, 0, 0, 0.1);
  margin-left: 50px;
}

.status-item:nth-child(even) {
  box-shadow: 3px 2px 4px rgba(0, 0, 0, 0.1);
}

.status-item .status-item-head {
  max-width: 90%;
}

.status-item .status-item-head h4 {
  font-size: 20px;
}

.status-item .status-item-status i {
  font-size: 22px;
  transition: all 0.5s ease;
}

.status-item .status-item-head hr {
  margin-top: 5px;
  margin-bottom: 3px;
}

.status-item-status {
  position: relative;
  transition: all 0.5s ease;
}

.visit-website {
  position: absolute;
  top: 0;
  left: 0;
}

.visit-website a {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: all 0.5s ease;
  border-bottom: none;
}

.status-item:hover .status-item-status i {
  opacity: 0;
  pointer-events: none;
}

.status-item:hover .status-item-status .visit-website a,
.status-item:hover .status-item-status .visit-website i {
  opacity: 1;
  pointer-events: all;
  text-decoration: none;
}

.status-item .status-item-status .visit-website i:hover {
  transform: translateY(-2px) scale(1.2);
}

.interruptions-main {
  display: flex;
  flex-direction: column;
  width: 80%;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.interruption-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90%;
  border-radius: 20px;
  border: 5px solid var(--header-status-item);
  overflow: hidden;
  color: var(--text-color);
}

.interruption-header {
  background-color: var(--header-status-item);
  padding: 10px 50px;
  margin-bottom: 5px;
  width: 95%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.interruption-severity,
.interruption-status {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 18px;
}

.interruption-content {
  padding: 10px 50px;
  font-size: 22px;
  margin: 50px 10px;
}

.interruption-footer {
  padding: 10px 50px;
  background-color: var(--header-status-item);
  width: 95%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comments-main {
  display: flex;
  flex-direction: column;
  width: 80%;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.comment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  border-radius: 20px;
  border: 2px solid var(--header-status-item);
  overflow: hidden;
  color: var(--text-color);
  flex-direction: column;
  padding: 0 50px;
  text-align: center;
}

.comment-content {
  width: fit-content;
  font-size: 22px;
  height: 100%;
  padding: 20px;
}

.comment-content p {
  width: fit-content;
  text-align: start;
}

.comment-data {
  text-align: center;
  font-size: 18px;
  box-shadow: 0 -6px 100px var(--header-status-item);
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  width: 120%;
  margin-top: 20px;
  padding: 5px 20px;
}

@media (max-width: 1320px) {
  .statuses-main {
    grid-template-columns: 1fr;
  }

  .interruptions-main {
    width: 115%;
  }

  .status-item:nth-child(even) {
    margin-left: auto;
    box-shadow: -3px 2px 4px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 1130px) {
  .statuses {
    width: 90%;
  }

  .statuses-header {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .status-item {
    margin-left: 0;
    width: 100%;
  }

  .overall-status p {
    width: 90%;
  }
}

@media (max-width: 770px) {
  .header-content {
    margin: 20px 40px;
  }

  .statuses-main {
    width: 85%;
  }

  .statuses-header .title p {
    font-size: 25px;
    margin-bottom: 10px;
  }

  .statuses-header .info {
    display: grid;
    justify-content: flex-start;
    align-items: flex-start;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    font-size: 22px;
  }

  .statuses-header .info span:nth-last-child(1) {
    grid-column: 1 / span 2;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .interruption-header {
    flex-direction: column-reverse;
    gap: 20px;
  }

  .interruption-severity,
  .interruption-status {
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 50%;
  }

  .interruption-footer {
    flex-direction: column;
    gap: 10px;
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .header-content .header-pre .header-return {
    margin-left: 20px;
  }

  .header-content .header-pre .header-return span.btb-hide {
    display: none;
  }
  .header-content .header-pre .header-return span.btb-show {
    display: inline;
  }

  .header-report button {
    width: 75px;
    height: 30px;
    font-size: 16px;
  }

  .overall-status h1 {
    font-size: 30px;
  }

  .overall-status p {
    font-size: 18px;
  }

  .statuses-header .title p {
    font-size: 16px;
  }

  .statuses-header .info {
    font-size: 16px;
    gap: 20px;
  }

  .statuses-main {
    width: 95%;
  }

  .status-item {
    padding: 20px 0;
  }

  .status-item-head {
    margin-left: 15px;
  }

  .status-item-status {
    margin-right: 15px;
  }

  .interruption-header {
    text-align: center;
  }

  .interruption-severity,
  .interruption-status {
    width: 90%;
  }

  .interruption-content {
    padding: 10px;
  }
}

@media (max-width: 430px) {
  .header-img {
    display: none;
  }

  .header-content .header-pre .header-return {
    margin-left: 0 !important;
  }
}
