@media (min-width: 480px) {
    :root {
        --header-height: 50px;
        --header-button-height: 30px;
        --footer-height: 40px;
        --half-content-margin: 10px;
        --padding-side: 10px;
        --padding-top-bottom: 5px;
        --header-button-font-size: 9pt;
    }
}

@media (max-width: 479px) {
    :root {
        --header-height: 35px;
        --header-button-height: 21px;
        --footer-height: 28px;
        --half-content-margin: 7px;
        --padding-side: 7px;
        --padding-top-bottom: 4px;
        --header-button-font-size: 6.5pt;
    }
}


:root {
    --button-background: #526DD9;
    --button-color: #ffffff;
    --button-background-active: #e0e2FB;
    --header-small_button-ratio: 0.7;
}


html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    height: 100%;
    overflow-y: auto;
}

html {
}

body {
    font-family: site-font, sans-serif;
    background-color: #303036;
}

#header {
    position: fixed;
    z-index: 100;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background-color: #40404B;
}

#footer {
    position: fixed;
    z-index: 100;
    bottom: 0;
    width: 100%;
    height: var(--footer-height);
    --background-color: #ff000020;
}

:root {
    --gap: 20px;
    --box-width: 200px;
    --boxes-per-row: 2;
}


#container {
    width: 100%;
    top: calc(var(--header-height) * 2);
    margin-top: 100px;

    display: grid;
    grid-template-columns: repeat(var(--boxes-per-row), var(--box-width));
    gap: var(--gap);
    justify-content: center;
}

.box {
    width: var(--box-width);
    height: 100px;
    background-color: #40404B;
    color: #eeedf2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    font-size: 13pt;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    overflow: hidden;

    cursor: pointer;

    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;

    transition: transform 0.2s, filter 0.2s;
    filter: none;

    position: relative;

    box-shadow: 0 0 5px 3px rgba(50, 50, 50, 0.15);
}

.box-link {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}


.box:hover {
    transform: scale(1.05);
    filter: contrast(0.85);
    transition: transform 0.2s, filter 0.2s;
}

.box:active {
    background-color: #101010;
}





#content {
    position: fixed;
    width: 100%;
    top: var(--header-height);
    bottom: var(--footer-height);
    overflow: hidden;
}


.content-half {
    position: absolute;
    width: 50%;
    height: 100%;
    overflow: hidden;
}


#content-left {
    left: 0;
    border-right: 0.5px solid #aaa;
}

#content-right {
    right: 0;
}

.content-half-inner {
    position: absolute;
    width: calc(100% - (var(--half-content-margin) * 2));
    height: 100%;
    left: var(--half-content-margin);
    top: 0;
    overflow: hidden;
}

.text-src-out {
    width: calc(100% - (var(--padding-side) * 2));
    height: calc(100% - (var(--padding-top-bottom) * 2));

    font-size: 13pt;
    -webkit-font-smoothing: antialiased;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3pt;
    line-height: 1.8em;

    resize: none;
    border: none;
    overflow: auto;
    outline: none;
    padding: var(--padding-top-bottom) var(--padding-side);
}

#src-text {
    font-weight: 400;

    resize: none;
    border: none;
    outline: none;
}


#src-text::placeholder {
    color: #6F758B;
    opacity: 1;
}

#out-text {
    font-size: 13pt;
    font-weight: 500;
}


.text-deleted {
    color: red;
    border: 0.5px solid red;
    border-radius: 2px;
    padding: 2px;
    background-color: #ff000020;
}

.text-inserted {
    color: green;
    border: 0.5px solid green;
    border-radius: 2px;
    padding: 2px;
    background-color: #00ff0020;
}


.button-global {
    border: 0 none;
    box-sizing: border-box;

    background-color: var(--button-background);
    color: var(--button-color);

    font-size: var(--header-button-font-size);
    -webkit-font-smoothing: antialiased;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.button-global:hover {
    box-shadow: 0 0 5px 3px rgba(220, 220, 240, 0.7);
}

.button-global:active {
    background-color: var(--button-background-active);
}









.button-global-small {
    border: 0 none;
    box-sizing: border-box;

    font-size: calc(var(--header-button-font-size) * var(--header-small_button-ratio));
    -webkit-font-smoothing: antialiased;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: transform 0.2s;
}

.button-global-small:hover {
    transform: scale(1.1);
}

.button-global-small:active {
    background-color: var(--button-background-active);
}

.button_enabled {
    background-color: #83C4DD;
    color: white;
}

.button_disabled {
    background-color: #F0F2FB;
    color: #888;
}

.button-header {
    height: var(--header-button-height);
    border-radius: calc(var(--header-button-height) / 2);
    padding-left: calc(var(--header-button-height) / 2);
    padding-right: calc(var(--header-button-height) / 2);
}

.button-header-small {
    position: absolute;
    top: calc((var(--header-height) - var(--header-button-height) * var(--header-small_button-ratio)) / 2);
    height: calc(var(--header-button-height) * var(--header-small_button-ratio));
    border-radius: calc(var(--header-button-height) / 2 * var(--header-small_button-ratio));
    padding-left: calc(var(--header-button-height) / 2 * var(--header-small_button-ratio));
    padding-right: calc(var(--header-button-height) / 2 * var(--header-small_button-ratio));
}

#button-process {
    position: absolute;
    top: calc((var(--header-height) - var(--header-button-height)) / 2);
    left: 15px;
}

#button-proofread {
    right: 15px;
}

#button-rephrase {
    right: 100px;
}

#button-translate {
    right: 177px;
}
