html {
    font-size: 16px;
}

body {
    margin: 0;
    background-color: #000000;
    font-family: 'Pretendard', sans-serif;
}

section {
    position: relative;
    width: 100%;
    height: auto;
    transform-origin: top center;
}

.page-image {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: block;
}

.z1 {
    z-index: 1;
}

.z2 {
    z-index: 2;
}

.z3 {
    z-index: 3;
}

.join-box {
    position: absolute;
    top: 88.0625rem;
    left: 50%;
    transform: translateX(-50%);
    width: 28.125rem;
    height: 7.5rem;
    background-color: #FFFFFF;
    border-radius: 1.083rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 3.375rem;
    color: #000000;
    text-decoration: none;
    box-shadow: 0 0 62.78px 22.27px rgba(255, 255, 255, 0.43);
    z-index: 2;
}

.tip-box {
    position: absolute;
    top: 366.6875rem;
    left: 50%;
    transform: translateX(-50%);
    width: 28.125rem;
    height: 7.5rem;
    background-color: #000000;
    border-radius: 1.083rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 3.375rem;
    color: #FFFFFF;
    text-decoration: none;
    box-shadow: 0 0 62.78px 22.27px rgba(0, 0, 0, 0.43);
    z-index: 3;
}

/* 캐러셀 공통 */
.carousel-wrapper,
.carousel-wrapper2 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 93.75rem;
    z-index: 3;
}

.carousel-wrapper {
    top: 226.4375rem;
}

.carousel-wrapper2 {
    top: 254.1875rem;
}

.image-container,
#slider2 {
    width: 100%;
    height: 25rem;
    margin: 0 auto;
    overflow: hidden;
    border: 2px solid #444;
    background: #222;
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center;
}

.slider-track,
#track2 {
    display: flex;
    align-items: center;
    gap: 20px;
    will-change: transform;
}

.slide-image,
#track2 img {
    height: 25rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s;
}

.slide-image:hover,
#track2 img:hover {
    transform: scale(1.05);
}

.image-container::-webkit-scrollbar,
#slider2::-webkit-scrollbar {
    display: none;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
    padding: 10px 20px;
}

.nav-left {
    left: 10px;
}

.nav-right {
    right: 10px;
}

.join-box:hover,
.tip-box:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 0 70px 25px rgba(255, 255, 255, 0.6); /* join은 흰색 */
}

.tip-box:hover {
    box-shadow: 0 0 70px 25px rgba(255, 255, 255, 0.2); /* tip은 약하게 */
}

.main-text-anim {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: slideDownTop 1.5s ease-out forwards;
}



#modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

#modal-content {
    display: block;
    margin: 5% auto;
    max-width: 90%;
    max-height: 90%;
}

#close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

@keyframes slideDownTop {
    0% {
        opacity: 0;
        top: 6.75rem;  /* 시작 위치 (원래보다 위) */
    }
    100% {
        opacity: 1;
        top: 16.75rem;  /* 최종 위치 */
    }
}
@keyframes fadeUp {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.observed-element {
    opacity: 0;  /* 처음엔 숨김 */
}

.observed-element.active {
    animation: fadeUp 2s ease-out forwards;
}