@import "fonts.css";

* { max-height: 1000000px; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--background-default);
    color: var(--color-default);
    font: var(--font-default);
}

html {
    width: 100%;
    height: 100%;
    position: absolute;
    overflow-x: hidden;
    overflow-y: auto;
}

* { position: relative; }

body {
    max-width: var(--max-width);
    margin: auto;
    box-sizing: border-box;
    width: 100vw;
    padding: 0 20px;
    height: 100%;
}

html[no-war],
html[no-war] body {
    background: #101010;
}

ul.links {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
    padding: 15px 0;
}

ul.links[right] {
    justify-content: center;
    margin: 20px 0;
}

ul.links[right] li {
    color: var(--color-hover);
    white-space: normal;
    font-size: 1.4em;
    line-height: 1.3em;
}

ul.links[right] li a {
    display: inline-block;
    text-transform: none;
}

ul.links[right] [en] {
    right: 0;
}

ul.links li {
    margin: 0;
    padding: 0;
    position:relative;
    white-space: nowrap;
}

ul.links li a {
    display: block;
    color: var(--color-default);
    height: 30px;
    line-height: 30px;
    text-decoration: none;
    text-transform: uppercase;
}

ul.links li a:hover {
    text-decoration: underline;
    color: var(--color-hover);
}

.lang-switch {
    position: relative;
    border: 1px solid var(--switcher-color);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lang-switch em {
    position: relative;
    font: inherit;
    padding: 0 6px;
    color: var(--switcher-color);
    z-index: 10;
    transition: color .25s ease;
}

.lang-switch::before {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: var(--switcher-color);
    content: "";
    transition: left .25s ease;
}

html[lang="en"] .lang-switch::before { left: 50%; }

html[lang="ru"] .lang-switch em[ru],
html[lang="en"] .lang-switch em[en] { color: var(--color-default); }

main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100% - 245px);
}

main [en], .links[right] [en] { position: absolute; transition: all .25s ease;}
main [ru], .links[right] [ru] { transition: all .25s ease;}

html[lang="ru"] main [en],
html[lang="ru"] .links[right] [en] { opacity: 0; pointer-events: none; user-select: none; }

html[lang="en"] main [ru],
html[lang="en"] .links[right] [ru] { opacity: 0; pointer-events: none; user-select: none; }

#tour-2022 {
    display: flex;
    justify-content: center;
/*    max-height: 70vh; */
}

#tour-2022[video] {
    flex-direction: column;
}

#tour-2022[video] [socials] {
    position:relative;
    display: flex;
    width: 100%;
    align: center;
    justify-content: center;
    padding-top: 30px;
}

#tour-2022[video] [socials] img {
    width: 44px;
    height: 44px;
    margin: 0 20px;
    transition: all .2s ease;
    transform: scale(1);
}
#tour-2022[video] [socials] a:hover img {
    transform: scale(1.2);
}

.links [mobile] {
    display: none;
}

@media screen and (max-width: 640px) {
    .links > [socials] {
        display: none;
    }

    .links [mobile] {
        display: block;
        position: relative;
        white-space: nowrap;
    }   
    .links:nth-of-type(1) {
        flex-wrap: wrap;
    }
    .links:nth-of-type(1) li {
        padding: 0 5px;
    }
    
    .links [mobile] a {
        display: inline-block;
    }
    .links [mobile] a img {
        margin: 0 10px;
        transform: scale(1.5);
    }
}

.links [socials] img {
    width: 1.2em;
    height: 1.2em;
    transition: all .2s ease;
    transform: scale(1);
}
.links [socials] a:hover img {
    transform: scale(1.2);
}

#tour-2022 .slide  {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 500px;
}

#tour-2022 .slide img { max-height: 90%; max-width: 90%; object-fit: contain; }

#tour-2022 .shedule {
    font: normal 18px/30px "NeutralFace", sans-serif;
    white-space: nowrap;
}

#tour-2022 .shedule header {
    text-align: center;
}

#tour-2022 .shedule header.soon { color: var(--soon-color); font-size: .85em; padding: 8px 0;}

#tour-2022 .table {
    display: grid;
    grid-template-columns: 10fr 60fr 30fr;
/*    grid-template-rows: 4.5em repeat(8, 2.1em); */
    height: calc(100% - 75px);
    grid-gap: 5px 20px;
}

#tour-2022[buy][video] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: calc(100% - 70px);
}

#tour-2022[buy] iframe {
    position: relative;
    width: 100%;
    height: 100%;
}

#tour-2022[buy] .table {
    grid-gap: 20px;
    user-select: none;
}


#tour-2022 .table > a {
    height: 0;
    display: contents;
    color: inherit;
}

#tour-2022 .table > div {
    pointer-events: none;
    opacity: .5;
    height: 2em !important;
}

#tour-2022 .table > a[d] div {
    height: 3.15em !important;
    line-height: 1.4em;
}

#tour-2022 .table > a div:nth-child(3)::after {
    content: "Купить билет";
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    line-height: .1em;
    font-size: .55em;
    color: var(--switcher-color);
}

#tour-2022 .table > a[soon21122023] div:nth-child(3)::after {
    content: "в продаже с 21.12.2023"
}


#tour-2022 .table > a div:nth-child(3):empty::after {
    display: none;
}

html[lang="en"] #tour-2022 .table > a div:nth-child(3)::after {
    content: "Buy ticket";
}

html[lang="en"] #tour-2022 .table > a[soon21122023] div:nth-child(3)::after {
    content: "on sale dec 21, 2023";
}


#tour-2022 .table > a:hover div:nth-child(3)::after {
    color: var(--color-default);
}

#tour-2022 .table > a:hover {
    color: var(--color-hover);
}

#tour-2022 .table > div  {
    position: relative;
}

#tour-2022 .table div i {
    position: absolute;
    margin-left: -.3em;
    margin-top: -2px;
}

#tour-2022 .table section {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    left: -1px;
    top: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    background: var(--background-default);
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    transition: opacity .3s ease;
    padding: 10% 0;
    box-sizing: border-box;
}

#tour-2022 .table section > span[buy] {
    font-size: .65em;
    text-align: center;
}

#tour-2022 .table section [currencies] {
    display: flex;
    margin-top: 1em;
    font-size: 1.5em;
    align-items: stretch;
    justify-content: center;
}

#tour-2022 .table section [currencies] a {
    margin: 0 1em;
    color: var(--color-default);
    text-decoration: underline;
}   

#tour-2022 .table section [currencies] a:hover {
    opacity: .8;
    text-decoration: none;
}

#tour-2022 .table section[visible] {
    opacity: 1;
    pointer-events: all;
}

#tour-2022 .table section [back] a {
    color: var(--color-default);
    font-size: .6em;
    text-transform: lowercase !important;
    
}

#tour-2022 .table section [title] {
    text-align: center;
}

@media screen and (max-aspect-ratio: 1/1) {
    #tour-2022 {
        flex-direction: column;
        max-height: none;
    }
}

@media screen and (max-width: 420px) {
    .lang-switch { padding: 1px; }
    .lang-switch em { padding: 0 3px; }
    #tour-2022 .shedule { 
        font: normal 10px/24px "NeutralFace", sans-serif;
    }
    #tour-2022 .slide  {
        min-width: 100%;
    }
    #tour-2022[buy] .table {
        grid-gap: 12px;
    }
}


@media screen and (max-height: 1400px) and (min-aspect-ratio: 1/1) {
    body[mobile] #tour-2022 .shedule {
        font: normal 10px/16px "NeutralFace", sans-serif;
        transform: translateX(-30px);
    }
    body[mobile] #tour-2022[buy] .table {
        grid-gap: 12px;
    }
    body[mobile] #tour-2022 .slide img {
        transform: scale(.85);  
    }
    
    body[mobile] ul.links {
        transform: scale(1.67);
        font-size: .65em;
    }
    

}


@media screen and (max-width: 1320px) and (min-aspect-ratio: 1/1) {
    body {
        transform: scale(.75);
        transform-origin: center top;
        height: 133vh;
    }
}



@media screen and (max-width: 980px) and (min-aspect-ratio: 1/1) {
    body {
        transform: scale(.6);
        transform-origin: center top;
        height: 166vh;
    }
}

@media screen and (max-height: 400px) and (min-aspect-ratio: 1/1) {
    #tour-2022 {
        max-width: 70vw;
        transform: scale(.8);
    }
    #tour-2022 .shedule {
        font: normal 10px/14px "NeutralFace", sans-serif;
    }
    #tour-2022 .slide { max-width: 40%; flex-grow: 0; }
    
    #tour-2022 .table > a:not([href]) {
        display: none;
    }
    
    #tour-2022 .table > a:not([href]) + a[href] div {
        margin-top: 2em;
    }
    

}

.no-war {
   position: relative;
   width: min(80vw, 75vh);
   height: min(80vw, 75vh);
   background: transparent url(/images/no_ru.jpg) center center no-repeat;
   background-size: contain;
}

html[lang="en"] .no-war {
   background-image: url(/images/no_en.jpg);
}
