@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Quicksand:wght@500;600;700&display=swap');

:root {
  --bg-parchment: #FAF6F0;
  --bg-parchment-light: #FAF6F0;
  --bg-parchment-dark: #daa392;
  --bg-parchment-dark-border: #c76749;
  --bg-parchment-dark-footer: #db876e;
  --bg-card: #faf6f0;
  --text-primary: #2C2523;
  --text-muted: #6E6259;
  --terracotta: #C86446;
  --terracotta-hover: #AF5136;
  --sage-green: #6B8769;
  --sage-light: #EBF2EB;
  --border-color: #e9d8c3;
  --warm-gold: #E5A93C;
  --font-heading: 'Fredoka', cursive, sans-serif;
  --font-body: 'Quicksand', sans-serif;
}

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

body {
  background-image: linear-gradient(to bottom, var(--bg-parchment-light), var(--bg-parchment-dark));
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/**************************************************************/
/* Navbar */
/* Navbar Base */
.navbar {
  background: rgba(250, 246, 240, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.5rem;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--terracotta);
}

/* Hamburger Toggle Button (Hidden on Desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.nav-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: var(--terracotta);
  border-radius: 4px;
  transition: all 0.25s ease;
}

/* Nav Links - Desktop View */
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.05rem;
  transition: color 0.15s ease, background 0.15s ease;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--terracotta);
  background-color: rgba(200, 100, 70, 0.08);
}

/* Mobile View (Screens under 768px) */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex; /* Show hamburger */
  }

  .nav-links {
    display: none; /* Hide default inline menu */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: -1.5rem;
    right: -1.5rem;
    background: #FAF6F0;
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 1.5rem 1.5rem;
    gap: 1.4rem;
    box-shadow: 0 8px 16px rgba(44, 37, 35, 0.08);
  }

  .nav-links.open {
    display: flex; /* Drop down menu when active */
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 1.15rem;
  }

  /* Animated Hamburger to "X" when open */
  .nav-toggle.open .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }
  .nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }
}




/* .navbar {
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.8rem 1.5rem;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--terracotta);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.05rem;
  transition: color 0.2s ease;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--terracotta);
  background-color: rgba(200, 100, 70, 0.08);
} */

/**************************************************************/
/* Layout & Containers */
.container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  flex: 1;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-terracotta {
  background: #F8E5DF;
  color: var(--terracotta);
}

.badge-sage {
  background: var(--sage-light);
  color: var(--sage-green);
}

.btn-primary {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  padding: 0.75rem 1.6rem;
  border-radius: 25px;
  box-shadow: 0 4px 10px rgba(200, 100, 70, 0.25);
  transition: transform 0.2s, background 0.2s;
}

.btn-primary:hover {
  background: var(--terracotta-hover);
  transform: translateY(-2px);
}

/* Cards & Sections */
.card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(44, 37, 35, 0.3);
}

/**************************************************************/
/* Home Page */
.hero {
    text-align: center;
    padding: 3rem 1rem 4rem;
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--terracotta);
    margin-bottom: 0.75rem;
}
.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}
.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1rem;
}
.game-spotlight {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
}
@media (min-width: 768px) {
    .game-spotlight {
    flex-direction: row;
    align-items: center;
    }
    .game-spotlight-img {
    flex: 1;
    max-width: 45%;
    padding: 0.5rem;
    }
    .game-spotlight-info {
    flex: 1;
    }
}
.game-spotlight-img img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    padding: 0.5rem;
}

/**************************************************************/
/* Game Page */
.game-header {
    margin-bottom: 2rem;
}
.game-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    color: var(--terracotta);
    margin: 0.5rem 0;
}
.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.game-title-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 850px) {
    .game-title-grid {
    grid-template-columns: 0.1fr 1fr;
    }
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 850px) {
    .content-grid {
    grid-template-columns: 2fr 1fr;
    }
}
.feature-list {
    list-style: none;
    margin: 1.25rem 0;
}
.feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}
.itch-widget-container {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 18px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(44, 37, 35, 0.3);
}
.itch-frame {
    width: 100%;
    max-width: 552px;
    height: 167px;
    border: none;
    border-radius: 10px;
    margin-top: 1rem;
}

/* Full-page background specifically for the games view */
main#app.games-theme {
  position: relative;
  max-width: 100%;
  padding: 3rem 1.5rem;
  background-image: url('images/itch_bg.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover; 
  background-attachment: scroll;
}

@media (min-width: 768px) {
  main#app.games-theme {
    background-attachment: fixed;
    padding: 4rem 2rem;
  }
}

main#app.games-theme::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(250, 246, 240, 0.65);
  backdrop-filter: blur(2px);
  z-index: 1;
}

main#app.games-theme > * {
  position: relative;
  z-index: 2;
  /* max-width: 1000px; */
  margin-left: auto;
  margin-right: auto;
}


/**************************************************************/
/* About Page */
.page-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    color: var(--terracotta);
    text-align: center;
    margin-bottom: 2rem;
}
.mascot-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
}
@media (min-width: 768px) {
    .mascot-card {
    flex-direction: row;
    }
    .mascot-card img {
    width: 240px;
    height: 240px;
    }
}
.mascot-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
}
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
@media (min-width: 650px) {
    .team-grid {
    grid-template-columns: 1fr 1fr;
    }
}
.team-card {
    text-align: center;
    padding: 1.75rem;
}
.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--sage-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
}
.member-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-primary);
}
.member-role {
    color: var(--terracotta);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}


/**************************************************************/
/* Links */
.link {
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: color 0.2s ease;
}

.link:hover {
  color: var(--terracotta-hover);
  text-decoration: underline;
}


/**************************************************************/
/* Footer */
footer {
  background: var(--bg-parchment-dark-footer);
  border-top: 2px solid var(--bg-parchment-dark-border);
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--bg-parchment);
  font-size: 1.2rem;
}

footer a {
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 700;
}


/**************************************************************/
/* Loading State */
.loading-state {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4rem 1rem;
}

.bounce-text span {
  display: inline-block;
  /* Apply the animation to each character */
  animation: oscillate 0.3s ease-in-out infinite;
  /* Keeps spaces from collapsing since they are inside spans */
  white-space: pre; 
}

@keyframes oscillate {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px); /* Adjust this value to change how high it jumps */
  }
}