:root {
    --bg-color: #fafce1;
    --text-color: #272727;
    --font-primary:  "Boldonse", system-ui;
    --spacing-unit: 1.5em;
    --transition-speed: 0.2s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: opacity;
    transition: opacity var(--transition-speed);
}

p {
    font-size: 25px;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-color);
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    padding: var(--spacing-unit);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.site-info {
    position: absolute;
    top: 50%;
    left: var(--spacing-unit);
    display: flex;
    gap: 4px;
}

.img-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 75%;
    overflow: hidden;
}

.img-preview img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.minimap {
    position: absolute;
    top: 50%;
    right: 8em;
    transform: translateY(-50%);
    width: 80px;
    height: 60vh;
    overflow: hidden;
}

.indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    border: 1px solid var(--text-color);
    z-index: 2;
    pointer-events: none;
}

.items {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0px;
    will-change: transform;
}

.item {
    width: 100%;
    height: 60px;
    padding: 5px;
    cursor: pointer;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    body {
        overflow: hidden;
        touch-action: none;
    }

    .container {
        touch-action: none;
    }

    p {
        font-size: 12px;
    }

    .site-info {
        top: var(--spacing-unit);
        left: 50%;
        transform: translateX(-50%);
    }

    .minimap {
        top: auto;
        right: auto;
        bottom: 5em;
        left: 50%;
        transform: translateX(-50%);
        width: 60vw;
        height: 80px;
        overflow: hidden;
        touch-action: none;
    }

    .indicator {
        top: 0;
        left: 0;
        width: 60px;
        height: 100%;
    }

    .items {
        flex-direction: row;
        width: max-content;
        height: 100%;
        touch-action: none;
    }

    .item {
        width: 60px;
        height: 100%;
        padding: 5px;
        flex-shrink: 0;
    }

    .img-preview {
        top: 45%;
        width: 90%;
        height: 50%;
    }
}