/*
 * This file is part of the project.
 * @author Jan Koša <jackinello@gmail.com>
 * @copyright (c) 2022 Jan Koša. All rights reserved.
 */

/*
 * -----------------------------------------------------------------------------
 * --- Variables ---------------------------------------------------------------
 * -----------------------------------------------------------------------------
 */
:root {
    --annotation-border-radius: 10px;
    --annotation-background-color: #eeeeee;
    --annotation-box-inner: 10px 15px;

    --box-border-radius: 10px;

    --tile-border-radius: 16px;

    --button-border-radius: 7px;

    --color-black: #222222;
    --color-red: #e30613;
    --color-white: #ffffff;

    --image-border-radius: 10px;
    --image-trasform-speed: transform .5s ease;
    --image-trasform-scale: scale(1.04);

    --link-trasform-speed: transform .5s ease;
}

/*
 * -----------------------------------------------------------------------------
 * --- Fonts -------------------------------------------------------------------
 * -----------------------------------------------------------------------------
 */
@font-face {
    font-family: Inter;
    src: url("../fonts/Inter-Light.ttf") format("opentype");
}

@font-face {
    font-family: Inter;
    src: url("../fonts/Inter-LightItalic.ttf") format("opentype");
    font-style: italic;
}

@font-face {
    font-family: Inter;
    src: url("../fonts/Inter-SemiBold.ttf") format("opentype");
    font-weight: bold;
}

@font-face {
    font-family: Inter;
    src: url("../fonts/Inter-SemiBoldItalic.ttf") format("opentype");
    font-style: italic;
    font-weight: bold;
}

/*
 * -----------------------------------------------------------------------------
 * --- Basic tags --------------------------------------------------------------
 * -----------------------------------------------------------------------------
 */
*,
*:after,
*:before {
    margin: 0;
    padding: 0;
    outline: none;
}

html, body {
    line-height: 1.5;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
}

body, button, input, textarea, select {
    font-family: Inter, Segoe UI, Tahoma, sans-serif, Arial;
    font-size: 15px;
}

@media screen and (min-width: 1250px) {
    body, button, input, textarea, select {
    }
}

@media screen and (min-width: 1400px) {
    body, button, input, textarea, select {
    }
}

p {
    margin: 0 0 1.5em 0;
}

a,
a:link,
a:active,
a:visited {
    cursor: pointer;
    text-decoration: underline;
    color: var(--color-red);
}

a:hover {
    text-decoration: underline;
    color: var(--color-red);
}

img {
    display: block;
    border: none;
}

h1 {
    font-size: 2.2em;
    font-weight: normal;
    line-height: 1.25;
    margin: 0 0 0.60em 0;
    padding: 0;
    color: var(--color-red);
}

h2 {
    font-size: 1.8em;
    font-weight: normal;
    line-height: 1.25;
    margin: 0 0 0.50em 0;
    padding: 0;
    color: var(--color-red);
}

h3 {
    font-size: 1.5em;
    line-height: 1.3;
    margin: 0 0 0.50em 0;
    padding: 0;
    color: var(--color-red);
}

h4 {
    font-size: 1.25em;
    line-height: 1.3;
    margin: 0 0 0.5em 0;
    padding: 0;
    color: #000000;
}

h5 {
    font-size: 1.1em;
    line-height: 1.3;
    margin: 0 0 0.5em 0;
    padding: 0;
    color: #000000;
}

h6 {
    font-size: 1.1em;
    line-height: 1.3;
    margin: 0 0 1.0em 0;
    padding: 0;
    color: #000000;
}

p {
    margin: 0 0 1.5em 0;
    color: #000000;
}

p:only-child,
p:last-child {
}

ol {
    margin: 0 0 1.5em 0;
    padding: 0;
}

ul {
    margin: 0 0 1.5em 0;
    padding: 0;
    list-style: none;
}

li {
    margin: 0;
    padding: 0;
}

/**
 * -----------------------------------------------------------------------------
 * --- prefetch ----------------------------------------------------------------
 * -----------------------------------------------------------------------------
 */
body:after {
    position: absolute;
    z-index: -1;
    overflow: hidden;
    width: 0;
    height: 0;
}

/*
 * --------------------------------------------------------------------------------
 * --- Page -----------------------------------------------------------------------
 * --------------------------------------------------------------------------------
 */
.page {
    width: 100%;
    min-width: 360px;
    height: 100%;
    min-height: 100%;
}

/*
 * --------------------------------------------------------------------------------
 * --- Layout ---------------------------------------------------------------------
 * --------------------------------------------------------------------------------
 */
.l-panel-top {
    position: fixed;
    z-index: 102;
    width: 100%;
    max-width: 100%;
    height: 70px;
    background-color: var(--color-red);
}

@media screen and (min-width: 900px) {
    .l-panel-top {
        height: 90px;
    }
}

.l-panel-main {
    position: relative;
    z-index: 100;
    min-height: calc(100vh - 190px);
    padding: 70px 0 10px 0;
}

@media screen and (min-width: 420px) {
    .l-panel-main {
        min-height: calc(100vh - 110px);
    }
}

@media screen and (min-width: 900px) {
    .l-panel-main {
        padding: 90px 0 0 0;
    }
}

.l-panel-footer {
    width: 100%;
    max-width: 100%;
    border-top: 2px solid var(--color-red);
}

.l-page-inner {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.l-content-inner-h {
    padding-right: 15px;
    padding-left: 15px;
}

@media screen and (min-width: 600px) {
    .l-content-inner-h {
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media screen and (min-width: 900px) {
    .l-content-inner-h {
        padding-right: 25px;
        padding-left: 25px;
    }
}

.l-content-inner-v {
    padding-top: 15px;
    padding-bottom: 15px;
}

@media screen and (min-width: 600px) {
    .l-content-inner-v {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

@media screen and (min-width: 900px) {
    .l-content-inner-v {
        padding-top: 25px;
        padding-bottom: 25px;
    }
}

.l-box-inner {
    padding: 15px;
}

@media screen and (min-width: 600px) {
    .l-box-inner {
        padding: 20px;
    }
}

@media screen and (min-width: 900px) {
    .l-box-inner {
        padding: 25px;
    }
}

/*
 * --------------------------------------------------------------------------------
 * --- Hamburger ------------------------------------------------------------------
 * --------------------------------------------------------------------------------
 */
.hamburger {
    position: absolute;
    z-index: 106;
    top: 50%;
    right: 20px;
    display: block;
    width: 37px;
    height: 31px;
    cursor: pointer;
    transform: translateY(-50%);
}

@media screen and (min-width: 900px) {
    .hamburger {
        display: none;
    }
}

.hamburger span {
    position: absolute;
    right: 0;
    display: block;
    width: 100%;
    height: 6px;
    transform: rotate(0deg);
    opacity: 1;
    border-radius: 10px;
    background-color: #ffffff;
}

.hamburger span:nth-child(1) {
    top: 0;
    transform-origin: left center;
}

.hamburger span:nth-child(2) {
    top: 12px;
    transform-origin: left center;
}

.hamburger span:nth-child(3) {
    top: 24px;
    transform-origin: left center;
}

.hamburger.open span:nth-child(1) {
    top: -1px;
    left: 5px;
    transform: rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    width: 0;
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    top: 25px;
    left: 5px;
    transform: rotate(-45deg);
}

/*
 * --------------------------------------------------------------------------------
 * --- Topbar ---------------------------------------------------------------------
 * --------------------------------------------------------------------------------
 */
.t-topbar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
    height: 70px;
    margin: 0 auto;
    padding-right: 20px;
    padding-left: 20px;
}

@media screen and (min-width: 900px) {
    .t-topbar {
        height: 90px;
    }
}

.t-topbar-logo {
    margin-right: 0;
}

@media screen and (min-width: 900px) {
    .t-topbar-logo {
        margin-right: 10px;
    }
}

.t-topbar-logo__image {
    width: auto;
    height: 40px;
}

@media screen and (min-width: 900px) {
    .t-topbar-logo__image {
        height: 60px;
    }
}

.t-topbar-menu {
    position: absolute;
    z-index: 110;
    top: 70px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    background-color: var(--color-red);
}

.t-topbar-menu__link {
    font-size: 1.3em;
    line-height: 2.5;
    display: block;
    text-align: center;
}

.t-topbar-menu__link,
.t-topbar-menu__link:link,
.t-topbar-menu__link:active,
.t-topbar-menu__link:visited {
    text-decoration: none;
    color: #ffffff;
}

.t-topbar-menu__link:hover {
    text-decoration: underline;
    color: #ffffff;
}

.t-topbar-menu__link--focus,
.t-topbar-menu__link--focus:link,
.t-topbar-menu__link--focus:active,
.t-topbar-menu__link--focus:visited {
    text-decoration: underline;
}

@media screen and (min-width: 900px) {
    .t-topbar-menu {
        position: static;
        z-index: 0;
        display: flex !important;
        align-content: center;
        justify-content: space-around;
        width: auto;
        height: 90px;
        background-color: var(--color-red);
    }

    .t-topbar-menu__item {
        display: flex;
        align-items: center;
    }

    .t-topbar-menu__link {
        font-size: 1.65vw;
        line-height: 1.5;
        margin: 0 5px;
        padding: 5px 5px;
        text-align: center;
    }

    .t-topbar-menu__link,
    .t-topbar-menu__link:link,
    .t-topbar-menu__link:active,
    .t-topbar-menu__link:visited {
        text-decoration: none;
        color: #ffffff;
        border-bottom: 2px solid var(--color-red);
    }

    .t-topbar-menu__link:hover {
        text-decoration: none;
        color: #ffffff;
        border-bottom: 2px solid #ffffff;
    }

    .t-topbar-menu__link--focus,
    .t-topbar-menu__link--focus:link,
    .t-topbar-menu__link--focus:active,
    .t-topbar-menu__link--focus:visited {
        border-bottom: 2px solid #ffffff;
    }
}

@media screen and (min-width: 1200px) {
    .t-topbar-menu__link {
        font-size: 1.30em;
    }
}

/*
 * --------------------------------------------------------------------------------
 * --- Main -----------------------------------------------------------------------
 * --------------------------------------------------------------------------------
 */
.t-main {
    display: block;
}

/*
 * --------------------------------------------------------------------------------
 * --- Copyright ------------------------------------------------------------------
 * --------------------------------------------------------------------------------
 */
.t-copyright {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0 auto;
    padding-top: 30px;
    padding-bottom: 30px;
    background-color: #ffffff;
}

@media screen and (min-width: 600px) {
    .t-copyright {
    }
}

.t-copyright-logo {
    margin-right: 15px;
}

@media screen and (min-width: 900px) {
    .t-copyright-logo {

    }
}

.t-copyright-logo__image {
    width: auto;
    height: 40px;
}

@media screen and (min-width: 900px) {
    .t-copyright-logo__image {
        height: 40px;
    }
}

.t-copyright__text {
    margin: 0;
    color: var(--color-black);
}

.t-copyright__link {
    display: inline-block;
}

.t-copyright__link,
.t-copyright__link:link,
.t-copyright__link:active,
.t-copyright__link:visited {
    text-decoration: underline;
    color: var(--color-red);
}

.t-copyright__link:hover {
    text-decoration: underline;
    color: var(--color-red);
}

.t-copyright__dump {
    cursor: pointer;
}

/*
 * --------------------------------------------------------------------------------
 * --- Page overlay ---------------------------------------------------------------
 * --------------------------------------------------------------------------------
 */
.page-overlay {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--color-red);
}

@media screen and (min-width: 900px) {
    .page-overlay {
        display: none;
    }
}

/*
 * -----------------------------------------------------------------------------
 * --- System dump -------------------------------------------------------------
 * -----------------------------------------------------------------------------
 */
.system-dump {
    position: absolute;
    z-index: 3000;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    width: 100%;
    height: 100%;
    background: #ffffff;
}

.system-dump pre {
    display: block;
    padding: 20px;
    background: #ffffff;
}

/*
 * --------------------------------------------------------------------------------
 * --- Helpers --------------------------------------------------------------------
 * --------------------------------------------------------------------------------
 */
.h-image {
    width: 100%;
    height: auto;
}

.h-mb-0 {
    margin-bottom: 0 !important;
}

.h-mb-10 {
    margin-bottom: 1.0em !important;
}

.h-mb-15 {
    margin-bottom: 1.5em !important;
}

.h-mb-20 {
    margin-bottom: 2.0em !important;
}

.h-show {
    display: block !important;
}

.h-hide {
    display: none !important;
}

.h-clear {
    clear: both;
}

.h-clear-l {
    clear: left;
}

.h-clear-r {
    clear: right;
}

.h-nowrap {
    white-space: nowrap;
}

.h-color-red {
    color: #cc0000;
}
