/** define variables */
:root {
  --main-cursor: url("./../cursors/cursor.png"), auto;
  --pointer-cursor: url("./../cursors/pointer.png"), auto;
  --dark-bg-color: #121212;
  --grey-bg-color: rgba(90, 90, 70, 0.95);
  --grey-alternating1-bg-color: rgba(80, 80, 60, 0.75);
  --grey-alternating2-bg-color: rgba(60, 60, 40, 0.75);
  --red-bg-color: #ff0000;
  --green-border-color: #00FF00;
  --green-selected-color: #00FF00;
}

/* pre-load some images */
body::after {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  z-index: -1;
  content: url("./../cursors/cursor.png") url("./../cursors/pointer.png") var(--mapMain) var(--mapLanes) var(--mapGrid) var(--servo);
}

/* Font */
@font-face {
  font-family: "Caslon Antique";
  src: url("Caslo-an.ttf") format("truetype");
}
.hidden {
  display: none;
}

.selected {
  color: var(--green-selected-color) !important;
}

.servo {
  width: 300px;
  height: auto;
}

/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 24px;
  z-index: 2;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .switchSlider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 34px;
}
.switch .switchSlider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: antiquewhite;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 50%;
}
.switch input + .switchSlider {
  cursor: var(--pointer-cursor) !important;
}
.switch input:checked + .switchSlider {
  background-color: var(--red-bg-color);
}
.switch input:focus + .switchSlider {
  box-shadow: 0 0 1px var(--red-bg-color);
}
.switch input:checked + .switchSlider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Slider */
.slider {
  -webkit-appearance: none;
  width: 21%;
  height: 24px;
  border-radius: 25px;
  background: #ccc;
  outline: none;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
  margin-left: 0;
  cursor: var(--pointer-cursor) !important;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red-bg-color);
  cursor: var(--pointer-cursor) !important;
}

.slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red-bg-color);
  cursor: var(--pointer-cursor) !important;
}

/* TabView */
.tab {
  display: flex;
  overflow: auto;
  height: 100%;
  cursor: var(--main-cursor) !important;
}
.tab button {
  height: 23px;
  background-color: inherit;
  border: none;
  outline: none;
  cursor: var(--pointer-cursor) !important;
  border: 1px solid antiquewhite;
  color: antiquewhite;
}
.tab button:hover {
  color: yellowgreen;
}
.tab button.active {
  color: var(--green-selected-color);
}
.tab .iconTab {
  display: inline-flex;
  align-items: center;
  max-width: 220px;
}
.tab .iconTab img {
  width: 20px;
  height: auto;
  padding-right: 3px;
}
.tab .iconTab div {
  white-space: nowrap;
}

.innertabcontent {
  width: 100%;
  display: none;
  padding: 6px 0;
  border-top: none;
  white-space: normal;
}

/* Link Button */
.link_button {
  background: none;
  color: antiquewhite;
  border: none;
  cursor: var(--pointer-cursor) !important;
  text-decoration: underline;
}
.link_button:hover {
  color: yellowgreen;
}

.text_link_button {
  padding: 0;
}

/* Details Element */
details {
  white-space: pre-line;
}
details summary:hover {
  color: yellowgreen;
  cursor: var(--pointer-cursor) !important;
}

#startup {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--dark-bg-color);
  z-index: 10;
  transition: all 1.5s ease 0.1s;
  display: flex;
  justify-content: center;
}
#startup #startupText {
  display: flex;
  justify-content: center;
  white-space: pre-line;
  text-align: center;
  color: antiquewhite;
}
#startup #startbutton {
  background-image: var(--startup1);
  width: 80px;
  height: 80px;
  background-color: transparent;
  border: none;
  cursor: var(--pointer-cursor) !important;
}
#startup #startbutton:active {
  background-image: var(--startup2);
}

#content {
  opacity: 0;
  visibility: hidden;
  margin-top: 10px;
  margin-left: 10px;
}

/* Map */
#map-main {
  width: 1360px;
  height: auto;
}

#map-lanes,
#map-grid {
  width: 1360px;
  height: auto;
  position: absolute;
  left: 10px;
  top: 10px;
}

#campaign-info {
  position: absolute;
  top: 112px;
  left: 62px;
  width: 460px;
  /* height: 330px; */
  height: auto;
  background-color: var(--grey-bg-color);
  border: 1px solid var(--green-border-color);
  z-index: 3;
  cursor: --main-cursor;
  color: antiquewhite;
  padding: 5px;
  transition: all 0.5s ease 0.1s;
  opacity: 0;
  visibility: hidden;
}

#campaign {
  position: absolute;
  background-color: none;
  width: 475px;
  height: 50px;
  top: 60px;
  left: 59px;
  cursor: var(--pointer-cursor) !important;
}

#campaign:hover ~ #campaign-info {
  opacity: 1;
  visibility: visible;
}

/* Systems */
#systems > button {
  position: absolute;
  z-index: 2;
  width: 45px;
  height: 45px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 100%;
}

#systems * {
  cursor: var(--pointer-cursor) !important;
}

#systems > button:not(.system-selected):not(:active):hover {
  border: outset 2px yellow;
}
#systems > button:not(.system-selected):active {
  border: inset 2px yellow;
}

#systems > .system-selected {
  border: dashed 2px yellow;
}

#systems > .linked-system {
  border: dotted 2px rgba(0, 255, 248, 0.5);
  transition: all 1.5s;
}

/* System Tooltip (on hover) */
.system-tooltip {
  color: var(--green-selected-color);
  white-space: nowrap;
  display: flex;
  justify-content: center;
  transition: all 0.1s;
  opacity: 0;
  visibility: hidden;
}

.system:not(.system-selected):hover .system-tooltip {
  transition: all 0.5s ease 0.1s;
  opacity: 1 !important;
  visibility: visible !important;
}

/* System owner */
.system-owner {
  right: 32px;
  top: -16px;
  position: absolute;
}

/* System temp owner (raider) */
.system-raider {
  right: -14px;
  top: -16px;
  position: absolute;
}

.system-raider ~ .system-owner {
  opacity: 0.25;
}

/* System Overlay (on click) */
#system-overlay {
  position: absolute;
  display: none;
  width: 200px;
  height: 230px;
  background-color: rgba(18, 18, 18, 0.85);
  border: 1px solid var(--green-border-color);
  z-index: 3;
  cursor: --main-cursor;
}
#system-overlay * {
  color: greenyellow;
  display: flex;
  justify-content: center;
}
#system-overlay #system-title,
#system-overlay #system-type {
  padding-top: 5px;
  text-align: center;
  white-space: pre;
}
#system-overlay #system-img {
  align-items: center;
  min-height: 110px;
}
#system-overlay #system-img img {
  width: 140px;
  height: auto;
}

/* Sidebar */
#sidebar {
  position: absolute;
  height: 906px;
  min-width: 450px;
  top: 10px;
  margin-left: 1370px;
  opacity: 0;
  visibility: hidden;
  /* Sidebar controls */
  /* Game Info */
  /* Details */
}
#sidebar .servo {
  float: right;
  margin-top: 10px;
}
#sidebar #sidebarControls {
  position: absolute;
  top: 0;
  /* Switches */
  /* Audio slider */
}
#sidebar #sidebarControls div {
  padding: 10px;
  display: flex;
  align-items: center;
}
#sidebar #sidebarControls .switchLabel {
  color: antiquewhite;
  margin-left: 10px;
}
#sidebar #sidebarControls #sliderContainer {
  width: 100%;
}
#sidebar .sidebartitle {
  position: absolute;
  top: -20px;
  margin-left: -5px;
  font-family: "Caslon Antique";
  letter-spacing: 1px;
}
#sidebar #gameinfo {
  position: absolute;
  color: antiquewhite;
  padding: 10px;
  height: 140px;
  top: 270px;
  margin-left: 10px;
  background-image: var(--campaignButtonsImage);
  background-repeat: no-repeat;
}
#sidebar #gameinfo #campaignturn {
  margin-top: 10px;
  margin-left: 5px;
}
#sidebar #gameinfo button:not(.hiddenButton) {
  margin-top: 10px;
  height: 22px;
  width: 125px;
  text-align: left;
  background-color: inherit;
  border: none;
  outline: none;
  cursor: var(--pointer-cursor) !important;
  /* border: 1px solid antiquewhite; */
  border: none;
  color: antiquewhite;
  font-size: 12px;
  font-weight: 700;
}
#sidebar #gameinfo button:not(.hiddenButton):hover {
  color: yellowgreen;
  text-decoration: underline;
}
#sidebar #gameinfo #highlightAllSystems {
  border-radius: 35px;
  height: 35px;
  width: 35px;
  position: absolute;
  right: -209px;
  top: -64px;
  background: none;
  border: none;
  cursor: var(--pointer-cursor) !important;
}
#sidebar #gameinfo #showForms {
  border-radius: 35px;
  height: 25px;
  width: 25px;
  position: absolute;
  right: -250px;
  top: -89px;
  background: none;
  border: none;
  cursor: var(--pointer-cursor) !important;
}
#sidebar #details {
  margin-left: 10px;
  position: absolute;
  height: 420px;
  bottom: -1px;
  padding: 10px;
  color: antiquewhite;
  width: 100%;
  background-image: var(--detailsViewImage);
}
#sidebar #details #detailsTab {
  opacity: 0;
  visibility: "hidden";
}
#sidebar #details #detailsLoading,
#sidebar #details #detailsPlaceholder,
#sidebar #details #detailsContent {
  white-space: pre-line;
}
#sidebar #details #detailsLoading {
  display: none;
}
#sidebar #details #detailsPlaceholder {
  transition: all 0.5s ease 0.1s;
}
#sidebar #copyright {
  color: antiquewhite;
  margin-left: 10px;
  position: absolute;
  bottom: -25px;
  right: -30px;
}

#loader {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  text-align: center;
}
#loader span {
  margin: auto;
  border: 16px solid var(--grey-bg-color);
  border-top: 16px solid var(--green-border-color);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.close-button {
  position: absolute;
  right: 0;
  top: 1px;
  background: none;
  color: antiquewhite;
  cursor: var(--pointer-cursor) !important;
}

#factions-close {
  background-color: var(--dark-bg-color);
}

/* 'Tooltip' */
.overlay-tooltip-element {
  display: inline-flex;
}
.overlay-tooltip-element:hover .overlay-tooltip {
  transition: all 0.5s ease 0.1s;
  opacity: 1 !important;
  visibility: visible !important;
}

.overlay-tooltip {
  position: absolute;
  margin-top: 15px;
  padding: 5px;
  background-color: var(--grey-bg-color);
  border: 1px solid var(--green-border-color);
  z-index: 3;
  cursor: --main-cursor;
  color: antiquewhite;
  white-space: pre;
  display: flex;
  justify-content: center;
  transition: all 0.1s;
  opacity: 0;
  visibility: hidden;
}

#authDialog {
  position: absolute;
  display: block;
  top: 400px;
  left: 500px;
  width: 500px;
  border: 1px solid antiquewhite;
  z-index: 3;
  cursor: var(--main-cursor);
  background-color: var(--grey-bg-color);
}
#authDialog #authDialogTitle,
#authDialog label {
  color: antiquewhite;
  cursor: var(--main-cursor);
}
#authDialog input {
  width: calc(100% - 8px);
}
#authDialog #authDialogControls {
  display: flex;
  align-items: center;
  margin: 20px;
}
#authDialog #authDialogControls div {
  margin-left: auto;
}
#authDialog #authDialogControls div span {
  color: darksalmon;
}
#authDialog #authDialogControls div button {
  cursor: var(--pointer-cursor);
  color: antiquewhite;
  background: linear-gradient(180deg, black, transparent);
  height: 30px;
  width: 60px;
}

/* Shared settings */
#battlelog-overlay,
#battlereport-overlay,
#factions-overlay,
#renown-overlay {
  position: absolute;
  display: block;
  top: 50px;
  left: 50px;
  width: 1280px;
  height: 820px;
  background-color: var(--grey-bg-color);
  border: 1px solid antiquewhite;
  color: antiquewhite;
  z-index: 3;
  cursor: var(--main-cursor);
  transition: all 1s ease 0.1s;
  opacity: 0;
  visibility: hidden;
  overflow: auto;
}
#battlelog-overlay::-webkit-scrollbar,
#battlereport-overlay::-webkit-scrollbar,
#factions-overlay::-webkit-scrollbar,
#renown-overlay::-webkit-scrollbar {
  width: 16px;
}
#battlelog-overlay::-webkit-scrollbar-track,
#battlereport-overlay::-webkit-scrollbar-track,
#factions-overlay::-webkit-scrollbar-track,
#renown-overlay::-webkit-scrollbar-track {
  background: var(--grey-bg-color);
  border-radius: 5px;
}
#battlelog-overlay::-webkit-scrollbar-thumb,
#battlereport-overlay::-webkit-scrollbar-thumb,
#factions-overlay::-webkit-scrollbar-thumb,
#renown-overlay::-webkit-scrollbar-thumb {
  background: var(--dark-bg-color);
  border-radius: 5px;
}

#tab::-webkit-scrollbar {
  height: 16px;
}
#tab::-webkit-scrollbar-track {
  background: rgba(147, 147, 125, 0.95);
  border-radius: 5px;
}
#tab::-webkit-scrollbar-thumb {
  background: var(--dark-bg-color);
  border-radius: 5px;
}
#tab .iconTab:last-of-type {
  margin-right: 25px;
}

/* Batte log overlay */
#filter-button {
  display: flex;
  height: 18px;
  cursor: var(--pointer-cursor);
}
#filter-button img {
  height: 14px;
  padding: 2px;
}

#battlelog-filter {
  display: none;
  overflow: hidden;
  background-color: var(--dark-bg-color);
  height: 22px;
  padding-left: 5px;
  align-items: center;
}

#battlereport-header {
  overflow: hidden;
  background-color: var(--dark-bg-color);
  height: 22px;
  padding-left: 5px;
  display: flex;
  align-items: center;
}

#battlereport-content {
  white-space: pre-line;
  padding: 10px;
}

#battlelog-filter-select,
#battlereport-select {
  border-radius: 0;
  background-color: var(--grey-bg-color);
  color: antiquewhite;
  border-color: antiquewhite;
  cursor: var(--pointer-cursor);
}
#battlelog-filter-select:focus-visible,
#battlereport-select:focus-visible {
  outline: none;
}

/* Factions overlay */
#factions-overview #tab {
  background-color: var(--dark-bg-color);
}
#factions-overview #tabcontent {
  padding: 10px;
  white-space: pre-line;
}
#factions-overview #fleetroster * .title {
  background-color: var(--dark-bg-color);
  padding: 10px;
}
#factions-overview #fleetroster #fleets-placeholder {
  text-align: center;
  margin-top: 80px;
}
#factions-overview #fleetroster #fleets-placeholder #fleets-placeholder-text button {
  position: absolute;
  height: 36px;
  width: 36px;
  border-radius: 50px;
  background: var(--dark-bg-color);
  border: none;
  display: flex;
  align-items: center;
  cursor: var(--pointer-cursor);
}
#factions-overview #fleetroster #fleets-placeholder #fleets-placeholder-text button:hover {
  filter: brightness(75%);
}
#factions-overview #fleetroster #fleets {
  visibility: hidden;
}
#factions-overview #fleetroster #fleets #fleetroster-table,
#factions-overview #fleetroster #fleets #fleetlosses-table {
  width: 100%;
}

/* Renown overlay */
#renown-overlay table tr:first-of-type td {
  background-color: rgb(255, 215, 0);
  color: var(--dark-bg-color);
  height: 30px;
}
#renown-overlay table tr:first-of-type td button {
  color: var(--dark-bg-color);
}
#renown-overlay table tr:first-of-type td button:hover {
  color: yellowgreen;
}
#renown-overlay table tr:first-of-type td:first-of-type {
  background-image: var(--laurels);
  background-repeat: no-repeat;
  background-position: center;
  background-origin: content-box;
}

/* Tables */
#battlelog-overlay,
#factions-overlay,
#renown-overlay {
  overflow-x: hidden;
}
#battlelog-overlay th,
#factions-overlay th,
#renown-overlay th {
  background-color: var(--dark-bg-color);
}
#battlelog-overlay tr:nth-child(odd) td,
#factions-overlay tr:nth-child(odd) td,
#renown-overlay tr:nth-child(odd) td {
  background-color: var(--grey-alternating2-bg-color);
}
#battlelog-overlay tr:nth-child(even) td,
#factions-overlay tr:nth-child(even) td,
#renown-overlay tr:nth-child(even) td {
  background-color: var(--grey-alternating1-bg-color);
}
#battlelog-overlay tr.highlight td,
#factions-overlay tr.highlight td,
#renown-overlay tr.highlight td {
  box-shadow: inset 0px 11px 5px -10px var(--green-border-color), inset 0px -11px 5px -10px var(--green-border-color);
}
#battlelog-overlay tr.highlight td:first-child,
#factions-overlay tr.highlight td:first-child,
#renown-overlay tr.highlight td:first-child {
  box-shadow: inset 0px 11px 5px -10px var(--green-border-color), inset 0px -11px 5px -10px var(--green-border-color), inset 11px 0px 5px -10px var(--green-border-color);
}
#battlelog-overlay tr.highlight td:last-child,
#factions-overlay tr.highlight td:last-child,
#renown-overlay tr.highlight td:last-child {
  box-shadow: inset 0px 11px 5px -10px var(--green-border-color), inset 0px -11px 5px -10px var(--green-border-color), inset -11px 0px 5px -10px var(--green-border-color);
}
#battlelog-overlay td,
#factions-overlay td,
#renown-overlay td {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px solid;
}
#battlelog-overlay .shipListIcon,
#factions-overlay .shipListIcon,
#renown-overlay .shipListIcon {
  height: 18px;
  padding-left: 2px;
}
#battlelog-overlay .ship_withdrawn,
#factions-overlay .ship_withdrawn,
#renown-overlay .ship_withdrawn {
  color: rgba(250, 235, 215, 0.5215686275);
}
#battlelog-overlay .ship_damaged,
#factions-overlay .ship_damaged,
#renown-overlay .ship_damaged {
  color: #e9967a;
}
#battlelog-overlay .ship_crippled,
#factions-overlay .ship_crippled,
#renown-overlay .ship_crippled {
  color: #ed6262;
}
#battlelog-overlay #battleReportSpan,
#factions-overlay #battleReportSpan,
#renown-overlay #battleReportSpan {
  align-items: center;
  display: flex;
  padding-bottom: 5px;
  white-space: break-spaces;
}
#battlelog-overlay #battleReportSpan img:hover,
#factions-overlay #battleReportSpan img:hover,
#renown-overlay #battleReportSpan img:hover {
  cursor: var(--pointer-cursor);
}

#battlelog-overlay tr td,
#factions-overlay tr td {
  vertical-align: baseline;
  border-color: var(--dark-bg-color);
}

.shipHistoryTable tr > th {
  padding-left: 3px;
  padding-right: 3px;
}
.shipHistoryTable tr > td:first-of-type {
  text-align: center;
}
.shipHistoryTable tr > td {
  box-shadow: none !important;
  white-space: pre-line !important;
  padding: 3px;
}

#formDiv {
  position: fixed;
  top: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  background-color: aliceblue;
  overflow: scroll;
}
#formDiv form {
  margin: 20px;
}
#formDiv form *:not(label):not(.overlay-tooltip-element):not(img) {
  margin-right: 10px;
  margin-bottom: 10px;
}
#formDiv .formTitle {
  margin: 20px;
  font-weight: 600;
  background: antiquewhite;
}
#formDiv #addShipForm,
#formDiv #editShipForm {
  display: flex;
}
#formDiv #addShipForm label,
#formDiv #editShipForm label {
  padding-right: 3px;
}
#formDiv #addShipForm {
  align-items: baseline;
}
#formDiv #editShipForm {
  align-items: flex-start;
}
#formDiv #editShipForm span {
  display: grid;
}
#formDiv #editShipFormHeader {
  margin-left: 20px;
}
#formDiv #editShipFormHeader span {
  margin-right: 10px;
}
#formDiv #addShipForm > span {
  display: grid;
}
#formDiv td:not(:first-child) {
  text-align: center;
}
#formDiv .battleReportIcon {
  background-color: darkred;
  height: 18px;
  padding-left: 2px;
  display: none;
}

/**
* by http://aleclownes.com/2017/02/01/crt-display.html
**/
@keyframes flicker {
  0% {
    opacity: 0.27861;
  }
  5% {
    opacity: 0.34769;
  }
  10% {
    opacity: 0.23604;
  }
  15% {
    opacity: 0.90626;
  }
  20% {
    opacity: 0.18128;
  }
  25% {
    opacity: 0.83891;
  }
  30% {
    opacity: 0.65583;
  }
  35% {
    opacity: 0.67807;
  }
  40% {
    opacity: 0.26559;
  }
  45% {
    opacity: 0.84693;
  }
  50% {
    opacity: 0.96019;
  }
  55% {
    opacity: 0.08594;
  }
  60% {
    opacity: 0.20313;
  }
  65% {
    opacity: 0.71988;
  }
  70% {
    opacity: 0.53455;
  }
  75% {
    opacity: 0.37288;
  }
  80% {
    opacity: 0.71428;
  }
  85% {
    opacity: 0.70419;
  }
  90% {
    opacity: 0.7003;
  }
  95% {
    opacity: 0.36108;
  }
  100% {
    opacity: 0.24387;
  }
}
@keyframes textShadow {
  0% {
    text-shadow: 0.4389924193px 0 1px rgba(0, 30, 255, 0.5), -0.4389924193px 0 1px rgba(255, 0, 80, 0.3), 0 0 3px;
  }
  5% {
    text-shadow: 2.7928974011px 0 1px rgba(0, 30, 255, 0.5), -2.7928974011px 0 1px rgba(255, 0, 80, 0.3), 0 0 3px;
  }
  10% {
    text-shadow: 0.0295627584px 0 1px rgba(0, 30, 255, 0.5), -0.0295627584px 0 1px rgba(255, 0, 80, 0.3), 0 0 3px;
  }
  15% {
    text-shadow: 0.4021853855px 0 1px rgba(0, 30, 255, 0.5), -0.4021853855px 0 1px rgba(255, 0, 80, 0.3), 0 0 3px;
  }
  20% {
    text-shadow: 3.47940379px 0 1px rgba(0, 30, 255, 0.5), -3.47940379px 0 1px rgba(255, 0, 80, 0.3), 0 0 3px;
  }
  25% {
    text-shadow: 1.6125630401px 0 1px rgba(0, 30, 255, 0.5), -1.6125630401px 0 1px rgba(255, 0, 80, 0.3), 0 0 3px;
  }
  30% {
    text-shadow: 0.7015590085px 0 1px rgba(0, 30, 255, 0.5), -0.7015590085px 0 1px rgba(255, 0, 80, 0.3), 0 0 3px;
  }
  35% {
    text-shadow: 3.8969140477px 0 1px rgba(0, 30, 255, 0.5), -3.8969140477px 0 1px rgba(255, 0, 80, 0.3), 0 0 3px;
  }
  40% {
    text-shadow: 3.8709056148px 0 1px rgba(0, 30, 255, 0.5), -3.8709056148px 0 1px rgba(255, 0, 80, 0.3), 0 0 3px;
  }
  45% {
    text-shadow: 2.2310569634px 0 1px rgba(0, 30, 255, 0.5), -2.2310569634px 0 1px rgba(255, 0, 80, 0.3), 0 0 3px;
  }
  50% {
    text-shadow: 0.0808429042px 0 1px rgba(0, 30, 255, 0.5), -0.0808429042px 0 1px rgba(255, 0, 80, 0.3), 0 0 3px;
  }
  55% {
    text-shadow: 2.3758461067px 0 1px rgba(0, 30, 255, 0.5), -2.3758461067px 0 1px rgba(255, 0, 80, 0.3), 0 0 3px;
  }
  60% {
    text-shadow: 2.2021930511px 0 1px rgba(0, 30, 255, 0.5), -2.2021930511px 0 1px rgba(255, 0, 80, 0.3), 0 0 3px;
  }
  65% {
    text-shadow: 2.8638780615px 0 1px rgba(0, 30, 255, 0.5), -2.8638780615px 0 1px rgba(255, 0, 80, 0.3), 0 0 3px;
  }
  70% {
    text-shadow: 0.4887402516px 0 1px rgba(0, 30, 255, 0.5), -0.4887402516px 0 1px rgba(255, 0, 80, 0.3), 0 0 3px;
  }
  75% {
    text-shadow: 1.8948491306px 0 1px rgba(0, 30, 255, 0.5), -1.8948491306px 0 1px rgba(255, 0, 80, 0.3), 0 0 3px;
  }
  80% {
    text-shadow: 0.0833037308px 0 1px rgba(0, 30, 255, 0.5), -0.0833037308px 0 1px rgba(255, 0, 80, 0.3), 0 0 3px;
  }
  85% {
    text-shadow: 0.0976982726px 0 1px rgba(0, 30, 255, 0.5), -0.0976982726px 0 1px rgba(255, 0, 80, 0.3), 0 0 3px;
  }
  90% {
    text-shadow: 3.4433397615px 0 1px rgba(0, 30, 255, 0.5), -3.4433397615px 0 1px rgba(255, 0, 80, 0.3), 0 0 3px;
  }
  95% {
    text-shadow: 2.1841838853px 0 1px rgba(0, 30, 255, 0.5), -2.1841838853px 0 1px rgba(255, 0, 80, 0.3), 0 0 3px;
  }
  100% {
    text-shadow: 2.6208764474px 0 1px rgba(0, 30, 255, 0.5), -2.6208764474px 0 1px rgba(255, 0, 80, 0.3), 0 0 3px;
  }
}
.crt::after,
.crt-element::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(18, 16, 16, 0.1);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}

.crt::before,
.crt-element::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

.crt {
  animation: textShadow 1.6s infinite;
  background-color: rgba(0, 100, 0, 0.1);
  box-shadow: 0 0 25px 2px rgba(0, 100, 0, 0.35);
}

.crt-element {
  animation: textShadow 1.6s infinite;
}

body {
  margin: unset;
  background-color: var(--dark-bg-color);
}
body::-webkit-scrollbar {
  height: 16px;
  width: 16px;
}
body::-webkit-scrollbar-track {
  background: var(--grey-bg-color);
  border-radius: 5px;
}
body::-webkit-scrollbar-thumb {
  background: var(--dark-bg-color);
  border-radius: 5px;
}

body:not(#startup) {
  cursor: var(--main-cursor);
}