body {
    margin: 0;
    background: black;
    color: white;
}
div.menu {
    display: none;
    position: fixed;
    height: 40px;
    background-color: #1a1a1a;
    width: 100%;
}
div.menu > *:first-child{
    margin-left: 12px!important;
}
div.main {
    transition: 0.1s;
    padding-top: 0;
    height: 100%;
}
body.menuVisible div.menu {
    display: block;
}
body.menuVisible div.main {
    padding-top: 40px;
    height: calc(100% - 40px);
}
div.menu > * {
    display: block;
    float: left;
}
div.menu div.right {
    float: right;
}
div.menu div.right > * {
    float: left;
}
div.menu input[type="button"] {
    font-size: 20px;
    height: 100%;
    margin: 0;
    width: 92px;
    max-width: 18%;
}
div.menu input.close[type="button"] {
    width: 52px;
    max-width: 52px;
    font-size: 38px;
    line-height: 80%;
    height: 100%;
}
div.menu input.switchDisabled[type="button"] {
    width: 52px;
    max-width: 52px;
    font-size: 24px;
}
input[type="button"]:hover {
    background: #ffffff0f;
}
input[type="button"] {
    transition: 0.1s;
    background: none;
    border: none;
    color: #ffffff88;
    font-size: 24px;
    height: 48px;
}
input[type="button"][value=""] {
    display: none;
}
.right {
    float: right;
}
textarea {
    display: inline-block;
    font-size: 28px;
    padding: 20px;
    margin: 0;
    border: none;
    width: 99.9%;
    height: 100%;
    text-align: left;
    font-family: sans-serif;
    background: black;
    color: white;
    resize: none;
}
@media (min-aspect-ratio: 1 / 1) {
    @media screen and (min-width: 700px) {
        textarea {
            padding-left: 10%;
            padding-right: 10%;
        }
        div.menu > *:first-child{
            margin-left: 24px!important;
        }
    }
    @media screen and (min-width: 1200px) {
        textarea {
            padding-left: 20%;
            padding-right: 20%;
        }
        div.menu > *:first-child{
            margin-left: 36px!important;
        }
    }
}
textarea:focus {
    outline: none;
}
div.image {
    position: absolute;
    display: none;
    width: 0;
    height: 0;
}
input.close[type="button"] {
    font-size: 42px;
    margin: 0;
    padding: 0;
    width: 48px;
    height: 48px;
}
input.close[type="button"]:hover {
    background: #e011112f;
}
img {
    position: absolute;
    width: fit-content;
    height: fit-content;
    max-width: 98%;
    max-height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

body.includeImage textarea {
    width: 48%;
    height: 100%;
}

body.includeImage div.image {
    display: inline-block;
    width: 52%;
    height: 100%;
}
