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



/* ========== Base ========== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  /* Uncomment to use your graffiti BG */
  background-size: cover;
  overflow-x: hidden;
  
}

.back-button-container {
  text-align: center;
  margin-top: 30px;
}

.back-button-container button {
  background: linear-gradient(135deg, #6200ea, #003399);
  color: white;
  border: none;
  padding: 20px 40px;
  border-radius: 40px;
  font-size: 1.2rem;
  margin-top: 2rem;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.back-button-container button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #b388ff;
}

.right-corner {
  position: absolute;
  top: 150px;
  right: 60px;
  width: 300px;
  height: auto;
  border-radius: 15px;
}





.can-pic {
  position: absolute;
  top: 240px;
  left: 560px;
  width: 300px;
  height: auto;
  z-index: 10;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  animation: fadeInTitle 1.2s ease forwards;
}





/* title picture */
.title-pic {
  position: absolute;
  top: -170px;
  left: 10px;
  width: 1200px;
  height: auto;
  z-index: 10;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  animation: fadeInTitle 1.2s ease forwards;
}

.pack-pic {
  position: absolute;
  top: 160px;
  left: 10px;
  width: 700px;
  height: auto;
  z-index: 10;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  animation: fadeInTitle 1.2s ease forwards;
}

/* skateboard directly under title */
.skateboard-pic {
  position: absolute;
  top: 400px;      /* about 120px below title (adjust to fit visually) */
  left: 90px;     /* center under title */
  width: 550px;    /* make skateboard visible but smaller than title */
  height: auto;
  z-index: 10;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  animation: fadeInTitle 1.2s ease forwards;
}


.ramp-pic {
  position: absolute;
  top: 300px;      /* about 120px below title (adjust to fit visually) */
  right: -30px;     /* center under title */
  width: 900px;    /* make skateboard visible but smaller than title */
  height: auto;
  z-index: 10;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  animation: fadeInTitle 1.2s ease forwards;
}












/*

.gradient {
  position: absolute;
  width: 100svw;
  height: 100svh;
  background: linear-gradient(180deg, #28017D 0%, #6320A3 40.38%, #CE50BE 79.81%, #E47EBF 89.42%, #FFDADB 100%);
  z-index: 0;
}
*/
.gradient {
  position: relative;        /* was absolute */
  width: 100svw;
  height: 100svh;            /* full viewport */
  background: linear-gradient(180deg, #28017D 0%, #6320A3 40.38%, #CE50BE 79.81%, #E47EBF 89.42%, #FFDADB 100%);
  z-index: 0;
  display: flex;             /* center #home content */
  align-items: center;
  justify-content: center;
  padding-top: 80px;         /* avoid sticky nav overlap (tweak if needed) */
}

.gradient::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px; /* controls blend distance */
  background: linear-gradient(to bottom, transparent, white);
}


/* Smooth scroll */
html { scroll-behavior: smooth; }

/* ========== Header (sticky) ========== */
header {
  text-align: center;
  background-color: rgba(40, 0, 80, 0.8);
  padding: 1rem 1rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav a {
  color: #c9b6ff;
  text-decoration: none;
  margin: 0 12px;
  font-weight: bold;
  transition: 0.2s ease;
}

.site-nav a:hover {
  color: #ffb6ff;
  text-shadow: 0 0 10px #fff;
}

.site-nav a.active {
  color: #ffb6ff;
  border-bottom: 2px solid #ffb6ff;
}

/* ========== Panels (main + sections) ========== */
main, section {
  text-align: center;
  padding: 3rem 2rem;
  margin: 2rem auto;
  border-radius: 20px;
  max-width: 1000px;
  min-height: 100vh;            /* full-screen feel */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  

  /* single animation name to avoid conflicts */
  animation: fadeInPanel 0.8s ease-in-out;
}

/* prevent sticky header from covering titles */
main, section { scroll-margin-top: 120px; }

/* Headings/paragraphs */


/* ========== Buttons ========== */
button {
  background: linear-gradient(135deg, #6200ea, #003399);
  color: white;
  border: none;
  padding: 20px 40px;
  margin: 15px;
  cursor: pointer;
  border-radius: 40px;
  font-size: 1.2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}







button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #b388ff;
}

/* ========== Footer (uncomment if you want it visible) ========== */
/*
footer {
  background-color: rgba(34, 34, 34, 0.9);
  color: #ccc;
  text-align: center;
  padding: 1rem;
  margin-top: 4rem;
  border-top: 2px solid #003399;
}
*/

/* ========== Animations (single definitions) ========== */
@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

body.fade-in { opacity: 0; animation: fadeInBody 0.8s forwards; }
body.fade-out { opacity: 1; animation: fadeOutBody 0.5s forwards; }

@keyframes fadeInBody { to { opacity: 1; } }
@keyframes fadeOutBody { to { opacity: 0; } }

/* ========== Optional: subtle tint per section ========== */
#beginner { background-color: rgba(147, 112, 219, 0.3); }
#boards   { background-color: rgba(123, 104, 238, 0.3); }
#gear     { background-color: rgba(75, 0, 130, 0.3); }
#repair   { background-color: rgba(106, 90, 205, 0.3); }
#injury   { background-color: rgba(72, 61, 139, 0.3); }

/* ========== Responsive tweaks ========== */
@media (max-width: 900px) {
  .corner-logo { width: 180px; left: 12px; top: 12px; }
  .right-corner { width: 180px; right: 14px; top: 14px; }
  .site-title  { font-size: 3.2rem; letter-spacing: 2px; }
  main, section { margin: 1rem; border-radius: 16px; }
}





/* HOME HERO SECTION IMAGE BACKGROUND */
.home-hero {
  position: relative;
  background: url('skatepark.jpg') center center / cover no-repeat;
  border-radius: 20px;
  max-width: 1000px;
  min-height: 90vh;
  margin: 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(100, 0, 200, 0.4);
  overflow: hidden;
}

/* dark overlay for text contrast */
.home-overlay {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
  padding: 3rem 2rem;
  border-radius: 20px;
  text-align: center;
  animation: fadeInPanel 1s ease;
}

/* text inside home section */
.home-overlay h2 {
  font-family: 'ReignBeats', sans-serif;
  font-size: 3rem;
  color: #e6d6ff;
  text-shadow: 0 0 10px #8a2be2;
}

.home-overlay p {
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 1rem auto;
}

/* reuse your existing button style */
.home-overlay button {
  background: linear-gradient(135deg, #6200ea, #003399);
  color: white;
  border: none;
  padding: 20px 40px;
  border-radius: 40px;
  font-size: 1.2rem;
  margin-top: 2rem;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.home-overlay button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #b388ff;
}






/* ===== TYPES OF BOARDS SECTION ===== */
#boards {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(100, 0, 200, 0.4);
  padding: 3rem 2rem;
}

#boards h2 {
  font-family: 'ReignBeats', sans-serif;
  font-size: 3rem;
  color: #e6d6ff;
  text-shadow: 0 0 10px #8a2be2;
  margin-bottom: 2rem;
}

#boards p {
  color: #f8f6ff;
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 2rem;
}

/* Grid layout for board types */
.board-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* Each card */
.board-card {
  background: rgba(20, 0, 40, 0.6);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 0 15px rgba(75, 0, 130, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.board-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #b388ff;
}

.board-card h3 {
  font-family: 'ReignBeats', sans-serif;
  color: #c9b6ff;
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.board-card p {
  font-size: 1rem;
  color: #eee;
  line-height: 1.6;
}



/* ===== SKATE GAME ===== */
.skate-game {
  position: relative;
  z-index: 1;
  margin-top: 0px;  /* adjust this for more or less space */
  background: rgba(255,255,255,0.05);
  padding: 3rem 2rem;
  border-radius: 20px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 30px rgba(100, 0, 200, 0.25);
}


.skate-game h2 {
  font-family: 'ReignBeats', sans-serif;
  color: #e6d6ff;
  text-shadow: 0 0 10px #8a2be2;
  margin: 0 0 10px;
}


.game-container {
  text-align: center;
}

.game-info {
  color: #fff;
  margin-bottom: 10px;
  font-size: 18px;
}

#gameCanvas {
  display: block;
  background: linear-gradient(180deg, #87ceeb 0%, #e0f6ff 100%);
  border: 4px solid #333;
  border-radius: 8px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  cursor: grab;
  max-width: 100%;
  height: auto;               /* scale down responsively */
}

#gameCanvas:active { cursor: grabbing; }

.game-instructions {
  color: #fff;
  margin-top: 14px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  line-height: 1.6;
}




h2 {
  font-family: 'Splash', sans-serif;
  font-size: 80px;
  margin-bottom: 1rem;
  color: #010082;
}

h1 {
  font-family: "Tangerine", cursive;
  font-weight: bold;
  color: royalblue;
  font-size: 65px;
}

p {
  font-family: "Zen Antique Soft", serif;
  font-size: 24px;
  line-height: 1.7;
  max-width: 900px;
  margin: 1rem auto;
}

li {
  font-family: "Zen Antique Soft", serif;
  font-size: 30px;
}




