
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Basic Reset */
@import url('https://fonts.googleapis.com/css2?family=DynaPuff:wght@400..700&family=Montserrat:wght@400;700&display=swap');

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Body Styles */
body {
  font-family: var(--font-primary);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* CSS Variables */
:root {
  --bg-color: #0f0f0f;
  --text-color: #ffffff;
  --primary-color: #f5deb3; /* Wheat */
  --accent-color: #ff8c00;  /* Dark Orange */
  --nav-bg-color: rgba(15, 15, 15, 0.9);
  --nav-backdrop-filter: blur(5px);
  --font-primary: 'Montserrat', sans-serif;
  --max-width: 1200px;
}


/* Navigation */
  
nav {
  width: 100%;
  position: fixed;
  top: 0;
  background: var(--nav-bg-color);
  backdrop-filter: var(--nav-backdrop-filter);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
}

nav .logo {
  margin-right: auto;
}
nav .nav-links a {
  font-family: 'Montserrat', sans-serif !important;
}

nav .logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  font-family: 'DynaPuff';
  text-decoration: none;
}

nav input[type="checkbox"] {
  display: none;
}

nav .menu-icon {
  display: none;
  cursor: pointer;
}

nav .menu-icon span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px;
  transition: 0.3s;
}

nav .nav-links {
  list-style: none;
  display: flex;
  align-items: center;
}

nav .nav-links li {
  margin-left: 2rem;
}

nav .nav-links li a {
  font-size: 1rem;
  color: #f5f5f5;
  text-decoration: none;
  font-family: var(--font-primary); /* 'Montserrat' font for nav links */
  font-weight: bold;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s;
}

nav .nav-links li a::after {
  content: '';
  height: 2px;
  width: 0;
  background-color: var(--accent-color);
  position: absolute;
  left: 0;
  bottom: -5px;
  transition: width 0.3s;
}

nav .nav-links li a:hover::after,
nav .nav-links li a.active::after {
  width: 100%;
}

nav .nav-links li a:hover,
nav .nav-links li a.active {
  color: var(--accent-color);
}

/* Clear floats if needed */
nav::after {
  content: "";
  display: table;
  clear: both;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
  nav .menu-icon {
    display: block;
    margin-left: auto;
  }

  nav .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100% - 70px);
    background: rgba(15, 15, 15, 0.95);
    flex-direction: column;
    padding-top: 2rem;
    transition: right 0.5s;
  }

  nav .nav-links li {
    margin: 2rem 0;
    text-align: center;
  }

  nav input[type="checkbox"]:checked ~ .nav-links {
    right: 0;
  }

  nav input[type="checkbox"]:checked ~ .menu-icon span:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: 8px;
  }

  nav input[type="checkbox"]:checked ~ .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  nav input[type="checkbox"]:checked ~ .menu-icon span:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    top: -8px;
  }
}
.discord-button {
  display: inline-flex;
  align-items: center;
  background-color: #5865F2;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.discord-button svg {
  margin-right: 8px;
  height: 24px;
  width: 24px;
  min-width: 24px;
}

.discord-button:hover {
  background-color: #4752C4;
}

/* StudyHUB Navigation Styles */
nav .studyhub-nav-link {
  display: inline-flex !important;
  align-items: center !important;
  background-color: #000000 !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: white !important;
  text-decoration: none !important;
  transition: background-color 0.2s, transform 0.2s !important;
  white-space: nowrap !important;
  margin-left: 15px !important;
  border: 2px solid #333 !important;
}

nav .studyhub-nav-link:hover {
  background-color: #333333 !important;
  transform: translateY(-1px) !important;
  color: white !important;
}

nav .studyhub-nav-link:hover::after {
  width: 0 !important;
}

nav .studyhub-logo {
  height: 20px !important;
  width: 20px !important;
  margin-right: 6px !important;
  min-width: 20px !important;
  object-fit: contain !important;
}

/* Specific styles for navigation discord button */
nav .discord-button {
  margin-left: 20px;
  font-size: 14px;
  padding: 8px 16px;
}


/* Main Content Styles */
.main-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 20px 60px 20px;
}
.main-container a {
  color: var(--accent-color); 
  text-decoration: underline; 
  transition: color 0.3s;
  }

  .main-container a:hover {
    color: #ffad42; 
    }
h1, h2, h3 {
  color: var(--accent-color);
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5rem;
  text-align: center;
}

h2 {
  font-size: 1.8rem;
  margin-top: 40px;
}

.main-container p,
.main-container li {
font-size: 1rem;
margin-bottom: 15px;
}

ul {
  list-style-type: disc;
  margin-left: 20px;
}

blockquote {
  font-style: normal;
  background-color: #1e1e1e;
  padding: 15px 20px;
  border-left: 4px solid var(--accent-color);
  margin-bottom: 20px;
}

code {
  background-color: #1e1e1e;
  padding: 2px 4px;
  border-radius: 4px;
  color: var(--accent-color);
}


footer {
  background-color: var(--primary-color); /* Adjusted background */
  padding: 40px 0;
  color: #333333;
  text-align: center;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-links a {
  margin: 5px 15px;
  color: #333333;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.footer-links a:hover,
.footer-links a.privacy-policy {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.social-links a {
  margin: 0 10px;
  color: #333333;
  font-size: 1.5rem;
  transition: color 0.3s;
}
.social-links a svg {
width: 1.5rem; 
height: 1.5rem;
vertical-align: middle;
fill: var(--text-color);
}

.social-links a:hover {
  color: var(--accent-color);
}

.footer-copy {
  color: #aaa;
  font-size: 0.9rem;
}

/* Social Icons Colors */
.social-links .fa-discord {
  color: #7289DA;
}

.social-links .fa-patreon {
  color: #E6461A;
}


.social-links .fa-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.social-links .topgg-link {
  width: 1em;
  height: 1em;
  fill: var(--text-color);
}
footer .topgg-link,
footer .topgg-link .topgg-icon {
    color: #FF3266; /* For text or font-based icons */
    fill: #FF3266;  /* For SVG icons */
}


.social-links .topgg-link:hover {
  fill: var(--accent-color);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .footer-links a {
    margin: 10px 5px;
  }
}


/* Media Queries for Text */
@media screen and (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

}
