/* Font Faces */
@font-face {
    font-family: 'Pobeda Regular';
    src: url('../fonts/pobedaregular.ttf');
}
@font-face {
    font-family: 'Pobeda Bold';
    src: url('../fonts/pobedabold.ttf');
}
@font-face {
    font-family: 'Open Sans Regular';
    src: url('../fonts/OpenSansRegular.ttf');
}
@font-face {
    font-family: 'Open Sans Bold';
    src: url('../fonts/OpenSansBold.ttf');
}

/* Color Variables */
:root {
    --color-primary: #0596ae;
    --color-secondary: #e64e45;
    --color-dark: rgba(0, 0, 0, 0.25);
    --color-light: rgba(255, 255, 255, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    display: grid;
    grid-template-columns: 488px 1fr;
    font-family: 'Open Sans Regular', sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
  text-decoration: none;
}

/* Layout Components */
aside {
    display: flex;
    flex-flow: column nowrap;
    width: 480px;
    padding-bottom: 50px;
    background-color: var(--color-light);
    position: relative;
}

header {
    position: sticky;
    top: 0;
    display: flex;
    flex-flow: column nowrap;
    gap: 16px;
    padding: 50px 50px;
    background: linear-gradient(to bottom, var(--color-light) 92%, transparent 100%);
    z-index: 10;
}

#logo {
    width: 430px;
}

main {
    display: flex;
    flex-flow: column nowrap;
    gap: 40px;
    width: 100%;
    padding: 50px;
    min-height: calc(100vh - 160px);
}

/* Navigation */
aside nav {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2,32px) 1fr repeat(2,32px);
    gap: 16px;
    width: 100%; height: 64px;
    border: 1px solid var(--color-primary);
    border-radius: 32px;
    padding: 15px 22px 13px;
    align-items: start;
    justify-items: center;
    background: var(--color-light);
    z-index: 5;
}
nav a {
    font: 32px 'Pobeda Bold';
    color: var(--color-secondary);
    text-align: center;
    margin-top: -2px;
    align-items: center;
    display: flex;
}
#menu {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    width: 100%;
}
#menu.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 5s linear infinite;
}
#prev, #next {
    cursor: pointer;
    user-select: none;
}
#prev.disabled, #next.disabled {
    opacity: 0.5;
    pointer-events: none;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
nav .button {
    transition: all .125s linear;
    height: 32px;
    fill: var(--color-primary);
    cursor: pointer;
}
nav .button:hover {
    transition: all .125s linear;
    fill: var(--color-secondary);
}
#nav {
    display: none;
    flex-flow: column nowrap;
    gap: 10px;
    position: absolute;
    top: 355px; left: 50px;
    width: calc(100% - 98px);
    margin: -1px;
    padding: 74px 20px 20px;
    text-align: center;
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 34px 34px 16px 16px;
    z-index: 4;
}
#nav a {
    font: 32px 'Pobeda Bold';
    color: var(--color-light);
}
#nav a:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
}
#social + div {
    position: absolute;
    top: 14px;
    left: 70px;
    display: flex;
    flex-flow: row nowrap;
    place-content: center;
    gap: 30px;
    width: 0;
    height: 36px;
    background-color: var(--color-light);
    z-index: 5;
}
#search + .search-form-wrapper form {
    position: absolute;
    top: 11px;
    left: 22px;
    width: 286px;
    z-index: -1;
}
#search + .search-form-wrapper form input {
    transform-origin: right;
    width: 0;
    height: 36px;
    padding: 5px 0;
    font: 20px 'Open Sans Regular';
    color: var(--color-secondary);
    border: none;
    outline: none;
}
@keyframes search-open {
    0% {width: 0; opacity: 0;}
    100% {width: 286px; opacity: 1;}
}
@keyframes search-close {
    0% {width: 286px; opacity: 1;}
    100% {width: 0; opacity: 0;}
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

menu {
    display: flex;
    gap: 32px;
    justify-content: center;
}
menu .button {
    transition: all .25s linear;
    display: flex;
    place-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
}
menu .button svg {
    fill: var(--color-light);
    height: 30px;
}
menu .button:hover {
    transition: all .25s linear;
    background: var(--color-secondary);
    transform: scale(1.2);
}

/* Crumbs */
#crumbs {
    font: 24px 'Pobeda Bold';
    color: var(--color-primary);
}
.mod-breadcrumbs {
    display: flex;
    flex-flow: row nowrap;
    list-style: none;
}
#crumbs li, #crumbs a{
    color: var(--color-primary);
}
#crumbs li.active, #crumbs .active {
    color: var(--color-secondary);
}

/* Pagination */
.pagination {
    display: flex;
    flex-flow: row nowrap;
    place-content: center;
    place-items: center;
    gap: 30px;
    width: 100%;
    font: 36px 'Pobeda Bold';
    list-style: none;
}
.pagination a {
    color: var(--color-primary);
}
.pagination a:hover {
    color: var(--color-secondary);
}
.pagination a[aria-current="true"] {
    color: var(--color-secondary);
}
[aria-current="true"] {
    font-size: 48px;
    color: var(--color-secondary);
    cursor: pointer;
}
.page-item:not(.svg-button):hover {
    transform: scale(1.25);
}
.svg-button svg {
    transform: scale(.5);
    transition: transform .25s linear;
}
.svg-button svg:hover {
    transform: scale(1);
    transition: transform .25s linear;
}

/* Buttons */
.button {
    transition: all 0.125s linear;
    height: 32px;
    fill: var(--color-primary);
    cursor: pointer;
}

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

/* Articles and Posts */
.blog, .blog-items, .list-group-item {
    display: flex;
    flex-flow: column nowrap;
    gap: 40px;
}
.blog {
    min-height: calc(100vh - 327px);
}
.blog-items audio, .list-group-item audio {
    height: 40px;
}
.page-header + div p, .page-header + div em, .page-header + div strong, .tag-body div p, .tag-body div em, .tag-body div strong, [itemprop="articleBody"] div p, [itemprop="articleBody"] div em, [itemprop="articleBody"] strong {
    display: block;
    margin-bottom: 10px;
    line-height: 1.5;
}
.blog-items a, .list-group-item a, [itemprop="articleBody"] a {
    color: var(--color-secondary);
}
.blog-items a:hover, .list-group-item a:hover, [itemprop="articleBody"] a:hover {
    color: var(--color-primary);
}
.item-content {
    padding: 34px 42px;
    box-shadow: 0 7px 5px rgba(0,0,0,.25);
    display: flex;
    flex-flow: column nowrap;
    gap: 30px;
}
.post {
    text-align: justify;
    line-height: 1.25;
}
.post p {
    margin-bottom: 16px;
}
.page-header h2, .list-group-item h3 {
    font: 36px 'Pobeda Bold';
    color: var(--color-secondary);
    cursor: pointer;
}
.page-header + div, .tag-body div, [itemprop="articleBody"] div {
    line-height: 1.5;
    text-align: justify;
    width: 100%;
}
.page-header + div p, .tag-body div p, [itemprop="articleBody"] div p {
    font: 18px 'Open Sans Regular';
}
.page-header + div strong, .tag-body div strong, [itemprop="articleBody"] div strong {
    font: 18px 'Open Sans Bold';
}

/* Tags and Metadata */
.article-info {
    display: flex;
    flex-flow: column nowrap;
    list-style: none;
}
.tag {
    width: 100%;
}
.tag a {
    font: 24px 'Pobeda Bold';
    color: var(--color-secondary);
    margin-right: 5px;
}
.date {
    font: 24px 'Pobeda Regular';
    color: var(--color-dark);
}
.archive-link {
    margin-top: 40px;
    text-align: center;
}
.archive-link a {
    font-size: 32px;
    border-radius: 26.5px;
}

/* Footer */
footer {
    grid-column: 1 / -1;
    width: 100%;
    height: 160px;
    display: flex;
    place-items: center;
    background-position: left top;
    background: url('../images/wave.png') repeat-x var(--color-light);
}

footer p {
    width: 100%;
    text-align: center;
    font: 24px 'Pobeda Bold';
    color: var(--color-secondary);
    margin-top: 72px;
}

/* Language Selector */
#lang {
    position: absolute;
    width: 128px;
    height: 40px;
    background: var(--color-light);
    border: 1px solid var(--color-secondary);
    padding: 6.5px;
    border-radius: 20px;
    overflow-y: hidden;
    cursor: pointer;
}
#lang .lang-block {
    display: flex;
    flex-flow: column nowrap;
    gap: 6.5px;
    align-items: center;
    font: 24px 'Pobeda Bold';
    color: var(--color-secondary);
}
#lang:hover {
    height: fit-content;
}
#lang .lang-block:hover a:not(:first-child) {
    color: var(--color-primary);
}
#lang a {
    color: var(--color-secondary);
}

/* Radio Changer */
#changer {
    position: relative;
    width: 100%;
    height: 12px;
    border: 1px solid var(--color-primary);
    border-radius: 6px;
    cursor: pointer;
}
#radio {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 20px;
    height: 20px;
    border: 4px solid var(--color-secondary);
    border-radius: 10px;
    background: var(--color-light);
    cursor: grab;
    transition: left 1s ease-out;
}

/* SHOP */
[id*='hikashop_category_information_menu_'] h1 {
    display: none;
}
.hika_no_products {
    background: none;
    border: none;
    box-shadow: none;
    color: var(--color-secondary);
    font: 18px 'Open Sans Regular', sans-serif;
}
.far::before {
    content: '';
}


/* --- */
.visually-hidden {
    display: none;
}

/* ARCHIVE */
.release-header {
    width: 100%;
    text-align: right;
    font: 18px 'Open Sans Regular', sans-serif;
    color: var(--color-dark);
    font-style: italic;
    padding: 20px 0;
}
.release-header strong {
    color: var(--color-secondary);
}

/* TAGS */
#adminForm, .btn-group {
    display: flex;
    flex-flow: row nowrap;
    gap: 20px;
}
#adminForm {
    justify-content: right;
    margin-bottom: 20px;
}
.btn-group {
    align-items: center;
}
.form-select {
    font: 16px 'Open Sans Regular', sans-serif;
    text-align: center;
    border: none;
    background: none;
    color: var(--color-dark);
    width: 40px; height: 40px;
}
.com-tags__items label {
    display: block;
    font: 24px 'Pobeda Bold';
    color: var(--color-secondary);
}
.com-tags-tag__category {
    display: flex;
    flex-flow: column nowrap;
    gap: 40px;
    min-height: calc(100vh - 327px);
}
.list-group-item { 
    padding: 34px 42px;
    box-shadow: 0 7px 5px rgba(0,0,0,.25);
    display: flex;
    flex-flow: column nowrap;
    gap: 30px;
}
.com-tags-tag__category a {
    font: 36px 'Pobeda Bold';
    color: var(--color-secondary);
}

/* SEARCH */
.com-finder__search {
    border: none;
    padding: 0;
}
.form-inline, .input-group {
    display: flex;
    flex-flow: row nowrap;
    gap: 30px;
}
.form-inline {
    width: 100%;
    justify-content: right;
    place-items: center;
}
.input-group {
    width: 50%;
}
.me-2 {
    font: 24px 'Pobeda Bold';
    color: var(--color-secondary);
}
#q {
    transform-origin: right;
    height: 40px;
    width: 100%;
    padding: 5px 0;
    font: 16px 'Open Sans Regular';
    color: var(--color-dark);
    border: none;
    outline: none;
    border-bottom: 1px solid var(--color-secondary);
}
.btn {
    font: 20px 'Pobeda Bold';
    height: 100%;
    padding: 8px 24px;
    background: var(--color-primary);
    color: var(--color-light);
    border: none;
    cursor: pointer;
}
.btn:hover {
    background: var(--color-secondary);
}
#search-result-list {
    display: flex;
    flex-flow: column nowrap;
    gap: 40px;
    min-height: calc(100vh - 327px);
}
.result__item {
    padding: 34px 42px;
    box-shadow: 0 7px 5px rgba(0,0,0,.25);
    display: flex;
    flex-flow: column nowrap;
    gap: 30px;
}
.result__item + .result__item {
    border-top: none;
    margin-top: 0;
}
.result__description {
    display: flex;
    flex-flow: column nowrap;
    gap: 20px;
}
.result__description > iframe, .result__description > audio, .result__description > img {
    display: none;
}
.result__date {
    order: 100;
    font: 24px 'Pobeda Regular';
    color: var(--color-dark);
}
.result__date::after {
    content: '';
}
.result__title-text {
    font: 36px 'Pobeda Bold';
    color: var(--color-secondary);
}
.result__title-link:hover .result__title-text {
    text-decoration: none;
    color: var(--color-primary);
}

/* PDF */
.wtviewpdf-default {
    position: relative;
    width: 100%;
    max-height: 640px;
    overflow-y: scroll;
    scrollbar-width: thin;
}
.wtviewpdf-default * {
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    body {
        grid-template-columns: 1fr;
    }
    aside {
        width: 100vw;
        padding-bottom: 20px;
    }
    header {
        position: relative;
        padding: 20px;
    }
    main {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    nav {
        grid-template-columns: repeat(4, 1fr);
        height: auto;
        padding: 10px;
    }
    /*#menu {
        grid-column: 1 / -1;
        text-align: center;
    }*/

}