/* ========================
   FONTS
======================== */
    @font-face {
        font-family: 'Sail';
        src: url('fonts/Sail-Regular.otf');
    }

    @font-face {
        font-family: 'Pigeon';
        src: url('fonts/Pigeon.otf');
    }

    @font-face {
        font-family: 'Justus-Oldstyle';
        src: url('fonts/Justus-Oldstyle.ttf');
    }

    @font-face {
        font-family: 'Niconne-Regular';
        src: url('fonts/Niconne-Regular.ttf');
    }

      @font-face {
      font-family: 'Flaviotte';
      src: url('fonts/Flaviotte.ttf');
    }

/* ========================
   BASIC STYLING
======================== */
    body {
        margin: 0;
        font-family: 'Justus-Oldstyle', sans-serif;
        background: linear-gradient(180deg, #2b2d4a 0%, #3c456d 100%);
        color: #f3eee8;   
    }

    h1, h3, nav {
        font-family: 'Flaviotte', sans-serif;
        color: #f3eee8;
    }

    section h2 {
  color: #ffddb0;
    } 
  
/* ========================
   NAVIGATION
======================== */
  nav {
    font-size: 22px;
    background-color: #1c2238;
    padding: 15px;
    border-radius: 10px;
    margin: 40px auto;
    max-width: 900px;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    justify-content: center;
    padding: 0;
  }
  
  nav a {
    text-decoration: none;
    color: #9fd3ff;
    transition: color 0.3s ease;
    font-weight: bold;
  }
  
  nav a:hover {
    color: #d89a5b;
  }
  
/* ========================
   HEADER
======================== */
  header {
    text-align: center;
    padding: 40px 20px;
  }
  
  h1 {
    font-size: 36px;
    margin-bottom: 10px;
  }

  h2 {
    font-size: 28px;
    margin-bottom: 40px;
  }

  h3 {
    font-size: 22px;
    margin-bottom: 25px;
  }
  
/* ========================
   MAIN CONTENT
======================== */
  main {
    max-width: 800px;
    margin: auto;
    padding: 20px;
  }

  p {
    line-height: 1.8;
    max-width: 700px;
    margin: 10px auto;
  }

  .container {
    background-color: rgba(20, 24, 43, 0.45);
    padding: 30px;
    border-radius: 15px;
    max-width: 900px;
    margin: 40px auto;
  }

  section {
    margin-bottom: 50px
  }

/* ========================
   ANIMATION
======================== */
.player {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 64px;
  height: 128px;

  background-image: url("images/pixilart-sprite_4.png");
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 384px 128px;

  image-rendering: pixelated;
  z-index: 10;

  animation: walk 0.8s steps(6) infinite;
}

@keyframes walk {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -384px 0;
  }
}


.player {
  animation:
    walk 0.8s steps(6) infinite,
    move 10s linear infinite;
}

@keyframes move {
  0% { left: 0%; }
  100% { left: 100%; }
}

@keyframes move {
  0% {
    left: 0%;
    transform: scaleX(1);
  }
  50% {
    left: 80%;
    transform: scaleX(1);
  }
  51% {
    transform: scaleX(-1);
  }
  100% {
    left: 0%;
    transform: scaleX(-1);
  }
}

/* ========================
   BUTTONS
======================== */

.hero {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 80px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 20px;
  color: #9fd3ff;
  margin-bottom: 20px;
}

.description {
  max-width: 600px;
  margin: 0 auto 30px;
  color: #c9d1e6;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  padding: 10px 20px;
  border-radius: 10px;
  background-color: #8ecae6;
  color: #1c2238;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background-color: #d89a5b;
}

.btn.secondary {
  background-color: transparent;
  border: 1px solid #8ecae6;
  color: #8ecae6;
}