﻿body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16pt;
    background-color: #ffffff;
}

.unselectable {
    user-select: none;
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* layout */

html, body {
    box-sizing: border-box;
    margin: 0;
    height: 100%;
    background-color: #888;
}

.content-padding {
    padding: 1.25rem;
}

.table-container {
    border-spacing: 0;
    margin: auto;
    height: 100%;
    width: 100%;
    max-width: 768px;
    background-color: #fff;
}

.td-header {
    background-color: #ff9b3d;
    color: #fff;
}

.td-header-table {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
}

.header-buttons {
    padding-right: 0.25rem;
}

.header-buttons-end {
    padding-right: 0.5rem;
}

.header-button {
    display: block;
    width: 2rem;
    height: 2rem;
    padding: 0.5rem;
    background-size: 1.75rem;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

.header-button-back {
    background-image: url('back.png');
    background-size: 1.5rem;
}

.header-button-info {
    background-image: url('settings.png');
}

h1.header {
    padding: 1rem;
    padding-right: 0;
    margin: 0;
    font-size: 15pt;
    font-weight: 400;
}

.scrollable-div {
    height: 100%;
    overflow-y: auto;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
}

.td-content {
    height: 100%;
    position: relative;
}


/* main div */

.main-div {
    text-align: center;
    padding: 1rem;
}

.main-img {
    max-width: 100%;
    border-radius: 1rem;
    max-height: 600px;
}


@media (max-height: 800px) {
    .main-img {
        max-height: 500px;
    }
}

@media (max-height: 700px) {
    .main-img {
        max-height: 450px;
    }
}

@media (max-height: 655px) {
    .main-img {
        max-height: 400px;
    }
}



.text-main {
    color: #000;
    font-size: 15pt;
    font-weight: 400;
    padding: 1rem;
}


/* button */

.img-button {
    display: inline-block;
    background-size: 1.75rem;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    background-color: #e0e0e0;
    border: none;
    color: #000000;
    border-radius: 4px;
    padding: 1.25rem 1.75rem;
    margin: 1rem 0.25rem 0rem;
    height: 1.75rem;
}

.img-button-reload {
    background-image: url('reload.png');
}

.img-button-reload-loading-div {
    width: 1.25rem;
    height: 1.25rem;
    border: 0.3rem solid transparent;
    border-radius: 50%;
}

.img-button-reload-loading-show {
    padding: 2px;
    border: 2px solid #0015ff;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: spinner-border 1.75s linear infinite;
    animation: spinner-border 1.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg)
    }
}


/* text */

.text-container {
    text-align: start;
    font-size: 14pt;
}

    .text-container h3 {
        font-size: 1.5rem;
        font-weight: 500;
    }

    .text-container .pic {
        max-width: 100%;
    }

    .text-container .header {
        font-weight: bold;
        font-size: 1.5rem;
        margin-top: 0.5rem;
    }

    .text-container p.text-header {
        padding-top: 0;
        padding-bottom: 0;
        margin: 0;
    }

    .text-container hr {
        border: 0;
        border-top: 1px solid #555555;
    }

    .text-container .img-logo {
        padding: 0;
        margin: 0;
        margin-top: 1rem;
        text-align: center;
    }

    .text-container .img-responsive {
        width: 100%;
        max-width: 480px;
        border-radius: 0.5rem;
    }

    .text-container .img-responsive-50 {
        width: 50%;
    }

    .text-container .text-italic p {
        font-style: italic;
    }

    .text-container .text-indent {
        padding-left: 2rem;
    }

    .text-container .text-centered {
        text-align: center;
    }

    .text-container .text-right {
        text-align: right;
    }

    .text-container li {
        margin-bottom: 1rem;
    }

    .text-container a {
        color: #0d71a9;
        text-decoration: none;
    }

        .text-container a:hover, a:focus {
            color: #7e2e0d;
            text-decoration: underline;
        }

        .text-container a:focus {
            outline: thin dotted;
            outline: 5px auto -webkit-focus-ring-color;
            outline-offset: -2px;
        }

    .text-container .iast {
        word-break: break-word;
        font-weight: bold;
    }

    .text-container p.ru, .text-container p.en {
        margin-top: 1.25rem;
        margin-bottom: 2.25rem;
    }

        .text-container p.ru.comment, .text-container p.en.comment {
            margin-top: -1.75rem;
            margin-bottom: 2.25rem;
        }

    .text-container .dev {
        word-break: break-word;
    }


/* popup */

.submenu-container {
    position: relative;
    z-index: 100;
}

.submenu {
    visibility: hidden;
    position: absolute;
    overflow: hidden;
    top: 0;
    right: 0;
    color: #000;
    background-color: #fff;
    box-shadow: 0px 0px 5px #000;
    padding: 1rem;
}

    .submenu td {
        white-space: nowrap;
        font-size: 14pt;
        padding: 0.5rem 0;
        cursor: pointer;
        padding: 1rem 1rem;
    }

.submenu-separator {
    height: 1px;
    background-color: #888;
    padding: 0 !important;
    cursor: inherit;
}

.submenu-bk {
    visibility: hidden;
    width: 100%;
    min-height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}

.submenu tr:hover {
    background-color: #ccc;
    color: #000;
}

.submenu-check {
    font-size: 18pt;
    line-height: 0.5;
}

.badge_image {
    height: 40px;
}
