/* General styles */
body {
    margin: 0;
    font-family: monospace;
    background-color: #000000;  /*#f4f4f4*/
    line-height: 1.5;
}

.side-nav {
    border: 2px solid rgb(214, 172, 255);   /*#9fd3ff;*/
    padding: 8px 10px;
    display: inline-block;
    line-height: 1.15;
    color: #ffffff;
}

/* Each row is one "text line" */
.line {
    display: block;
    white-space: pre;
}

a {
    color: rgb(214, 172, 255);
    text-decoration: none;
}

a:hover {
    color: rgb(190, 140, 240);
}

/* Remove default summary styling */
summary {
    list-style: none;
    cursor: pointer;
}

summary::-webkit-details-marker {
    display: none;
}

/* Triangle toggle */
.arrow::before {
    content: "▷ ";
}

details[open] > summary .arrow::before {
    content: "▽ ";
}



header {
    text-align: center;
    padding: 0em;
    background-color: #000000;
    color: rgb(214, 172, 255);
}

/* Main layout */
.main-layout {
    display: flex;
    gap: 1em;
    padding: 1em;
    align-items: flex-start;
}

/* Sidebar */
.sidebar {
    display: inline-block;
}

.sidebar-box {
    background-color: #222;
    color: #fff;
    padding: 1em;
    border-radius: 5px;
}

/* Tree menu styles */
.tree-menu, .tree-menu ul {
    list-style: none;
    margin: 0;
    padding-left: 1em;
    position: relative;
}

.tree-menu li {
    position: relative;
    padding-left: 1.5em;
    cursor: pointer;
}

/* Lines connecting items */
.tree-menu li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 1px;
    background: #555;
}

.tree-menu li::after {
    content: "";
    position: absolute;
    top: 0.7em;
    left: 0;
    width: 1em;
    height: 1px;
    background: #555;
}

/* Remove lines for root items */
.tree-menu > li::before,
.tree-menu > li::after {
    background: none;
}

/* Arrows */
.tree-menu li.collapsible::before {
    content: "▶";
    left: -1.2em;
    top: 0;
    width: auto;
    background: none;
}

.tree-menu li.collapsible.expanded::before {
    content: "▼";
}

/* Hide arrow for leaf nodes */
.tree-menu li:not(:has(ul))::before {
    content: " ";
}

/* Nested UL hidden by default */
.tree-menu li ul {
    display: none;
    margin: 0;
    padding-left: 1em;
}

.tree-menu li.expanded > ul {
    display: block;
}

/* Content box */
.content-box {
    flex: 1;
    /*background-color: rgba(255,255,255,0.9); */
    background-color: rgba(214, 172, 255, 0.9);
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    background-image: url('your-background.jpg');
    background-size: cover;
    background-position: center;
}

/* Footer and ticker */
.footer-section {
    width: 100%;
    background-color: #222;
}

.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    height: 50px;
    display: flex;
    align-items: center;
    border-top: 3px solid rgb(214, 172, 255);
    border-bottom: 3px solid rgb(214, 172, 255);
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: scroll 50s linear infinite;
    color: #fff;
    font-weight: bold;
    padding-left: 100%;
}

.ticker span {
    margin-right: 2em;
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Footer table */
footer {
    width: 100%;
    background-color: #333;
    color: #fff;
    font-size: 0.9em;
    padding: 1em 2em;
    box-sizing: border-box;
}

footer table td {
    padding: 0.3em 0;
}

.bounce-text {
    color: rgb(214, 172, 255);
    position: absolute;
    transform: translate(-50%, 50%);
    left: 50%;
    top: 1%;
    line-height: 0;
    display: flex;
    gap: 5px;
    font-size: 3rem;
    font-weight: bold;
    justify-content: center;
}
.bounce-text span {
    display: inline-block;
    animation: bounce 2s infinite ease-in-out;
}
.bounce-text span:nth-child(1) {
    animation-delay: 0s;
}
.bounce-text span:nth-child(2) {
    animation-delay: 0.1s;
}
.bounce-text span:nth-child(3) {
    animation-delay: 0.2s;
}
.bounce-text span:nth-child(4) {
    animation-delay: 0.3s;
}
.bounce-text span:nth-child(5) {
    animation-delay: 0.4s;
}
.bounce-text span:nth-child(6) {
    animation-delay: 0.5s;
}
.bounce-text span:nth-child(7) {
    animation-delay: 0.6s;
}
.bounce-text span:nth-child(8) {
    animation-delay: 0.7s;
}
.bounce-text span:nth-child(9) {
    animation-delay: 0.8s;
}
.bounce-text span:nth-child(10) {
    animation-delay: 0.9s;
}
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}
