li{color: beige; list-style-type: disc; padding-left: 40px;}
b{color: beige;}
ul{color: beige; list-style-type: disc; padding-left: 40px;}
h3{color: beige;}
h5{color: beige;}
h4{color: beige;}
h2{color: beige; padding-top: 2%;}
h1{color: beige;}
p{color: beige;}
table{color: beige;}



/* Basic styles for the button */
.image-button {
    display: inline-block;
    border: 4% solid #ccc;
    padding:0%;
    text-decoration: none;
    position: relative;
}

.container{
  display: flex;
  justify-content: center;
  img{
    width: 20%;
  }
}

.containerBottom{
  display: flex;
  justify-content: center;
}

/* Hover effect */
.image-button:hover {
  background-color: #f2f2f2;
}

/* Remove default image border */
.image-button img {
  border: none;
}

body {
  margin: 0;
  padding: 0%;
  font-family: Arial, sans-serif;
  background-color: rgb(68, 70, 70);
}

.brand-icon {
  float: left;
  margin-right: 20%; /* Adjust margin as needed */
  /* Add any other styling for your brand icon */
}

nav {
  background-color: #333;
  color: beige;
  text-align: center;
  padding: 2%;
  position:fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: top 0.3s; 
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

nav li {
  display: inline-block;
  margin-right: 20px;
  position: relative;
}

#content ul {
  list-style-type: disc;
  padding-left: 40px;
}

#content li {
  display: list-item;
  margin-right: 0;
}

a {
  text-decoration: none;
  color: beige;
  font-weight: bold;
  font-size: 18px;
  display: block;
  padding: 10px;
}

.devil-button {
  background: linear-gradient(145deg, #850202, #3f0606, #1b0101, #7a2c2c, #fc5151);
  background-size: 400% 400%;
  border: 2px solid #252222;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: white;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  padding: 15px 30px;
  text-transform: uppercase;
  transition: all 0.4s ease;
  animation: gradient-animation 5s ease infinite;
}

.devil-button:hover{
  background-position: right center;
  box-shadow: 0 10px 30px rgba(255, 181, 181, 0.719);
}

.gold-button {
  background: linear-gradient(145deg, #ffdf00, #ffd700, #ffc700, #ffb700, #ffab00);
  background-size: 400% 400%;
  border: 2px solid #e0a800;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: white;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  padding: 15px 30px;
  text-transform: uppercase;
  transition: all 0.4s ease;
  animation: gradient-animation 5s ease infinite;
}

.gold-button:hover {
  background-position: right center;
  box-shadow: 0 6px 20px rgb(255, 227, 150);
}

.blue-button {
  background: linear-gradient(145deg, #1b0bac, #5661da, #181ab9, #0d017a, #2a43d4);
  background-size: 400% 400%;
  border: 2px solid #4c42da;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(64, 93, 223, 0.2);
  color: white;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  padding: 15px 30px;
  text-transform: uppercase;
  transition: all 0.4s ease;
  animation: gradient-animation 5s ease infinite;
}

.blue-button:hover {
  background-position: right center;
  box-shadow: 0 6px 20px rgb(3, 35, 121);
}


@keyframes gradient-animation {
  0% {
      background-position: 0% 50%;
  }
  50% {
      background-position: 100% 50%;
  }
  100% {
      background-position: 0% 50%;
  }
}


/* Dropdown styles */
.dropdown-content{
  display: none;
  position: absolute;
  background-color: #333;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
  display: block;
  opacity: 1;
}

.dropdown-content a{
  display: block;
  padding: 10px;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s ease-in-out;
}

.dropdown-content a:hover {
  background-color: #555;
}



#content{
    padding: 5%;
    padding-top: 10%;
}


#hash{
    display: flex;
    justify-content: space-between;
}

#right_side, #left_side{
    width: 50%; /* Adjust as needed */
    box-sizing: border-box;
    padding: 2%;
}


/* Style for the container */
.scroll-container {
  width: 90%;
  height: 50%;
  overflow: auto; /* Enable scrolling */
  border: 3px solid #000000;
  background-color: #252525;
}

/* Optional: Style for the content inside the container */
.scroll_content {
  color: rgb(157, 235, 84);
  padding: 5%;
  white-space: pre; /* Preserve whitespace */
  a{color: rgb(85, 249, 255);}
}

/* Style for the container */
.scroll-container2 {
  width: 99%;
  height: 40%;
  overflow: auto;
  border: 3px solid #000000;
  background-color: #252525;
}

/* Optional: Style for the content inside the container */
.scroll_content2 {
  color: rgb(157, 235, 84);
  padding: 1%;
  white-space: pre; /* Preserve whitespace */
}

/* Style for the button */
.button1 {
  padding: 10px 20px;
  background-color: #265252;
  color: white;
  border-width: 3px;
  border-color: #333;
  border-radius: 4px;
  cursor:pointer;
}
/* Style for the button */
.button2 {
  padding: 10px 20px;
  background-color: #265252;
  color: white;
  border-width: 3px;
  border-color: #333;
  border-radius: 4px;
  cursor:pointer;
}
/* Style for the button */
.button3 {
  padding: 10px 20px;
  background-color: #265252;
  color: white;
  border-width: 3px;
  border-color: #333;
  border-radius: 4px;
  cursor:pointer;
}

.navbar{
  text-size-adjust: 2;
}

.hamburger {
  display: none; /* <--- This completely deletes it from view on wide screens */
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: beige;
  transition: all 0.3s ease-in-out;
}

/* The main container holding both the big image and the thumbnail panel */
.gallery {
  max-width: 1100px;
  margin: 60px auto; /* Increased top/bottom margin from 40px to 60px */
  padding: 0 20px;
  display: flex;
  gap: 15%;
  align-items: center; /* This centers the preview vertically next to the grid, instead of aligning to the top */
}

/* Left side: The big preview image */
.main-image {
  width: 50%;        /* Gives the main showcase a bit more prominence */
  height: auto;
  max-width: fit-content;
  object-fit: cover;    
  border-radius: 12px;  
  border: 3px solid #09001a8a;
}

/* Right side: The side-scroll container for thumbnails */
.thumbnails {
  width: 35%;        
  /* This matches the approximate height of your 16:9 main image */
  max-height: 400px; 
  
  /* Enforces vertical scrolling when content spills over */
  overflow-y: auto;  
  overflow-x: hidden; /* Prevents any accidental horizontal shaking */
  
  display: grid;     
  grid-template-columns: repeat(2, 1fr); /* 2 columns inside the scroll area */
  gap: 12px;         
  padding-right: 8px; /* Extra breathing room so the scrollbar doesn't overlap images */
}

/* --- Dark-Themed Custom Scrollbar Styling --- */
/* Modifies the look of the scrollbar container inside .thumbnails */
.thumbnails::-webkit-scrollbar {
  width: 6px; /* Keeps it thin and sleek */
}

/* The background track of the scrollbar */
.thumbnails::-webkit-scrollbar-track {
  background: #1e1e1e; 
  border-radius: 4px;
}

/* The actual draggable handle */
.thumbnails::-webkit-scrollbar-thumb {
  background: #444444; 
  border-radius: 4px;
}

/* Changes handle color slightly when hovered */
.thumbnails::-webkit-scrollbar-thumb:hover {
  background: #555555; 
}

/* Individual thumbnail images */
.thumbnails img {
  width: 100%;       
  height: 90px; /* Fixed height for consistent grid alignment */
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

/* Thumbnail hover effects */
.thumbnails img:hover {
  transform: scale(1.03); 
  border-color: #4da6ff;  
}
/* --- FULL RESPONSIVE MOBILE OVERHAUL --- */
@media (max-width: 1000px) {

  .gallery {
    flex-direction: column;
  }
  .main-image, .thumbnails {
    width: 100%;
  }
  .thumbnails {
    grid-template-columns: repeat(4, 1fr); /* 4 in a row on mobile screen width */
  }

  .container{
    display: flex;
    justify-content: center;
    img{
      width: 30%;
    }
  }

  .containerBottom{
    display: flex;
    justify-content: center;
  }

  /* 1. Global Page layout structure shifts */
  #right_side, #left_side {
       width: 100%;
  }
  #hash {
    display: inline;
  }
  #content{
    padding: 10%;
    padding-top: 20%;
  }

  .scroll-container2 {
    width: 100%;
    height: 40%;
    overflow: auto;
    border: 3px solid #000000;
    background-color: #252525;
  }

  .scroll_content2 {
    color: rgb(157, 235, 84);
    padding: 3%;
    white-space: pre;
    font-size: 50%;
  }

  /* 2. Fixed Navbar Container Setup */
  nav {
    display: block !important;
    position: fixed;
    width: 100%;
    box-sizing: border-box;
    padding: 2% !important;
    background-color: #333 !important;
    min-height: 6%;
  }

  .brand-icon {
    float: left;
    max-width: 35%;
    height: auto;
    margin: 0%;
  }

  /* 3. Hamburger Button Triggers */
  .hamburger {
    display: block !important;
    float: right !important;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1%;
    margin-top: 1%;
    z-index: 1001;
  }

  .hamburger .bar {
    display: block;
    width: 30px;
    height: 4px;
    margin: 5px 0;
    background-color: #f5f5dc !important;
    border-radius: 2px;
  }
  
  /* 4. Main Dropdown Drawer (The ul container) */
  #navbar ul {
    display: block !important;
    position: absolute;
    top: 100%; 
    left: 0%;
    width: 100%;
    background-color: #181818;
    padding: 0%;
    margin: 0%;
    box-sizing: border-box;
    
    /* Initially hide the container */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }
  
  /* Expands the drawer height when the hamburger icon is tapped */
  #navbar ul.active {
    max-height: 100vh; /* Utilizes full view screen height so nothing is clipped */
  }

  /* 5. Main Category Links (DIY Projects, Games, My Projects) */
  #navbar li {
    display: block !important; /* Overrides inline-block so items stack vertically */
    margin: 0% !important;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #000000;

  }

  #navbar ul li a {
    display: flex;
    width: 100%;
    padding: 4% 0%; 
    box-sizing: border-box;
    justify-content: center;
  }

  /* 6. Sub-Category Dropdowns (Clears the side-by-side layout issue) */
  #navbar .dropdown-content {
    display: none !important; /* Controlled purely by the active click */
    position: relative !important; /* Forces the drawer to expand downward, not hover over */
    width: 100%;
    box-shadow: none;
    background-color: #302e2e;
    padding: 0%;
    margin: 0%;
    a{color: #9c76f7;}
  }

  /* Displays the inner content vertically when category is clicked */
  #navbar .dropdown.active .dropdown-content {
    display: block !important;
  }

  /* Internal child links inside sub-menus */
  #navbar .dropdown-content a {
    display: block !important;
    width: 100%;
    padding: 4% 0% !important; /* Clean percentage alignment padding */
    background-color: #252525;
    text-align: center;
    box-sizing: border-box;
    border-bottom: 1px solid #000000;
  }

  .hamburger.active .bar {
    background-color: #454fdb !important; /* Changes the bars to match your gold accent color */
    box-shadow: 0 0 10px #2c29db, 0 0 20px #6014da; /* Creates the glow effect */
    animation: hamburger-glow 1.5s ease-in-out infinite alternate; /* Loops the pulsing glow */
  }

  /* 2. Create the pulsing glow animation effect */
  @keyframes hamburger-glow {
    0% {
      transform: scale(1);
      box-shadow: 0 0 5px #4705e0, 0 0 10px #4837e0;
    }
    100% {
      transform: scale(1.05); /* Slightly pulses the bars larger */
      box-shadow: 0 0 15px #3113db, 0 0 30px #35048f; /* Intensifies the glow */
      background-color: #786ff5 !important;
    }
  }

  #navbar ul li a:hover,
  #navbar ul li a:active {
    background-color: #444; /* Lightens the dark grey background slightly */
    color: #786ff5; /* Flashes the text color to your accent gold */
    transition: background-color 0.1s ease; /* Fast transition for snappy finger feedback */
  }

  /* 2. Feedback for Inner Sub-Dropdown Menu Links when tapped/pressed */
  #navbar .dropdown-content a:hover,
  #navbar .dropdown-content a:active {
    background-color: #333 !important; /* Differentiates the sub-link tap from main links */
    color: #47096b; /* Flashes a slightly deeper gold accent */
    padding-left: 2%; /* Subtle shifting effect to make it feel highly reactive */
    transition: all 0.1s ease;
  }

}
