@color: #fafafa;

@site-width-max:        60vw;
@site-width-min:        100px;


@font-face {
    font-family: 'Gothic War';
    src: url('/public/fonts/gothic-war.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {     
    font-family: 'Death Mowhawk';
    src: url('/public/fonts/death-mowhawk.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    color: inherit;
    border: none;
    outline: none;
    list-style-type: none;
    list-style-position: outside;
}


body { 
    width: 100vw; 
    min-height: 100vh; 

    display: flex;
    flex-direction: column;
    align-items: center;

    background: #0f0f0f;
    color: @color;

    font-family: 'Courier New', Courier, monospace;
}

.header, .main, .footer {
    width: @site-width-max;
    min-width: @site-width-min;
    max-width: @site-width-max;
}

.header {
    //height: 4rem;
    height: 24rem;
    font-size: 1rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    .title {
        height: 20rem;
        font-size: 20rem;
        color: white;
        font-family: 'Death Mowhawk';
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav {
        width: 100%;
        height: 4rem;

        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;

        .nav-item::before { font-weight: 600; content:"< "; }
        .nav-item::after  { font-weight: 600; content:" />"; }
        .nav-item:hover  { font-weight: 600; }
        
        .nav-item {
            &.current-path {
                color: #8f8fff;
            }
        }
    }

    border-bottom: 2px solid @color;
}

.main {
    margin-top: 1.5rem;
    flex: 1;

    &.page-not-found {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        img {
            min-height: 10rem;
            max-height: 16rem;
        }
    }

    &[id^="main-"]:not(.page-not-found) {
	h1 {
	    &::before, &::after { content:"/"; }
	}
    }

    &#main-contact {
        .contact-links {
            h3 {
                margin-top: 2rem;
            }

            ul li {
                .link-color(#ffaaaa);
                &::before                   { content: "> "; color: @color; font-weight: 600; }
                &.category_projects         { .link-color(#00BFFF); }
                &.category_communication    { .link-color(#FFD700); }
                &.category_hacker-shit      { .link-color(#E74C3C); }
            }
        }
    }

    &#main-tools {
	.list {
	    .list-item {
	    	span {
		    color: #FF8700;
		}
	    }
	}
    }

    &#main-font {
        display: flex;
        flex-direction: column;
        align-items: center;

        #input {
            border: none;
            outline: 1px solid @color;
            background: none;
            display: inline;
            width: 75%;
            padding: 0.25rem;
            font-color: #0f0f0f;
        }

        #output {
            font-size: 8rem;
            font-family: 'Death Mowhawk';
            outline: 1px solid @color;
            display: inline;
            padding: 1rem;
            margin-top: 2rem;
            width: 100%;
        }
    }
}

.footer {
    margin-top: 1.5rem;
    border-top: 2px solid @color;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 4rem;
    font-size: 1rem;
}

.aggrogoth {
    filter: invert(1);
    position: absolute;

    z-index: 0;

    &#a2 {
        width: 14vw;

        left: 3rem;
        bottom: 5rem;
    }

    &#a3 {
        height: 32rem;

        right: 0;
        top: 0;
    }

    opacity: 0.8;
}

// functions
.link-color(@c) {
    color: @c;
    &:hover { color: darken(@c, 10%); font-weight: 600; }
}
