@font-face {
  font-family: 'Dumbeldor';
  src: url('/dumbeldor.ttf'), format('ttf');
  font-weight: normal;
  font-style: normal;
}

html,
body {
  margin: 0;
  background-color: #273940;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Dumbeldor', sans-serif;
}

h1 {
  font-size: 3em;
  text-decoration: underline;
}

h2 {
  font-size: 2em;
}

h3 {
  font-size: 1.5em;
}

a {
  color: white;
  font-size: 1.5em;
}

#root {
  width: 100%;
  height: 100%;
}

#app {
  height: 100%;
}

#ui-container {
  position: fixed;
  top: 8px;
  right: 8px;
  width: 300px;
}

/* Tweakpane theme */
:root {
  --tp-base-background-color: hsla(0, 0%, 10%, 0.80);
  --tp-base-shadow-color: hsla(0, 0%, 0%, 0.20);
  --tp-button-background-color: hsla(0, 0%, 80%, 1.00);
  --tp-button-background-color-active: hsla(0, 0%, 100%, 1.00);
  --tp-button-background-color-focus: hsla(0, 0%, 95%, 1.00);
  --tp-button-background-color-hover: hsla(0, 0%, 85%, 1.00);
  --tp-button-foreground-color: hsla(0, 0%, 0%, 0.80);
  --tp-container-background-color: hsla(0, 0%, 0%, 0.30);
  --tp-container-background-color-active: hsla(0, 0%, 0%, 0.60);
  --tp-container-background-color-focus: hsla(0, 0%, 0%, 0.50);
  --tp-container-background-color-hover: hsla(0, 0%, 0%, 0.40);
  --tp-container-foreground-color: hsla(0, 0%, 100%, 0.50);
  --tp-groove-foreground-color: hsla(0, 0%, 0%, 0.20);
  --tp-input-background-color: hsla(0, 0%, 0%, 0.30);
  --tp-input-background-color-active: hsla(0, 0%, 0%, 0.60);
  --tp-input-background-color-focus: hsla(0, 0%, 0%, 0.50);
  --tp-input-background-color-hover: hsla(0, 0%, 0%, 0.40);
  --tp-input-foreground-color: hsla(0, 0%, 100%, 0.50);
  --tp-label-foreground-color: hsla(0, 0%, 100%, 0.50);
  --tp-monitor-background-color: hsla(0, 0%, 0%, 0.30);
  --tp-monitor-foreground-color: hsla(0, 0%, 100%, 0.30);
}

.about-icon {
  position: fixed;
  top: 18px;
  left: 18px;
  width: 40px;
  height: 34px;
  cursor: pointer;
}

.audio-icon {
  display: none;
  position: fixed;
  top: 16px;
  left: 80px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

#loading-screen {
  background-image: url("/background.webp");
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 9999;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 64px;
  box-sizing: border-box;
}

#logo {
  position: relative;
  margin: 64px;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1 / 1;
  clip-path: inset(100% 0 0 0);
  will-change: clip-path;
}

#loading-text {
  font-size: 5em;
  color: white;
  font-family: 'Dumbeldor', serif;
}

/* Overlay */

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Dialog */
.about-dialog {
  background: linear-gradient(135deg, #1e1e1e, #444);
  color: #fff;
  border-radius: 32px;
  width: 90%;
  max-width: 500px;
  padding: 32px;
  margin: 16px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 4px solid white;
}

.about-dialog img {
  width: 128px;
  height: 128px;
  border-radius: 16px;
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.social-icons a {
  color: #fff;
  font-size: 24px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #00acee;
}

/* Close Button */
.close-button {
  margin-top: 24px;
  padding: 12px 24px;
  border: none;
  background: #555;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.close-button:hover {
  background: #777;
}

@media (max-width: 800px) {
  #root {
    display: flex;
    flex-direction: column;
  }

  #app {
    height: 50vh;
  }

  #ui-container {
    position: relative;
    width: 100%;
    overflow-y: auto;
    overscroll-behavior: none;
    top: auto;
    right: auto;
    zoom: 1.3;
  }

  .about-icon {
    position: fixed;
    top: 12px;
    left: 8px;
    width: 30px;
    height: 26px;
    cursor: pointer;
  }

  .audio-icon {
    display: none;
    position: fixed;
    top: 12px;
    left: 46px;
    width: 30px;
    height: 30px;
    cursor: pointer;
  }
}

@media (max-width: 675px) {
  #loading-text {
    font-size: 4em;
  }
}

@media (max-width: 575px) {
  #loading-text {
    font-size: 3em;
  }
}

@media (max-width: 475px) {
  #loading-text {
    font-size: 2em;
  }
}