body {
    margin: 0;
    padding: 0;
    background-color: #0d1018;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
}

h1, h2, h3 {
    color: #FF4D4D;
}

.menu-icon {
    z-index: 3;
    width: 40px;
    height: 40px;
    background-color: rgb(255, 255, 255);
    border-radius: 50%;
    margin: 10px;
    margin-top: 10px;
    position: relative;
}

.menu-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.5s ease;
}

.menu-icon:active {
    transform: scale(0.9);
}

.menu-icon:active .menu-image {
    transform: rotate(360deg);
}

.folder-section {
    display: flex;
    flex-direction: row; /* Stacks children horizontally */
    position: relative;
    left: 60px;
    top: 0;
    margin-top: 25px;
    z-index: 10;
    margin-right: 60px;
    overflow-x: auto; /* Ensures horizontal scrollbar appears when needed */
}

.folder-section::-webkit-scrollbar {
    width: 15px;
    border-radius: 5px;
}

.folder-section::-webkit-scrollbar-thumb {
    background-color: #FF4D4D;
    border-radius: 5px;
}

.folder-section::-webkit-scrollbar-thumb:hover {
    background: #733434;
}

.folder-section::-webkit-scrollbar-thumb:active {
    background: #733434;
}

.folder-section::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.folder-tab {
    background-color: #FF4D4D;
    color: white;
    padding: 10px;
    text-decoration: none; /* removing the dashed underline */
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 10px;
    white-space: nowrap;
    text-align: center;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10; 
    position: relative;
    cursor: pointer;
}

.folder-tab:hover {
    background-color: #6c3e3e;
}


.folder-tab.behind {
    z-index: 0;
    filter: brightness(0.9);
    opacity: 0.5;
    border-radius: 0px;
}

.folder-tab.tab1 {
    z-index: 0;
    opacity: 0.5;
    margin-left: -5px;
    filter: brightness(0.8) grayscale(0.1);
}

.folder-tab.tab2 {
    z-index: 0;
    opacity: 0.4;
    filter: brightness(0.7) grayscale(0.2);
}

.folder-tab.tab3 {
    z-index: 0;
    opacity: 0.3;
    filter: brightness(0.6) grayscale(0.3);
}

.folder-tab.tab4 {
    opacity: 0.2;
    filter: brightness(0.5) grayscale(0.4);
    z-index: 0;
}

.folder-tab.tab5 {
    opacity: 0.1;
    filter: brightness(0.5) grayscale(0.5);
    z-index: 0;
}

.nav2 {
    filter: grayscale(0.1);
}

.nav3 {
    filter: brightness(0.8) grayscale(0.2);
}

.nav4 {
    filter: brightness(0.7) grayscale(0.3);
}

.nav5 {
    filter: brightness(0.6) grayscale(0.4);
}

.nav6 {
    filter: brightness(0.5) grayscale(0.5);
}

.folder-tab.very-small {
    width: 50px; 
}

.folder-tab.small {
    width: 80px;
}

.folder-tab.medium {
    width: 100px; 
}

#nav-map {
    white-space: nowrap;
    overflow: visible;
    width: auto; /* Make sure the active tab has an automatic width */
}

.folder-section {
    overflow: hidden;
}
.folder-tab.active {
    white-space: nowrap;
    overflow: visible;
    z-index: 10;
    opacity: 1;
  }
  .folder-tab {
    flex-grow: 1; /* Allow tabs to flex */
    transition: flex-basis 0.2s; /* Animate the flex basis change */
  }
  
  .folder-tab.active {
    flex-grow: 0; /* Prevent the active tab from flexing */
  }

  .folder-section {
    display: flex; /* Define as flex container */
    flex-wrap: nowrap; /* Prevent tabs from wrapping */
  }
  
  .folder-tab {
    flex-shrink: 0;
  }

  .folder-tab.active {
    flex: none;
  }

  @keyframes pop-in {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pop-out {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}