@import "_normalize.css";
@import "stylize.css";

@font-face {
    font-family: 'Rza-Regular';
    font-weight: normal;
    src: url('/fonts/Rza-Regular.otf');
}
@font-face {
    font-family: 'Atak';
    font-weight: normal;
    src: url('/fonts/Atak-Regular.otf');
}
@font-face {
    font-family: 'Fira Code';
    font-weight: normal;
    src: url('/fonts/FiraCode-Regular.ttf');
}

html {
    --color-almost-black: #23231e;
    --color-green-dark: #1e5751;
    --color-blue-light: #d2e5f4;
    --color-pink: #e98ec1;
    --color-lilac: #e1d8f9; 
    --color-blue-dark: #0049ac;
    --color-white: #ffffff;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    line-height: 1.3em;
    font-size: calc(0.8em + 0.1vw);
    font-family: 'Atak';
    color: var(--color-almost-black);
}

h1, h2, h3, h4 {
    font-family: 'Rza-Regular';
}

body.index {
    font-size: calc(0.65em + 0.75vw);
    color: var(--color-almost-black);
    padding: 2rem;
    margin: 15vh 10%;
}

body.preview {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Atak';
    font-weight: 600;
    color: var(--color-pink);
    font-size: calc(3em + 0.75vw);
    top: 5vh;
    height: 92.5vh;
    position: relative;
}

a, a:visited {
    font-weight: 600;
    text-decoration: none;
    color: var(--color-blue-dark)
}

a:hover {
    opacity: 0.8
}

body.index a {
    color: var(--color-green-dark);
    font-weight: 600;
    font-family: 'Rza-Regular'
}

body.index a.login {
    color: var(--color-green-dark);
    border-radius: 15px;
    font-size: 0.75em;
    width: 7em;
    padding: 0.3em;
    display: block;
    margin: 5em auto;
    text-align: center
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0
}

body.index ul {
    columns: 3;
    line-height: 2.5em
}

input, select {
    width: 50%
}

label {
    font-weight: bold;
    width: 50%;
    display: inline-block;
    padding: 0.5rem 0
}

div.method, div.docs {
    width: 25vw;
    height: 92.5vh;
    top: 7.5vh;
    padding: 2em;
    position: fixed;
    overflow-y: scroll;
}

div.full {
    width: 70%;
    margin: 15vh auto 0 auto
}

div.docs {
    position: absolute;
    left: 75vw;
}

iframe {
    width: 50vw;
    position: absolute;
    left: 25vw;
    border-width: 0;
    height: 100vh;
}

div.header {
    height: 7.5vh;
    width: 100%;
    text-align: center;
    top: 0;
    background: var(--color-green-dark);
    left: 0;
    position: absolute;
    z-index: 1;
}

div.header img {
    height: 100%;
    width: auto;
    border: none;
    margin: 0 auto;
}

h1 {
    color: var(--color-green-dark);
    font-size: calc(0.65em + 0.75vw);
    font-weight: 600;
}

div.title {
    margin-bottom: 2em;
}


button {
    font-size: 1vw;
    margin-top: 1.5rem;
    width: 1.5rem;
}

button.colour {
    margin-right: auto;
    display: inline-block;
}

code {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    font-family: 'Fira Code';
    font-size: 0.9em;
}

img {
    width: 100%;
}

svg {
    position: fixed;
    top: 0;
    left: 50%;
    height: 92.5vh;
    top: 7.5vh;
    transform: translateX(-50%);
    width: 100%
}

div.children {
    background: var(--color-blue-light);
    padding: 0.5rem;
    margin: 0.5em 0;
    border-radius: 15px;
}

div.array, div.textArray {
    margin-top: -2rem
}

div.coloursArray input, div.textArray input {
    display: block;
    margin-left: 50%;
}

input[readonly] {
    background: #E7E7E7;
}

code {
    background: var(--color-lilac);
    line-height: 1em;
}