@font-face {
    font-family: "Noto Sans";
    src: url("assets/NotoSans-Regular.ttf") format("truetype");
}

html, body {
    height: 100%;
    background-color: rgb(2, 135, 77);
    line-height: normal !important;
}
h1 {
    font-size: 2em;
}
h2 {
    font-size: 1.5em;
    margin: 0 0 0.5em 0;
}
header a {
    color: #fff;
}
body {
    font-family: "Noto Sans", Arial, Helvetica, sans-serif;
    display: grid;
    grid-template-areas:
        "header header"
        "input preview";
    grid-template-columns: 1fr 704px;
    grid-template-rows: 80px 1fr;
}
header {
    grid-area: header;
    display: grid;
    grid-template-areas:
        "header-left header-right";
    grid-template-columns: 1fr 1fr;
    margin: 0em;
    padding: 1em;
    border-bottom: 1px solid black;
    background-color: rgb(2, 135, 77);
    color: #fff;
    text-shadow: #4a4a4a 2px 2px 2px;
    line-height: 1.15;
}
header h1 {
    margin: 0;
}

#items {
    display: flex;
    justify-content: flex-end;
}
#help {
    margin: 0 20px;
    font-size: 2em;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
#github {
    display: inline-flex;
    align-items: center;
}

.cm-scroller {
    height: auto;
    overflow: visible;
    outline: none;
    min-height: 300px;
}

#inputSection {
    grid-area: input;
    background-color: #e7e7e7;
    margin-right: 1px;
    border-right: 1px solid black;
    padding: 1em;
    line-height: 1.15;
}
#inputTitle {
    display: flex;
    justify-content: space-between;
}
#copy {
    background-color: rgb(2, 135, 77);
    width: 100px;
    height: 30px;
    border-radius: 0.25rem;
    border: 1px solid rgb(2, 135, 77);
    cursor: pointer;
    padding: auto;
    color: #fff;
}

#copy:hover {
    background-color: #00b265;
    border: 1px solid rgb(2, 135, 77);
}

#previewSection {
    grid-area: preview;
    padding: 1em;
    margin-left: 1px;
    border-left: 1px solid black;
    background-color: #fff;
    line-height: 1.3;
}

.modal {
    position: fixed;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-open {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}
.modal-bg {
    position: absolute;
    background: rgba(0, 0, 0, 0.75);
    width: 100%;
    height: 100%;
}
.modal-container {
    border-radius: 10px;
    background: #fff;
    position: relative;
    padding: 30px;
    width: 50vw;
}
.modal-container h1 {
    margin: 0 0 0.5em 0;
}
.modal-container h2 {
    margin: 0;
    font-size: 1em;
    color: rgb(2, 135, 77);
}
.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    outline: none;
    appearance: none;
    color: red;
    background: none;
    border: 0px;
    font-weight: bold;
    cursor: pointer;
}