@import url("https://fonts.googleapis.com/css2?family=Stylish&display=swap");

body {
  background-image: url("https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExcHRrOGJ2ajVwMjg3M2o5YXMzdXVyM2drcW1pNXRvbWMxMW05MmV4OSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/3o7aDcrsww5Ybp18hq/giphy.gif");
  background-repeat: repeat;
  background-size: 680px;
}

.content-box {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  margin-top: 120px;
  margin-bottom: 60px;
  padding: 2.5em 3em;
  box-sizing: border-box;
  /* button 효과  */
  z-index: 1;
  transition: opacity 10s ease-out;
  opacity: 1;
}

.content-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url("https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExcHRrOGJ2ajVwMjg3M2o5YXMzdXVyM2drcW1pNXRvbWMxMW05MmV4OSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/3o7aDcrsww5Ybp18hq/giphy.gif");
  background-size: 680px;
  background-repeat: repeat;
  filter: invert(1);
}

h1 {
  color: #00aeff;
  font-family: "Stylish", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 5rem;
  letter-spacing: -0.04em;
  margin-top: 0;
  margin-bottom: 0;
}

summary h2 {
  display: inline;
  margin: 10px;
}

h2.keywords {
  color: #00aeff;
  font-family: "Stylish", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 3rem;
  letter-spacing: -0.055em;
  margin-top: 0;
  margin-bottom: 0;
}

.keywords summary h2 {
  color: #00aeff;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 1em;
  text-decoration: underline dotted;
  text-decoration-thickness: 2.5px;
}

p {
  font-family: "Gowun Batang", serif;
  font-weight: 400;
  font-size: 17px;
  font-style: normal;
  line-height: 1.6;
}

.intro p {
  text-indent: 2em;
}

.keywords p {
  padding-left: 2rem;
  margin-top: 20px;
  margin-bottom: 25px;
}

p a {
  color: #00aeff;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 0.92em;
  text-decoration: underline dotted;
  text-decoration-thickness: 2.5px;
}

p a:hover {
  border-bottom-style: solid;
}

footer p.footer-notice a {
  color: #000000;
  text-decoration: none;
  font-family: "Gowun Batang", serif;
  font-weight: 400;
  font-size: 16.5px;
  font-style: normal;
  line-height: 1.6;
}

figcaption {
  font-size: 13.5px;
  color: #000000;
  margin-top: 8px;
  margin-bottom: 8px;
  font-family: "Gothic A1", sans-serif;
  font-weight: 300;
  text-align: center;
}

.img {
  display: block;
  width: 300px;
  margin: 0 auto;
}

.line {
  width: 100%;
  margin-top: 25px;
  margin-bottom: 10px;
  border-top: 2px solid #00aeff;
}

div.content-box p.footer-notice {
  text-align: center;
}

/* 키워드 삼각 화살표 */
.keywords summary::-webkit-details-marker {
  display: none;
}
.keywords summary {
  list-style: none;
  display: flex;
  align-items: baseline;
  cursor: pointer;
}

.keywords summary::before {
  content: "▶";
  color: #00aeff;
  display: inline-block;
}

.keywords[open] summary::before {
  content: "▼";
  color: #00aeff;
}

time {
  font-size: 13.5px;
  color: #000000;
  margin-top: 8px;
  margin-bottom: 8px;
  font-family: "Gothic A1", sans-serif;
  font-weight: 300;
  text-align: center;
  display: block;
}

/* button 효과  */
.floating-heart {
  position: fixed; /* 화면 스크롤과 상관없이 브라우저 고정 좌표 배치 */
  pointer-events: none; /* 하트가 마우스 클릭 및 선택 드래그를 방해하지 않음 */
  z-index: 9999; /* 전역 최상단 레이어로 출력 보장 */
  animation-name: floatUp; /* 적용할 애니메이션 키프레임 바인딩 */
  animation-timing-function: ease-out; /* 위로 갈수록 부드럽게 감속 */
  animation-fill-mode: forwards; /* 종료 후 마지막 프레임 상태 고정 */
}

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 1;
  }
  100% {
    /* 자바스크립트가 제공한 고유 변수(--drift)만큼 좌우 궤적을 그리며 뷰포트 상단 밖으로 사라짐 */
    transform: translateY(-105vh) translateX(var(--drift));
    opacity: 0;
  }
}
