html {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: inline-block;
  text-align: left;
}

h1 {
  font-size: 1.8rem;
  color: black;
  font-family: Arial, Helvetica, sans-serif;
}

p {
  font-size: 1.4rem;
}

a {
  color: #969696;
  text-decoration: none;
}

a:hover {
  color: #00BBEE;
}

.topnav {
  overflow: hidden;
  background-color: #F1C700;
  min-width: 300px;
  text-align: center;
  box-shadow: 1px 4px 12px black;
  position: fixed;
  top: 0;
  z-index: 3001; /* keep navbar above login overlay */
}

.topnav td {
  vertical-align: middle;
}

.footer {
  display: block;
  background-color: #232323;
  box-shadow: 1px -4px 12px #232323;
}

body {
  margin: 0;
  min-width: 300px;
  background-color: #444444;
  overflow-y: scroll;
}

.content {
  padding: 0px;
}

.grid-container {
  display: grid;
  grid-template-areas:
    'header'
    'main'
    'footer';
  gap: 0px;
  padding: 0px;
}

.item1 {
  grid-area: header;
  width: 100%;
  top: 0;
  z-index: 3000;
}

.item2 {
  grid-area: main;
  padding-left: 25px;
  padding-right: 25px;
  padding-top: 50px;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.item3 {
  grid-area: footer;
  width: 100%;
  text-align: center;
}

.bar1, .bar2, .bar3 {
  width: 35px;
  height: 5px;
  background-color: #333;
  margin: 6px 0;
  transition: 0.2s;
}

.change .bar1 {
  transform: translate(0, 11px) rotate(-45deg);
}

.change .bar2 {opacity: 0;}

.change .bar3 {
  transform: translate(0, -11px) rotate(45deg);
}

.is-hidden {
  display: none !important; /* Force hiding for table cells */
}

.card-grid {
  max-width: none;
  margin: 0 auto;
  display: grid;
  grid-gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.header-btn {
  height: 30px;               /* Button height */
  margin-right: 4px;          /* Space between buttons */
  margin-bottom: 4px;         /* Space between buttons */
  padding: 0 5px;             /* Horizontal padding */
  font-size: 14px;
  font-weight: bold;
  color: white;             /* Text color */
  background-color: #202020;     /* Default background */
  border: 2px solid black;    /* Border color */
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  border-radius: 4px;         /* Rounded corners */
}

.header-btn.selected {
  background-color: #202020;  /* Highlight background for selected button */
  color: #F1C700;                /* Text color for selected button */
  outline: none;
}

.header-btn:hover {
  background-color: #F1C700;  /* Highlight background on hover/focus */
  color: black;                /* Text color on highlight */
  outline: none;
}

.card.nav-bar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  height: 50px;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.sidecard {
  background-color: #393839;
  box-shadow: 2px 2px 12px 2px black;
  color: white;
  margin-top: 0px;
  margin-left: auto;
  margin-bottom: 0px;
  margin-right: auto;
  height: 100%;
  vertical-align: middle;
  padding: 10px;
  padding-top: 120px;
}

#actionButtonContainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 200px;
  height: 250px;
  position: relative;
  justify-content: center;   /* horizontal */
  align-items: center;       /* vertical */
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Positions */
.pos-center { grid-area: 2 / 2; }
.pos-tl { grid-area: 1 / 1; }
.pos-tr { grid-area: 1 / 3; }
.pos-bl { grid-area: 3 / 1; }
.pos-br { grid-area: 3 / 3; }

.color-button {
  display: flex;
  align-items: center;
  color: white;             /* Text color */
  background-color: #202020;     /* Default background */
  border: none;
  padding: 5px 10px;
  margin-bottom: 6px;
  cursor: pointer;
  border: 2px solid black;    /* Border color */
  width: 100%;
  text-align: left;
  font-size: 14px;
  font-weight: bold;
  border-radius: 4px; /* <-- rounds the button corners */
}

.color-box {
  width: 4px;
  height: 16px;
  margin-right: 8px;
  border-radius: 1px;
  border: 1px solid black;    /* Border color */
  flex-shrink: 0;
}

.color-button.selected {
  background-color: #202020;  /* Highlight background for selected button */
  color: #F1C700;                /* Text color for selected button */
  outline: none;
}

.color-button:hover {
  background-color: #F1C700;  /* Highlight background on hover/focus */
  color: black;                /* Text color on highlight */
  outline: none;
}

.color-button:first-child {
  margin-top: 10px;
}

.card {
  background-color: #393839;
  box-shadow: 4px 4px 12px 4px black;
  position: relative;
  color: white;
  border-radius: 9px;
  margin-top: 20px;
  margin-left: auto;
  margin-bottom: 20px;
  margin-right: auto;
  min-width: 200px;
  max-width: 900px;
  vertical-align: middle;
  padding-top: 10px;
  padding-bottom: 20px;
}

.card_active {
  box-shadow: 1px 2px 8px 1px #00BBEE;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  color: white;
  text-align: center;
  margin-bottom: 10px;
  text-shadow: 4px 4px 12px black;
}

.card-title-inactive {
  color: #969696;
}

.expand-button {
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  text-align: right;
  margin-right: 20px;
  margin-top: 10px;
}

.a-button, .b-button, .c-button {
  padding: 8px 15px;
  background-color: #e1e1e1ff;
  color: black;
  border: 2px solid black;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  text-align: left;
  box-shadow: 4px 4px 4px black;
  margin-left: 10px; /* space between buttons */
  margin-right: 10px; /* space between buttons */
}

.c-button {
  padding: 2px 2px;
  width: 140px;              /* same width for all */
  height: 60px;
  border: 3px solid black;
  margin: 0px;
  font-size: 16px;
  font-weight: 900;
  border-radius: 15px; /* <-- rounds the button corners */
  text-align: center;
  display: inline-flex;      /* flex for centering */
  justify-content: center;   /* horizontal center */
  align-items: center;       /* centers text vertically */
}

.a-button:hover, .c-button:hover {
  background-color: #F1C700;
  box-shadow: 4px 4px 24px black;
}

.b-button:hover {
  background-color: #f10000ff;
  box-shadow: 4px 4px 24px black;
}

.c-button:disabled {
  background-color: #ccc;  /* grey background */
  color: #666;             /* dimmed text */
  border: 1px solid #999;  /* lighter border */
  box-shadow: none;        /* remove shadow */
  cursor: not-allowed;     /* "blocked" cursor */
}

.overlay-window {
  display: none;
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  padding: 10px;
  background-color: #696969;
  border: 1px solid #F1C700;
  border-radius: 12px;
  box-shadow: 4px 4px 12px black;
  z-index: 1000 !important;
}

.overlay-window.active {
  display: inline-block;
}

.overlay-title {
  font-size: 15px;
  font-weight: bold;
  color: #F1C700;
  text-shadow: 4px 4px 12px black;
}

.delete-event-button {
  padding: 8px 15px;
  background-color: #AB0000;
  color: black;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  text-align: left;
}

.delete-event-button:hover {
  background-color: black;
  color: #F1C700;
}

.circular-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 15%;
  border: none;
  background-color: white;
  color: white;
  opacity: 0.1;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s;
}

.circular-button:hover {
  background-color: yellow;
  opacity: 0.4;
}

.slanted-edge-left1 {
  position: absolute;
  cursor: pointer;
  --p: 5px; /* control the shape (can be percentage) */
  height: 60px;
  aspect-ratio: 1.1;
  clip-path: polygon(0 0,100% 0,100% 100%,var(--p) 100%);
  background: black;
  opacity: 0.01;
  border-radius: 10px;
}

.slanted-edge-left1:hover {
  background-color: white;
  opacity: 0.3;
}

.slanted-edge-right1 {
  position: absolute;
  cursor: pointer;
  --p: 5px; /* control the shape (can be percentage) */
  height: 60px;
  aspect-ratio: 1.1;
  clip-path: polygon(0 0,100% 0,calc(100% - var(--p)) 100%,0 100%);
  background: black;
  opacity: 0.01;
  border-radius: 10px;
}

.slanted-edge-right1:hover {
  background: white;
  opacity: 0.3;
}

.slanted-edge-left2 {
  position: absolute;
  cursor: pointer;
  --p: 5px; /* control the shape (can be percentage) */
  height: 58px;
  aspect-ratio: 1.05;
  clip-path: polygon(0 0,100% 0,100% 100%,var(--p) calc(100% - var(--p)));
  background: black;
  opacity: 0.01;
  border-radius: 10px;
}

.slanted-edge-left2:hover {
  background-color: white;
  opacity: 0.3;
}

.slanted-edge-right2 {
  position: absolute;
  cursor: pointer;
  --p: 5px; /* control the shape (can be percentage) */
  height: 58px;
  aspect-ratio: 1.05;
  clip-path: polygon(0 0,100% 0,calc(100% - var(--p)) calc(100% - var(--p)),0 100%);
  background: black;
  opacity: 0.01;
  border-radius: 10px;
}

.slanted-edge-right2:hover {
  background: white;
  opacity: 0.3;
}

.input-group {
  display: inline;
}

.input-group label {
  display: inline;
  font-weight: bold;
}

.input-group input[type="time"], .input-group select {
  width: 100%;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.checkbox-group label {
  display: inline;
  margin-bottom: 5px;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 5px;
  display: inline;
}

.close-button {
  padding: 8px 15px;
  background-color: #969696;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  box-shadow: 4px 4px 12px black;
}

.close-button:hover {
  color: white;
  background-color: red;
  box-shadow: 4px 4px 24px black;
}

.button {
  padding: 10px 10px 10px 10px;
  font-size: 24px;
  text-align: center;
  outline: none;
  color: #fff;
  background-color: black;
  border: none;
  border-radius: 5px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  font-family: cursive;
}

.button:active {
  background-color: #00BBEE;
  box-shadow: 2 2px #CDCDCD;
  transform: translateY(2px);
}

.tri-state-toggle {
  background: rgba(0,0,0,0.8);
  box-shadow: inset 0 2px 8px 0 rgba(165,170,174,0.25);
  border-radius: 24px;
  display: inline-block;
  overflow: hidden;
  display: inline-flex;
  flex-direction: row;
  transition: all 500ms ease;
}

.tri-state-toggle-button {
  border-radius: 22px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  background-color: transparent;
  border: 0px solid transparent;
  margin: 2px;
  color: white;
  cursor: pointer;
  transition: all 0.5s ease;
}

.tri-state-toggle-button:hover {
  background-color: #00BBEE;
}

.tri-state-toggle-button.active {
  background-color: #F1C700;
  border: 0px solid rgba(207,207,207,0.6);
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.1);
  color: black;
  font-weight: 500;
  transition: all .5s ease-in;
}

.mini-tri-state-toggle {
  background: rgba(0,0,0,0.8);
  box-shadow: inset 0 2px 8px 0 rgba(165,170,174,0.25);
  border-radius: 18px;
  display: inline-block;
  overflow: hidden;
  display: inline-flex;
  flex-direction: row;
  transition: all 500ms ease;
}

.mini-tri-state-toggle-button {
  border-radius: 22px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  background-color: transparent;
  border: 0px solid transparent;
  margin: 2px;
  color: white;
  cursor: pointer;
  transition: all 0.5s ease;
}

.mini-tri-state-toggle-button.exist {
  background-color: #e1e1e1ff;
  border: 0px solid rgba(207,207,207,0.6);
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.1);
  color: black;
  font-weight: 500;
  transition: all .5s ease-in;
}

.mini-tri-state-toggle-button:hover {
  background-color: #00BBEE;
}

.mini-tri-state-toggle-button.active {
  background-color: #F1C700;
  border: 0px solid rgba(207,207,207,0.6);
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.1);
  color: black;
  font-weight: 500;
  transition: all .5s ease-in;
}

.mini-tri-state-toggle-button.deactive {
  background-color: #ff0000ff;
  border: 0px solid rgba(207,207,207,0.6);
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.1);
  color: black;
  font-weight: 500;
  transition: all .5s ease-in;
}

.settings {
  background-color: #555555;
  border-radius: 12px;
}

.settings.hidden {
  display: none;
}

.state {
  font-size: 1.5rem;
  color: #8c8c8c;
  font-weight: bold;
}

.state2 {
  font-size: 1rem;
  color: #8c8c8c;
}

.slider {
  margin: 0 auto;
  width: 100%;
  max-width: 700px;
  height: 15px;
  border-radius: 10px;
  background: #FFD65C;
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: black;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #034078;
  cursor: pointer;
}

.switch {
  padding-left: 5%;
  padding-right: 5%;
}

.console {
  background: black;
  text-align: left;
  color: rgba(240, 196, 28, 1);
  overflow-x: scroll;
  height: 690px;
  width: 90%;
  max-width: 900px;
  min-width: 200px;
  border: 1px solid #ccc;
  font: 12px/18px Monospace, Garamond, Serif;
  overflow: scroll;
  display: none;
  margin: 0 auto; /* centers the console horizontally */
  padding: 5px 10px;
}

.collapsible {
  background-color: white;
  color: black;
  cursor: pointer;
  padding-bottom: 10px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1.4rem;
  font-weight: bold;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 10px;
  font-size: 12px;
  /* Position the tooltip */
  position: absolute;
  top: 20px;
  left: -20px;
  z-index: 1;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  text-align: left;
}

.led {
  width: 26px;
  height: 26px;
  border-style: solid;
  border-color: #969696;
  border-width: 4px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 4px 4px 12px black;
  background-color: black;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.led.on {
  background-color: #F1C700;
}

.tinyled {
  width: 6px;
  height: 6px;
  border-style: solid;
  border-color: #969696;
  border-width: 2px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 4px 4px 12px black;
  background-color: black;
  transition: background-color 0.3s ease;
}

.tinyled.on {
  background-color: #f10000;
}

.tinyled.hidden {
  display: none;
}

.miniled {
  width: 24px;
  height: 24px;
  border-style: solid;
  border-color: #969696;
  border-width: 4px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 4px 4px 12px black;
  background-color: black;
  transition: background-color 0.3s ease;
}

.miniled.on {
  background-color: #F1C700;
}

.miniled.hidden {
  display: none;
}

.toggleSwitch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  vertical-align: middle;
}

.toggleSwitch.hidden {
  display: none;
}

.miniToggleSwitch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  vertical-align: middle;
}

.miniToggleSwitch.hidden {
  display: none;
}

.toggleSwitch input,
.miniToggleSwitch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggleSlider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #969696;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 34px;
  box-shadow: 4px 4px 12px black;
}

.miniToggleSlider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #969696;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 22px;
  box-shadow: 4px 4px 12px black;
}

.toggleSlider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: black;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

.miniToggleSlider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: black;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

.numberIndicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  position: relative;        /* create positioning context */
  box-shadow: 4px 4px 12px black;
  color: white;             /* Text color */
  background-color: #202020;     /* Default background */
  border: 2px solid black;    /* Border color */
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.2s, color 0.2s;
}

.numberIndicator span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* perfect centering */
}

.numberIndicator[onclick]:hover {
  background-color: #F1C700;  /* Highlight background */
  color: black;               /* Text color */
  outline: none;
  cursor: pointer;            /* Show clickable cursor */
}

input:checked + .toggleSlider {
  background-color: #F1C700;
}

input:checked + .miniToggleSlider {
  background-color: #F1C700;
}

input:checked + .toggleSlider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

input:checked + .miniToggleSlider:before {
  -webkit-transform: translateX(18px);
  -ms-transform: translateX(18px);
  transform: translateX(18px);
}

/* Rounded sliders */
.toggleSlider.round {
  border-radius: 34px;
}

/* Rounded sliders */
.miniToggleSlider.round {
  border-radius: 17px;
}

.toggleSlider.round:before {
  border-radius: 50%;
}

.miniToggleSlider.round:before {
  border-radius: 50%;
}

.note-Title {
  font-size: 13px;
  text-align: left;
  margin-left: 5%;
  margin-right: 5%;
}

.note {
  font-size: 12px;
  text-align: left;
  margin-left: 5%;
  margin-right: 5%;
}

.container {
  margin: 50px auto;
  width: 300px;
}

.container_2 {
  display: inline-block;
  cursor: pointer;
}

section {
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  margin: 20px;
  padding: 20px;
}

.flex-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 969px;
  margin: 1px;
}

.flex-item {
  flex: 1;
  text-align: center;
  padding: 5px;
  min-width: 360px;
}

select, input {
  padding: 8px;
  font-size: 14px;
  margin-bottom: 10px;
  width: 100%;
  max-width: 200px;
  box-sizing: border-box;
}

table, th, td {
  border: 1px solid grey;
  border-collapse: collapse;
  width: 90%;
  color: white;
  font-weight: bold;
  height: 100%;
}

table {
  table-layout: fixed;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

th, td {
  padding: 5px;
}

td {
  text-align: center;
}

tr {
  font-size: 10px;
}

.no-border {
  border: none;
}

#devicesTableBody {
  font-size: 12px; /* smaller font for the table body */
}

#devicesTableBody input {
  font-size: 12px; /* match input fields to the table body */
  padding: 4px; /* optional: reduce padding for compact look */
}

#devicesTableBody button {
  font-size: 12px; /* make buttons smaller if needed */
  padding: 4px 8px;
}

#devicesTable th:nth-child(1), #devicesTable td:nth-child(1) { width: 15%; } /* Name */
#devicesTable th:nth-child(2), #devicesTable td:nth-child(2) { width: 20%; } /* UUID */
#devicesTable th:nth-child(3), #devicesTable td:nth-child(3) { width: 20%; } /* To UUID */
#devicesTable th:nth-child(4), #devicesTable td:nth-child(4) { width: 5%; } /* Rolling Count */
#devicesTable th:nth-child(5), #devicesTable td:nth-child(5) { width: 10%; } /* is Gateway */
#devicesTable th:nth-child(6), #devicesTable td:nth-child(6) { width: 18%; } /* Update Info */

.right-border {
  border-left: none;
  border-right: 1px solid #696969;
}

.table-side {
  border: 2px solid #696969;
  background-color: black;
}

.output1-on {
  background-color: #FB9F89;
}

.output2-on {
  background-color: #81AE9D;
}

.output3-on {
  background-color: #1098F7;
}

.no-event {
  background-color: white;
}

.row {
  border: 1px solid grey;
}

/* Style the tab */
.tab {
  overflow: hidden;
}

/* Style the buttons inside the tab */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding-bottom: 10px;
  transition: 0.3s;
  color: #ffffff;
}

/* Change background color of buttons on hover */
.tab button:hover {
  color: #00BBEE;
  text-shadow: 4px 4px 24px black;
}

/* Create an active/current tablink class */
.tab button.active {
  color: #F1C700;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border-top: none;
}

/* loading screen */
@-webkit-keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.logo {
  z-index: 0;
  background-image: url(../../static/logo.svg);
  background-repeat: no-repeat;
  background-position: center;
  padding-top: 95px;
  margin-bottom: 60px;
}

.animated {
  -webkit-animation-duration: 5s;
  animation-duration: 5s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.fadeOut {
  -webkit-animation-name: fadeOut;
  animation-name: fadeOut;
}

.fadeIn {
  -webkit-animation-name: fadeOut;
  animation-name: fadeIn;
  -webkit-animation-direction: reverse;
  animation-direction: reverse;
}

.loader {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #00BBEE;
  opacity: 0.5;
}

.event-loader-text {
  display: none;
  position: absolute;
  top: 220;
  left: 100;
  color: black;
  font-size: 18px;
  opacity: 1;
}

/* loading screen */
.wifi-symbol {
  display: none;
  [foo], & {
    display: block;
    position: absolute;
    top: 450px;
    left: 195px;
    display: inline-block;
    width: 50px;
    height: 50px;
    margin-top: 0 - 150px - 150px*0.25;
    -ms-transform: translate(-100px);
    -moz-transform: translate(-100px);
    -o-transform: translate(-100px);
    -webkit-transform: translate(-100px);
    transform: translate(-100px);
  }
  .wifi-circle {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 339px;
    left: 1px;
    border-color: black;
    border-style: solid;
    border-width: 1em 1em 0 0;
    -webkit-border-radius: 0 100% 0 0;
    border-radius: 0 100% 0 0;
    opacity: 0;
    -o-animation: wifianimation 3s infinite;
    -moz-animation: wifianimation 3s infinite;
    -webkit-animation: wifianimation 3s infinite;
    animation: wifianimation 3s infinite;
    -webkit-animation-duration: 3s;
    -webkit-animation-iteration-count: 1;
    -webkit-animation-timing-function: ease;
    -webkit-animation-fill-mode: forwards;
    -o-animation-duration: 3s;
    -o-animation-iteration-count: 1;
    -o-animation-timing-function: ease;
    -o-animation-fill-mode: forwards;
    -moz-animation-duration: 3s;
    -moz-animation-iteration-count: 1;
    -moz-animation-timing-function: ease;
    -moz-animation-fill-mode: forwards;
    animation-duration: 3s;
    animation-iteration-count: 1;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
    &.first {
      width: 3em;
      height: 3em;
      -o-animation-delay: 800ms;
      -moz-animation-delay: 800ms;
      -webkit-animation-delay: 800ms;
      animation-delay: 800ms;
    }
    &.second {
      width: 2em;
      height: 2em;
      -o-animation-delay: 400ms;
      -moz-animation-delay: 400ms;
      -webkit-animation-delay: 400ms;
      animation-delay: 400ms;
    }
    &.third {
      width: 1em;
      height: 1em;
    }
    &.fourth {
      width: 1em;
      height: 1em;
      opacity: 1;
      background-color: #00BBEE;
      -o-animation: none;
      -moz-animation: none;
      -webkit-animation: none;
      animation: none;
    }
  }
}

@-o-keyframes wifianimation {
  0% { opacity: 0.4 }
  5% { opacity: 1 }
  6% { opacity: 1 }
  100% { opacity: 0.8; }
}

@-moz-keyframes wifianimation {
  0% { opacity: 0.4 }
  5% { opacity: 1 }
  6% { opacity: 1 }
  100% { opacity: 0.8; }
}

@-webkit-keyframes wifianimation {
  0% { opacity: 0.4 }
  5% { opacity: 1 }
  6% { opacity: 1 }
  100% { opacity: 0.8; }
}

/* Login overlay helpers (used by preview.html) */
.login-overlay-full {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
}

.login-box {
  background: #2f2f2f;
  padding: 18px;
  border-radius: 10px;
  border: 2px solid #F1C700;
  min-width: 320px;
  max-width: 420px;
  color: white;
  box-shadow: 0 6px 30px rgba(0,0,0,0.6);
}

.login-box input[type="text"], .login-box input[type="password"] {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #555;
  background: #1f1f1f;
  color: white;
}

.login-error {
  color: #ffb3b3;
  font-weight: bold;
  height: 18px;
  text-align: center;
  display: none;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.login-small-spinner {
  width: 24px;
  height: 24px;
  border: 4px solid rgba(255,255,255,0.15);
  border-top-color: #F1C700;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #2a2a2a;
  margin: 15% auto;
  position: relative;
  padding: 20px;
  border: 1px solid #555;
  border-radius: 8px;
  width: 80%;
  max-width: 500px;
  color: #fff;
}

.close {
  color: #aaa;
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #fff;
}