@font-face {
    font-family: 'Switzer';
    src: url('../fonts/Switzer-Regular_alt.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Switzer';
    src: url('../fonts/Switzer-Semibold_alt.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: "DE Szinhaz";
    src: url("../fonts/DE_FONT-SzinhazDisplay-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

:root {
    --space-s: 1rem;
    --space-m: 2rem;
    --space-l: 3rem;
    --text-s: 0.75em;
    --text-m: 1rem;
    --text-l: 1.25rem;
    --color-black: #262626;
    --color-blue: #0F00C0;
    --color-red: #FF4545;
    --color-white: #FFFFFF;
    --color-theme: #0F00C0;
    --time-1: 250ms;
    --utils-header-height: calc(36px + (var(--space-m) * 2));
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    position: relative;
    font-weight: normal;
}

html {
    font-size: 16px;
}

body {
    line-height: 1.2;
    font-family: 'Switzer', sans-serif;
    font-size: var(--text-m);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 200vh;
}

.no-scroll {
    overflow: hidden;
}

a,
input,
button {
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    text-decoration: none;
    color: inherit;
}

/* Header */

#app .header,
#app .header__links {
    display: flex;
}

#app .header {
    justify-content: space-between;
    align-items: center;
    padding: var(--space-m) var(--space-l);
    position: relative;
    height: var(--utils-header-height);
    z-index: 20;
    color: var(--color-theme);
}

#app .header--invert,
#app .header--invert.header--away {
    color: var(--color-white);
    background-color: var(--color-theme);
}

#app .header__toggle,
#app .header__toggle-wrapper {
    display: flex;
}

#app .header__toggle {
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 50%;
    width: 48px;
    height: 32px;
    transform: translateX(-50%);
}

#app .header__toggle-wrapper {
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    left: 50%;
    height: 24px;
    width: 100%;
    transform: translateX(-50%);
}

#app .header__toggle-line {
    width: 100%;
    height: 1px;
    background-color: var(--color-theme);
}

#app .header--invert .header__toggle-line,
#app .header--invert.header--away .header__toggle-line {
    background-color: var(--color-white);
}

#app .header--away .header__toggle-line {
    background-color: var(--color-red);
}

#app .header__links {
    position: absolute;
    left: 50%;
    gap: var(--space-s);
    transform: translateX(-50%);
}

#app .header__links-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-m);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - var(--utils-header-height));
    transform: none;
    z-index: 10;
    font-size: var(--text-xxl);
    font-weight: 600;
    color: var(--color-white);
    background-color: var(--color-theme);
}

#app .header--invert.header--away .header__links {
    color: var(--color-white);
}

#app .header__right {
    display: flex;
    gap: var(--space-s);
}

#app .header--away .header__links,
#app .header--away .header__home,
#app .header--away .header__away {
    color: var(--color-red);
}

#app .header--invert.header--away .header__links,
#app .header--invert.header--away .header__home,
#app .header--invert.header--away .header__away {
    color: var(--color-white);
}

#app .header--away .header__home,
#app .header--away .header__away {
    box-shadow: inset 0 0 0 1px var(--color-red);

}

#app .header--invert.header--away .header__home,
#app .header--invert.header--away .header__away {
    box-shadow: inset 0 0 0 1px var(--color-white);

}

#app .header--away .header__away.chip--active {
    color: var(--color-white);
    background-color: var(--color-red);
}

#app .header--invert.header--away .header__away.chip--active {
    color: var(--color-theme);
    background-color: var(--color-white);
}

/* Logo */

#app .logo {
    display: flex;
    justify-content: center;
    position: relative;
    margin-bottom: var(--space-l);
    padding: 0 var(--space-l);
    width: 100%;
    color: var(--color-theme);
}

#app .logo--away {
    color: var(--color-red)
}

#app .logo__wrapper {
    display: flex;
    align-items: flex-end;
    user-select: none;
}

#app .logo__szin,
#app .logo__haz {
    font-family: 'DE Szinhaz';
    font-size: 20vh;
    font-variation-settings: 'wght' 200;
}

#app .logo__net {
    line-height: 1;
}

#app .logo__szin:hover,
#app .logo__szin.active,
#app .logo__haz:hover,
#app .logo__haz.active {
    font-variation-settings: 'wght' 100;
}

#app .logo__text {
    position: absolute;
    right: var(--space-l);
    top: 0;
    text-align: right;
}

/* Popup */

#app .popup {
    display: flex;
    align-items: flex-end;
    position: fixed;
    bottom: 0;
    left: 0;
    padding: var(--space-m) var(--space-l);
    width: 100%;
    height: calc(100vh - var(--utils-header-height));
    z-index: 10;
    font-family: 'DE Szinhaz';
    color: var(--color-white);
    background-color: var(--color-theme);
}

#app .popup__szin,
#app .popup__haz {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 var(--space-m);
    width: 50%;
    height: 100%;
    font-variation-settings: 'wght' 200;
}

#app .popup__szin {
    text-align: right;
}

#app .popup__szin.active,
#app .popup__szin:hover,
#app .popup__haz.active,
#app .popup__haz:hover {
    font-variation-settings: 'wght' 100;
}

#app .popup__text {
    position: absolute;
    bottom: 0;
    font-family: 'Switzer', sans-serif;
    font-size: var(--text-l);
}

#app .popup__szin .popup__text {
    right: 0;
}

#app .popup__char {
    font-size: 60vh;
    cursor: pointer;
}

/* Chip */

#app .chip {
    display: inline-block;
    border-radius: 2em;
    box-shadow: inset 0 0 0 1px var(--color-theme);
    padding: 0.5em 1em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--color-theme);
    background-color: transparent;
    user-select: none;
    cursor: pointer;
}

#app .chip:hover,
#app .chip--active {
    color: var(--color-white);
    background-color: var(--color-theme);
}

#app .chip--invert {
    box-shadow: inset 0 0 0 1px var(--color-white);
    color: var(--color-white);
    background-color: transparent;
}

#app .chip--invert:hover,
#app .chip--invert.chip--active {
    color: var(--color-theme);
    background-color: var(--color-white);
}

#app .chip__arrow--left,
#app .chip__arrow--right {
    font-weight: 600;
}

#app .chip__arrow--left {
    margin-right: 0.4em;
}

#app .chip__arrow--right {
    margin-left: 0.4em;
}

/* TheTheme */

#app .theme {
    display: inline-block;
    border-radius: 2em;
    box-shadow: inset 0 0 0 1px var(--color-theme);
    padding: 8px;
    width: 3em;
    height: 32px;
    line-height: 1;
    cursor: pointer;
}

#app .theme--active {
    background-color: var(--color-theme);
}

#app .theme--away {
    box-shadow: inset 0 0 0 1px var(--color-red);
}

#app .theme--away.theme--active {
    background-color: var(--color-red);
}

#app .theme__circle {
    position: absolute;
    right: auto;
    left: 8px;
    box-shadow: inset 0 0 0 1px var(--color-theme);
    border-radius: 1em;
    width: 16px;
    height: calc(100% - (8px * 2));
    overflow: hidden;
}

#app .theme--active .theme__circle,
#app .theme--away.theme--active .theme__circle {
    left: 50%;
    box-shadow: inset 0 0 0 1px var(--color-white);
}

#app .theme--away .theme__circle {
    box-shadow: inset 0 0 0 1px var(--color-red);
}

#app .theme__circle-outer,
#app .theme__circle-inner {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

#app .theme__circle-outer {
    width: 100%;
}

#app .theme--active .theme__circle-outer {
    transform: rotate(-180deg);
}

#app .theme__circle-inner {
    width: 50%;
    background-color: var(--color-theme);
}

#app .theme--away .theme__circle-inner {
    background-color: var(--color-red);
}

#app .theme--active .theme__circle-inner {
    background-color: var(--color-white);
}

/* Misc */

.no-scroll {
    overflow: hidden;
}

.anim {
    transition: all var(--time-1) ease-in-out;
}

.fade-enter-active,
.fade-leave-active {
    transition: opacity var(--time-1) ease-in-out;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}

@media screen and (max-width: 1280px) {
    #app .popup__char {
        font-size: 45vh;
    }
}


@media screen and (max-width: 900px) {
    :root {
        --space-s: 1rem;
        --space-m: 1.5rem;
        --space-l: 2rem;
        --text-s: 0.75em;
        --text-m: 1rem;
        --text-l: 1rem;
        --text-xl: 1rem;
        --text-xxl: 1.5rem;
        --text-xxxl: 2rem;
    }

    #app .header {
        padding: var(--space-m);
    }

    #app .popup__szin,
    #app .popup__haz {
        justify-content: center;
        padding: 0;
    }

    #app .popup__char {
        font-size: 30vw;
    }

    #app .popup__szin .popup__text {
        left: 0;
        text-align: left;
    }

    #app .popup__haz .popup__text {
        right: 0;
        text-align: right;
    }
}

@media screen and (max-width: 640px) {
    :root {
        --utils-header-height: calc((36px + 40px + var(--space-s)) + (var(--space-m) * 2));
    }

    #app .header {
        align-items: flex-start;
    }

    #app .header__text {
        display: block;
    }

    #app .header__links {
        display: none;
    }

    #app .header__right {
        flex-direction: column;
        align-items: flex-end;
    }

    #app .header__away {
        order: 1
    }

    #app .header__theme {
        order: 2
    }

    #app .logo__szin,
    #app .logo__haz {
        font-size: 39vw;
    }

    #app .logo__net {
        display: none;
    }

    #app .logo__text {
        display: none;
    }
}