/*
  1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

/*
    2. Remove default margin
  */
* {
    margin: 0;
}

/*
    3. Allow percentage-based heights in the application
  */
html,
body {
    height: 100%;
}

/*
    Typographic tweaks!
    4. Add accessible line-height
    5. Improve text rendering
  */
body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/*
    6. Improve media defaults
  */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/*
    7. Remove built-in form typography styles
  */
input,
button,
textarea,
select {
    font: inherit;
}

/*
    8. Avoid text overflows
  */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/*
    9. Create a root stacking context
  */
#root,
#__next {
    isolation: isolate;
}


:root {
    --darkblue: #000699;
    --lightblue: #EAF2FF;
}

#app {
    max-width: 1000px;
    margin: auto;
    /* width: 90%; */
    position: fixed;
    z-index: 10;
    left: 0;
    overflow: auto;
    height: 100%;
}

body {
    font-family: 'Inter', arial, sans-serif;
    background: var(--lightblue);
}

label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: 500;
}

label:first-child {
    margin-top: 0;
}

main {
    display: inline-flex;
}

#controls {
    border-right: 2px solid var(--darkblue);
    padding: 20px;
    color: var(--darkblue);
    font-weight: 500;
    margin: 20px;
}

h1 {
    font-size: 48px;
    font-weight: 400;
}

h2 {
    font-size: 22px;
    margin-top: 30px;
}

.shelf {
    border: 1px solid var(--darkblue);
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

button {
    margin-top: 10px;
}

.shelf h3 {
    font-weight: 500;
    font-size: 17px;
}

#json {
    font-family: 'DM Mono';
    font-size: 14px;
    background: white;
    padding: 10px;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10;
}

/* #render {
    padding: 20px;
    line-height: 1.4;
    font-family: 'DM Mono', consolas;
} */

/* The Modal (background) */
.modal {
    display: none;
}

#bg {
    z-index: 2;
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
}

.modal.open {
    display: block;
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    z-index: 3;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}