@font-face {
    font-family: "Zhizn";
    src: local('Zhizn'),
         url('Zhizn.otf') format("opentype");
    font-display: auto;
}

@font-face {
    font-family: "Kurut";
    src: local('Kurut'),
         url('kurut.ttf') format("truetype");
    font-display: auto;
}

body {
    font-family: verdana;
    padding: 0px;
    margin: 0px;
}

button:hover {
    background-color: #f5f5f5;
    transform: translateY(-1px);
}

button:active {
    background-color: #e0e0e0;
    transform: translateY(0);
}

button img {
    height: 16px;
    width: 16px;
}

button, select {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.1s ease, transform 0.1s ease, border-color 0.1s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    gap: 6px;
    padding: 4px 10px;
}

select {
    padding: 4px 5px;
}

a.anchor {
    display: block;
    position: relative;
    top: -100px;
    visibility: hidden;
}

.heading {
    background: linear-gradient(45deg, #7b70e6, #f86a6a);
    padding: 1px;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    height: 6em;
}

.heading a {
    display: contents;
    color: white;
    text-decoration: none;

    /* TODO */
    /* color: white; */
}

.heading .logo {
    position: relative;
    width: 70px;
    margin: 4px;
    margin-left: 16px;
    z-index: 10;

    /* animation-name: baloons;
    animation-duration: 4s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    animation-timing-function: linear; */
}

@keyframes baloons {
    0%  {left: 0px; top: 0px;}
    50% {left: -3px; top: 3px;}
    100% {left: -5px; top: 0px;}
}

h1, .heading-title {
    color: #d83134;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 0.67em;
    margin-bottom: 0.67em;
}

h3 {
    text-align: center;
}

.heading .site-title {
    position: relative;
    left: -40px;
    text-align: center;
    margin-left: 16px;
    z-index: 20;
}

.heading .site-name {
    margin: 2px;
    font-family: 'Kurut';
    /* TODO */
    /* font-family: ''; */
    font-size: 3.3em;
    font-weight: normal;
}

.heading .site-name:first-letter {
    color: #e03400;
    font-size: 1.3em;
}

.heading .site-description {
    font-size: 0.8em;
    position: relative;
    top: -12px;
    font-style: italic;
}

.heading .ribbon {
    display: flex;
    flex: 10;
}

.heading .ribbon-item {
    flex: 1;
    display: flex;
    position: relative;
}

.heading .ribbon-item img {
    height: 64px;
    margin: auto;
    /* opacity: 0.7; */
}

.mini-heading {
    display: none;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 0;
    color: white;
    background: linear-gradient(45deg, #7b70e6, #f86a6a);
    box-shadow: 0 0.5rem 1rem rgb(0 0 0 / .1), 0 -0.5rem 1rem rgb(0 0 0 / .1);
    gap: 8px;
    padding-left: 8px;
    padding-bottom: 7px;
    padding-top: 3px;
    z-index: 100;
}

.mini-heading a {
    color: white;
    text-decoration: none;
}

.mini-heading .site-title {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.mini-heading .site-name {
    font-family: 'Kurut';
    font-size: 2em;
    position: relative;
    left: -14px;
}

.mini-heading .site-name:first-letter {
    color: #e03400;
}

.mini-heading .site-description {
    margin-top: -12px;
    font-style: italic;
    text-align: right;
    padding-right: 8px;
}

.mini-heading .site-title .logo {
    position: relative;
    width: 40px;
}

.mini-heading .site-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mini-heading .site-section {
    font-size: 0.9em;
    padding: 4px 10px;
    background: #4d5f9396;
}

.mini-heading .site-section:first-letter {
    color: #ff8b68;
}

nav h2 {
    margin-block-start: 0em;
    margin-block-end: 0em;
    font-size: small;
    font-style: normal;
    font-weight: normal;
}

nav.breadcrumbs {
    font-size: 0.8em;
}

nav.breadcrumbs a {
    color: black;
    text-underline-offset: 3px;
}

nav.breadcrumbs ul {
    margin-top: 5px;
    margin-bottom: 0px;
    padding: 4px;
    padding-left: 20px;
}

nav.breadcrumbs ul li {
    display: inline-block;
    list-style-type: none;
}

nav.breadcrumbs ul li:not(:last-child):after {
    content: "›";
}

@media (max-width: 1000px) {
    .heading {
        display: none;
    }

    .mini-heading {
        display: flex;
    }

    .right .right-wrapper {
        position: static;
    }
}

