body {
    margin: 0;
    overflow-x: hidden;
    background-color: #f0f0f0;
}

.container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.background-image {
    width: 100%;
    height: 8152px;
    background-image: url('images/background-read.png');
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center top;
    position: absolute;
    top: 0;
    left: 0;
}

.clickable-area {
    position: absolute;
    cursor: pointer;
    /* For debugging: background-color: rgba(255, 0, 0, 0.3); */
}

/* 특정 클릭 가능한 영역들의 위치 및 크기 (1200px 너비 기준) */
#area1 { top: 1304px; left: 49px; width: 162px; height: 89px; }
#area2 { top: 1304px; left: 231px; width: 162px; height: 89px; }
#area3 { top: 1304px; left: 420px; width: 162px; height: 89px; }
#area4 { top: 1304px; left: 609px; width: 162px; height: 89px; }
#area5 { top: 1304px; left: 795px; width: 162px; height: 89px; }
#area6 { top: 1304px; left: 980px; width: 162px; height: 89px; }
#area7 { top: 1449px; left: 40px; width: 1113px; height: 114px; }
#area8 { top: 7993px; left: 59px; width: 1077px; height: 112px; }

/* 캐러셀 스타일 */
.carousel-container {
    position: absolute;
    overflow: hidden;
}

#carousel1 { top: 1865px; left: 49px; width: 1102px; height: 910px; }
#carousel2 { top: 4006px; left: 49px; width: 1102px; height: 850px; }
#carousel3 { top: 5224px; left: 49px; width: 1102px; height: 760px; }
#carousel4 { top: 6196px; left: 49px; width: 1102px; height: 730px; }
#carousel5 { top: 7166px; left: 59px; width: 1077px; height: 777px; }

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    flex-shrink: 0;
}

.carousel-item.active {
    display: block;
}

.carousel-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-controls button {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #ccc;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
}

/* 스크롤 시 페이드인 되는 이미지들 */
.scroll-fade-image {
    position: absolute;
    opacity: 0; /* 초기에는 투명하게 */
    transition: opacity 0.5s ease-in-out; /* 부드러운 전환 효과 */
    pointer-events: none; /* 이미지가 뒤의 요소를 가리지 않도록 설정 */
}

#read13 { top: 2978px; left: 786px; width: 315px; height: 315px; }
#read14 { top: 3351px; left: 92px; width: 315px; height: 315px; }