@import url("https://fonts.googleapis.com/css?family=JetBrains%20Mono");

:root {
    --bg: #fbf1c7;
    --text-color: #282828;
    --brighness : 15%;
    --hover-brightness : 50%;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #282828;
        --text-color: #ebdbb2;
        --brightness : 100%;
        --hover-brightness : 130%;
    }
}

body {
    height: 100vh;
    font-family: 'JetBrains Mono';
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: var(--bg);
    font-family: Arial, sans-serif;
}

h3,
h2,
h5 {
    font-family: 'JetBrains Mono';
    margin: 0;
    color : var(--text-color)
}

#main {
    padding : 15px 20px;
    border : 1px solid var(--text-color);
    box-shadow: 5px 5px 0 #a89884aa;
    text-align: justify;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

canvas {
    margin : 50px 0px;
    transition: all ease-out 250ms;
    margin: 0;
    padding: 20px 0;
    border : 1px solid rgba(0,0,0,0);
}

canvas:focus {
    /* border : 1px solid var(--text-color); */
    outline : none;
}

canvas:hover {
}

#nav {
    opacity: 0.8;
    display : flex;
    align-items: center;
    gap : 20px;
    position: absolute;
    top : 5px;
    align-self: flex-end;
    padding : 10px 20px;
}

#nav a {
    transition : all 250ms ease-out;
    margin : 0;
    color : var(--text-color);
    font-family: 'JetBrains Mono';
    font-weight : 900;
    text-decoration: none;
    box-shadow : 0px 0px 0px var(--text-color);
    padding : 10px 10px;
    
}

#nav a:hover {
    filter: brightness(120%);
    border : 1px solid var(--text-color);
    box-shadow: 7px 7px 0px var(--text-color);
}

#nav a img {
    transition: all 250ms ease-out;
    height : 38px;
    filter : brightness(var(--hover-brightness))
}

#nav a img:hover {
    filter : brightness(var(--hover-brightness))
}

#textarea {
    text-align: center;
}

@media screen and (max-width : 910px) {
    #main {
        border : none;
        box-shadow : none;
        width : 100vw;
        line-height : 1.2;
        flex-direction: column;
        padding : 0;
    }
    #nav {
        position : static;
        top : 0;
        margin : 0;
        align-self: center;
        padding : 0;
    }
    body {
        display : flex;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
        gap : 0;
    }
}