
body, html {
    margin: 0;
    height: 100%;
    overflow: hidden;
    background-color: #000;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Coral Pixels', serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
}

.poster {
    width: 100%;
    height: 100%;
    position: relative;
    border: 48px solid black;
    box-sizing: border-box;
}


.zoom-in-content {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url('https://i.imgur.com/fx116uk.jpeg');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    z-index: 30;
}

.text-box {
      position: absolute;
    font-size: clamp(1.2rem, 4vw, 50px);
    color: white;
    background-color: rgba(50, 50, 50, 0.8);
    /* 여기를 수정했습니다: padding 값 조정 (세로 두께 증가, 오타 수정) */
    padding: clamp(15px, 5vw, 40px) clamp(10px, 4vw, 40px); 
    border-radius: 1px;
    white-space: nowrap;
    z-index: 1;
    display: inline-block;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0);
    line-height: 1.2;
    text-align: center;
    opacity: 0.8;
}


.layer-1 { top: 10%; left: 8%; transform: rotate(-9deg); background-color: #f7372d; opacity: 1; z-index: 10; }
.layer-2 { top: 25%; right: 10%; transform: rotate(5deg); background-color: #ffde05; opacity: 1; z-index: 9; font-size: clamp(1rem, 3.5vw, 45px); }
.layer-3 { top: 40%; left: 15%; transform: rotate(-12deg); background-color: #66ff00; opacity: 1; z-index: 8; font-size: clamp(1.1rem, 3vw, 40px); }
.layer-4 { top: 55%; right: 20%; transform: rotate(10deg); background-color: #00ffff; opacity: 1; z-index: 11; font-size: clamp(1rem, 3.8vw, 48px); }
.layer-5 { top: 70%; left: 5%; transform: rotate(-5deg); background-color: #ff00ff; opacity: 1; z-index: 7; font-size: clamp(0.9rem, 2.8vw, 38px); }
.layer-6 { top: 85%; right: 15%; transform: rotate(8deg); background-color: #ffa500; opacity: 1; z-index: 6; font-size: clamp(rem, 2.5vw, 35px); }
.layer-7 { top: 18%; left: 30%; transform: rotate(15deg); background-color: #8a2be2; opacity: 1; z-index: 12; font-size: clamp(1.9rem, 4.2vw, 55px); }
.layer-8 { top: 35%; right: 5%; transform: rotate(-20deg); background-color: #008000; opacity: 1; z-index: 8; font-size: clamp(0.9rem, 3.2vw, 42px); }
.layer-9 { top: 60%; left: 25%; transform: rotate(3deg); background-color: #dc143c; opacity: 1; z-index: 10; font-size: clamp(1.1rem, 4.5vw, 52px); }
.layer-10 { top: 75%; right: 28%; transform: rotate(-7deg); background-color: #4169e1; opacity: 1; z-index: 7; font-size: clamp(0.8rem, 2.7vw, 36px); }
.layer-11 { top: 1%; right: 1%; transform: rotate(9deg); background-color: #ffa500; opacity: 1; z-index: 7; font-size: clamp(0.9rem, 3vw, 40px); }
.layer-12 { top: 75%; left: 40%; transform: rotate(12deg); background-color: #00ffff; opacity: 1; z-index: 7; font-size: clamp(1rem, 3.5vw, 45px); }
.layer-13 { top: 11%; left: 2%; transform: rotate(-17deg); background-color: #ff00ff; opacity: 1; z-index: 2; font-size: clamp(1.2rem, 3vw, 44px); }



.zoom-out-content {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    flex-direction: column;
    z-index: 5;
    position: relative;
    justify-content: center;
    align-items: center;
}

.top-compact {
    flex: 1;
    background-image: url('https://i.imgur.com/fs3X37J.png');
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: 1;
}

.bottom-compact {
    flex: 1;
    background-image: url('https://i.imgur.com/MWsXoOQ.png');
    background-size: cover;
    background-position: center;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: 1;
}


.compact-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 99;
    cursor: pointer;
}


.compact-text {
    font-family: 'Coral Pixels', sans-serif;
    font-size: clamp(9rem, 8vw, 90px);
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    opacity: 0.9;
}


.moving-image-link-1,
.moving-image-link-2,
.moving-image-link-3,
.moving-image-link-4,
.moving-image-link-5 {
    position: absolute;
    pointer-events: auto; 
    display: block;
    z-index: 6; 
  
}

.moving-image {
    width: 180%;
    height: 140%;
}


.moving-image-link-1 {
    width: clamp(50px, 15vw, 100px);
    height: clamp(50px, 15vw, 100px);
    animation: moveImage1 15s infinite linear;
}

.moving-image-link-2 {
    width: clamp(40px, 12vw, 80px);
    height: clamp(40px, 12vw, 80px);
    animation: moveImage2 18s infinite linear;
}

.moving-image-link-3 {
    width: clamp(60px, 18vw, 120px);
    height: clamp(60px, 18vw, 160px);
    animation: moveImage3 18s infinite linear;
}

.moving-image-link-4 {
    width: clamp(30px, 10vw, 70px);
    height: clamp(30px, 10vw, 70px);
    animation: moveImage4 20s infinite linear;
}

.moving-image-link-5 {
    width: clamp(40px, 22vw, 140px);
    height: clamp(44px, 22vw, 140px);
    animation: moveImage5 20s infinite linear;
}


@keyframes moveImage1 {
    0% { top: 0%; left: 0%; transform: rotate(0deg); }
    25% { top: 20%; left: 80%; transform: rotate(90deg); }
    50% { top: 80%; left: 10%; transform: rotate(180deg); }
    75% { top: 30%; left: 90%; transform: rotate(270deg); }
    100% { top: 0%; left: 0%; transform: rotate(360deg); }
}

@keyframes moveImage2 {
    0% { top: 10%; right: 56%; transform: rotate(0deg); }
    20% { top: 70%; right: 60%; transform: rotate(120deg); }
    40% { top: 30%; right: 20%; transform: rotate(240deg); }
    60% { top: 90%; right: 80%; transform: rotate(360deg); }
    80% { top: 40%; right: 10%; transform: rotate(480deg); }
    100% { top: 10%; right: 5%; transform: rotate(600deg); }
}

@keyframes moveImage3 {
    0% { bottom: 0%; left: 20%; transform: rotate(0deg); }
    30% { top: 25%; left: 70%; transform: rotate(-100deg); }
    60% { bottom: 50%; right: 10%; transform: rotate(-200deg); }
    100% { bottom: 0%; left: 20%; transform: rotate(-360deg); }
}

@keyframes moveImage4 {
    0% { top: 50%; left: 0%; transform: scale(1) rotate(0deg); opacity: 1;}
    15% { top: 10%; left: 20%; transform: scale(7.3) rotate(45deg); opacity: 0.8;}
    30% { top: 80%; left: 40%; transform: scale(14.8) rotate(50deg); opacity: 0.6;}
    45% { top: 20%; left: 60%; transform: scale(10.10) rotate(135deg); opacity: 0.9;}
    60% { top: 70%; left: 80%; transform: scale(10.7) rotate(180deg); opacity: 0.7;}
    75% { top: 30%; left: 90%; transform: scale(14.3) rotate(225deg); opacity: 1;}
    100% { top: 50%; left: 0%; transform: scale(36) rotate(270deg); opacity: 1;}
}

@keyframes moveImage5 {
    0% { top: 10%; left: 90%; transform: rotate(0deg); }
    25% { top: 60%; left: 10%; transform: rotate(-90deg); }
    50% { top: 20%; left: 70%; transform: rotate(-180deg); }
    75% { top: 80%; left: 30%; transform: rotate(-270deg); }
    100% { top: 10%; left: 90%; transform: rotate(-360deg); }
}



@media (max-width: 1000px) {
    .zoom-in-content {
        display: none;
    }
    .zoom-out-content {
        display: flex;
        position: relative;
    }
}