html, body {
    background-color: #212729;
    height: 100%;
    width: 100vw;
    padding: 0;
    margin: 0;
    color: #e4eded;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4em;
    display: flex;
    overflow: hidden;
    position: relative
}

a {
    color: #53c6c0;
}

h1, h2, h3, h4, h5, h6 {
    color: #bdfffc;
    margin-bottom: 0.4em;
}

h1 {
    margin-top: 1.5em;
}

input, select, textarea {
    font-family: 'Montserrat', sans-serif;
    padding: 0.5em;
}

body > div {
    position: relative;
    display: flex;
    width: 100vw;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    height: 100%;
}

::-webkit-scrollbar {
  width: 12px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #212729;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #9B9D9E;;
  border-radius: 8px;
  border: solid 3px #212729;
}

#page-wrapper {
    display: flex;
    justify-content: center;
    width: calc(100vw - 62px - 0.8em);
    transition: width 0.4s;
}

#main-content-wrapper {
    padding: 2vw 5vw 0 5vw;
    display: flex;
    flex-direction: column;
    max-width: 1500px;
    box-sizing: border-box;
    width: 100%;
}

#page-wrapper.full-width {
    flex-basis: 100vw;
}

#page-wrapper.full-width #main-content-wrapper {
    width: 100vw;
}

#page-wrapper.alert-page {
    align-items: center;
}

#page-wrapper.alert-page #main-content-wrapper {
    align-items: center;
    width: unset;
    margin: 2vw 5vw 2vw 5vw;
    padding: 5em 2.5em;
    background-color: #383f42;
    width: 100%;
    max-width: 800px;
    border-radius: 4px;
}

#page-wrapper.alert-page h1 {
    margin-top: 0;
}

ul.no-format {
    list-style: none;
    padding: 0;
    margin: 0;
}

.errorlist {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #fa6469;
    font-weight: 500;
    font-size: 0.8em;
    line-height: 1.2;
    margin-top: 0.5em;
    text-align: left;
}

a.no-format {
    text-decoration: none;
}

button.no-format {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
}

.closed {
    display: none;
}

#modal-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 50;
}

#modal-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#modal-container {
    background-color: #383f42;
    padding: 2em 4em
}

#modal-container h2:first-child {
    margin-top: 0;
}

#modal-overlay:not(.closeable) .modal-close {
    display: none;
}

#modal-overlay.closeable .modal-close {
    color: white;
    opacity: 0.8;
    font-size: 1.5em;
    position: absolute;
    right: 0;
    margin: 0.5em;
    z-index: 100;
}

.modal-close:hover {
    opacity: 1;
}

.button {
    font-family: 'Montserrat', sans-serif;
    background-color: rgba(83, 198, 192, 0.6);
    border: solid 1px #53c6c0;
    padding: 1em 2em;
    border-radius: 4px;
    color: #bdfffc;
    text-decoration: none;
    font-size: 0.8em;
    text-align: center;
    display: block;
}

.button:hover {
    background-color: rgba(83, 198, 192, 1);
    color: #212729;
}

.buttons-container {
    display: flex;
    flex-wrap: nowrap !important;
}

.buttons-container .button {
    flex-grow: 1;
    flex-basis: 0;
}

@media only screen and (max-width: 640px) {
    #page-wrapper {
        width: 100vw;
    }
}

body.toggled #page-wrapper {
    width: 100vw;
}

.heading-with-buttons {
    margin-right: 1em;
}

.heading-with-buttons-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
}

.heading-with-buttons-container .button {
    display: inline-block;
    padding: 1em 1em;
}

.buttons-container {
    gap: 0.5em;
}

h1 *, h2 *, h3 *, h4 *, h5 *, h6 * {
    display: inline-block;
}
