:root {

    --border-color: rgb(2, 221, 2);
    --bg-color: rgb(0, 14, 0);
    --text-color: rgb(2, 221, 2);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Courier New, monospace;
    color: var(--text-color);
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    
}

html,
body {
    width: 100%;
    height: 100%;
}


body {

    margin: 0;
    height: 100vh;

    background-color: var(--bg-color);

    background-image:
        linear-gradient(rgba(252, 252, 252, 0.044) 1px, transparent 1px),
        linear-gradient(90deg, rgba(251, 251, 251, 0.037) 1px, transparent 1px);

    background-size: 10px 10px;

}


body {
    display: grid;
    grid-template-columns: 150px 1fr;
    grid-template-areas:
        "nav main";
    gap: 5px;
}



nav {
    grid-area: nav;
}

main {
    grid-area: main;
}

nav {
    /* width: 150px; */
    height: 100vh;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    padding: 10px;
    row-gap: 30px;
    /* position: fixed; */
    /* left: 0; */
    /* top: 0; */

}


nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    row-gap: 30px;

}

nav ul li {

    /* border: 1px solid; */
    width: fit-content;
    height: fit-content;

}

nav ul a {
    text-decoration: none;
    border-radius: 2px;
    border: 1px solid;
    width: 100%;
    padding: 5px 5px;
    outline: var(--border-color);
    font-size: 14px;
    text-transform: lowercase;
    box-shadow: 0px 0px 8px rgba(0, 155, 0, 0.3);

}

nav ul li::before {
    content: './';
}

nav ul a:hover {
    background-color: rgb(3, 41, 3);
    /* background-color: var(--text-color); */

    /* li {
        color: black;

    } */

}


#logo {
    text-decoration: none;
    text-transform: lowercase;
    font-size: 18px;
    font-weight: 600;

    /* border-left: 3px solid;
        border-right: 3px solid; */
    border-radius: 5px;
    text-align: center;
    padding: 0 4px;
    width: 100%;

}

#logo::before {
    content: '>_ ';
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

#logo::after {
    content: '_ ';
    animation: blink 1s infinite linear;
    font-weight: 100;
}

@media (max-width:620px) {
    body {
        display: fle;
        grid-template-columns: auto;
        grid-template-rows: 1fr;
        grid-template-areas:
            "main"
            "nav ";
        gap: 0;
    }

    nav {
        width: 100%;
        padding: 20px 10px;
        height: fit-content;
        bottom: 0;
        top: auto;
        position: fixed;
    }

    nav ul {
        flex-direction: row;
        gap: 10px;
        justify-content: space-between;
        overflow-x: scroll;
        scrollbar-width: none;

    }

    nav ul li {

        /* border: 1px solid; */
        width: fit-content;
        height: fit-content;


    }

    nav ul a {
        border: 1px solid;
        width: 100%;
        padding: 5px;
    }

    #logo {
        display: none;

    }



}


/* -----------------------------------NAV BAR COMPLETED------------------------------- */



/* ----------------------------------------MAIN STARTS-------------------------------- */


main {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 20px;
    border: 1px solid;
    width: 100%;
    height: 100%;
    padding: 20px;
}

main .content {
    border: 1px solid green;
    height: fit-content;
    width: 100%;
    max-width: 700px;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    box-shadow: 0px 0px 8px rgba(0, 155, 0, 0.579);

}



.terminal-head {
    width: 100%;
    /* border: 1px solid; */
    padding: 10px 0;
    border-bottom: 1px solid rgba(1, 143, 1, 0.604);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row;

    p {
        font-size: 12px;
        font-weight: bold;
        letter-spacing: 1px;
    }
}

.ter-color {
    /* border: 1px solid; */
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ter-color:nth-child(1) {

    background-color: red;
}

.ter-color:nth-child(2) {

    background-color: orange;
}

.ter-color:nth-child(3) {

    background-color: green;
}


.console {
    /* border: 1px solid; */
    width: 100%;
    text-transform: lowercase;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.console-i {
    border-left: 2px solid rgb(255, 0, 0);
    border-radius: 5px;
    padding: 5px;
    
    width: 100%;
    
    height: fit-content;
    background-color: rgba(255, 0, 0, 0.09);
    color: red;


}

.console-o {
    border-left: 2px solid var(--text-color);
    border-radius: 5px;
    padding-left: 5px;
    height: fit-content;
    width: 100%;
    background-color: rgba(26, 255, 0, 0.056);
    color: var(--text-color);
}

.console-i::before {
    content: '+ ';
    font-weight: bold;
}

.console-o::before {
    content: '- ';
    font-weight: bold;
}



.links {
    display: flex;
    flex-direction: row;
    gap: 20px;

    a {
        border: 1px solid;
        padding: 5px;
        font-size: 12px;
        text-decoration: none;
        border-radius: 2px;
        outline: none;
        font-weight: bold;

        p {
            font-weight: 100;
        }

    }

    a::before {
        content: '>> ';
    }

    a:hover {
        background-color: rgba(39, 255, 1, 0.10);
    }
}


.contact {
    width: 100%;
}

.content>p {
    color: red;
    font-weight: bold;
}

.contact form {
    display: flex;
    width: 100%;
    flex-direction: column;
    row-gap: 20px;
    align-items: center;
}

form input,
form textarea {
    width: 90%;
    background: none;
    outline: none;
    border: 0px;
}



form textarea {
    min-height: 50px;

}

form button {
    width: fit-content;
    border: 1px solid;
    background: none;
    padding: 5px;
    font-size: 12px;
    text-decoration: none;
    border-radius: 2px;
    outline: none;
}

form button:hover {
    background-color: rgba(39, 255, 1, 0.10);
}




@media (max-width:620px) {
    main{
        margin-bottom: 100px;
    }
    .contact {
        max-width: 500px;
    }

    .links {
        display: flex;
        flex-direction: column;
        width: 200px;
    }



}