@import './fonts.css';
@import './editor.css';

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --angle: 90deg;
    --gradX: 100%;
    --gradY: 50%;
    --c1: rgba(205, 205, 205, 1);
    --c2: rgba(205, 205, 205, 0.1);
}

@media (orientation: landscape) {
    html {
        font-size: min(0.41666666vw, 0.74074074vh);
    }
}

@media (orientation: portrait) {
    html {
        font-size: min(0.74074074vw, 0.41666666vh);
    }
}

html,
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: black;
    font-family: sans-serif;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

ul {
    margin: 0;
    padding: 0;
}

p {
    width: 100%;
}

a {
    cursor: pointer;
    text-decoration: none !important;
}

span[data-href] {
    cursor: pointer;
    text-decoration: none !important;
}

.hide {
    display: none !important;
}

.modal-body {
    color: rgba(255, 255, 255, .750);
    font-size: 2.25rem;
    text-align: justify;
    max-height: 100%;
    overflow-y: auto;
}

.modal-footer {
    color: rgba(255, 255, 255, .650);
    font-size: 2rem;
    margin-top: 1rem;
    max-height: 50vh;
    overflow-y: auto;
}

.modal-footer>div {
    width: 100%;
}

#content {
    width: 100vw;
    height: calc(100vh - 10rem);
}

.full-screen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#container {
    width: fit-content;
    height: fit-content;
    position: relative;
    transform-origin: center;
}

#container a {
    position: absolute;
    animation: blink 5s linear infinite;
}

#container a.delay {
    animation-delay: 2.5s !important;
}

#container a.reduced {
    animation: blink-reduced 5s linear infinite;
}

#container a.increased {
    animation: blink-increased 5s linear infinite;
}

#container a:hover {
    filter: brightness(1.75);
    ;
}

#container a.reduced:hover {
    filter: brightness(1.5);
    ;
}

@keyframes blink {

    0%,
    26%,
    52% {
        filter: brightness(1);
    }

    13%,
    39% {
        filter: brightness(1.5);
    }
}

@keyframes blink-reduced {

    0%,
    26%,
    52% {
        filter: brightness(1);
    }

    13%,
    39% {
        filter: brightness(1.25);
    }
}

@keyframes blink-increased {

    0%,
    26%,
    52% {
        filter: brightness(1);
    }

    13%,
    39% {
        filter: brightness(2);
    }
}

@keyframes spin {
    100% {
        -webkit-transform: rotate(-360deg);
        transform: rotate(-360deg);
    }
}

.modal-dialog {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 10%;
    top: 6vh;
    width: 80%;
    height: 80vh;
    padding-right: 8rem;
    background-color: rgba(19, 19, 19, 0.8);
    border-radius: 3.75rem;
}

#storage .modal-dialog {
    padding-left: 8rem;
}

.item-dialog {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.item-description {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: 100%;
    height: calc(80vh - 1.5rem);
}

.modal h1 {
    width: 100%;
    color: rgb(242, 242, 242);
    line-height: 8rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shine h1 {
    font-family: 'Comediant', sans-serif;
    font-size: 5rem;
}

.revolution h1 {
    font-family: 'Traktir-Modern', sans-serif;
    font-size: 5rem;
}

.bloсkade h1 {
    font-family: 'Capture', sans-serif;
    font-size: 5rem;
}

.soviet h1 {
    font-family: 'Stengazeta', sans-serif;
    font-size: 5rem;
}

.modern h1 {
    font-family: 'Shentox', sans-serif;
    font-size: 5rem;
}

.modal h2 {
    width: 100%;
    color: rgb(242, 242, 242);
    font-size: 2.25rem;
    line-height: 3.5rem;
    font-weight: 500;
    font-style: italic;
}

button.close,
button.back {
    position: absolute;
    top: -4rem;
    background-color: rgb(19, 19, 19);
    border: none;
    border-radius: 50%;
    padding: 0.5rem;
    fill: white;
}

button.close {
    right: -4rem;
}

button.back {
    left: -4rem;
}

.sound-controls {
    position: absolute;
    right: -4rem;
    bottom: 50%;
    transform: translateY(50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sound-controls button {
    background-color: rgb(19, 19, 19) !important;
    border: none;
    border-radius: 50%;
    padding: 0.5rem;
    fill: white;
}

.modal-icon {
    width: 7.5rem;
    height: 7.5rem;
    opacity: 0.75;
}

.modal-icon:hover {
    opacity: 1;
    animation: spin 0.5s normal forwards ease-in-out;
}

.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-inner {
    width: 80% !important;
    margin: auto;
}

.carousel-image {
    height: 85rem;
    width: 100%;
    object-fit: contain;
}

#storage .carousel-image {
    padding-bottom: 12rem;
}

#storage h5 {
    font-size: 3.5rem;
    font-weight: normal;
    color: rgb(212, 212, 212);
}

.carousel-item-header {
    grid-template-columns: auto 1fr auto !important;
}

.disabled {
    color: gray !important;
    pointer-events: none;
}

#footer {
    z-index: 70;
    position: fixed;
    bottom: 0;
    line-height: 1;
    background-color: rgba(38, 38, 38, 0.75);
    width: 100%;
    display: grid;
    grid-template-columns: auto repeat(5, 1fr) auto;
}

#footer span,
#footer a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: lightgrey;
    fill: lightgrey;
    border-top: 2px solid lightgrey;
    font-size: 3rem;
    padding: 0 5rem;
    height: 10rem;
}

#footer span:hover,
#footer a:hover {
    color: white;
    fill: white;
    border-top: 2px solid white;
    background-color: rgba(38, 38, 38, 0.5);
}

#footer span:first-of-type {
    font-size: 5rem;
    padding: 1rem 4rem;
}

#footer span:nth-of-type(2) {
    font-family: 'Comediant', sans-serif;
    font-size: 4rem;
}

#footer span:nth-of-type(3) {
    font-family: 'Traktir-Modern', sans-serif;
    font-size: 4rem;
}

#footer span:nth-of-type(4) {
    font-family: 'Capture', sans-serif;
    font-size: 3.5rem;
}

#footer span:nth-of-type(5) {
    font-family: 'Stengazeta', sans-serif;
    font-size: 4rem;
}

#footer span:nth-of-type(6) {
    font-family: 'Shentox', sans-serif;
    font-size: 4rem;
}

#footer #sound-button {
    font-size: 5rem;
    padding: 1rem 0;
    width: 12rem;
}

#footer .selected {
    color: gold;
    border-top: 2px solid gold;
}

#sound-slider {
    position: absolute;
    bottom: 11rem;
    right: 3rem;
    width: 6rem;
    background-color: rgba(38, 38, 38, 0.9);
    border-radius: 3rem;
    transform-origin: bottom;
    transform: scale(1.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

#sound-slider a {
    display: flex;
    justify-content: center;
    align-items: center;
    color: lightgrey;
    fill: lightgrey;
    font-size: 3rem;
}

#sound-slider a:hover {
    color: white;
    fill: white;
}

input[type=range] {
    writing-mode: vertical-lr;
    direction: rtl;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    overflow: hidden;
    background: black;
}

#preloader:before {
    content: "";
    position: fixed;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    border: 6px solid black;
    border-top-color: white;
    border-bottom-color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/** SLIDESHOW **/

.slideshow,
.slideshow:after {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    z-index: 0;
}

.slideshow li span {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    color: transparent;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 0;
    animation: imageAnimation 60s linear infinite 0s;
}

.slideshow li:nth-child(2) span {
    animation-delay: 12s;
}

.slideshow li:nth-child(3) span {
    animation-delay: 24s;
}

.slideshow li:nth-child(4) span {
    animation-delay: 36s;
}

.slideshow li:nth-child(5) span {
    animation-delay: 48s;
}

@keyframes imageAnimation {
    0% {
        opacity: 0;
        animation-timing-function: ease-in;
    }

    8% {
        opacity: 1;
        animation-timing-function: ease-out;
    }

    17% {
        opacity: 1
    }

    25% {
        opacity: 0
    }

    100% {
        opacity: 0
    }
}

.enter {
    font-family: 'Verdana', sans-serif;
    font-size: 4rem;
    color: white;
    z-index: 99;
    padding: 2rem 4rem;
    background-color: rgba(38, 38, 38, 0.5);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    margin: max(1rem, 3vw);
    border: 0.4rem solid;
    border-image: conic-gradient(from var(--angle), var(--c2), var(--c1) 0.1turn, var(--c1) 0.15turn, var(--c2) 0.25turn) 30;
    animation: borderRotate 5s linear infinite forwards;
}

.enter:hover {
    color: gold;
    background-color: rgba(38, 38, 38, 0.75);
    border: 4px solid gold;
}

* {
    box-sizing: border-box;
}

@property --angle {
    syntax: '<angle>';
    initial-value: 90deg;
    inherits: true;
}

@property --gradX {
    syntax: '<percentage>';
    initial-value: 50%;
    inherits: true;
}

@property --gradY {
    syntax: '<percentage>';
    initial-value: 0%;
    inherits: true;
}

@keyframes borderRotate {
    100% {
        --angle: 420deg;
    }
}

.infinite-rotation {
    animation: spin 4s linear infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 1rem;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(136, 136, 136, 0.35);
    border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(136, 136, 136, 0.8);
}