﻿@charset "utf-8";


/* 로딩 CSS */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* 다른 요소보다 위에 위치하도록 */
}

#loading {display: block; position: fixed; top: 50%; left: 50%; z-index: 100; width: 45rem; transform: translate(-50%, -50%); font-size: 14rem; white-space: normal; border-radius: 8rem;}
.loading{text-align: center;}
.loading span {display: inline-block; width: 10px; height: 10px; background-color: gray; border-radius: 50%; animation: loading 1s 0s linear infinite;}
.loading span:nth-child(1){animation-delay: 0s; background-color: red;}
.loading span:nth-child(2){animation-delay: 0.2s; background-color: orange;}
.loading span:nth-child(3){ animation-delay: 0.4s; background-color: yellowgreen;}
@keyframes loading {
    0%,             
    100% {
      opacity: 0;            
      transform: scale(0.5); 
    }
    50% {
      opacity: 1;             
      transform: scale(1.2); 
    }
}

body{
 -ms-overflow-style: none;
 }
 
::-webkit-scrollbar {
  display: none;
}

/*특정 부분 스크롤바 없애기*/

.ui-popup{
   -ms-overflow-style: none;
   z-index:902 !important;
}
.ui-popup::-webkit-scrollbar{
  display:none;
}
.isPopup::after{
    z-index: 901 !important
}

.betta-visual-event {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.betta-visual-event img {
    width: auto;
    height: 100%;
    display: block;
    cursor : pointer;
}



.ui-popup .btn-relative{
    position: relative; /* 이 위치를 기준으로 절대 위치를 지정할 수 있습니다. */
}
.ui-popup .btn-relative .btn-close {
    width: 20rem;
    height: 20rem;
    background: url(../../img/common/popup_close.svg) no-repeat;
    background-size: cover;
    position: absolute; /* 절대 위치 지정 */
    top: 20rem; /* 이미지 상단에 여백을 주어 위치 지정 */
    right: 20rem; /* 이미지 오른쪽에 여백을 주어 위치 지정 */
    z-index: 10; /* 다른 요소보다 위에 표시되도록 z-index 설정 */
}

.popup-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.popup-btn img {
    max-width: 300rem; /* Adjust size as needed */
    height: auto;
}



/* 중간 크기의 화면(예: 태블릿)에 대한 스타일 */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    /* 여기에 중간 크기의 화면용 스타일을 추가하세요 */
    .ui-popup {
        width: 768rem !important;
        position: fixed; /* 화면에 고정시킴 */
        top: 50%; /* 화면 세로 중앙 */
        left: 50%; /* 화면 가로 중앙 */
        transform: translate(-50%, -50%); /* 중앙으로 이동 */
    }
    
    .popup-buttons {
        position: relative;
        bottom: 112rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30rem;
        z-index: 10;
        height : 0rem;
    }

}

/* 큰 화면(예: 데스크톱)에 대한 스타일 */
@media screen and (min-width: 1025px) {
    /* 여기에 큰 화면용 스타일을 추가하세요 */
    .ui-popup {
        width: 1000rem !important;
        position: fixed; /* 화면에 고정시킴 */
        top: 50%; /* 화면 세로 중앙 */
        left: 50%; /* 화면 가로 중앙 */
        transform: translate(-50%, -50%); /* 중앙으로 이동 */
    }
    
    .popup-buttons {
        position: relative;
        bottom: 150rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30rem;
        z-index: 10;
        height : 0rem;
    }
}

@media (max-width: 768px) {
    .betta-visual-event img {
        width: 100%;
    }
    
    .popup-buttons {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10rem;
        z-index: 10;
        height : 0rem;
        padding-bottom: 30rem;
        margin-bottom: 30rem;
    }
}

