/* 메인 버튼 스타일 */
.main-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #ff7f00, #1caa6c, #ffcc00);
    background-size: 300% 300%;
    animation: gradientMove 2s infinite alternate, 
               slideIn 3.5s cubic-bezier(0.1, 0.8, 0.3, 1) 0.3s both;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    cursor: pointer;    
    transition: transform 0.2s ease-out;
    z-index: 100;
}

@keyframes slideIn {
    from {
        transform: translate(0, -900px);
        opacity: 0;
    }
    to {
        transform: translate(0, 0);
        opacity: 1;
    }
}

.main-button:hover {
    background: rgba(0, 0, 0, 0.454); /* 배경색을 검은색으로 변경 */
    backdrop-filter: blur(6px); /* 블러 효과는 backdrop-filter를 사용 */
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.main-button img {
    width: 100px;
    height: 100px;  
}

.main-button img :hover{
    width: 130px;
    height: 130px;
    filter: drop-shadow(2px);
}

/* 메뉴 컨테이너 */
.menu-container {
    position: fixed;
    bottom: 70px;
    left: 190px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease;
}

.menu-container.active {
    transform: translateX(0);
    opacity: 1;
}

/* 메뉴 버튼 스타일 */
.menu-button {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.menu-button.show {
    animation: springFadeIn 0.5s cubic-bezier(0.25, 1.5, 0.5, 1) forwards;
}
@keyframes springFadeIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    80% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

.menu-button:hover {
    transform: translateY(-10px);
    color: #ff7f00;
    font-weight: 600;
    background: rgba(255, 255, 255, 1.0);
}

/* 마우스 오버 시 아이콘 표시 */
.menu-button .menu-icon {
    position: absolute;
    top: -75px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    display: none;
}

.menu-button:hover .menu-icon {
    display: block;
}

/*****************************************************************************************/
.label-image {
    position: fixed;
    top: 50%;  /* 화면 상단에서 100px 아래 */
    right: 0px;   /* 화면 우측에서 0px 왼쪽 */
    width: 400px;  /* 이미지 크기 */
    height: auto;  /* 가로 비율 유지 */
    z-index: 1000; /* 다른 요소 위에 표시 */
    opacity: 0.5;  /* 기본 투명도 */  
    transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), 
                transform 1.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: right center;  /* 오른쪽 중앙을 기준으로 확대 */
    transform: translateY(-50%);  /* 수직 중앙 정렬 */
    z-index: 100;
  }
  
 /* 마우스를 올리면 밝아지고 오른쪽에서 왼쪽으로 수평 확대 */
.label-image:hover {
    opacity: 1;
    transform: scale(1.5) translateY(-30%); /* 1:1 비율로 확대 */
    background-color: rgba(0, 0, 0, 0.323);
    /* 글라스 효과 */
    backdrop-filter: blur(10px); /* 배경 흐림 효과 */
    border-radius: 10px; /* 테두리 둥글게 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* 그림자 효과 */
    border: 1.5px solid rgba(255, 255, 255, 0.8); /* 1.5px white border */
  }

  /****************************************************************/
  /* 박스 스타일 */
  .refresh-box {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    
    width: 130px;
    height: 130px;
    padding: 10px;
    
    display: flex;
    flex-direction: column; /* 세로 방향 정렬 */
    align-items: center;
    justify-content: center;
    gap: 8px; /* 요소 간 간격 조절 */

    font-size: 14px;
    font-weight: bold;
    color: white;
    
    background: rgba(255, 255, 255, 0.2); /* 글라스 효과 */
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    
    animation: float 1s ease-in-out infinite alternate;
    z-index: 100;
}

/* 아이콘 스타일 */
.refresh-box i {
    font-size: 24px; /* 아이콘 크기 */
}

/* 텍스트 스타일 */
.refresh-box p {
    margin: 0;
    font-size: 12px;
    text-align: center;
}

/* 위아래 부드러운 애니메이션 */
@keyframes float {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(-30%);
    }
}

/* 작은 박스 */
.small-box {
    top: calc(20% + 140px);  /* 첫 박스 바로 아래 */
    width: 130px;
    height: 100px;
    font-size: 12px;
    gap: 5px;
}

.small-box i {
    font-size: 20px;
}

@media screen and (max-width: 1024px) {
    .small-box {
        top: calc(70% + 120px);  /* 미디어쿼리에서도 첫 박스 아래 */
        width: 110px;
        height: 85px;
    }
}

/* small-box 호버 효과 */
.small-box a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: white;
    text-decoration: none;
    width: 100%;
    height: 100%;
    justify-content: center;
}

.small-box:hover {
    background: rgba(255, 105, 180, 0.5); /* 핑크 바탕 */
    border: 1px solid rgba(255, 105, 180, 0.7);
    transition: background 0.3s ease;
    cursor: pointer;
}

@keyframes blink-bolt {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.small-box:hover i {
    animation: blink-bolt 0.3s step-start infinite;
}