@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&display=swap');

:root
{
    --default-font-size: 2vmin;
    --textArea-padding: 2vmin;
    --code-color: yellow;
    --output-color: aqua;
    --error-color: red;
}

* 
{
    font-family: "Fira Code", monospace;
    font-optical-sizing: auto;
    font-style: normal;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar { display: none }

.copyright
{
    padding: 2vmin;
    letter-spacing: 0.3vmin;
    text-align: center;
    text-transform: uppercase;
    font-size: 2vmin;
    color: grey; 
    transition: all 0.25s;
}

.copyright:hover { color: white; cursor: default; }

body
{
    background-color: black;
    color: white;

    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;

    height: 100vh;
    width: 100vw;
}

#links 
{
    background-color: black;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    gap: 2vmin;
    text-transform: lowercase;
}

a, a:visited 
{
    padding: 1vmin 2vmin;
    font-size: 3vmin;
    letter-spacing: 0.2vmin;
    border-radius: 2vmin;

    text-decoration: none;
    color: grey;
    background-color: black;
    transition: all 0.25s ease;

    display: inline-block;
}

a:hover, a:active 
{
    transform: scale(1.1);
    cursor: pointer;
    border-color: transparent;
    background-color: white; color: black;
}

.htmlEditor
{
    flex-direction: row !important;
    gap: 0.25vmin;
}

.htmlEditor .textArea 
{ 
    width: 50% !important;
    height: calc(100vh - calc(2 * var(--textArea-padding))) !important;
}

.htmlEditor #iframe { height: 100%; }

.textArea
{
    font-family: "Fira Code", monospace;
    font-optical-sizing: auto;
    font-style: normal;
    padding: var(--textArea-padding);
    font-size: var(--default-font-size);
    margin: 0;
    overflow-y: scroll;
    background-color: black;
    line-height: 2.5vmin;
    outline: none;
    border: none;
    resize: none;
}

#input 
{
    color: var(--code-color);
    height: calc(65vh - calc(2 * var(--textArea-padding)));
}

#input::selection
{
    background-color: var(--code-color);
    color: black;
}

#outputOrError
{
    height: calc(35vh - calc(2 * var(--textArea-padding)));
}

#output, .output 
{
    color: var(--output-color);
}

#output::selection, .output::selection
{
    background-color: var(--output-color);
    color: black;
}

#error, .error
{
    color: var(--error-color);
}

#error::selection, .error::selection
{
    background-color: var(--error-color);
    color: white;
}

.htmlOutput
{
    width: 50%;
    height: 100%;
    border: none; outline: none;
}