/* Start with some CSS reset */

/* Use border-box everywhere for consistency */
*, *::before, *::after {
    box-sizing: border-box;
}
/* Eliminate margins */
html, body {
    margin: 0;
    padding: 0;
}

/* Prevent font size inflation */
html{
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

/* Make a nice responsive background */
body {
    background: url(background.jpg) no-repeat fixed center top;
    background-size: cover;
    min-height: 100vh;
}

/* Add a retro monitor line effect for maximum ａｅｓｔｈｅｔｉｃ */
/* copied from https://css-tricks.com/old-timey-terminal-styling/ */
body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background: repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px
    );
}

/* Explicit styling for text selection to make it feel more like a terminal */
::selection {
    background: #0080FF;
    text-shadow: none;
}

/* Center the terminal in a container that spans the entire screen */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Container for the terminal */
.terminal {
    display: flex;
    flex-direction: column;

    width: 65vw;
    height: 65vh;

    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
}

/* Make terminal responsive */
@media (max-width: 900px) {
    .terminal {
        width: 90vw;
        height: 90vh;
    }
}

/* Terminal top bar */
.header {
    /* Take up only as much space as needed in the terminal container */
    flex: 0 0 auto;

    background: #504b45;
    opacity: 0.8;
    color: #d5d0ce;

    padding: 10px;
    font: 1.3rem Inconsolata, monospace;
    border-radius: 5px 5px 0 0;

    text-align: left;
}

/* Terminal text */
.content {
    /* Take up entire remaining space in the terminal container */
    flex: 1 1 auto;

    background-image: radial-gradient(rgba(56, 4, 40, 0.75), black 120%);
    padding: 5px 20px;

    color: #D3D7CF;
    font: 1.3rem/1.5 Inconsolata, monospace;
    text-shadow: 0 0 1px #C8C8C8;

    overflow-x: hidden;
    overflow-y: scroll;

    height: 100%;
}


/* Don't underline hyperlinks */
.nav a {
    text-decoration: none;
}
.nav a:hover {
    text-decoration: underline;
}

/* Custom colors */
.user {
    color: #4E9A06;
}

.prompt {
    color: #3465A4;
}

/* Tree layout */
.tree, .tree ul, .tree li {
    position: relative;
    list-style-type: none;
    margin: 0;
    line-height: 1.6em;
}


.tree ul {
    padding-left: 25px;
}

.tree li .details {
    display: inline-block;
    border: 1px #ccc solid;
    margin: 0;
    padding: 0 5px;
}

.tree li::before, .tree li::after {
    content: "";
    position: absolute;
    left: -15px;
}
.tree li::before {
    border-left: 1px solid white;
    border-bottom: 1px solid white;
    width: 15px;
    height: 0.8em;
    top: 0;
}
.tree li::after {
    border-left: 1px solid white;
    height: 100%;
    width: 10px;
    top: 0;
}
.tree li:last-child::after {
    display:none;
}