/* full‑screen matrix background */
canvas#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;          /* sit behind everything */
    pointer-events: none; /* make clicks go through */
}

body {
    margin: 0;            /* remove default page spacing */
}

/*  |---------------------------------------- GENERAL ---------------------------------------|    */		

h1 {
	font-size: 5vh;
	font-family: 'Courier New', monospace;
    color: rgba(164, 255, 171, 0.795);
    font-style: oblique;
}

h2 {
    font-size: 2vh;
    font-family: Tohoma, "Microsoft Sans Serif", sans-serif;
    color: rgba(164, 255, 171, 0.795);
}

h3 {
    font-size: 2.2vh;
    font-family: Tohoma, "Microsoft Sans Serif", sans-serif;
    color: rgba(164, 255, 171, 0.795);
}

h4 {
    font-size: 2.5vh;
    color: #8efc8e;
    text-shadow: 0 0 2px #00ff00, 0 0 5px #00ff00;
}

h6 {
    font-size: 1.7vh;
    font-family: 'Courier New', Courier, monospace;
    color: #8efc8e;
    font-style: bold;
    margin: 0vh;
}

a {
    color: rgb(200, 255, 200);

}

mark {
    color: rgb(0, 34, 3);
    background-color: rgba(167, 243, 148, 0.836);
}

/*  |---------------------------------------- HEADER ----------------------------------------|    */ 

header {
    height: 6.2vh;
	background-color: rgba(14, 83, 0, 0.1);
    overflow: hidden;
}

header h1 {
    text-indent: 2vw;
    line-height: 0.5vh;
}

/*  |------------------------------------- MAIN (TOP) ---------------------------------------|    */		
/* TOP_BOX_HEADER */
.top-header {
    width: 100vw;
    height: 3vh;
    text-align: left;
    text-indent: 10px;
    line-height: 3px;

    border-bottom: 5px groove;
    border-color: rgba(66, 180, 76, 0.795);
    background-color: rgba(0, 0, 0, 0.7);
}


/* TOP_BOX */
.top-box {
	width: 55vw;                               /* 1: position values */	
	height: 70vh;
	margin-left: 25%;
    margin-top: 3vh;
    margin-bottom: 2.5%;

	border: 0.15vw solid;                        /* 2: style values */	
    border-color: rgba(116, 255, 127, 0.795);
    background-color: rgba(0, 0, 0, 0.7);
    color: rgb(187, 255, 194);
    font-size: 20px;

	display: flex;	                            /* 3: display values */	
    flex-direction: column;
    justify-content: flex-start;	
	align-items: stretch;
    overflow: hidden;
}

.top-content {
    margin-left: 1vw;
}

.top-content pre {
    font-size: 1.9vh;
}

#coms {
    font-family: 'Courier New', Courier, monospace;
}



details {
    margin-top: 1vh;
    padding: 0.5vh;
}

summary {
    cursor: pointer;
    color: #8efc8e;
    font-family: 'Courier New', monospace;
}

summary:hover {
    text-shadow: 0 0 5px #00ff00;
}








/*  |------------------------------------ MAIN (MIDDLE) -------------------------------------|    */		

.mid-box {
	width: 55vw;                               /* 1: position values */	
	height: 18vh;
	margin-left: 25%;
    margin-top: -2vh;
    margin-bottom: 4vh;

	border: 0.15vw solid;                        /* 2: style values */	
    border-color: rgba(116, 255, 127, 0.795);
    background-color: rgba(0, 0, 0, 0.7);
    color: rgb(187, 255, 194);
    font-size: 20px;

	display: flex;	                            /* 3: display values */	
    flex-direction: column;
    justify-content: flex-start;	
	align-items: stretch;
    overflow: hidden;
}

.mid-content {
    display: flex;
    flex: 1;
}

/* MIDDLE_BOX --- left */
.mid-left-column {
    flex: 1;
    padding: 1vh;
    text-indent: 1vw;

    font-size: 2vh;
    line-height: 0.8vh;
    border-right: 0.1vw solid rgba(153, 255, 161, 0.89);
}

/* MIDDLE_BOX --- right */
.mid-right-column {
    flex: 1;
    padding: 1vh;
    text-indent: 1vw;

    font-size: 2vh;
    line-height: 0.8vh;
}


.mid-content li {
     line-height: 2.4vh;
}

/*  |------------------------------------- MAIN (ART) --------------------------------------|

/* TOP_BOX */
.art-box {
	width: 55vw;                               /* 1: position values */	
	height: auto;
    margin-left: 25%;
    margin-top: 3vh;
    margin-bottom: 2.5%;

	border: 0.15vw solid;                        /* 2: style values */	
    border-color: rgba(116, 255, 127, 0.795);
    background-color: rgba(0, 0, 0, 0.7);
    color: rgb(187, 255, 194);
    font-size: 20px;

	display: flex;	                            /* 3: display values */	
    flex-direction: column;
    justify-content: flex-start;	
	align-items: stretch;
}

.art-header { 
    height: 100%;
    width: auto;

    text-align: left;
    text-indent: 10px;
    line-height: 3px;

    border-bottom: 5px groove;
    border-color: rgba(66, 180, 76, 0.795);
    background-color: rgba(0, 0, 0, 0.7);

}

.art-content {
    display: flex;
    flex: 1;
    padding-top: 1px;
}

/* ART_BOX --- left */
.art-left-column {
    flex: 1;
    min-width: 0;
}
/* ART_BOX --- middle */
.art-middle-column {
    flex: 1;
    min-width: 0;
}

/* ART_BOX --- right */
.art-right-column {
    flex: 1;
    min-width: 0;
}

.art-content img {
    width: 100%;
    height: auto;
    display: block;
}

.art-border {
    margin-left: 0.5vw;
    margin-right: 0.5vw;
    margin-bottom: 0.3vw;
    border: solid rgba(66, 180, 76, 0.8);
    border-width: 2px;
    border-top-color: rgba(66, 180, 76, 0);
}



/*  |---------------------------------------- ASIDE ----------------------------------------|    */	

aside {
    width: 18vw;
    height: 30vh;
    position: fixed;
    top: 15vh;
    margin-left: 50px;

    border: 0.15vw solid;
    border-color: rgba(116, 255, 127, 0.795);
    background-color: rgba(0, 0, 0, 0.7);
    color: rgb(187, 255, 194);

    font-size: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
}

.nav-header {
    width: 100%;
    height: 3vh;
    text-align: left;
    text-indent: 10px;
    line-height: 3px;

    border-bottom: 5px solid;
    border-color: rgba(66, 180, 76, 0.795);
    background-color: rgba(0, 0, 0, 0.7);
}

.nav-tree {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 2vh 0 2vh 10px;
    overflow: hidden;
}

.nav-tree details {
    list-style: none;
    margin: 0.2em 0;
    line-height: 1.8em;
    font-size: 1.8vh;
}

.nav-tree details > summary {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 1.5em;
    list-style: none;
}

/* Arrow indicator with ::before */
.nav-tree details > summary::before {
    content: '▼';
    position: absolute;
    left: 0;
    color: rgba(116, 255, 127, 0.7);
    font-size: 0.8em;
    transition: transform 0.2s;
}

.nav-tree details:not([open]) > summary::before {
    content: '▶';
}

/* Tree connectors with ::after */
.nav-tree details > details > summary::after {
    content: '';
    position: absolute;
    left: -0.5em;
    top: 0.9em;
    width: 0.5em;
    height: 1px;
    border-bottom: 1px dotted rgba(116, 255, 127, 0.5);
}

.nav-tree details > details {
    margin-left: 1.5em;
    position: relative;
}

.nav-tree details > details::before {
    content: '';
    position: absolute;
    left: -0.65em;
    top: -0.9em;
    width: 0.65em;
    height: 1.8em;
    border: 1px dotted rgba(116, 255, 127, 0.5);
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 0.65em;
}

.nav-tree .nested {
    list-style: none;
    padding-left: 0;
    margin: 0;
    margin-left: 1.5em;
    position: relative;
}

.nav-tree .nested::before {
    content: '';
    position: absolute;
    left: -0.65em;
    top: 0;
    width: 1px;
    height: 100%;
    border-left: 1px dotted rgba(116, 255, 127, 0.5);
}

.nav-tree .nested li {
    margin: 0.2em 0;
    line-height: 1.8em;
    font-size: 1.8vh;
    position: relative;
    padding-left: 1.5em;
}

.nav-tree .nested li::before {
    content: '';
    position: absolute;
    left: -0.65em;
    top: 0.9em;
    width: 0.65em;
    height: 1px;
    border-bottom: 1px dotted rgba(116, 255, 127, 0.5);
}

.folder-icon, .file-icon {
    margin-right: 0.5em;
    font-size: 1.2em;
    vertical-align: middle;
}

.folder-title {
    font-weight: bold;
    color: rgb(164, 255, 171);
    user-select: none;
}

.nav-tree a {
    text-decoration: none;
    color: rgb(187, 255, 194);
    font-size: 1.8vh;
}


