html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background-color: #000;
  color: #fff;
  font-family: Monospace;
  font-size: 13px;
  line-height: 24px;
  overscroll-behavior: none;
}

/* Loading Screen Styles */
#loadingScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1s ease-out, visibility 1s ease-out;
}

#loadingScreen.fade-out {
  opacity: 0;
  visibility: hidden;
}

#loadingCircle {
  text-align: center;
}

.loading-text {
  color: #ffffff;
  font-family: Monospace;
  font-size: 16px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.progress-container {
  width: 200px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ffffff, #cccccc);
  border-radius: 2px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.progress-text {
  color: #ffffff;
  font-family: Monospace;
  font-size: 14px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
}

/* Hide main content initially */
#logo,
#leftText,
#rightText,
#contactMeBtn,
#loseFocusBtn {
  opacity: 0;
  transition: opacity 1s ease-in;
}

/* Show main content when loaded */
.content-loaded #logo,
.content-loaded #leftText,
.content-loaded #rightText,
.content-loaded #contactMeBtn,
.content-loaded #loseFocusBtn {
  opacity: 1;
}

a {
  color: #ff0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  cursor: pointer;
  text-transform: uppercase;
}

#logo {
  position: absolute;
  top: 20px;
  left: 40px;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
}

#logo h1 {
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  color: #ffffff;
  font-size: 2rem;
  margin: 0;
  padding: 0;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.2s ease, text-shadow 0.3s ease;
}

#logo h1:hover {
  opacity: 1;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

#logo h1:active {
  transform: scale(0.95);
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.8);
}

#info {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
  z-index: 1; /* TODO Solve this in HTML */
}

a,
button,
input,
select {
  pointer-events: auto;
}

.lil-gui {
  z-index: 2 !important; /* TODO Solve this in HTML */
}

@media all and (max-width: 640px) {
  .lil-gui.root {
    right: auto;
    top: auto;
    max-height: 50%;
    max-width: 80%;
    bottom: 0;
    left: 0;
  }
}

#overlay {
  position: absolute;
  font-size: 16px;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.7);
}

#overlay button {
  background: transparent;
  border: 0;
  border: 1px solid rgb(255, 255, 255);
  border-radius: 4px;
  color: #ffffff;
  padding: 12px 18px;
  text-transform: uppercase;
  cursor: pointer;
}

#notSupported {
  width: 50%;
  margin: auto;
  background-color: #f00;
  margin-top: 20px;
  padding: 10px;
}

#contactMeBtn {
  position: absolute;
  bottom: 20px;
  right: 40px;
  width: 120px;
  z-index: 10;
  pointer-events: auto;
}

#contactMeBtn button {
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 6px 0;
  font-family: Monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: left;
  display: block;
  width: 100%;
}

#contactMeBtn button:hover {
  color: #cccccc;
  transform: translateX(5px);
}

#contactMeBtn button:active {
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff;
  transform: translateX(10px) scale(1.1);
  font-weight: bold;
}

#contactMeBtn.active button {
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff;
  transform: translateX(5px);
  font-weight: bold;
}

#loseFocusBtn {
  position: absolute;
  bottom: 60px;
  right: 40px;
  width: 120px;
  z-index: 10;
  pointer-events: auto;
}

#loseFocusBtn button {
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 6px 0;
  font-family: Monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: left;
  display: block;
  width: 100%;
}

#loseFocusBtn button:hover {
  color: #cccccc;
  transform: translateX(5px);
}

#loseFocusBtn button:active {
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff;
  transform: translateX(10px) scale(1.1);
  font-weight: bold;
}

#loseFocusBtn.active button {
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff;
  transform: translateX(5px);
  font-weight: bold;
}

#leftText {
  position: absolute;
  top: 50%;
  left: 40px;
  transform: translateY(-50%);
  z-index: 10;
  color: #ffffff;
  max-width: 300px;
  opacity: 0.9;
}

#rightText {
  position: absolute;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  z-index: 10;
  color: #ffffff;
  max-width: 300px;
  opacity: 0.9;
  text-align: left;
}

#leftText h2 {
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: 64px;
  margin: 0 0 0 40px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#leftText h1 {
  font-family: "Great Vibes", "Dancing Script", "Pacifico", "Satisfy", cursive;
  font-size: 100px;
  margin: 0 0 65px 0;
  font-weight: 400;
  letter-spacing: 5px;
  font-style: italic;
  text-shadow: 0 0 15px rgba(209, 222, 222, 0.7);
}

#leftText p {
  font-family: Monospace;
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 15px 0;
  color: #ffffff;
  opacity: 0.8;
}

#rightText p {
  font-family: Monospace;
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 15px 0;
  color: #ffffff;
  opacity: 0.8;
}

/* Copyright Notice */
#copyright {
  position: absolute;
  bottom: 20px;
  left: 40px;
  z-index: 10;
  pointer-events: none;
}

#copyright p {
  font-family: Monospace;
  font-size: 10px;
  color: #ffffff;
  opacity: 0.6;
  margin: 0;
  letter-spacing: 0.5px;
}
