:root {

  --transition: all 0.5s ease;


  --font_family: 'Inter', sans-serif;


  --font_size: 16px;


  --background_color: #000;
  --background_image: url("../img/background/wallpaper8.webp");

 
  --image_width: 140px;
  --image_height: 140px;

  
  --title_color: #fff;
  --description_color: #e30000;

 
  --svg_color: #fff;


  --menu_background_color: #0e0e0e;
  --menu_text_color: #fff;
  --menu_active_text_color: #d03995;

  
  --button_background_color: #0e0e0e;
  --button_text_color: #fff;
  --button_text_hover_color: #d03995;


  --textarea_background_color: #0e0e0e;
  --textarea_text_color: #fff;
  --textarea_link_text_color: #d03995;

  
  --footer_background_color: #0e0e0e;
  --footer_text_color: #fff;
  --footer_link_text_color: #d03995;
}

::selection {
  background: #96286c;
}

html {
  scroll-behavior: smooth;
}


iframe {
    border: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body * {
  transition: all 0.5s ease;
}

/* Basic Codes */

/*Background */
body {
  background-image: var(--background_image);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  
  font: var(--font_size) var(--font_family);
  font-weight: 400;
  line-height: 1.5;
  background-color: var(--background_color);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  position: relative;
  margin: 0;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

/* end of background*/

/* Wrapper Box */

.wrapper_box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: #000000bf;
  width: 900px;
  border-radius: 50px;
  border: 2px #e962b5 solid;
  padding: 40px 20px 0;
  margin: 60px auto;
}

.wrapper_box .header_h_item {
  text-align: center;
}

.wrapper_box p{
  color: white;
  text-align: center;
  padding: 0 150px;
}

strong {
  color: rgb(224, 224, 224);
}


/* Logo, Title and Description Codes */

.header_img {
  /* padding-top: 8em; */
}

.header_img img {
  height: 81px;
  width: 215px;
  margin-bottom: 0.5em;
}

.header_text h1 {
  color: var(--title_color);
  font-size: 1.2em;
  font-weight: bold;
}

.header_text h2 {
  color: #d03995;
  font-size: 1em;
}

.spacing {
    margin-top: 40vh;
}

/* Nav Menu */

.the-menu ul {
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: center;
    align-items: center;

    list-style: none;
    padding: 0;
    margin: 15px;
}

.the-menu li {
  padding: 5px 15px;
  background-color: var(--textarea_link_text_color);
  border-radius: 20px;
}

.the-menu li:hover {
  transform: scale(1.08);
}

.the-menu li a {
  text-decoration: none;
  color: black;
  font-weight: 600;
  font-size: 0.9em;
}

.the-menu li a:hover {
  color: white;
}

.active-menu {
  color: white;
}

.active-menu a {
  color: white !important;
}

/* Menu Codes */

#header_nav_menu_item_1 {
  color: var(--menu_active_text_color);
}

#header_nav_menu_item_2,
#header_nav_menu_item_3 {
  color: var(--menu_text_color);
}


.header_nav_menu_list {
  padding-top: 1em;
  margin-left: 1em;
  margin-right: 1em;
}

.header_nav_menu_item {
  color: var(--menu_text_color);
  background-color: var(--menu_background_color);
  text-align: center;
  list-style-type: none;
  cursor: pointer;
  padding: 0.5em;
  border-radius: 0.3em;
  cursor: pointer;
  transition: 0.10s ease;
  font-size: 1.1em;
}

.header_nav_menu_item + .header_nav_menu_item {
  margin-left: 0.4em;
}

/* Submissions */

.submissions {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.submissions h2 {
  margin: 0;
  font-weight: 800;
  font-size: 2.2em;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.submissions h3 {
  margin: 0 0 10px 0;
  color: white;
  font-size: 0.8em;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--textarea_link_text_color);
  text-underline-offset: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.random-submission h3{
  text-align: right;
}


a.highlight-email {
  color: var(--menu_active_text_color);
  font-weight: 700;
}

a.highlight-email:hover {
  color: #81255e;
}

.submissions .highlight-email {
  color:#17f059;
}

.submissions .highlight-email:hover {
  color:#868686;
}


/* Guidebook Start */

.guidebook-start {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 240px;
}

.guidebook-start h2,
.community-section h2 {
  margin: 50px 0 20px;
  color: white;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  text-decoration-color: var(--textarea_link_text_color);
}

.warning p {
  color: #d14646;
  font-weight: 600;
  text-decoration: underline;
}

.contributors {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white; /* Fallback color */
    margin-bottom: 60px;
}

.contributors h3 {
    font-size: 1.5rem;
    margin: 10px 0;
    /* Animated Gradient Logic */
    background: radial-gradient(circle,rgba(208, 57, 149, 1) 0%, rgba(171, 171, 171, 1) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: contributor-shine 5s linear infinite;
}

@keyframes contributor-shine {
    to {
        background-position: 200% center;
    }
}

/* Guide Page Nav */
#navigation {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: block;
}

@media (max-width: 1327px) {
  #navigation {
    display: none;
  }
}

#navList {
  list-style: none;
  padding: 0;
  margin: 0;
}

#navList li {
  margin-bottom: 15px;
  max-width: 200px;
}

#navList a {
  display: block;
  color: white;
  text-decoration: none;
  font-size: 14px;
  padding: 5px 10px;
  /* The Thin White Line */
  border-left: 2px solid rgba(255, 255, 255, 0.3); 
  transition: all 0.3s ease;
  word-wrap: break-word;
}

#navList a.active {
  border-left: 6px solid white; 
  font-weight: bold;
  padding-left: 15px;
  background-color: #ff98d159;
}



/* Table of Contents */

.table-contents ul {
  list-style: none; 
  padding: 0;
  margin: 0;
}

.table-contents li {
  margin: 10px 0;
  padding: 8px;
  background-color: #e962b5b4;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.table-contents li:hover {
  background-color: #e962b5;
  transform: scale(1.02);
}

.table-contents a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  display: block;
}

/* Guide Book Pages */
.guide-text p {
  max-width: 850px;
  line-height: 1.6;
  margin: 0 auto 1.5em auto;
}

.guide-text h1,
.guide-text h2 {
  text-align: center;
  text-decoration: underline;
  margin-top: 40px;
  font-size: 1.2em;
}

.guide-text ul,
.guide-text ol {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 800px;
  margin: 20px auto;
  padding-left: 40px;
}

.guide-text li {
  margin-bottom: 15px;
  text-align: left;
  color: rgb(179, 179, 179);
  padding-left: 10px;
}

.guide-text ul li::marker {
    color: rgb(243, 149, 255);
    font-size: 1.2rem;
}

.guide-text ol li::marker {
    color: rgb(243, 149, 255);
    font-weight: bold;
    font-family: 'Inter', sans-serif;
}

.sources {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.page-helper {
    display: flex;
    justify-content: space-between;
    margin: 40px 40px 0;
}

.page-helper a {
  color: rgb(187, 160, 5);
}

.page-helper a:hover {
  color: rgb(231, 197, 6);
}

.page-num {
  color: rgb(187, 160, 5) !important;
}

.example-img img {
    max-width: 820px;
    width: 100%;
    display: block;
    margin: 0 auto;
}

.example-img-2 img {
    max-width: 500px;
    width: 100%;
    display: block;
    margin: 20px auto;
}

.img-caption p{
  max-width: 800px;
  margin: 10px auto 20px auto;
  font-size: 0.8em;
}

.example-img-2.img-caption img {
  margin: 0 auto 5px auto;
  text-align: center;
}

@media (max-width: 962px) {
    .example-img img {
        max-width: 270px;
    }

    .example-img-2 img {
        max-width: 270px;
    }
}

/* Donate */

a.donate-btn {
  font-size: 1.1em;
  color: skyblue;
  text-decoration: underline;
  margin: 40px 0;
}

a.donate-btn:hover {
  color: rgb(84, 130, 148);
}

.donation-text p {
  max-width: 743px;
}



/* Blogs */

.blogs {
    text-align: right;
}

.blogs ul {
  list-style: none;
}

.blogs li a {
  color: white;
}

.blogs li a:hover {
  color: var(--textarea_link_text_color);
}

/* Blog Posts */

.blog-post-content {
    display: flex;
    width: 100%; 
    max-width: 800px; 
    justify-content: flex-start;
    flex-direction: column;
    margin: 0 auto;
}

.blog-post-content p {
    padding: 0 15px; 
    text-align: left;
    color: white;
    line-height: 1.6;
    margin-bottom: 1.5em;
}

.blog-img img, .featured-img img {
    max-width: 100%;
    height: auto;
}

.blog-img {
    display: flex;
    flex-direction: column;
}

.blog-img p {
    margin: 5px auto;
}

.post-title-author {
  display: flex;
  flex-direction: column;
}

.post-title-author h1 {
  color: white;
  margin-bottom: 0;
}

.post-title-author h2 {
  color: gray;
  margin: 0;
  font-size: 0.8em;
}

.featured-img img {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 40px;
    display: block;
}
.blog-nav .page-helper {
    margin: 40px;
}



/* Trusted Sellers */

.seller-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
}

.seller-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #d30ca92e;
    border: solid #ffffff33 2px;
    border-radius: 23px;
    cursor: pointer;
    height: 150px;
    margin: 55px 0;
}

.seller-card:hover {
  transform: scale(1.05);
  border-color: #e962b5;
  background: #d30ca94d;
  box-shadow: 0 10px 20px rgba(211, 12, 169, 0.2);
}

.seller-card img {
    width: 35px;
    height: 34px;
    align-items: center;
}

.seller-card p {
    padding: 0;
    margin: 0;
    font-style: italic;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.seller-card-link {
  text-decoration: none;
  display: block;
  width: 100%;
}

.seller-flex {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
}

.seller-flex h3 {
  color: white;
  width: 125px;
}

.seller-intro {
  text-align: center;
  margin-bottom: 30px;
}

.seller-intro p {
  color: white;
  padding: 0 20px !important; 
  font-size: 1.125em;
  line-height: 1.5;
}


/* 1. The Grid Container */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px;
  width: 100%;
  margin: 30px 30px 60px;
}

/* 2. The Card Styling */
.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card {
  background: #1a1a1a;
  border: 2px solid #e962b5;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 10px;
}

.card-img-container {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 15px 15px 0;
  text-align: left;
}

.card-content h3 {
  color: #d03995;
  margin: 0 0 8px 0;
  font-size: 1.1em;
  text-align: center;
}

.card-content p {
  color: #fff;
  font-size: 0.85em;
  line-height: 1.4;
  padding: 0 !important;
  text-align: left;
}

.card-content h4 {
  margin: 0;
  color: gray;
  font-size: 0.9em;
}

/* 3. Hover Effect */
.blog-card-link:hover .blog-card {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(233, 98, 181, 0.3);
}


/* Youtube */
.yt-vid {
  display: flex;
  justify-content: center;
}

/* --- RESPONSIVE QUERIES --- */

/* Tablet (2 columns) */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wrapper_box {
    width: 95%; /* More space for the box on tablets */
  }
  
  .blog-post-content {
    width: 100%;
  }

  /* Remove the forced padding that pushes text too far on small screens */
  .wrapper_box p, .blog-post-content p {
    padding: 0 20px;
  }
}

/* Mobile (1 column - vertical stack) */
@media (max-width: 650px) {
  .blog-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }
  
  .blog-card-link {
    max-width: 100%;
  }
}


/* Community */

.community-list h3 {
  color: var(--textarea_link_text_color);
  margin-bottom: 5px;
}

.community-icon-link {
  text-decoration: none;
}

.community-list img {
  max-height: 40px;
  display: inline-block;
  transition: transform 0.3s ease;
  margin: 0 3px;
  border: none;
}

.community-icon-link:hover img {
  transform: scale(1.15);
  filter: brightness(1.2);
}

/* Footer Codes */

.footer_div_item {
  color: var(--footer_text_color);
  background: var(--footer_background_color);
  padding: 1em;
  margin-top: 1.5em;
  text-align: center;
}

.footer_a_item {
  color: var(--footer_link_text_color);
  text-decoration: none;
}

/* Global Background Credit */
.background-credit::before {
  content: "Site background from Samurai Jack 2001-2004 by Genndy Tartakovsky - Cartoon Network Studios";
  display: block;
  font-size: 0.7em;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 20px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Back to top button */
#scroll {
    position:fixed;
    right:10px;
    bottom:10px;
    cursor:pointer;
    width:50px;
    height:50px;
    background-color:#d03995b5;;
    text-indent:-9999px;
    display:none;
    -webkit-border-radius:60px;
    -moz-border-radius:60px;
    border-radius:60px
}
#scroll span {
    position:absolute;
    top:50%;
    left:50%;
    margin-left:-8px;
    margin-top:-12px;
    height:0;
    width:0;
    border:8px solid transparent;
    border-bottom-color:#ffffff;
}
#scroll:hover {
    background-color: var(--textarea_link_text_color);
    opacity: 1;
}

/* Responsive Codes */

/* --- TABLET VIEW --- */
@media (max-width: 992px) {
  .wrapper_box {
    width: 90%;
    margin: 40px auto;
    padding: 30px 15px;
  }

  .guidebook-start {
    gap: 50px;
  }

  .wrapper_box p {
    padding: 0 50px;
  }

  .the-menu ul {
    gap: 19px;
  }

  .random-submission h3 {
    padding: 0 20px;
  }

  .random-submission img {
    display: block;
    width: 95%;
    margin: 0 auto;
    height: auto;
}
}

/* --- MOBILE VIEW --- */
@media (max-width: 600px) {
  .wrapper_box {
    border-radius: 25px;
    width: 95%;
  }

  .the-menu ul {
    flex-direction: column;
    gap: 25px;
    width: 100%;
  }

  .the-menu li {
    width: 80%; 
    text-align: center;
  }

  .guidebook-start {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .table-contents, .blogs {
    width: 100%;
    text-align: center;
  }

  .blogs {
    text-align: center;
  }

  .blogs ul {
    padding: 0;
  }

  .submissions h3 {
    text-align: center;
  }

  .wrapper_box p {
    padding: 0 10px;
    font-size: 0.95em;
  }

  .header_img img {
    width: 180px;
    height: auto;
  }

  .random-submission img {
    max-width: 100%;
    height: auto;
  }

  .submissions h2 {
    font-size: 1.8em;
  }

  .seller-list {
    flex-direction: column;
    gap: 40px;
  }

  .sources {
    align-items: flex-start;
    gap: 25px;
  }

  .yt-vid iframe {
    width: 250px;
    height: 200px;
  }

  .page-helper {
  margin: 40px 20px 0;
  }

  .blog-post-content p {
    padding: 0 10px; /* Minimal padding for small phones */
    font-size: 0.95em;
  }

  .post-title-author {
    padding: 0 10px;
  }

  .post-title-author h1 {
    font-size: 1.5rem; /* Shrinks title so it doesn't break line */
  }
  
  .featured-img {
    padding: 0 10px;
  }
}

