/* Common styles */

:root {
    font-family: var(--font-base);
    color: var(--body-text);
    font-weight: var(--font-base-weight);
    line-height: 1.2;
    font-size: 16px;
    box-sizing: border-box;
    user-select: none;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

*:focus {
    outline: 0 !important;
}

.error404 {
    color: white;
}
.error404 a {
    color: #dcd0aa !important;
    text-decoration: underline !important;
}
/* Scrollbars */
@-moz-document url-prefix() {
    * {
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
    }
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0);
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0);
}

::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Scrollbars */

html,
body {
    width: 100%;
    padding: 0;
    margin: 0;
    height: 100%;
}

body {
    overflow-y: hidden;
    overflow-x: hidden;
    background-color: var(--body-bg);
}

main {
    position: relative;
    position: fixed;
    top: 0px;
    left: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    overflow: hidden;
    padding: 60px 0;
    margin: 0;
}

/* Links */
a:not(.buttonWithText),
a:not(.buttonWithText):link,
a:not(.buttonWithText):visited {
    color: var(--link-normal);
    text-decoration: none;
    transition: color 0.3s ease;
}

body.hasHover a:hover,
body.hasHover a:active {
    color: var(--link-hover);
}

ul {
    margin: 0 0 0 1em;
    line-height: 1.5;
    list-style-type: disc;
    padding: 0;
}
li {
    margin: 0 0 0.5rem;
}

.openPopupText {
    pointer-events: all;
}

.pageIframe {
    display: block;
    height: 100vh;
    width: 100vw;
}

.hiddenBlock,
.hidden {
    display: none;
}

hr {
    width: 80px;
    height: 1px;
    border: none;
    padding: 0;
    background-color: var(--body-hr);
    margin: 15px 0 20px 0;
    margin: 0;
}

.animatedHSback {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
    pointer-events: none;
    background-color: #ffffff;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-name: bgCircleSize;
    transform-origin: center center;
    animation-timing-function: ease-out;
}

@keyframes bgCircleSize {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }

    25% {
        transform: scale(0.9);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

main .pageBg {
    z-index: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 1;
    pointer-events: none;
}
.pageBgAnimated {
    animation: scale-up-center 10s ease-in-out infinite alternate backwards;
    -webkit-animation: scale-up-center 10s ease-in-out infinite alternate backwards;
}

/* Headers */
h1,
h2,
.h2,
h3,
h4 {
    font-family: var(--font-accent);
    font-weight: var(--font-accent-weight);
    text-transform: none;
}
h1 {
    color: var(--heading-h1);
    font-size: 1.5rem;
    line-height: 1.2;
    margin: 0;
    text-align: left;
    padding: 0;
}

h2,
.h2 {
    color: var(--heading-h2);
    font-size: 1rem;
    text-align: left;
    padding: 0;
    margin: 0 0 20px 0;
    line-height: 1;
}
h3,
.h3 {
    font-size: 1rem;
    color: var(--heading-h3);
    margin: 0 0 10px 0;
}
h4,
.h4 {
    color: var(--heading-h4);
    font-size: 1rem;
    margin: 0;
}

/* Headers */

/* Prev - Next Buttons */
.navigationButtons {
    z-index: 3;
    display: flex;
    position: fixed;
    width: 100vw;
    height: 100vh;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    pointer-events: none;
    top: 0;
    left: 0;
    gap: 10px;
}
.navigationButtons > div {
    pointer-events: all;
    position: relative;
}

/* Close Page Blinds */
.blindsScreenNext,
.blindsScreenPrev {
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, var(--blinds-bg), transparent);
    opacity: var(--blinds-opacity);
    backdrop-filter: blur(10px);
    position: absolute;
    z-index: 1000;
    transform: scaleX(0%);
    transition: all 1.5s ease;
    transform-origin: right;
}

.blindsScreenPrev {
    transform-origin: left;
}

.blindsScreenVisible {
    transform: scaleX(100%);
}

p {
    margin-top: 0;
    margin-bottom: 0;
}

p + p {
    margin-top: 20px;
}

/* Pano & Map */
.panoContainer,
.mapContainer {
    width: 100%;
    height: 100%;
    position: absolute !important;
    top: 0;
    left: 0;
    z-index: 0;
    background-color: black;
}

.mapContainer,
.panoContainer {
    transition: transform 1.5s ease;
}
