@font-face {
  font-family: 'FantasyPixelFont';
  src: url('/fonts/Fantasypixelfont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

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

body,
html {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  font-family: 'FantasyPixelFont', sans-serif;
  color: #fff;
  background: transparent;
}

.bg-layer {
  position: fixed;
  inset: 0;
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: opacity;
  opacity: 0;
  transition: opacity;
  z-index: -1;
}


.bg-layer.active {
  opacity: 1;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  z-index: 1000;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
}

nav a:hover {
  color: #e3b04b;
}

nav a:hover::after {
  width: 100%;
}

nav a:active {
  transform: scale(0.95);
  color: #f0c974;
}

#logo {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  max-width: 70%;
  z-index: 0;
  pointer-events: none;
}

#logo-small {
  display: none;
  height: 100px;
  width: auto;
}

@media (max-height: 820px) {
  #logo {
    display: none;
  }

  #logo-small {
    display: block;
  }
}

main {
  position: relative;
  z-index: 1;
}

section.slide {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
  position: relative;
}

.panel {
  background: rgba(0, 0, 0, 0.55);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 650px;
  opacity: 0;
  transform: translateX(50px);
  transition: all 1s ease;
}

.panel h1,
.panel h2 {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}

.panel p {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  line-height: 1.6;
}

.panel.slide-in-left {
  opacity: 1;
  transform: translateX(0);
}

.panel.slide-in-right {
  opacity: 1;
  transform: translateX(0);
}

button {
  margin-top: 1.5rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  background: #e3b04b;
  color: #000;
}

button:hover {
  opacity: 0.85;
}