body {
    margin: 0;
    font-family: Arial, sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    background-color: rgba(245, 245, 245);
}

h1, h2, p {
    margin: 0;
}

.text-small {
    font-size: 0.8rem;
}

.text-medium {
    font-size: 1.25rem;
}

/* Elements */
.canvas-container {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    scale: var(--scale, 1);
    transform-origin: var(--originX, 0) var(--originY, 0);
}

.canvas-container canvas {
    background-color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    cursor: grab;
    scale: var(--scale, 1);
    transform-origin: var(--originX, 0) var(--originY, 0);
    /* transition: 50ms; */
}

.canvas-container .map {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3600px;
    height: 3600px;
    z-index: 10;
    cursor: grab;
    transform-origin: var(--originX, 0) var(--originY, 0);
}

.nav {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 5;
    padding: 1rem;
}

.nav button {
    border: 0;
    background: white;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    width: 2rem;
    height: 2rem;
    border-radius: 4px;
    font-size: 1.25rem;
    cursor: pointer;
}

/* 
    Map 
*/
.map {
    scale: var(--scale, 1);
}

.map-word {
    position: absolute;
    top: 0;
    left: 0;
    translate: var(--posX, 0) var(--posY, 0);
    cursor: pointer;
    rotate: var(--rotateValue, 0);
}

.map-word-text {
    text-transform: uppercase;
    display: inline-block;
    transition: text-shadow 10ms linear, translate 300ms 200ms linear, scale 1s linear;
    translate: 0 calc(25px + var(--distance, 0px) * 0.1);
    text-shadow: 0 calc(25px - var(--distance, 0px) * 0.1) 4px rgba(0, 0, 0, 0.2);
}

.map-word.audio-active .map-word-text {
    translate: 0 calc(25px + var(--distance, 25px) * 0.05);
    text-shadow: 0 calc(25px - var(--distance, 25px) * 0.05) 4px rgba(0, 0, 0, 0.2);
}

.map-word-media {
    opacity: 0;
    width: 350px;
    max-width: 50vw;
    height: auto;
    max-height: 50vh;
    position: absolute;
    bottom: calc(100% - 1.5rem);
    left: 50%;
    translate: -50% 0;
    pointer-events: none;
    transition: 300ms ease-in-out;
    border-radius: 2px;
    z-index: -1;
    pointer-events: none;
}

.map-word-media img,
.map-word-media video {
    width: 100%;
    height: 100%;
    max-height: 50vh;
    object-fit: contain;
    pointer-events: none;
}

.map-word:hover .map-word-media {
    opacity: 1;
}

/* 
    Page Multimedia 
*/

.page-multimedia {
    opacity: 0;
    pointer-events: none;
    transition: 300ms 150ms ease-in-out;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.page-multimedia.active {
    pointer-events: all;
    opacity: 1;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 20;
    padding: 3rem 2.5rem 2.5rem;
}

.page-multimedia-close {
    position: absolute;
    top: 0;
    right: 0;
    border: 0;
    border-radius: 0;
    font-size: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    background: transparent;
    z-index: 1;
    font-weight: 600;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
}

.page-multimedia .media-item {
    display: none;
}

.page-multimedia .media-item img,
.page-multimedia .media-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.page-multimedia .media-item video {
    background-color: black;
    border-radius: 4px;
}

.page-multimedia .media-item.active {
    display: block;
    width: 100%;
    height: 100%;
}

.page-multimedia .media-item-caption {
    margin-top: 0.5rem;
    font-size: 0.675rem;
    text-align: center;
}

/* 
    Cursor 
*/
.cursor {
    position: fixed;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: 2rem;
    height: 2rem;
    z-index: 10;
    pointer-events: none;
}

.cursor img {
    width: 100%;
    height: 100%;
}


/* 
    Page Title 
*/
.page-title {
    position: fixed;
    top: 0;
    left: 0;
    padding: 1rem;
    z-index: 1000;
}

/* 
    Wave Animation 
*/
.wave-animation {
    display: flex;
    gap: 0.5em;
}

.wave-animation .word {
    rotate: var(--rotateValue, 0);
    display: block;
    transition: 500ms linear;
    text-transform: uppercase;

    translate: var(--offsetX, 0) var(--offsetY, 0);
}