
:root {
    --primary-color: #853DCC;
    --secondary-color: #B224B2;
    --highlight-color: #CC1470;
}

a:link {
    color: var(--primary-color);
}
a:visited {
    color: var(--highlight-color);
}
a:hover, a:active {
    color: var(--secondary-color);
}

body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #F2F1F5;
    --pagefind-ui-background: #F2F1F5;
}

footer {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--primary-color);
    color: #F2F1F5;
    font-size: 14px;
}

footer a:link {
    color: #F2F1F5;
}

footer  a:visited {
    color: #F2F1F5;
}

footer  a:hover {
    color: #F2F1F5;
}

footer a:active {
    color: #F2F1F5;
}

.form-group {
    margin-bottom: 15px;
}
label {
    display: block;
    margin-bottom: 5px;
}
input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
}
button {
    background-color: var(--primary-color);
    color: #F2F1F5;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: var(--secondary-color);
}

#page-data {
    padding: 10px 20px;
    border: 1px dotted var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
}

#nav{
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

#search{
    border: 1px dotted var(--primary-color);
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#content {
    border: 1px dotted var(--primary-color);
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.block {
    border: 1px dotted var(--primary-color);
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

#info{
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

#container {
    width:100%;
    text-align:center;
}

#left {
    float:left;
    width:100px;
}

#center {
    display: inline-block;
    margin:0 auto;
    width:100px;
}

#right {
    float:right;
    width:100px;
}

img[alt=image] {
    width: 420px;
}

/* Navbar container */
.navbar {
    overflow: hidden;
    background-color: var(--primary-color);
    font-family: Arial, serif;
}

/* Links inside the navbar */
.navbar a, .dropbtn span {
    float: left;
    font-size: 14px;
    color: white;
    margin: 0;
    border: none;
    outline: none;
    padding: 4px 4px;
}

/* The dropdown container */
.dropdown {
    float: left;
    overflow: hidden;
}

/* Dropdown button */
.dropdown .dropbtn {
    font-size: 14px;
    outline: none;
    color: white;
    border: none;
    margin: 0; /* Important for vertical align on mobile phones */
    background-color: inherit;
    font-family: inherit; /* Important for vertical align on mobile phones */
    padding: 26px 8px;
}

.dropdown-lang {
    float: right;
    overflow: hidden;
    padding-right: 67px;

}

.dropdown-lang .dropbtn{
    font-size: 14px;
    outline: none;
    color: white;
    border: none;
    margin: 0; /* Important for vertical align on mobile phones */
    background-color: inherit;
    font-family: inherit; /* Important for vertical align on mobile phones */
    padding: 26px 2px;
}

/* Add a red background color to navbar links on hover */
.navbar a:hover, .dropdown:hover{
    background-color: var(--secondary-color);
}
.navbar a:hover, .dropdown-lang:hover{
    background-color: var(--secondary-color);
}

/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #F2F1F5;
    min-width: 80px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    padding: 8px 16px;
}

/* Links inside the dropdown */
.dropdown-content a {
    float: none;
    color: black;
    text-decoration: none;
    display: block;
    text-align: left;
}

/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
    background-color: #F2F1F5;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-lang:hover .dropdown-content {
    display: block;
}

pre {
    white-space: pre-wrap;
    background: #F2F1F5;
}
.fit-media {
    max-width: 100%;
}
.fit-media img, .fit-media video {
    height: auto;
    width: 100%;
}
img, video {
    max-width: 100%;
}
.popup {
    bottom: 0;
    box-sizing: border-box;
    display: none;
    left: 0;
    position: fixed;
    width: 100%;
    z-index: 100;
}
.popup--form {
    justify-content: center;
    align-items: center;
    height: 100%;
    z-index: 200;
}
.popup--main .popup__backdrop {
    display: none;
}
.popup--form .popup__backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    bottom: 0;
    left: 0;
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: 0;
}
.popup.usagr-visible {
    display: flex;
}
.popup__content {
    background-color: white;
    box-shadow: 0px -2px 10px 0px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    padding: 15px 20px;
}
.popup--main .popup__content {
    width: 100%;
}
.popup--form .popup__content {
    max-width: 600px;
    position: relative;
    width: 95%;
    z-index: 10;
}
.popup__container {
    margin: 0 auto;
    width: 95%;
}
.popup__title, .popup__text {
    margin: 0 0 10px;
}
.popup__title {
    font-weight: bold;
}
.popup__close {
    aspect-ratio: 1;
    background-color: var(--primary-color);
    display: block;
    margin: 0 0 20px auto;
    padding: 0;
    position: relative;
    width: 25px;
}
.popup__close:hover {
    background-color: var(--secondary-color);
}
.popup__close::before, .popup__close::after {
    background-color: white;
    content: "";
    height: 2px;
    left: 50%;
    top: 50%;
    position: absolute;
    width: 50%;
}
.popup__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.popup__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.popup__title {
    font-weight: bold;
}
.popup__form  {
    margin-top: 20px;
}
.popup__footer {
    margin-top: 10px;
}
.form__item {
    position: relative;
}
.form__checkbox {
    width: auto;
}
.form__label {
    display: inline-block;
}
.form__description {
    font-size: 0.9em;
    font-style: italic;
}
button.btn {
    --main-color: var(--primary-color);
    border: 2px solid var(--main-color);
    background-color: transparent;
    color: var(--main-color);
    font-weight: bold;
}
button.btn:hover {
    --main-color: var(--secondary-color);
}
button.btn_primary {
    background-color: var(--main-color);
    color: white;
}
.open-popup {
    display: block;
    margin: 0 auto;
}