@import url("https://fonts.googleapis.com/css2?family=Anton+SC&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
/* RESET */
/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

body {
  /* 3. Add accessible line-height */
  line-height: 1.5;
  /* 4. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 5. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 6. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 7. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  9. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

/* General Styles */
html,
body {
  overflow: hidden;
  margin: 0;
  padding: 0;
  background-color: #0a1128;
  font-family: "Roboto", serif;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  font-size: 16px;
  color: #fefcfb;
}

.btn {
  border: 2px solid #fefcfb;
  border-radius: 6px;
  background-color: transparent;
  padding: 12px 20px;
  font-size: 18px;
  transition: 0.3s all ease;
  color: #fefcfb;
}
.btn:hover {
  border-color: #0a1128;
}

.page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 1;
  transition: 0.3s opacity ease;
}
.page.hidden {
  opacity: 0;
  pointer-events: none;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
          clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.alert_container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 15px 20px;
  border-radius: 8px;
  min-width: 300px;
  max-width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
}
.alert_container.fade-out {
  opacity: 0;
  transform: translate(-50%, -20px);
}
.alert_container .alert_content {
  flex-grow: 1;
  padding-right: 20px;
}
.alert_container .alert_close {
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.alert_container .alert_close:hover {
  opacity: 1;
}
.alert_container.info {
  background-color: #28a745;
  color: #fefcfb;
}
.alert_container.error {
  background-color: #E71F2C;
  color: #fefcfb;
}
.alert_container.warning {
  background-color: #ffc107;
  color: #000000;
}

.modal {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  z-index: 999999;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}
.modal.active {
  opacity: 1;
  pointer-events: all;
}
.modal-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.88);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
  z-index: 1;
}
.modal-content {
  position: relative;
  z-index: 2;
  width: 90vw;
  max-height: 90vh;
  background-color: #D2D1D0;
}
.modal-content .container {
  display: block;
  padding: 20px;
  color: #000000;
}
.modal-content .container h2 {
  color: #0a1128;
  font-size: 22px;
  font-weight: 700;
}
.modal-content .container h3 {
  color: #1282a2;
  font-size: 18px;
  font-weight: 700;
}
.modal-content .container hr {
  background-color: transparent;
  height: 1px;
  width: 100%;
  border-bottom: 1px solid rgba(10, 17, 40, 0.3137254902);
  margin: 20px 0;
}
.modal-content .container .section .input select {
  display: block;
  padding: 15px 20px;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  border-radius: 5px;
  width: 100%;
  color: #000000;
  font-size: 16px;
}
.modal-content .container .section .input select option {
  color: #000000;
}
.modal-content .close {
  position: absolute;
  display: block;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  background-color: #0a1128;
  -webkit-mask-image: url(../images/icons/close.svg);
          mask-image: url(../images/icons/close.svg);
  -webkit-mask-size: 24px 24px;
          mask-size: 24px 24px;
  -webkit-mask-position: center center;
          mask-position: center center;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  border: none;
}

#splash {
  background: rgb(3, 64, 120);
  background: radial-gradient(circle, rgb(3, 64, 120) 0%, rgb(0, 31, 84) 95%);
  z-index: 10;
}
#splash .content {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 100%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  color: #fefcfb;
  pointer-events: all;
}
#splash .content h1 {
  font-family: "Anton SC", serif;
  font-weight: 700;
  font-style: normal;
  font-size: clamp(26px, 10.8vw, 46px);
  margin-bottom: 15px;
  letter-spacing: 2px;
  white-space: nowrap;
  display: flex;
  align-items: flex-start;
}
#splash .content h1 span {
  position: relative;
  font-size: clamp(16px, 5.4vw, 26px);
  color: #E71F2C;
}

#app canvas#scene, #app canvas#canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center center;
     object-position: center center;
}

#controls {
  z-index: 20;
  pointer-events: none;
}
#controls .options {
  display: block;
  position: absolute;
  top: 20px;
  right: 20px;
  width: 24px;
  height: 24px;
  -webkit-mask-image: url(../images/icons/options.svg);
          mask-image: url(../images/icons/options.svg);
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center center;
          mask-position: center center;
  background-color: #fefcfb;
  pointer-events: all;
}
#controls .debugger {
  display: block;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 24px;
  height: 24px;
  -webkit-mask-image: url(../images/icons/debug.svg);
          mask-image: url(../images/icons/debug.svg);
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center center;
          mask-position: center center;
  background-color: #fefcfb;
  pointer-events: all;
}

.controls-modal {
  background-color: rgba(0, 0, 0, 0.3137254902);
}
