/* Global Styles */
body {
    margin: 0;
    padding: 0;
    font-family: "JetBrains Mono", monospace;
    background-color: #000000;
    color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: top;
    height: 75vh;
    padding: 20px
}

/* Main container */
main {
    text-align: left;
    width: 560px; /* Slightly narrower */
}

/* Title */
.title {
    font-size: 1.1rem; /* Slightly smaller */
    margin-bottom: 1rem;
    text-align: left;
}

/* Stacked Menu Sections */
.menu-section {
    margin-bottom: 0.3rem; /* Less spacing between stacked menus */
}

/* Vertical Menu */
.menu {
    list-style: none;
    padding: 0;
    width: 100%;
}

/* Menu Items */
.menu li {
    display: block;
    width: 100%;
    margin-bottom: 0.3rem; /* Reduce spacing */
}

/* Menu Links */
.menu a {
    display: block;
    padding: 0.4rem; /* Reduced height */
    text-decoration: none;
    color: #f0f0f0;
    background: #000000;
    border-left: 0px solid transparent;
    border-bottom: 1px solid #f0f0f0; 
    transition: all 0.5s ease;
    font-size: 0.80rem; /* Slightly smaller font */
}

/* Hover Effect */
.menu a:hover {
    border-left: 2px solid #f0f0f0;
}

/* Dropdown Content */
.submenu {
    display: none;
    color: #000000;
    background: #f0f0f0;
    padding: 0.4rem;
    margin-top: 0.3rem;
    border-left: 6px solid #000000;
    font-size: 0.8rem; /* Smaller text */
    position: relative
}

/* Show when active */
.submenu.active {
    display: block;
}

/* Smooth Expand Animation */
.submenu {
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-out, opacity 0.6s ease-out;
    transform-origin: top; /* Ensures expansion is downward */
    position: relative; /* Fixes issues with shifting */
}

.submenu.active {
    display: block;
    max-height: 100000px;
    opacity: 1;
}

/* 🔹 Default hyperlink color */
a {
    color: #f0f0f0; /* White or any color you prefer */
    text-decoration: none;
}

/* 🔹 Hover effect */
a:hover {
    color: #f0f0f0; /* Change to orange on hover */
}

/* 🔹 Visited links (fix purple issue) */
a:visited {
    color: #f0f0f0; /* Match default link color */
}

/* 🔹 Active link (fix red issue) */
a:active {
    color: #f0f0f0;
}

/* Ensure links inside the dropdown behave like normal hyperlinks */
.submenu a {
    display: inline; /* Makes it behave like a regular link */
    padding: 0; /* Remove inherited padding */
    margin: 0;
    color: #000; /* Change to a normal link color */
    text-decoration: underline; /* Makes it look like a typical hyperlink */
    font-weight: normal;
    background: none; /* Remove dropdown background */
    border: none; /* Remove any unwanted styling */
}

/* Hover effect for normal links inside the dropdown */
.submenu a:hover {
    color: #f0f0f0; /* Change color on hover */
    text-decoration: none;
}

body {
    opacity: 1;
    transition: opacity 0.5s ease-out; /* Adjust timing as needed */
}

/* Apply fade-out when navigating */
body.fade-out {
    opacity: 0;
}

/* 🔹 Banner GIF Styling */
.gif-banner {
    width: 100%; /* Full width */
    display: flex;
    justify-content: center; /* Centers GIF */
    align-items: center;
    overflow: hidden;
    margin: 20px 0; /* Adjust spacing as needed */
}

/* 🔹 Ensure GIF scales properly */
.gif-banner img {
    width: 100%;
    height: auto;
    max-height: 150px; /* Set a reasonable height */
    object-fit: cover; /* Ensures the GIF doesn't stretch */
}

/* 🔹 Adjust size for mobile */
@media (max-width: 768px) {
    .gif-banner img {
        max-height: 80px; /* Smaller height on mobile */
    }
}

/* 🔹 Apply only to About Page */
.about-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    text-align: left; /* Ensures consistent alignment */
}

/* 🔹 Center the intro text */
.about-container .about-intro {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

/* 🔹 Tab Container */
.about-container .tabs {
    display: flex;
    gap: 5px;
}

/* 🔹 Tabs */
.about-container .tab {
    background-color: #000000;
    color: #f0f0f0;
    border: 1px solid #f0f0f0;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'JetBrains Mono', monospace; /* Change font here */
    transition: background 0.3s, color 0.3s;
}

.about-container .tab.active {
    background-color: #f0f0f0;
    color: black;
}

/* 🔹 Tab Content Box */
.about-container .tab-content {
    background-color: #000000;
    padding: 15px;
    margin-top: 10px;
    border: 2px solid #f0f0f0; /* Persistent white border */
    border-radius: 5px;
    min-height: 150px;
    transition: opacity 0.5s ease-in-out;
}

/* 🔹 Fade Effect */
.about-container .fade {
    opacity: 0;
}

.about-container .fade.show {
    opacity: 1;
}
