@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css?family=JetBrains Mono');

* {
    box-sizing: border-box;
}

html, body {
    color: #333;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 1em;
    line-height: 1.5em;
    background-color: #fff;
    overscroll-behavior-y: none;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

h1, h2, h3, h4, h5, h6, p {
    font-size: 1em;
    margin: 0;
    padding: 0;
    font-weight: normal;
}

p {
    margin: 1em;
}

a:link,
a:visited,
a:hover,
a:active {
    color: #333;
    text-decoration: none;
}

img {
    border: none;
}

header {
    background-color: #3B4757;
    font-size: 12px;
    color: #fff;
    width: 100%;
    padding: 8px 12px;

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-items button,
.info button {
    font-family: "Montserrat", sans-serif;
    font-size: 1.2em;
    color: white;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 5px;
    width: 40px;
    height: 30px;
}

.tool-items button:hover,
.info button:hover {
    background-color: #00000020;
}

header > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

header a:link, header a:hover, header a:visited, header a:active {
    color: #fff;
}

header a:hover {
    text-decoration: underline;
}

#menu-items {
    display: flex;
    font-size: 1.2em;
    align-items: center;
    gap: 8px;
}

button:disabled {
    opacity: 0.6;
}

button:disabled:hover {
    background: none !important;
    cursor: not-allowed !important;
}

#menu-items button {
    border-radius: 5px;
    height: 30px;
    padding: 0 7px;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.1em;
    font-family: inherit;
    font-weight: inherit;
    cursor: pointer;
}

#menu-items button:hover {
    background-color: #343e4c;
}

#sync-button {
    margin-left: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#github a {
    display: block;
    font-size: 1.5em;
}

footer {
    padding: 8px 12px;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #3B4757;
    color: #fff;
    display: flex;
    justify-content: space-between;
}

.ace_editor .ace_marker-layer .ace_bracket {
    display: none
}

footer a {
    color: #fff !important;
    text-decoration: underline !important;
}

#container {
    flex-grow: 1;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    background-color: #fff;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
}

.column {
    overflow-y: scroll;
    flex-basis: 50%;
    padding: 0;
    margin: 0;
    white-space: nowrap;
    vertical-align: top;
}

#editor {
    background-color: #F9FAFB;
}

#editor-wrapper {
    height: 100%;
    background-color: #f9fafb;
    cursor: text;
}

#preview {
    white-space: normal;
    border: none;
}

#divider {
    width: 5px;
    background-color: #D1D5DB;
    cursor: ew-resize;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: fit-content;
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

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