/*@supports (scrollbar-gutter: stable) {
     *{
        overflow: auto;
        scrollbar-gutter: stable;
        box-sizing: border-box;
    }
}*/
@font-face {
    font-family: "Monotype Corsiva Regular";
    src: local("Monotype Corsiva"),
        url("/global/fonts/Monotype_Corsiva_Regular.woff2") format("woff2"),
        url("/global/fonts/Monotype_Corsiva_Regular.woff") format("woff"),
        url("/global/fonts/Monotype_Corsiva_Regular.ttf") format("truetype");
}

@font-face {
    font-family: "Royal Times New Roman";
    src: local("Times New Roman"),
        url("/global/fonts/Royal_Times_New_Roman.woff2") format("woff2"),
        url("/global/fonts/Royal_Times_New_Roman.woff") format("woff"),
        url("/global/fonts/Royal_Times_New_Roman.ttf") format("truetype");
}

@font-face {
    font-family: "Royal Arial";
    src: local("Arial"),
        url("/global/fonts/Royal_Arial.woff2") format("woff2"),
        url("/global/fonts/Royal_Arial.woff") format("woff"),
        url("/global/fonts/Royal_Arial.ttf") format("truetype");
}

::-webkit-scrollbar {
    height: 12px;
    width: 12px;
}

::-webkit-scrollbar-thumb {
    background-color: #1ef090;
    border-radius: 20px;
}

::-webkit-scrollbar-track {
    background-color: #dfe0e4;
}

*::selection {
    background-color: #00ff80;
    color: white;
}

* {
    scrollbar-color: #1ef090 #dfe0e4;
    /*scrollbar-face-color: #1ef090;*/
}

html,
body {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: auto;
}

dialog#noscript {
    position: relative;
    display: block;
    width: 40%;
    left: 50%;
    top: 50%;
    margin: 0;
    background: #ffffff;
    border: 5px #ff0000 solid;
    border-radius: 10px;
    transform: translate(-50%, -50%);
    padding: 0;
    text-align: right;
}

#subscribe-header {
    margin: 0;
    text-align: center;
    color: dodgerblue;
    background-color: lightgreen;
    font-size: 130%;
    padding: 0.1em 0;
}

dialog#noscript img {
    position: relative;
    float: left;
    margin: 0.5em 20px 0;
}

dialog#noscript>div {
    position: relative;
    padding: 10px;
}

dialog#noscript div>h3 {
    margin: 0;
    text-align: center;
}

dialog#noscript div>h3~p {
    margin: 0;
    text-align: justify;
}

dialog#noscript div>h3~p+p {
    text-align: left;
    margin: 0;
}

dialog#noscript hr {
    position: absolute;
    width: 94%;
    left: 3%;
    top: 100%;
    margin-top: -2.5em;
}

dialog#noscript>a {
    position: relative;
    display: inline-block;
    text-decoration: none;
}

dialog#noscript>button {
    position: relative;
    display: inline-block;
    margin: 0 10px;
}

dialog#noscript button {
    margin: 5px;
}

dialog::backdrop {
    background-color: rgba(103, 183, 58, 0.32);
}

dialog::-ms-backdrop {
    background-color: rgba(103, 183, 58, 0.32);
}

#nos:checked+dialog {
    display: none;
}

#if1

/*, #if2*/
    {
    display: none;
}

#if1 {
    z-index: 1000;
    border: 0;
    position: absolute;
    left: 0;
    width: 100%
}

/*#if2 {
    position: absolute;
    width: 100%;
    height: 55px;
    z-index: 9999;
    text-align: right;
}

#if2 > label {
    display: inline-block;
    position: relative;
    top: 1em;
    !*left: calc(100% - 13rem);*!
    margin-right: 1rem;
    color: orange;
    font-weight: bold;
    text-shadow: 1px 1px 1px black, -1px -1px 1px black;
    background: green;
    border: 2px darkgreen solid;
    border-radius: 1rem;
    padding: 0.1rem 0.5rem;
    cursor: pointer;
}*/

img[id^="flake"] {
    transform: scale(.3);
}

header {
    position: sticky;
    top: -198px;
    z-index: 9000;
    user-select: none;
}

header+div {
    position: relative;
    display: table;
    min-height: calc(100% - 327px);
}

#header {
    position: relative;
    display: block;
    height: 198px;
    background: url("/global/images/Chemical_structure.png") right center no-repeat,
        url("/global/images/Me.png") left center no-repeat,
        url("/global/images/left.png") right center repeat-x;
    background-color: #e0ffe0;
    text-align: center;
    overflow: hidden;
}

#header.newyear {
    background-position-y: 4rem;
    height: calc(198px + 4rem);
}

#header.newyear>a {
    top: calc(50% + 3rem);
    font-size: 10vmin;
}

#header>a {
    position: relative;
    width: calc(100% - 558px);
    display: block;
    left: calc(50% - 1em);
    ;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #1ef090;
    /*#4A99D7;*/
    font-family: "Monotype Corsiva Regular", serif;
    font-size: 8vmin;
    /*38pt;*/
    font-weight: bold;
    text-shadow: 0.1em 0.1em 0.05em #333, 0.1em 0.1em 0.2em black;
    line-height: 100%;
    text-decoration: none;
}

#header>a:nth-of-type(n+2) {
    position: sticky;
    display: inline-block;
    width: 48px;
    height: 48px;
    background-size: contain !important;
    left: auto;
    top: 100%;
    transform: translateX(-1em) translateY(0);
}

#header>a:nth-of-type(2) {
    background: url("/global/images/home-icon.png") no-repeat;
}

#header>a:nth-of-type(3) {
    background: url("/global/images/sitemap-icon.png") no-repeat;
}

#header>a:nth-of-type(4) {
    background: url("/global/images/email-icon.png") no-repeat;
}

#header>a:nth-of-type(5) {
    background: url("/global/images/admin-icon.png") no-repeat;
    width: 65px;
}

footer {
    /*position: relative;*/
    position: sticky;
    bottom: 0 !important;
    z-index: 9999;

    display: block;
    background-color: #1ef090;
    height: 50px;
}

.leftPanel,
.rightPanel {
    position: relative;
    display: table-cell;
    width: 15%;
    padding: 10px;
    box-sizing: border-box;
    background-color: #e0ffe0;
    vertical-align: top;
}

.centerPanel {
    position: relative;
    display: table-cell;
    width: 70%;
    border-color: silver;
    border-style: none solid;
    border-width: 3px;
    box-shadow: inset 0 0 3px black;
    padding: 10px;
    box-sizing: border-box;
    background-image: url("/global/images/bg-bottom.png");
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center bottom;
    vertical-align: top;
    background-color: white;
}

/*````````````````````````````````````````*/

#clock {
    left: 50%;
    position: relative;
    transform: translateX(-50%);
    margin: 1em 0;
    width: clamp(50px, 100%, 200px);
}

/*```````````````````````````````````````````*/
footer {
    font-family: "Royal Times New Roman", serif;
    font-weight: bold;
    user-select: none;
}

footer div {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10pt;
    color: white;
    text-shadow: 0.1em 0.1em 0 black;
    margin: 0 0 0 10px;
    width: 100px;
}

input[type=text],
input[type=email],
textarea,
input[type=date] {
    border: 2px #ccc solid;
    border-radius: 0.2em;
}

input[type=text]:focus-visible,
input[type=email]:focus-visible,
textarea:focus-visible,
input[type=date]:focus-visible {
    border: 2px #0c6 solid;
    outline: 1px #a6e2c5 solid;
    outline-offset: 2px;
    border-radius: 0.2em;
}

input[type=text]::selection,
input[type=email]::selection,
textarea::selection,
input[type=date]::selection {
    background-color: #00D778;
    color: white;
}

input[type=text]:not(:placeholder-shown):invalid,
input[type=email]:not(:placeholder-shown):invalid,
textarea:not(:placeholder-shown):invalid {
    border-color: #F76E6E;
}

input[type=text]:not(:placeholder-shown):valid,
input[type=email]:not(:placeholder-shown):valid,
textarea:not(:placeholder-shown):valid {
    border-color: #9CF76E;
}

input[type="checkbox"] {
    display: none;
    /* Приховуємо сам прапорець */
}

input[type="checkbox"]+label {
    padding-left: 25px;
    /* Встановлюємо відступ зліва для резервування місця під імітований прапорець */
    position: relative;
    cursor: pointer;
}

input[type="checkbox"]+label:before {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid #9b9b9b;
    position: absolute;
    left: 0;
    top: 2px;
    box-sizing: border-box;
    border-radius: 3px;
}

input[type="checkbox"]:checked+label:before {
    content: "\2713";
    background-color: #00D778;
    border-color: #00D778;
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 13px;
}

dialog {
    border-radius: 1em;
    box-shadow: 5px 5px 5px black;
    border-color: #1ef090;
}

#page_title {
    text-align: left;
    color: #1ef090;
    font-family: "Monotype Corsiva Regular", serif;
    font-size: 5.53vmin;
    font-weight: bold;
    text-shadow: 0.1em 0.1em 0.05em #333,
        0.1em 0.1em 0.2em black,
        -1px 0 0 green,
        1px 0 0 green,
        0 -1px 0 green,
        0 1px 0 green;
    line-height: 100%;
    text-decoration: none;
}

/*.centerPanel>div:last-of-type{
    max-height: calc(100vh - 158px);
    overflow-y: hidden;
}*/

.centerPanel>div:last-of-type:focus-visible {
    outline: none;
}

ol.ukr {
    list-style: none;
}

.ukr>li:nth-child(1)::before {
    content: 'а) ';
}

.ukr>li:nth-child(2)::before {
    content: 'б) ';
}

.ukr>li:nth-child(3)::before {
    content: 'в) ';
}

.ukr>li:nth-child(4)::before {
    content: 'г) ';
}

.ukr>li:nth-child(5)::before {
    content: 'ґ) ';
}

.ukr>li:nth-child(6)::before {
    content: 'д) ';
}

.ukr>li:nth-child(7)::before {
    content: 'е) ';
}

.ukr>li:nth-child(8)::before {
    content: 'є) ';
}

.ukr>li:nth-child(9)::before {
    content: 'ж) ';
}

.ukr>li:nth-child(10)::before {
    content: 'з) ';
}

.ukr>li:nth-child(11)::before {
    content: 'и) ';
}

.ukr>li:nth-child(12)::before {
    content: 'і) ';
}

.ukr>li:nth-child(13)::before {
    content: 'ї) ';
}

.ukr>li:nth-child(14)::before {
    content: 'й) ';
}

.ukr>li:nth-child(15)::before {
    content: 'к) ';
}

.ukr>li:nth-child(16)::before {
    content: 'л) ';
}

.ukr>li:nth-child(17)::before {
    content: 'м) ';
}

.ukr>li:nth-child(18)::before {
    content: 'н) ';
}

.ukr>li:nth-child(19)::before {
    content: 'о) ';
}

.ukr>li:nth-child(20)::before {
    content: 'п) ';
}

.ukr>li:nth-child(21)::before {
    content: 'р) ';
}

.ukr>li:nth-child(22)::before {
    content: 'с) ';
}

.ukr>li:nth-child(23)::before {
    content: 'т) ';
}

.ukr>li:nth-child(24)::before {
    content: 'у) ';
}

.ukr>li:nth-child(25)::before {
    content: 'ф) ';
}

.ukr>li:nth-child(26)::before {
    content: 'х) ';
}

.ukr>li:nth-child(27)::before {
    content: 'ц) ';
}

.ukr>li:nth-child(28)::before {
    content: 'ч) ';
}

.ukr>li:nth-child(29)::before {
    content: 'ш) ';
}

.ukr>li:nth-child(30)::before {
    content: 'щ) ';
}

.ukr>li:nth-child(31)::before {
    content: 'ь) ';
}

.ukr>li:nth-child(32)::before {
    content: 'ю) ';
}

.ukr>li:nth-child(33)::before {
    content: 'я) ';
}

#scrollBtn {
    display: none;
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 60px;
    right: calc(15% - 60px);
    z-index: 99;
    background-color: white;
    cursor: pointer;
    border-radius: 25px;
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#scrollBtn:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2), 0 0 10px gray inset;
}

#scrollBtn:active {
    box-shadow: 0 0 10px white inset, -1px -1px 2px black;
}

#scrollBtn>i {
    position: relative;
    display: block;
    width: 46px;
    height: 46px;
    background-color: #26c778;
    mask-repeat: no-repeat;
    mask-position: center center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center center;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    mask-image: url("/global/images/toTop.png");
    mask-size: contain;
    -webkit-mask-image: url("/global/images/toTop.png");
    -webkit-mask-size: contain;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Зноски позначені значком * */
.footnote {
    margin: 1em 0;
}

.footnote hr {
    width: 5em;
    margin: 0;
    border-top: 1px solid black;
    box-sizing: border-box;
    border-bottom: none;
}

.footnote p {
    font-size: 0.8em !important;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/*Збільшення малюнка, лупа*/
.zoom img:hover {
    cursor: zoom-in;
}

.zoomDialog {
    height: 100%;
    width: 70%;
    padding: 1em;
    box-sizing: border-box;
    border: none;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    overflow: hidden;
}

.zoomDialog>img {
    max-width: calc(100% - 2em);
    max-height: calc(100% - 2em);
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    cursor: zoom-in;
}

.zoomDialog>img:active {
    cursor: none;
}

.zoomDialog::backdrop {
    background: rgba(0, 0, 0, 0.95);
}

.zoomDialog::-ms-backdrop {
    background: rgba(0, 0, 0, 0.95);
}

.zoomDialog>.closeZoom {
    position: absolute;
    width: 1.4em;
    height: 1.4em;
    color: white;
    background-color: black;
    border-radius: 50%;
    border: 1px solid white;
    text-align: center;
    line-height: 1.2em;
    box-sizing: border-box;
    padding: 0;
    cursor: pointer;
    z-index: 10;
}

.zoomDialog>.closeZoom:before {
    content: '\00D7';
    width: 1.4em;
    height: 1.4em;
}

.zoomDialog>.closeZoom:focus-visible {
    outline: none;
}

.zoomDialog .magnifier {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid green;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-size: 300% 300%;
    pointer-events: none;
    display: none;
    background-color: white;
}

.submenu {
    position: relative;
    list-style: none;
    padding: 30px 10px 30px 10px;
    margin: 0 10px 0 10px;
    margin-top: 0px;
    background: #364848 url('/global/images/menu_content.png') repeat-y;
    border-radius: 15px;
    margin-top: 15px;
    white-space: nowrap;
    width: 15vw;
    z-index: 1000;
    box-sizing: border-box;
}

.submenu,
.submenu li {
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 21px;
    text-align: left;
}

.submenu li {
    position: relative;
    display: block;
    text-align: left;
    font-size: 8pt;
    line-height: 2.5em;
    background: url("/global/images/menu_separator.png") no-repeat bottom;
}

.submenu li div {
    position: relative;
    display: block;
    width: 95%;
    /*height: 100%;*/
    padding: 3px 3px 3px 3px;
    text-overflow: ellipsis;
    overflow: hidden;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 2px 2px 2px #000;
}

.submenu li summary {
    position: relative;
    width: 95%;
    height: 100%;
    padding: 3px 3px 3px 3px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 2px 2px 2px #000;
    cursor: pointer;
    line-height: 1.2rem;
    text-overflow: ellipsis;
    overflow: hidden;
}

.submenu li summary:hover,
.submenu li div:hover {
    overflow: visible;
}

.submenu li summary:hover a,
.submenu li div:hover a,
.submenu li summary:hover span {
    background-color: #324343;
    padding: 3px 6px 3px 0;
}

.submenu li a,
.submenu li span {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 2px 2px 2px #000;
}

.submenu summary::marker {
    color: #ffffff;
    font-weight: bold;
    text-shadow: 2px 2px 2px #000;
}

.submenu li ul,
.submenu details details {
    padding-left: 15px;
}

.submenu li li {
    text-align: left;
}

.submenu .first a {
    color: lime;
}

.submenu a.selected {
    pointer-events: none;
    cursor: default;
    color: cyan !important;
}

.submenu li div:hover a,
.submenu li summary:hover a {
    color: yellow;
}

.submenu summary:has(.selected) {
    pointer-events: none;
}

/*Клас для стилю рядка адреси сторінки*/
.adress {
    text-align: left;
    font-size: small;
    padding-left: 10px;
    margin: 0.5rem 0 1rem 0;
}

.adress a,
.blue-numbers a {
    color: #00cc66;
}

.adress a:visited,
.blue-numbers a:visited {
    color: #558b1a;
}

.block {
    position: relative;
    left: 0;
    top: 0;
    width: fit-content;
    height: fit-content;
    z-index: 1000;
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.block::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/