@charset "UTF-8";

/* CSS rules go below */




body{
    background-color:rgb(0, 0, 48);
    height: 100vh;
    margin: 0;
    position: relative;
    overflow: hidden;}
   

 

  @keyframes moveUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(70px);
    }
  }

  .random-text{
    color:rgb(0, 255, 115);
    pointer-events:none;
    
    position:absolute;
    font-size: 50px;
    font-family: "Handjet", serif;
    font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-variation-settings:
    "ELGR" 1,
    "ELSH" 2;
    animation: moveUpDown 2s infinite ease-in-out;
    cursor: pointer;
    pointer-events: auto;
}
    


  .welcome-text {
    color:rgb(0, 255, 115);
    line-height:0.2;
  
   position: absolute;
   top: 10%;
   left:10%;
   transform:translate(0,0);
   font-size:5vw;
   color:rgb(0, 255, 115);
   font-family:"handjet",serif;
   font-weight: 100;
  font-style: normal;
  font-variation-settings:
    "ELGR" 1,
    "ELSH" 2;
    text-align:left;
    opacity:0;
    white-space:nowrap;
    animation:slideInFromLeft 1s ease-out forwards;
  
  
}
  
@keyframes  slideInFromLeft {
  from{
    transform: translateX(-100%);
    opacity: 0;
  }
  
  to{
    transform: translateX(0);
  opacity: 1;}



}

.welcome-text p {
  opacity: 0;
  transform: translateY(20px); /* 애니메이션 시작 시 아래에서 올라오는 효과 */
  animation: fadeInUp 1s ease-out forwards;
}
.welcome-text p:nth-child(1) {
  animation-delay: 0.2s; /* 첫 번째 텍스트(WELCOME)의 애니메이션 지연 */
}

.welcome-text p:nth-child(2) {
  animation-delay: 0.4s; /* 두 번째 텍스트(HUMAN)의 애니메이션 지연 */
}

/* 첫 번째 그룹: WELCOME은 들여쓰기 없이, HUMAN은 들여쓰기 있음 */
.welcome-text:nth-child(1) p:nth-child(1) {
  text-indent: 0em; /* 첫 번째 텍스트(WELCOME) 들여쓰기 없음 */
}

.welcome-text:nth-child(1) p:nth-child(2) {
  text-indent: 2em; /* 두 번째 텍스트(HUMAN) 들여쓰기 2em */
}

/* 두 번째 그룹: WELCOME은 들여쓰기 있고 HUMAN은 들여쓰기 없음 */
.welcome-text:nth-child(2) p:nth-child(1) {
  text-indent: 2em; /* 첫 번째 텍스트(WELCOME) 들여쓰기 2em */
}

.welcome-text:nth-child(2) p:nth-child(2) {
  text-indent: 0em; /* 두 번째 텍스트(HUMAN) 들여쓰기 없음 */
}

/* 각 그룹을 화면에 계단식으로 배치 */
.welcome-text:nth-child(1) {
  top: 10%;
  left: 10%;
}

.welcome-text:nth-child(2) {
  top: 20%;
  left: 20%;
}

.welcome-text:nth-child(3) {
  top: 30%;
  left: 30%;
}

.welcome-text:nth-child(4) {
  top: 40%;
  left: 40%;
}

.welcome-text:nth-child(5) {
  top: 50%;
  left: 50%;
}

.welcome-text:nth-child(6) {
  top: 60%;
  left: 60%;
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px); /* 애니메이션 시작 시 아래에서 올라오는 효과 */
  }
  to {
      opacity: 1;
      transform: translateY(0); /* 애니메이션 종료 시 정상 위치로 */
  }
}
.fish {
  position: absolute;
  top:50%;
  left: -200px;
  animation: swim 2s linear forwards;
  cursor: pointer;
  
}
@keyframes swim {
  0% {
      transform: translateX(0);
  }
  100% {
      transform: translateX(50vw); /* 화면 전체를 지나가도록 설정 */
  }
}
.fish.stopped {
  animation: none;
  transform : translateX(40vw)
}

.custom-alert {
  display: none; /* 기본적으로 숨김 */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgb(255, 255, 255);
  border-radius: 10px;
  padding: 20px;
  z-index: 9999;
  width: 400px;
  height: 150px;
  
}
.custom-alert:hover{
  background-color:#f44336;
}



#alert-message {
  font-size: 50px;
  margin-bottom: 20px;
  text-align: center;
  font-family: "handjet",serif;
  font-style: normal;
  font-variation-settings:
    "ELGR" 1,
    "ELSH" 2;
    animation: moveUpDown 2s infinite ease-in-out;
    cursor: pointer;
    pointer-events: auto;
    animation:none;
}


.close-btn {
  padding: 15px 30px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.close-btn:hover {
  background-color: #002aff;
}