@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100..900&family=Noto+Serif+KR:wght@200..900&display=swap');

/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
body {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    font-family: 'Noto Serif KR', serif;
    overflow: hidden;
}

/* Title Section */
.title {
    position: relative;
    width: 100%;
    height: 100%;
    user-select: none;
    font-weight: 400;
}

/* Dots Layout */
.dots {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-around;
    height: 100%;
    position: absolute;
    left: 1.5vw;
}

.dots img {
    width: 1vw;
}

.dots-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.blue-dot {
    position: absolute;
    background-color: rgba(10, 77, 155);
    border-radius: 50%;
    width: 1vw;
    height: 1vw;
    opacity: 1;
    z-index: 1;
    mix-blend-mode: multiply;
}

/* Text Positions */
.top-left {
    position: fixed;
    top: 2vh;
    left: 2vw;
    font-size: 5vw;
    line-height: 1.2;
    padding: 0.2em 0.2em;
}

.top-left:hover {
    color: #f5f5f5;
    background: black;
}

.mid-left {
    position: fixed;
    top: calc(2vh + 7vw + 0.2em);
    left: 2vw;
    font-size: 5vw;
    line-height: 1.2;
    padding: 0.2em 0.2em;
}

.mid-left:hover {
    color: #f5f5f5;
    background: black;
}

/* Bottom Section */
.bottom-section {
    display: flex-start;
    flex-direction: column;
    align-items: center;
    position: fixed;
    bottom: 2vh;
    left: 2vw;
    gap: 0vh;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Exhibition Title */
.exhibition-title {
    font-size: 5vw;
    line-height: 1.2;
    padding: 0.2em 0.2em;
    text-align: center;
}

.exhibition-title:hover {
    color: #f5f5f5;
    background: black;
}

/* Toggle Container */
.toggle-container {
    display: flex;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.toggle-option {
    padding: 0.5em 1em;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-size: 1.2vw;
    text-align: center;
    min-width: 150px;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.selected {
    background-color: black;
    color: #f5f5f5;
}

.toggle-option:not(.selected) {
    background-color: #f5f5f5;
    color: black;
}

/* Date Range */
.date-range {
    font-size: 1.5vw;
    margin-bottom: 0.5em;
    background-color: #f5f5f5;
}

.active-date {
    color: black;
}

.inactive-date {
    color: #aaa;
}

/* Scrolling Container */
.scrolling-container {
    position: fixed;
    font-family: 'Noto Sans KR', sans-serif;
    top: 0;
    width: 100vw;
    left: 40vw;
    height: 100vh;
    display: none;
    font-size: 0.7vw;
}

.scrolling-container.active {
    display: block;
}

.scrolling-text {
    position: absolute;
    white-space: nowrap;
}

/* Touch Event Elements */
.date-range, 
.toggle-container, 
.scrolling-container {
    pointer-events: auto;
    touch-action: manipulation;
}

/* Mobile Styles */
@media (max-width: 500px) {
    /* Dots Adjustments */
    .dots-container {
        position: relative;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        z-index: 5;
        pointer-events: none;
    }

    .blue-dot {
        width: 3vw !important;
        height: 3vw !important;
        z-index: 5;
    }

    .dots {
        height: 100vh;
        left: 4vw;
    }

    .dots img {
        width: 3vw;
    }

    /* Text Adjustments */
    .top-left, 
    .mid-left {
        background-color: #f5f5f5;
        left: 5vw;
        margin: 0;
        z-index: 1;
        font-size: 8vw;
    }

    .top-left {
        top: 2vh;
    }

    .mid-left {
        top: calc(2.5em);
    }

    /* Bottom Section Adjustments */
    .bottom-section {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        bottom: 2vh;
        left: 5vw;
        width: 100vw;
        z-index: 3;
    }

    .exhibition-title {
        font-size: 8vw;
        line-height: 1.2;
        padding: 0.2em 0.2em;
        text-align: left;
        width: 100%;
    }

    /* Toggle Adjustments */
    .toggle-container {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        padding: 0;
        z-index: 10;
    }

    .toggle-option {
        padding: 0.3em 0.5em;
        font-size: 3.5vw;
        flex: 0;
        min-width: 30vw;
        min-height: 5vh;
        display: flex;           /* Flexbox 사용 */
        align-items: center;     /* 수직 중앙 정렬 */
        justify-content: center; /* 수평 중앙 정렬 */
    }

    /* Scrolling Text Adjustments */
    .scrolling-container {
        font-size: 2.5vw;
        width: 100vw;
    }

    .scrolling-text {
        font-size: 3vw;
    }

    /* Date Range Adjustment */
    .date-range {
        font-size: 3vw !important;
        margin-bottom: 1em;
    }
}