@charset "UTF-8";
/*
	Theme Name:        Мидгард
	Description:       WordPress тема для midgard-fest.by
	Author:            Ян Метелица
	Author URI:        https://yanmet.com/
	Version:           0.0.23
	Requires at least: 6.8.1
	Tested up to:      6.8.1
	Requires PHP:      8.3
	Text Domain:       midgard
*/
:root {
  /* Colors */
  --color-white: #fff;
  --color-gray: #6B6B6F;
  --color-gray-dark: #4C4F54;
  --color-black: #0f0f0f;
  --color-blue-light: #C3CFCF;
  --color-blue: #95A6B0;
  --color-blue-dark: #78808C;
  --color-pink: #D8BBB9;
  --color-background-primary: var( --color-blue-light );
  --color-background-secondary: var( --color-gray );
  --color-background-invert: var( --color-black );
  --color-text-primary: var( --color-white );
  --color-text-secondary: var( --color-gray-dark );
  --color-text-invert: var( --color-white );
  /* Sizes */
  --wrapper-size: calc( 1350px - 100px );
  --wrapper-gap: calc( ( 100% - var( --wrapper-size ) ) / 2 );
  --header-size-primary: 100px;
  --gap-list: 10px;
  --gap-small: 14px;
  --gap-primary: 24px;
  --gap-big: 32px;
  --gap-large: 48px;
  --gap-section: 100px;
  --border-radius-primary: 6px;
  --border-radius-large: 14px;
  /* Fonts */
  --font-family-primary: "Noto Sans", sans-serif;
  --font-family-secondary: "Noto Sans", sans-serif;
  --font-family-special: "Rurik";
  --font-weight-primary: 300;
  --font-size-tiny: 14px;
  --font-size-small: 15px;
  --font-size-primary: 16px;
  --font-size-medium: 20px;
  --font-size-big: 24px;
  --font-size-large: 32px;
  --font-size-giant: 44px;
  --line-height-primary: 130%;
  /* Animations */
  --animation-slow: ease-in-out .15s;
  --animation-primary: ease-in-out .1s;
}
@media (min-width: 782px) and (max-width: 1350px) {
  :root {
    --wrapper-size: calc( 100vw - 100px );
  }
}
@media (max-width: 782px) {
  :root {
    --wrapper-size: 90vw;
  }
}

/*
	Theme Name:        Мидгард
	Description:       WordPress тема для midgard-fest.by
	Author:            Ян Метелица
	Author URI:        https://yanmet.com/
	Version:           0.0.23
	Requires at least: 6.8.1
	Tested up to:      6.8.1
	Requires PHP:      8.3
	Text Domain:       midgard
*/
/* Animations */
@keyframes loading-rotation {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  80% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
/* Reset */
html {
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-primary);
  font-size: var(--font-size-primary);
  color: var(--color-text-primary);
}

body {
  background: linear-gradient(320deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
  height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-variant-numeric: lining-nums;
  line-height: var(--line-height-primary);
}
*::-webkit-scrollbar {
  background: transparent;
  width: 12px;
  height: 12px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.25);
  background-clip: padding-box;
  border: 4px solid transparent;
  border-radius: 6px;
}
*::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.75);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-secondary);
  font-weight: 500;
}

a {
  text-underline-offset: 3px;
  color: unset;
}
a.link {
  text-decoration: none;
}
a.link_hover:hover {
  text-decoration: underline;
}

img {
  vertical-align: middle;
}

ul, ol {
  padding-left: 18px;
}

/* UI */
.form-common {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--gap-small);
}
.form-common__header {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--gap-list);
}
.form-common__header h3 {
  margin: 0;
}
.form-common__row {
  width: 100%;
  display: flex;
  gap: var(--gap-small);
}
@media (max-width: 782px) {
  .form-common__row {
    flex-direction: column;
  }
}
.form-common__item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--gap-list);
}
.form-common__item label {
  cursor: pointer;
}
.form-common__item:has([required]) label::after {
  content: " *";
  color: red;
}
.form-common__submit {
  width: 100%;
  display: flex;
  gap: var(--gap-small);
}

input,
textarea,
select {
  background-color: var(--color-white);
  padding: var(--gap-small) var(--gap-primary);
  border: 1px solid var(--color-gray-dark);
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

textarea {
  resize: vertical;
}

.button {
  padding: var(--gap-small) var(--gap-primary);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-small);
}
.button span {
  line-height: 100%;
}
.button_primary {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius-primary);
}
.button_primary:hover {
  background-color: rgba(0, 0, 0, 0.075);
}
.button_small {
  padding: var(--gap-list) var(--gap-small);
}
.button_big {
  padding: var(--gap-small) var(--gap-primary);
}
.button_loading {
  position: relative;
}
.button_loading::after {
  content: "";
  width: auto;
  height: 40%;
  aspect-ratio: 1;
  border: 2px solid var(--color-white);
  border-radius: 50%;
  border-right-color: transparent;
  position: absolute;
  top: 50%;
  left: 50%;
  animation: loading-rotation 1s ease-in-out infinite;
}
.button_loading span {
  opacity: 0;
}

.checkbox,
.radio {
  display: flex;
  align-items: center;
  gap: var(--gap-list);
}
.checkbox input,
.radio input {
  width: 16px;
  height: 16px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.checkbox label,
.radio label {
  cursor: pointer;
  position: relative;
}
.checkbox label::before,
.radio label::before {
  content: "";
  background-color: var(--color-white);
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid var(--color-gray-dark);
  box-sizing: border-box;
  position: absolute;
  top: calc(50% - 16px / 2);
  left: calc(0px - var(--gap-list) - 16px);
}
.checkbox:where(.radio) label::before,
.radio:where(.radio) label::before {
  border-radius: 100%;
}
.checkbox:where(.radio):has(input:checked) label::before,
.radio:where(.radio):has(input:checked) label::before {
  border-radius: 100%;
}

.accordion {
  background-color: rgba(255, 255, 255, 0.075);
  border-radius: var(--border-radius-primary);
}
.accordion details summary {
  padding: 20px;
  padding-left: 40px;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.accordion details summary::before, .accordion details summary::after {
  content: "";
  background-color: var(--color-text-primary);
  width: 10px;
  height: 1px;
  transition: rotate var(--animation-slow);
  position: absolute;
  top: calc(50% - 1px);
  left: 18px;
}
.accordion details summary::-webkit-details-marker {
  display: none;
}
.accordion details:not([open]) summary::after {
  rotate: 90deg;
}
.accordion__content {
  padding: 0 20px;
  display: grid;
  grid-template-rows: 0fr;
  transition: all var(--animation-slow);
}
.accordion__content-body {
  overflow: hidden;
}
.accordion__content-body > *:first-child {
  margin-top: 0;
}
.accordion__content-body > *:last-child {
  margin-bottom: 0;
}
details[open] + .accordion__content {
  padding-bottom: 20px;
  grid-template-rows: 1fr;
}

.dialog {
  max-width: 600px;
  border: none;
  outline: none;
  transition: all var(--animation-primary);
}
.dialog:not([open]) {
  transform: translateY(10px);
  visibility: hidden;
  opacity: 0;
  position: fixed;
  display: block;
}
.dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}
@media (max-width: 782px) {
  .dialog {
    max-width: unset;
    width: var(--wrapper-size);
  }
}
.dialog > *:first-child {
  margin-top: 0;
}
.dialog > *:last-child {
  margin-bottom: 0;
}
.dialog__close {
  position: absolute;
  top: var(--gap-primary);
  right: var(--gap-primary);
}

.popover {
  max-width: 500px;
  margin: auto var(--gap-primary) var(--gap-primary) auto;
  padding: var(--gap-small) var(--gap-primary);
  border: none;
  transition: all var(--animation-primary);
  box-sizing: border-box;
}
.popover:not(:popover-open) {
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  display: block;
}
@media (max-width: 782px) {
  .popover:not(:popover-open) {
    transform: translateY(-10px);
  }
}
.popover > *:first-child {
  margin-top: 0;
}
.popover > *:last-child {
  margin-bottom: 0;
}
@media (max-width: 782px) {
  .popover {
    max-width: unset;
    width: var(--wrapper-size);
    margin: var(--wrapper-gap) auto auto auto;
  }
}

/* Common */
.wrapper {
  width: var(--wrapper-size);
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 783px) {
  .wrapper {
    max-width: 450px;
  }
}

.schedule {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.schedule__list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-list);
}
.schedule__event {
  display: flex;
  flex-direction: column;
}
.schedule__event span:last-of-type {
  font-size: var(--font-size-small);
}

/* Main */
.main-header__wrapper {
  height: var(--header-size-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-header__logo {
  height: 100%;
  display: flex;
  align-items: center;
  font-family: var(--font-family-special);
  font-weight: 500;
  font-size: var(--font-size-giant);
}
.main-header__logo span {
  margin-bottom: -8px;
  display: block;
  line-height: 0;
}
.main-header__burger {
  width: auto;
  height: 100%;
  padding: 5px;
  margin-left: auto;
  margin-right: -5px;
  aspect-ratio: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}
@media (min-width: 783px) {
  .main-header__burger {
    display: none;
  }
}
.main-header__burger span {
  background-color: var(--color-black);
  width: 100%;
  height: 6%;
  transition: all var(--animation-primary);
  display: block;
}
body.menu-open .main-header__burger span:first-of-type {
  rotate: 45deg;
  translate: 0 8px;
}
body.menu-open .main-header__burger span:nth-of-type(2) {
  opacity: 0;
}
body.menu-open .main-header__burger span:last-of-type {
  rotate: -45deg;
  translate: 0 -8px;
}

.main-main {
  background-color: rgba(0, 0, 0, 0.1);
  max-width: 1920px;
  margin: 0 auto;
  border-radius: var(--border-radius-large);
  overflow-y: auto;
  flex: 1;
}

.main-section__wrapper {
  padding: var(--gap-big);
}
@media (max-width: 782px) {
  .main-section__wrapper {
    padding: var(--gap-primary);
  }
}

.main-content > *:first-child {
  margin-top: 0;
  padding-top: 0;
}
.main-content > *:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}
.main-content h2 {
  font-size: var(--font-size-medium);
}
.main-content .wp-block-quote {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-right: 0;
  margin-left: 0;
}
.main-content .wp-block-quote > *:first-child {
  margin-top: 0;
  padding-top: 0;
}
.main-content .wp-block-quote > *:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}
.main-content .wp-block-quote cite {
  margin-top: 20px;
}
.main-content iframe {
  border-radius: var(--border-radius-primary);
}

.main-nav {
  margin-top: 20px;
}

.main-footer {
  padding: 20px 0;
}
.main-footer__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-footer__wrapper span {
  font-weight: 300;
  font-size: var(--font-family-tiny);
  text-align: center;
}

/* Components */
.component-breadcrumbs ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--gap-list);
}
.component-breadcrumbs ul li {
  display: flex;
  align-items: center;
  gap: var(--gap-list);
}
.component-breadcrumbs ul li:not(:last-child)::after {
  content: "/";
}
.component-breadcrumbs ul li a {
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  display: -webkit-box;
}

.component-pagination {
  margin-top: var(--gap-big);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-small);
}
.component-pagination:not(:has(.page-numbers)) {
  display: none;
}
.component-pagination .page-numbers {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Sections */
.section-home__wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--gap-small);
}
.section-home h2 {
  margin: 0 0 4px 0;
  font-size: var(--font-size-medium);
}
.section-home ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section-home ul li a {
  background-color: rgba(255, 255, 255, 0.1);
  width: 100%;
  padding: var(--gap-small);
  border-radius: var(--border-radius-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.section-home ul li a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}
.section-home ul li a .dashicons {
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-home ul li a .dashicons::before {
  font-size: 17px;
}
.section-home hr {
  margin: 4px 0;
  border-color: rgba(255, 255, 255, 0.1);
}

.section-content__header {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-content__header .dashicons {
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-content__header h1 {
  margin: 0;
}

.section-error {
  height: 100%;
}
.section-error__wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.section-error h1 {
  margin: 0;
  font-family: var(--font-family-special);
  font-size: var(--font-size-giant);
}

/*  Yan Metelitsa    __  
 *  yanmet.com      / _) 
 *  dev      .-^^^-/ /   
 *        __/       /    
 *       <__.|_|-|_|   */

/*# sourceMappingURL=style.css.map */
