@font-face {
  font-family: 'NTBau-Medium';
  src: url('../fonts/NTBau-Medium.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto Mono';
  src: url('../fonts/RobotoMono-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow: hidden;
  background-color: #000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

#canvas {
  display: block;
  width: 100%;
  height: 100vh;
}

#landing-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: #000;
  background-image: url('../data/splashback.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1000;
  transition: opacity 0.5s ease-out;
}

#landing-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

#store-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  z-index: 3;
}

#store-header span {
  color: #fff;
  font-size: 18px;
  text-shadow: 2px 2px 4px #000;
  letter-spacing: 1px;
}

#store-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

#store-links a {
  display: block;
  transition: transform 0.3s ease;
}

#store-links a:hover {
  transform: translateY(4px);
}

#store-header img {
  display: block;
  height: 48px;
  width: auto;
}

#aesthetica-footer {
  margin-bottom: 20px;
  margin-top: 20px;
  height: 120px;
  width: auto;
  max-width: 90vw;
  flex-shrink: 0;
  z-index: 1;
  pointer-events: none;
}

#splash-stack {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5vh;
  width: 100%;
  z-index: 2;
}

#splash-stack picture {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 90vw;
  max-height: 25vh;
}

#splash-stack img {
  flex: 0 1 auto;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

#enter-button {
  z-index: 2;
  padding: 10px 30px;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  background-color: #000;
  border: 2px solid #fff;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  width: max-content;
}

#enter-button:hover {
  background-color: #1a1a1a;
  transform: translateY(4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

#enter-button:active {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

#trailer-button {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width:auto;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  align-items: center;
  margin-top:-20px;
  margin-bottom: -20px;
}

#trailer-button:hover {
  transform: translateY(4px);
}

#trailer-button + picture {
  margin-top: 0vh;
}

#trailer-play-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #fff;
  margin-bottom: 12px;
  filter: drop-shadow(2px 2px 4px #000);
}

#trailer-play-icon {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 24px solid #000;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
}

#trailer-label {
  display: block;
  text-align: center;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px #000;
}

#trailer-note {
  color: #fff;
  font-size: 16px;
  text-shadow: 2px 2px 4px #000;
  letter-spacing: 1px;
  text-align: center;
  padding: 0 20px;
}

#trailer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

#trailer-box {
  position: relative;
  width: min(90vw, 960px);
  background-color: #000;
  padding: 48px 8px 8px;
}

#trailer-embed {
  width: 100%;
}

#trailer-close {
  position: absolute;
  top: 4px;
  right: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

#enter-button,
#trailer-button,
#trailer-note {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  #store-header img {
    height: 38px;
  }
}

@media (max-width: 768px), (max-height: 768px) {
  #aesthetica-footer {
    height: 96px;
  }
}
