/*
* DefconExpanded, Created by...
* KezzaMcFezza - Main Developer
* Nexustini - Server Managment
*
* Notable Mentions...
* Rad - For helping with python scripts.
* Bert_the_turtle - Doing everthing with c++
* 
* Inspired by Sievert and Wan May
* 
* Last Edited 18-01-2026 
*/

@font-face {
  font-family: 'Kremlin';
  src: url('kremlin.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  background-color: black;
  font-family: 'Courier New', monospace;
  text-align: center;
  min-height: 100vh;
}

.canvas-container {
  display: inline-block;
  margin: 0 auto;
}

canvas {
  display: block;
  border: none;
  background-color: black;
  cursor: pointer;
  outline: none !important;
}

canvas:focus {
  outline: none !important;
}

canvas:fullscreen {
  cursor: none;
}

canvas:-webkit-full-screen {
  cursor: none;
}

canvas:-moz-full-screen {
  cursor: none;
}

canvas:-ms-fullscreen {
  cursor: none;
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#loading-container {
  width: 300px;
  height: 280px;
  position: relative;
  border: 1px solid rgba(100, 100, 140, 0.863);
  box-shadow: none;
  overflow: hidden;
}

#loading-window-background {
  position: absolute;
  left: 0;
  top: 20px;
  width: 300px;
  height: 259px;
  background: linear-gradient(to bottom, rgba(25, 25, 49, 0.922) 0%, rgba(25, 25, 100, 0.922) 100%);
}

#loading-inner-border {
  position: absolute;
  left: 1px;
  top: 20px;
  width: 296px;
  height: 258px;
  border: 1px solid rgba(0, 0, 0, 0.863);
  pointer-events: none;
}

#loading-shadow-right {
  position: absolute;
  top: 15px;
  left: 100%;
  width: 15px;
  height: 265px;
  background: linear-gradient(to right, 
    rgba(0, 0, 0, 0.7) 0%, 
    rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: -1;
}

#loading-shadow-corner {
  position: absolute;
  top: 100%;
  left: 100%;
  width: 15px;
  height: 15px;
  background: radial-gradient(ellipse at top left, 
    rgba(0, 0, 0, 0.7) 0%, 
    rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

#loading-shadow-bottom {
  position: absolute;
  top: 100%;
  left: 15px;
  width: 285px;
  height: 15px;
  background: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0.7) 0%, 
    rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: -1;
}

#loading-title-bar {
  width: 100%;
  height: 20px;
  background: linear-gradient(to bottom, rgba(0, 0, 35, 0.863) 0%, rgba(255, 232, 155, 0.863) 100%);
  border-bottom: none;
  display: flex;
  align-items: center;
  padding-left: 10px;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

#loading-title {
  font-size: 17px;
  margin-top: 3px;
  color: #fcf2df;
  text-transform: uppercase;
  font-family: 'Kremlin';
  vertical-align: middle;
}

#loading-invert-box {
  position: absolute;
  left: 10px;
  top: 30px;
  width: 280px;
  height: 210px;
  background: linear-gradient(to bottom, rgba(25, 30, 35, 0.569) 0%, rgba(5, 5, 15, 1.0) 100%);
  border-top: 1px solid rgba(0, 0, 0, 1.0);
  border-left: 1px solid rgba(0, 0, 0, 1.0);
  border-right: 1px solid transparent;
  border-bottom: 1px solid transparent;
}

#loading-resizer {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 15px;
  height: 15px;
  pointer-events: none;
  overflow: visible;
}

#loading-resizer-line1,
#loading-resizer-line2 {
  position: absolute;
  background: rgba(100, 100, 140, 0.863);
  height: 1px;
}

#loading-resizer-line1 {
  bottom: 12px;
  right: 2px;
  width: 14.14px;
  transform-origin: bottom right;
  transform: rotate(-45deg);
}

#loading-resizer-line2 {
  bottom: 8px;
  right: 2px;
  width: 8.49px;
  transform-origin: bottom right;
  transform: rotate(-45deg);
}

#loading-content {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 30px;
  box-sizing: border-box;
}

#loading-status {
  font-size: 17px;
  text-transform: uppercase;
  font-family: 'Kremlin';
}

#progress-container {
  width: 240px;
  height: 20px;
  margin: 0 auto 20px auto;
  position: relative;
}

#progress-bar {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
  background-color: #ffff00;
}

#progress-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

#loading-details {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  font-family: 'Kremlin';
}

#loading-details.error-text {
  color: #ff0000;
}

#loading-details.loading-text {
  color: #ff0000;
}

#loading-details.received-text {
  color: #00ff00;
}

#progress-container-2 {
  width: 240px;
  height: 20px;
  margin: 0 auto 20px auto;
  position: relative;
}

#progress-bar-2 {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
  background-color: #00ff00;
}

#progress-border-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

#loading-info {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  font-family: 'Kremlin';
}

#loading-info.error-text {
  color: #ff0000;
}



#loading-status.state-disconnected {
  color: #ff0000;
}

#loading-status.state-connecting {
  color: #ffff00;
  animation: blink 1s infinite;
}

#loading-status.state-connected {
  color: #00ff00;
}

#loading-status.state-error {
  color: #ff0000;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0.3;
  }
}

.hidden {
  display: none !important;
}

#loading-overlay,
#loading-container {
  pointer-events: none;
}

#loading-content,
#loading-content * {
  pointer-events: auto;
  outline: none !important;
}
