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

:root {
    --navbar-width: 300px;
}

@font-face {
  font-family: 'SauceSans';
  src: url('font/Sauce_Sans.ttf') format('truetype');
}

/* for navbar */
.navbar {
    background-color: black;
    width: var(--navbar-width); /* Adjust width as needed */
    height: 100vh; /* Full viewport height */
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally within the navbar */
    position: fixed; /* Fix the navbar to the left side of the viewport */
    top: 0;
    left: 0;
    z-index: 999;
    font-family: 'Consolas', monospace, Comic Sans MS;
    font-size: 1.2rem;
    opacity: 1; /* Fully visible */
    transform: scale(1) translateX(0); /* Scale up to normal size and move to the visible position */
    transition: transform 0.3s ease, opacity 0.3s ease; /* Transition for scale, translate, and opacity */
}

/* When the navbar is shown (after toggling) */
.navbar.closed {
    transform-origin: 20% 8%;
    opacity: 0; 
    transform: scale(0) translateX(-100%) translateY(-100%); /* Start from off-screen and scaled down */
    transition: transform 0.3s ease, opacity 0.3s ease; /* Transition for scale, translate, and opacity */
}

.navbar__terminal {
    background-color: #333; /* Dark grey background */
    color: #ccc; /* Light grey text */
    width: 100%; /* Full width of the navbar */
    padding: 10px;
    font-family: 'consolas', monospace; /* Monospace font for terminal look */
    font-size: 0.9rem;
    text-align: left;
    border-bottom: 1px solid #555; /* Slight border for separation */
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between terminal text and close button */
}

.close-btn {
    cursor: pointer;
    color: #ccc;
    font-size: 1.2rem;
}

.reopen-box {
    display: block; /* Hidden initially */
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: #333;
    color: #ccc;
    padding: 5px 10px;
    font-family: 'consolas', monospace; /* Monospace font for terminal look */
    cursor: pointer;
    border: 5px solid #000000;
    border-radius: 3px;
    z-index: 500;
    opacity: 0.75; /* Set the transparency */
}

#navbar__logo {
    padding: 20px 0px 0px 0px;
    background-color: #ffffff;
    background-image: linear-gradient(to top, #ffffff 0%, #929292 100%);
    background-size: 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 2rem;
    position: relative; /* Required for ::after positioning */
}

.navbar__menu li {
    margin: 20px 0;
}

.navbar__menu a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    position: relative;
    font-size: 1.2rem; /* Default size of links */
    transition: transform 0.3s ease, font-size 0.3s ease;
    display: inline-block;
}

/* Hover effect to match the logo’s font size */
.navbar__menu a:hover {
    transform: scale(1.67); /* Scale up to match the 2rem logo size */
}

.navbar__menu a:hover::after {
    content: '|';
    position: absolute;
    right: -10px; /* Adjust as needed */
    animation: blink 0.7s steps(1) infinite;
}

.background-container {
    display: flex;
    width: 200%; /* Allows both images to fit side by side */
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    animation: scrollBackground 20s linear infinite;
    z-index: -1; /* Make sure it stays behind other elements */
}

.background-image {
    width: 50%; /* Each background div takes half of 200% */
    height: 100%;
    background-image: url('/images/bg1.jpg'); /* Replace with your image */
    background-size: cover;
    opacity: 0.1; /* Set the transparency */
}

/* for logo */
.cursor {
    background-color: #ffffff;
    background-image: linear-gradient(to top, #ffffff 0%, #929292 100%);
    background-size: 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    right: -20px; /* Adjust as needed */
    animation: blink 0.7s steps(1) infinite;
    font-weight: bold;
    position: absolute;
}

.content {
    padding: 50px calc(var(--navbar-width) / 2 + 10px) 0px calc(var(--navbar-width) / 2 + 10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease; /* Smooth transition */
    z-index: 1;
    font-family: 'Comic Sans MS', 'Comic Neue', consolas;
    font-size: 2rem;
    width: 100%; /* Full width */
    text-align: center; /* left text */
}

/* for contentpage */
.content_p_main {
    align-self: flex-start;
    text-align: left;
    text-indent: -18px;
    color: #000000; 
    padding:10px 10px 10px 28px;
    font-size: 1.5rem;
}

.content_p_2nd {
    font-style: italic;
    color: #333;
    padding:15px 0px 25px 0px;
    font-size: 1.25rem;
}

.content_p_heading {
    align-self: flex-start;
    font-style: italic;
    color: #000000;
    padding:10px 0px 10px 8px;
    font-size: 5rem;
}

.content__menu {
    list-style: none; /* Remove default list styles */
    padding: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between list items */
    z-index: 500;
}

.content__item {
    width: 100%; /* Make each box span full width */
}

.content__links {
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit text color */
}
.content-image {

    height: 400px; /* Set height of image */
    margin: 20px; /* Space between image and text */
    border-radius: 5px; /* Optional: round the image edges */
    box-shadow: 0px 4px 8px rgba(119, 0, 255, 0.2);
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px; /* Optional: limit the max width */
    margin: 0 auto; /* Center the video horizontally */
    margin-bottom: 20px;
    padding-top: 56.25%; /* 16:9 Aspect Ratio (height / width = 9 / 16 = 0.5625) */
  }
  
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; /* Remove iframe border */
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(119, 0, 255, 0.2);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border: none; /* Remove iframe border */
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(119, 0, 255, 0.2);
  }
  
.fun-video-container {
    z-index: 750;
    display: none;
    position: relative;
    width: 100%;
    max-width: 800px; /* Optional: limit the max width */
    margin: 0 auto; /* Center the video horizontally */
    margin-bottom: 20px;
    padding-top: 56.25%; /* 16:9 Aspect Ratio (height / width = 9 / 16 = 0.5625) */
}
  

.fun-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border: none; /* Remove iframe border */
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(119, 0, 255, 0.2);
  }

#textBox {
    display: none;
    position: relative; /* Ensure proper stacking context */
    z-index: 600;
    top: -350px;
    font-family: 'Comic Sans MS', 'Comic Neue', consolas;
    width: 100%;
    max-width: 600px; /* Optional: limit the max width */
    padding: 20px;
    background: rgba(128, 128, 128, 0.25); /* Grey background with 0.25 opacity */
    border-radius: 10px; /* Rounded corners */
    font-size: 2rem;
    outline: 4px solid rgb(0, 0, 0); /* Red outline with 5px width */
  }

#textContent {
    display: flex;
    flex-direction: column; /* Stack title and description vertically */
    text-align: left;

}

#textImage{
    width: 300px;
    height: 250px; /* Set height of image */
    margin-right: 20px; /* Space between image and text */
    border-radius: 5px; /* Optional: round the image edges */
    object-fit: cover;
  }

/* for link boxes*/
.link-box {
    display: flex;
    align-items: flex-start; /* Align content to the top */
    padding: 20px;
    background: rgba(128, 128, 128, 0.25); /* Grey background with 0.25 opacity */
    border-radius: 10px; /* Rounded corners */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Add hover effects */
    cursor: pointer; /* Make entire box clickable */
    outline: 4px solid rgb(0, 0, 0); /* outline with 5px width */
}

.link-box:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
    box-shadow: 0px 4px 8px rgba(119, 0, 255, 0.2); /* Add shadow on hover */
}

.link-box-container {
    display: flex;
    gap: 20px; /* Adjust gap between buttons */
    padding: 20px;
  }  

.link-box-pcbway {
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit text color */
    display: flex;
    align-items: flex-start; /* Align content to the top */
    font-weight: bold;
    line-height: 2;
    padding: 20px;
    background: rgba(0, 255, 34, 0.25); /* Grey background with 0.25 opacity */
    border-radius: 10px; /* Rounded corners */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Add hover effects */
    cursor: pointer; /* Make entire box clickable */
    outline: 4px solid rgb(0, 0, 0); /* outline with 5px width */
}

.link-box-pcbway:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
    box-shadow: 0px 4px 8px rgba(119, 0, 255, 0.2); /* Add shadow on hover */
    color: #7700ff;
}

.link-image {
    width: 200px;
    height: 200px; /* Set height of image */
    margin-right: 20px; /* Space between image and text */
    border-radius: 5px; /* Optional: round the image edges */
    object-fit: cover;
}

.link-content {
    display: flex;
    flex-direction: column; /* Stack title and description vertically */
    text-align: left;
}

.link-title {
    font-size: 2rem; /* Make title stand out */
    font-weight: bold; /* Bold title */
    margin: 0 0 20px 0; /* Add spacing below the title */
}

.link-description {
    font-size: 1.5rem; /* Smaller font for description */
    color: #535252; /* Grey text color */ 
    height: 100%; /* Set height of image */
}

/* /project/carousel */

.carousel-main {
  width: 100%;
  max-width: 600px;
  height: 500px;
  overflow: hidden;
  margin-bottom: 10px;
  margin-top: 20px;
  position: relative;
}

#current-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  opacity: 1;
  transition: opacity 1s ease; /* Smooth fade effect */
}

.carousel-thumbnails {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping to a new row */
  gap: 10px; /* Space between images */
  justify-content: center; /* Center thumbnails horizontally */
  max-width: 600px; /* Optional: limit the width of the thumbnail section */
}

.thumbnail {
  width: 100px;
  height: 75px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-radius: 5px;
}

.thumbnail:hover, .thumbnail.active {
  opacity: 1;
  transform: scale(1.1);
  border: 2px solid #7700ff;
} 

#playButton {
    font-family: 'Comic Sans MS', 'Comic Neue', consolas;
    display: flex;
    align-items: flex-start; /* Align content to the top */
    padding: 20px;
    margin: 0px 20px 30px 20px;
    background: rgba(128, 128, 128, 0.25); /* Grey background with 0.25 opacity */
    border-radius: 10px; /* Rounded corners */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Add hover effects */
    cursor: pointer; /* Make entire box clickable */
    font-size: 5rem;
}

#playButton:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
    box-shadow: 0px 4px 8px rgba(119, 0, 255, 0.2); /* Add shadow on hover */
    color: #7700ff; /* Change the link color when hovered */
}

/*contact*/

.contact__menu p {
    color: #808080; 
    font-style: italic;
}

.contact__menu a {
    color: #333; /* Set the text color of the link */
    text-decoration: none; 
}

.contact__menu li {
    padding: 10px 0px 0px 0px;
    list-style-type: none;
    font-weight: bold;
    line-height: 2;
}

.contact__menu a:hover {
    color: #7700ff; /* Change the link color when hovered */
}

/* for contact/email-copying */
.copy-notification {
    display: none; /* Hide by default */
    color: green;
    margin-left: 20px;
    animation: fadeOut 2.5s forwards; /* Smooth fade-out */
    font-family: 'Consolas', cursive, sans-serif;
    position: absolute;
}

@media (max-width: 750px) {
    /* Adjust padding for smaller screens */
    .content-image {
        height: 200px; /* Set height of image */
        margin: 20px; /* Space between image and text */
        border-radius: 5px; /* Optional: round the image edges */
        box-shadow: 0px 4px 8px rgba(119, 0, 255, 0.2);
    }

    .content {
        padding: 20px 20px 0px 20px;
        font-size: 1.5rem; /* Adjust font size for mobile */
    }
    
    .link-box {
        padding: 15px;
        width: 100%; /* Ensure box fills the screen */
    }

    .link-image {
        width: 100px; /* Resize image */
        height: 100px; /* Resize image */
        margin-bottom: 15px; /* Space between image and text */
        border-radius: 5px; /* Optional: round the image edges */
    }

    .link-content {
        display: flex;
        flex-direction: column; /* Stack title and description vertically */
        text-align: left;
    }

    .link-title {
        font-size: 1.2rem; /* Smaller title for mobile */
        font-weight: bold; /* Bold title */
        margin: 0 0 20px 0; /* Add spacing below the title */
    }

    .link-description {
        font-size: .9rem; /* Smaller description for mobile */
        color: #333; /* Darker color for better contrast */
        height: 100%; /* Set height of image */
    }

    .carousel-main {
        max-width: 400px;
        height: 333px;
      }

    .carousel-thumbnails {
        max-width: 400px; /* Optional: limit the width of the thumbnail section */
      }

    #playButton {
        padding: 10px;
        margin: 0px 10px 20px 10px;
        font-size: 5rem;
        color: #000000; 
    }
    #textBox{
        top:-350px;
        font-size: 2rem;
        width: 100%;
    }
    #textImage{
        width: 200px;
        height: 150px; /* Set height of image */
        margin-right: 20px; /* Space between image and text */
        border-radius: 5px; /* Optional: round the image edges */
        object-fit: cover;
    }
}

@media (max-width: 400px) {
    /* Adjust padding for smaller screens */
    .content-image {
        height: 200px; /* Set height of image */
        margin: 20px; /* Space between image and text */
        border-radius: 5px; /* Optional: round the image edges */
        box-shadow: 0px 4px 8px rgba(119, 0, 255, 0.2);
    }

    .content {
        padding: 20px 20px 0px 20px;
        font-size: 1.5rem; /* Adjust font size for mobile */
    }
    
    .link-box {
        padding: 15px;
        width: 100%; /* Ensure box fills the screen */
    }

    .link-image {
        width: 100px; /* Resize image */
        height: 100px; /* Resize image */
        margin-bottom: 15px; /* Space between image and text */
        border-radius: 5px; /* Optional: round the image edges */
    }

    .link-content {
        display: flex;
        flex-direction: column; /* Stack title and description vertically */
        text-align: left;
    }

    .link-title {
        font-size: 1.2rem; /* Smaller title for mobile */
        font-weight: bold; /* Bold title */
        margin: 0 0 20px 0; /* Add spacing below the title */
    }

    .link-description {
        font-size: .9rem; /* Smaller description for mobile */
        color: #333; /* Darker color for better contrast */
        height: 100%; /* Set height of image */
    }

    .carousel-main {
        max-width: 400px;
        height: 333px;
      }

    .carousel-thumbnails {
        max-width: 400px; /* Optional: limit the width of the thumbnail section */
      }

    #playButton {
        padding: 10px;
        margin: 0px 10px 20px 10px;
        font-size: 3rem;
        color: #000000; 
    }
    #textBox{
        top:-200px;
        font-size: 1.3rem;
    }
    #textImage{
        width: 200px;
        height: 150px; /* Set height of image */
        margin-right: 20px; /* Space between image and text */
        border-radius: 5px; /* Optional: round the image edges */
        object-fit: cover;
    }
    .fun-video-container {
        width: 200%;
        left: -50%;
    }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

/* Blinking cursor animation */
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

@keyframes scrollBackground {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}