/* ===== 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;
}

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; /* Change from center */
  height: 100%; /* Add this */
}


.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; /* Remove vertical padding */
  cursor: pointer;
  min-width: 80px;
  display: flex; /* Add this */
  align-items: center; /* Add this */
  justify-content: center; /* Add this */
}

.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; /* Remove vertical padding */
  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;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }
  
  #container {
    height: calc(100vh - 80px);
  }
  
  .navbar {
    width: 90%;
    padding: 8px 12px;
  }
  
  .navHeader {
    max-width: 80px;
  }
    
  button {
    font-size: 12px;
    padding: 5px 10px;
  }
  
  button.active {
    font-size: 12px;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  .navbar {
    width: 95%;
    padding: 6px 8px;
  }
  
  .navHeader {
    max-width: 60px;
  }
  
  button {
    font-size: 11px;
    padding: 4px 8px;
  }
  
  button.active {
    font-size: 11px;
    padding: 4px 8px;
  }
}

.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;
}