@import url('https://fonts.googleapis.com/css2?family=Do+Hyeon&display=swap');

.do-hyeon-regular {
  font-family: "Do Hyeon", sans-serif;
  font-weight: 400;
  font-style: normal;
}


#project {
  /* background-color: yellow; */
  width: 100%;
  height: 100vh;
  /* 화면 크기만큼 */
  position: relative;
  transition: top 0.5s ease-in-out;
  /* 스크롤 효과 */
  top: 0;
}

.ocean {
  /* border: 2px solid black; */
  width: 100%;
  height: 100%;

  position: relative;

  box-sizing: border-box;
}

.sea_sky {
  /* border: 2px solid rgb(21, 255, 0); */
  width: 100%;
  height: 20%;

  background: linear-gradient(to bottom, #ffbf69, #66e5ff);
}

.sea {
  background: linear-gradient(to top, #0077b6, #66e5ff);
  width: 100%;
  height: 60%;
}

.wave {
  width: 100%;
  height: 100%;

  position: absolute;
  top: 0;
  left: 0;
}

/* 물방울 만들기 */
.bubbles {
  width: 100%;
  height: 100%;
  position: relative;
}

.bubble {
  /* border: 2px solid black; */
  width: 100%;
  height: 100%;

}

/* 작품 부분 */
.project_1,
.project_2,
.project_3 {
  background-color: transparent;
  width: 16%;
  height: 50%;
  position: relative;
  /* border-radius: 70% 76% 67% 79% / 76% 65% 94% 76%  ; */
  border-radius: 54% 46% 58% 42% / 43% 60% 40% 57%;

  display: inline-block;

  transition: border-radius 0.2s ease-in-out;
  /* 마우스를 뗄뗴, 모양이 돌아올때 */
}

.project_shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  /* 부모와 동일한 모양 유지 */

  box-shadow: inset 10px 10px 10px rgba(0, 0, 0, 0.1),
    15px 15px 10px rgba(0, 0, 0, 0.1)
    /* 우하단 그림자 */
    , 10px 10px 10px rgba(0, 0, 0, 0.1);
  /* 우하단 그림자2 */
  /* , inset 10px 10px 20px rgba(0, 170, 210, 0.5); */

  pointer-events: none;
  /* 클릭 이벤트 방해하지 않도록 설정 */
  transition: transform 0.3s linear;
}

.project_1::before,
.project_2::before,
.project_3::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 20%;

  background: white;
  opacity: 0.1;
  width: 20px;
  height: 20px;

  border-radius: 70% 76% 67% 79% / 76% 65% 94% 76%;
}

.project_1::after,
.project_2::after,
.project_3::after {
  content: '';
  position: absolute;
  top: 25%;
  left: 30%;

  background: white;
  opacity: 0.1;
  width: 10px;
  height: 10px;

  border-radius: 70% 76% 67% 79% / 76% 65% 94% 76%;
}

.project_1 {
  position: relative;
  top: 40%;
  left: -10%;

  animation: bubbleRadius_1 1.9s linear infinite alternate;
}

.project_1 p,
.project_2 p,
.project_3 p {}

@keyframes bubbleRadius_1 {
  0% {
    border-radius: 54% 46% 58% 42% / 43% 60% 40% 57%;
  }

  100% {
    border-radius: 70% 30% 41% 59% / 56% 42% 58% 44%;
  }
}

.project_1:hover .project_shadow,
.project_2:hover .project_shadow,
.project_3:hover .project_shadow {
  transform: scale(1.1);
}

.project_2 {
  border-radius: 48% 52% 44% 56% / 36% 58% 42% 64%;
  position: relative;
  top: 20%;
  left: 0%;

  animation: bubbleRadius_2 2.2s linear infinite alternate;
}

@keyframes bubbleRadius_2 {
  0% {
    border-radius: 48% 52% 44% 56% / 36% 58% 42% 64%;
  }

  100% {
    border-radius: 30% 70% 65% 35% / 55% 47% 53% 45%;
  }
}

.project_3 {
  border-radius: 61% 39% 61% 39% / 47% 48% 52% 53%;
  position: relative;
  top: 55%;
  left: 10%;

  animation: bubbleRadius_3 2.4s linear infinite alternate;
}

@keyframes bubbleRadius_3 {
  0% {
    border-radius: 61% 39% 61% 39% / 47% 48% 52% 53%;
  }

  100% {
    border-radius: 40% 60% 43% 57% / 67% 76% 24% 33%;
  }
}

/* checkbox 없애기  */
.project_title {
  appearance: none;

  /* 제목 수직 위치 */
  height: 50%;
}

label {
  cursor: pointer;
}

/* 미리보기 */
.preview {
  /* visibility: hidden; */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* 화면 중앙으로 이동 */

  display: flex;
  flex-direction: column;
  flex-wrap: wrap;

  opacity: 0;
  visibility: hidden;
  /* 요 히든은 preview가 있는 공간을 누르면 나와서 필수 */
  transition: 0.2s ease-in-out;

}

.project_1 .preview,
.project_2 .preview,
.project_3 .preview {
  width: 400%;
  height: 90vh;
  transform: translate(-50%, -50%);
  /* 중앙 정렬 */


}

.project_1 .preview {
  top: 19.5%;
  left: 227%;
}

.project_2 .preview {
  top: 59%;
  left: 67%;
}

.project_3 .preview {
  top: -11%;
  left: -105%;
}

/* 체크됐을때 나타내기 */
.project_1 .project_title:checked~.preview,
.project_2 .project_title:checked~.preview,
.project_3 .project_title:checked~.preview {
  opacity: 1;

  z-index: 1;
  visibility: visible;

}

.preview_image {
  background: whitesmoke;
  width: 50%;
  height: 70%;

  align-content: center;
  border-radius: 10px;

}

.preview_image img {
  width: 100%;
  border-radius: 10px;

}

.preview_title {
  background: whitesmoke;
  width: 50%;
  height: 25%;

  font-size: 44px;
  border-radius: 10px;

}

.preview_title p {
  height: 100%;
  align-content: center;
  border-radius: 10px;

  position: relative;
}

.preview_title p::after {
  content: "";
  border: 2px solid black;
  width: 75%;
  position: absolute;
  top: 35px;
  left: 0px;

}

.preview_content {
  background: whitesmoke;
  width: 50%;
  height: 95%;

  display: flex;
  justify-content: center;

  font-size: 26px;
  border-radius: 10px;

}

.preview_content ul {
  margin-left: 30px;
  text-align: left;
  list-style-type: disc;

  align-content: center;
  padding: 20px;
  border-radius: 10px;
}

.preview_content ul::after {
  content: "";
  border: 2px solid black;
  width: 37%;
  position: absolute;
  bottom: 60px;
  right: 0px;

}

/* 배경 방울 */
.bg_bubble {
  width: 100%;
  height: 100%;

  position: absolute;
  top: 0;
  left: 0;

  opacity: 0.5;
}

.bg_bubble :nth-child(n) {
  width: 3%;
  height: 10%;

  box-shadow: inset 10px 10px 10px rgba(0, 0, 0, 0.1),
    15px 15px 10px rgba(0, 0, 0, 0.1)
    /* 우하단 그림자 */
    , 10px 10px 10px rgba(0, 0, 0, 0.1);
  /* 우하단 그림자2 */

  /* animation: bubble 5s ease-in-out infinite alternate;   */
  /* 마우스를 뗄뗴, 모양이 돌아올때 */
}

.bg_bubble :nth-child(1) {
  border-radius: 70% 78% 67% 65% / 90% 65% 71% 64%;

  position: absolute;
  top: 5%;
  left: 5%;
  animation: floatUp 10s infinite;
}

.bg_bubble :nth-child(2) {
  border-radius: 70% 78% 67% 65% / 90% 65% 71% 64%;

  position: absolute;
  top: 50%;
  left: 50%;

  animation: floatUp 6s infinite;
}

.bg_bubble :nth-child(3) {
  border-radius: 70% 78% 67% 65% / 90% 65% 71% 64%;

  position: absolute;
  top: 30%;
  left: 18%;
  animation: floatUp 4s infinite;
}

.bg_bubble :nth-child(4) {
  border-radius: 70% 78% 67% 65% / 90% 65% 71% 64%;

  position: absolute;
  top: 75%;
  left: 95%;
  animation: floatUp 7s infinite;
}

.bg_bubble :nth-child(5) {
  border-radius: 70% 78% 67% 65% / 90% 65% 71% 64%;

  position: absolute;
  top: 25%;
  left: 85%;
  animation: floatUp 8s infinite;
}

.bg_bubble :nth-child(6) {
  border-radius: 70% 78% 67% 65% / 90% 65% 71% 64%;

  position: absolute;
  top: 105%;
  left: 15%;
  animation: floatUp 9s infinite;
}

.bg_bubble :nth-child(7) {
  border-radius: 70% 78% 67% 65% / 90% 65% 71% 64%;

  position: absolute;
  top: 75%;
  left: 35%;
  animation: floatUp 7s infinite;
}

.bg_bubble :nth-child(8) {
  border-radius: 70% 78% 67% 65% / 90% 65% 71% 64%;

  position: absolute;
  top: 115%;
  left: 65%;
  animation: floatUp 10s infinite;

  /* 이거 그냥 트윈맥스 쓰자;
    곡선에서 애먹음 */

  /* animation: shake 8s infinite ease-in-out,
    floatUp 8s infinite ease-in; */
}

/* 겉부분 울렁울렁 거리는거 */
@keyframes bubble {
  0% {
    border-radius: 70% 78% 67% 65% / 90% 65% 71% 64%;
  }

  100% {
    border-radius: 90% 65% 71% 64% / 70% 78% 67% 65%;
  }
}

/* 좌우로 흔들리는거 */
@keyframes shake {

  /* 방울 맨 처음 위치 */
  0% {
    transform: translate(0%, 0%);
  }

  33% {
    transform: translate(-200%, 0%);
  }

  66% {
    transform: translate(200%, 0%);
  }

  100% {
    transform: translate(200%, 0%);
  }
}

/* 올라오는거 */
@keyframes floatUp {
  0% {
    opacity: 1;
  }

  100% {
    transform: translateY(-200%);
    opacity: 0;
  }
}





















.sand {
  background: linear-gradient(to bottom, #0077b6, #1e6091);


  width: 100%;
  height: 20%;
}