@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 300;
    src: url(fonts/Jost-Regular.ttf) format('truetype');
}
@font-face {
    font-family: 'Spectral-Medium';
    font-style: normal;
    font-weight: 300;
    src: url(fonts/Spectral-Medium.ttf) format('truetype');
}

body {
    background: #133653;
    height: 100vh;
    font-family: 'Spectral-Medium';
    display: grid;
    grid-template-columns: 0.6fr 0.4fr;
    overflow: hidden;
}

h2 {
    color: white;
    font-size: 42px;
    font-family: 'Jost';
    line-height: 1.2em;
}

#main-playground {
    margin-left: 8px;
    margin-right: 8px;
    background: #0f2e47;
    height: fit-content;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

#stack-area {
    margin-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: scroll;
}

#code {
    background-color: black;
    color: #c500bb;
    font-family: monospace;
    tab-size: 4;
    font-weight: bolder;
    font-size: 16pt;
    width: auto;
    height: 86vh;
    border: none;
    scrollbar-width: none;
}

#code:focus-within {
    outline: none;
}

::selection {
    color: white;
    background: #c500bb;
}

@media only screen and (max-width:600px) {
    #run-code { grid-area: a; }
    #step-code{ grid-area: b; }
    #reset-code { grid-area: c; }
    #share{ grid-area: d; }
    #show-libs { grid-area: e; }
    #code-actions {
        display: grid;
        gap: 4px;
        grid-template-columns: auto 0.5 0.5 auto;
        grid-template-areas: 
            "a b b c"
            "d d e e";
    }
}

@media only screen and (min-width:601px) {
    #code-actions {
        display: flex;
        justify-content: left;
        gap: 16px;
    }
}

#code-actions button {
    font-family: 'Jost';
    font-size: 24px;
    color: white;
    padding: 5px 15px;
    border: none;
    background: #c500bb;
    font-weight: bolder;
    transition: 0.2s;
}

#share {
    margin-left: auto;
}

#code-actions button:hover {
    color: #c500bb;
    background: white;
}

dt.nova-stack-title {
    font-family: 'Jost';
    font-size: 20pt;
    color: white;
    font-weight: bold;
    background: #0f2e47;
    padding: 16px;
    text-indent: 8px;
}

.nova-stack-elements {
    padding-top: 4px;
    padding-bottom: 20px;
    text-indent: 0;
    background: #0f2e47;
    font-size: 16pt;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: auto;
    height: auto;
    align-items: center;
    margin: auto;
}

.nova-stack-element {
    font-family: 'Jost';
    font-weight: bolder;
    text-align: center;
    border-radius: 40px;
    background: black;
    color: #c500bb;
    width: 75%;
    height: auto;
    font-size: 20pt;
    transition: 0.2s;
}

.nova-stack-element:hover {
    font-size: 28pt;
    width: 90%;
    color: white;
    background: #c500bb;
}

#stacks {
    margin-top: 0;
    scrollbar-width: none;
}

.spacer {
    display: block;
    margin: 16px;
}
