/* ===== FONTS ===== */
@import url("https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap");
@import url("https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap");

@font-face {
  font-family: "Lucida Grande";
  src: url("/src/css/font.otf") format("opentype");
  font-display: swap;
}

:root {
  --header: "Lucida Grande", sans-serif;
}

/* ===== BASE STYLES ===== */
html {
  background-image: url("/src/img/bg.png");
  background-repeat: repeat;
  animation: scrollBackground 300s linear infinite;
  background-attachment: fixed;
  background-size: 200px 200px;
}

body {
  cursor: url("/src/img/cursor.png"), auto !important;
  font-family: var(--header);
  margin: 0;
  padding-top: 100px;
  min-height: 100vh;
}

/* ===== ANIMATIONS ===== */
@keyframes scrollBackground {
  from {
    background-position: 0% 0%;
  }
  to {
    background-position: 1000vw 1000vh;
  }
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-family: var(--header);
  font-weight: 800;
  font-size: 30px;
  color: black;
}

h2 {
  font-family: var(--header);
  font-weight: 800;
  font-size: 25px;
  color: black;
}

p {
  font-family: "Patrick Hand";
  font-weight: normal;
  font-size: 20px;
  color: black;
  margin: 0px;
  margin-bottom: 5px;
}

a {
  text-decoration: none;
  color: #14bf91;
  font-family: "Patrick Hand";
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

a:hover {
  color: #006ac7;
}

code {
  font-family: "DM Mono";
  font-size: 15px;
}

/* ===== LAYOUT ===== */
#container {
  display: block;
  width: 100vw;
  height: 100vh;
  border: none;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;

  display: flex;
  width: 75%;
  height: 50px;
  padding: 0px 12px;
  justify-content: space-between;
  align-items: center;

  border-radius: 10px;
  border: 2px solid #bbddf4;
  background: linear-gradient(180deg, #fefefe 13.33%, #d8efff 88.33%);
  box-shadow: 0 5px 10px 3px rgba(0, 0, 0, 0.25);
}

.navItems {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  height: 100%;
}

.header,
.navHeader {
  display: flex;
  align-items: center;
  max-width: 120px;
  height: auto;
}

/* ===== BUTTONS ===== */
.navBtn {
  height: 100%;
  border: none;
  background: none;
  font-family: var(--header);
  font-weight: 500;
  font-size: 15px;
  color: black;
  border-radius: 0;
  padding: 0 13px;
  cursor: pointer;
  min-width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navBtn.active {
  color: white;
  border-left: 3px solid #1492e6;
  border-right: 3px solid #1492e6;
  background: linear-gradient(180deg, #51b9ff 0%, #007cf0 100%);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  padding: 0 12px;
  min-width: 80px;
}

.navBtn:hover {
  border-left: 1px solid #bbddf4;
  border-right: 1px solid #bbddf4;
  background: linear-gradient(180deg, #c0e6ff 0%, #7abfff 100%);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  color: white;
}

.errContainer {
  display: flex;
  height: fit-content;
  width: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.errSubtitle {
  margin-top: 20px;
  text-align: center;
  align-items: center;
  align-self: center;
}

.err404 {
  font-family: "DM Mono" !important;
}

.err404 p {
  font-size: 12px !important;
}

.ad-left,
.ad-right {
  position: fixed;
  top: 100px; /* below navbar */
  width: 15%; /* matches your margin */
  height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
}

.ad-left {
  left: 0;
}

.ad-right {
  right: 0;
}

.changelog {
  background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 600px) {
  .ad-left,
  .ad-right {
    display: none;
  }

  .navbar {
    width: calc(100% - 32px);
    top: 0px;
    height: auto;
    flex-direction: column;
    padding: 12px 16px;
    align-items: flex-start;
  }

  .navbar > div:first-child {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: flex !important;
  }

  .navItems {
    display: none;
    flex-direction: column;
    width: 100%;
    height: auto;
    margin-top: 12px;
  }

  .navItems.active {
    display: flex;
  }

  .navItems a {
    width: 100%;
  }

  .navBtn {
    width: 100%;
    height: 45px;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 5px;
    justify-content: flex-start;
  }

  .navBtn.active {
    border-left: none;
    border-right: none;
    border-radius: 5px;
  }

  .navBtn:hover {
    border-left: none;
    border-right: none;
    border-radius: 5px;
  }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}
