/*  |---------------------------------------- MATRIX ----------------------------------------|    */		
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;
}

a {
    color: rgb(200, 255, 200);

}


/*  |---------------------------------------- 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);
}

#sound {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 100px;
    height: 25px;
    color: white;
    background-color: rgba(0, 0, 0, 0);
    z-index: 10;
    cursor: pointer;
}

#sound:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* TOP_BOX */
.top-box {
	width: 55vw;                               /* 1: position values */	
	height: 50vh;
	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;
}


/* BOX_CONTENT */
.content {
    display: flex;
    flex: 1;
}


/* TOP_BOX --- left */
.left-column {
    flex: 5;
    padding-left: 2vw;
    padding-top: 5px;
    border-right: 0.1vw solid rgba(153, 255, 161, 0.89);

    font-size: 2vh;
    line-height: 1;
}

.left-column h4 {
    margin-bottom: 2.5vh;
    text-indent: -0.5vw;
}


/* TOP_BOX --- right */
.right-column {
    flex: 3.5;
    padding: 1vh;
    text-indent: 1vw;
    display: flex;
    flex-direction: column;
    position: relative;
}


/* terminal/canvas */
.terminal-container {
    position: relative;
    flex: 1;              
    overflow: hidden;
}

.terminal-container canvas#terminal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.terminal-button {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
}



/*  |----------------------------------- MAIN (MIDDLE) --------------------------------------|    */
/* MIDDLE_BOX_HEADER */
.middle-header {
    width: 100vw;
    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);
}

/* MIDDLE_BOX_TOP */
.middle-box {
	width: 55vw;                               /* 1: position values */	
	height: 50vh;
	margin-left: 25%;
	margin-top: 2.5%;
    margin-bottom: 5%;

	border: 0.15vw solid;                        /* 2: style values */	
    background-color: rgba(0, 0, 0, 0.7);
	border-color: rgba(116, 255, 127, 0.795);
    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;
}





/* MIDDLE_BOX --- left */
.mid-left-column {
    flex: 3;
    padding-left: 1vw;
    padding-top: 2vh;

    font-size: 2vh;
    line-height: 0.8vh;
}

.mid-left-column h4 {
    margin-bottom: 3.5vh;
    text-indent: -0.5vw;

}

/* MIDDLE_BOX --- middle */
.mid-middle-column {
    flex: 3;
    padding-left: 1vw;
    padding-top: 2vh;

    font-size: 2vh;
    line-height: 0.8vh;
    

    display: flex;
    flex-direction: column;
    border-right: 0.1vw solid rgba(153, 255, 161, 0.89);
    border-left:  0.1vw solid rgba(153, 255, 161, 0.89);
}

.mid-middle-column li {
    text-indent: 1vw;
}

/* MIDDLE_BOX --- right */
.mid-right-column {
    flex: 3;
    padding-left: 1vw;
    padding-top: 2vh;

    font-size: 2vh;
    line-height: 0.8vh;

    display: flex;
    flex-direction: column;
}

.mid-right-column p {
    margin-top: 0;
}

a {
    font-size: 1.8vh;
}

ul {
    list-style: none;
    padding-left: 0;
    font-size: 1.8vh;
    line-height: 2.5vh;
}

li::before {
    content: "# ";   /* hacker prompt style */
    color: rgb(120, 207, 120);
    margin-right: 5px;
}

.content pre {
    line-height: 2vh;
    white-space: pre-wrap;
    font-size: 1.8vh;
    padding-right: 5px;
}

/*  |---------------------------------------- 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: auto;
}

.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;
}



/*  |--------------------------------------- HEADER ----------------------------------------|    */	

footer {
    height: 30vh;
	background-color: rgba(14, 83, 0, 0.1);
}