@font-face {
  font-family: "Daughter_handwriting";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/naverfont_03@1.0/Daughter_handwriting.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "continuous";
  src: url(./continuous.otf);
  font-weight: normal;
  font-style: normal;
}

:root {
  --wine: #a01313;
  --red: #c00909;
}

* {
  padding: 0;
  margin: 0;
  font-family: "Daughter_handwriting";
}

body {
  width: 100%;
  height: auto;
  user-select: none;
  cursor: url(../img/skeleton-cursor.png) 20 30, auto;
  background: linear-gradient(0deg, var(--wine) 0%, rgba(0, 0, 0, 1) 6%);
}
body::-webkit-scrollbar {
  background-color: black;
}
body::-webkit-scrollbar-thumb {
  background-color: white;
}

/* header */
.header {
  z-index: 0;
  width: 100%;
  height: 10%;
  text-align: center;
  font-size: 6vw;
  background-color: transparent;
}

.header a {
  text-decoration: none;
}

.title {
  font-family: "continuous";
  font-weight: 900;
  font-size: 8vw;
  margin: 50px;
  filter: url(#goo);
  position: relative;
  letter-spacing: 0em;
  color: var(--wine);
}

.title:nth-child(1) {
  color: var(--wine);
}

.a {
  color: var(--wine);
}

.drop {
  z-index: 0;
  width: 0.1em;
  height: 0.1em;
  border-radius: 0 100% 100% 100%;
  background-color: currentColor;
  position: absolute;
  top: 72%;
  animation: drop 3s infinite both;

  &:nth-child(1) {
    left: 20%;
  }

  &:nth-child(2) {
    left: 30%;
    animation-delay: -0.4s;
  }

  &:nth-child(3) {
    left: 58%;
    animation-delay: -1.5s;
  }

  &:nth-child(4) {
    left: 82%;
    animation-delay: -0.8s;
  }

  &:nth-child(5) {
    left: 95.5%;
    animation-delay: -1.3s;
  }
}

@keyframes drop {
  0% {
    transform: translateY(0) scaleX(0.85) rotate(45deg);
    animation-timing-function: ease-out;
  }

  60% {
    transform: translateY(20%) scaleX(0.85) rotate(45deg);
    animation-timing-function: ease-in;
  }

  80%,
  100% {
    transform: translateY(40vh) scaleX(0.85) rotate(45deg);
  }
}

/* search box */
.movie_search {
  z-index: 2;
  width: 100%;
  border-bottom: 1px solid white;
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4%;
}
.search_input::placeholder {
  font-size: 1.5vw;
  text-align: center;
  color: white;
}

.movie_search input {
  width: 20vw;
  margin: 2vw;
  border: none;
  border-bottom: 1px solid white;
  background: none;
  color: white;
  font-size: 1.2rem;
  text-align: center;
}

.search_button {
  font-size: 1.5vw;
  padding: 0.4% 2%;
  background: none;
  color: white;
  border: 1px solid white;
  border-radius: 10px;
  cursor: pointer;
}
.search_button:hover{
  border: 1px solid var(--wine);
  color: var(--wine);
}
.search_button:active {
  transform: scale(1.1);
  background-color: var(--wine);
  color: white;
}

.content {
  z-index: 2;
  display: grid;
  width: 95%;
  margin: 4vh auto;
  grid-template-columns: repeat(auto-fill, minmax(20vw, auto));
}

.card {
  display: flex;
  width: 18vw;
  margin: 20px auto;
  justify-content: space-between;
  transform-style: preserve-3d;
  perspective: 1000;
}
.card:hover {
  caret-color: white;
}

.poster_img {
  transform: rotateY(0deg);
  width: 18vw;
  z-index: 2;
  opacity: 1;
}

.back_part {
  background-color: black;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  z-index: 1;
  opacity: 0;
  width: 100%;
  height: 100%;
  line-height: 10vh;
}

.card:hover .poster_img {
  z-index: 1;
  opacity: 0;
}
.card:hover .back_part {
  z-index: 2;
  opacity: 0.7;
  transform: translateZ(180px);
}

.poster_img,
.back_part {
  backface-visibility: hidden;
  transition: all 1s;
}

.movie_title {
  font-weight: bold;
  height: 20%;
  line-height: 140%;
  font-size: 2vw;
  display: flex;
  justify-content: center;
}

.average {
  width: 20%;
  margin: 0 auto;
  column-width: 20%;
  color: white;
  display: flex;
  align-items: center;
  font-size: 1.8vw;
}
.average .water {
  color: var(--red);
}

/* 모달 CSS */
.modal {
  box-sizing: border-box;
  font-family: "continuous", sans-serif;
  position: fixed;
  z-index: 3;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: auto;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
}

.movieImg {
  width: 24.8vw;
  border-radius: 1rem 0 0 1rem;
}
@media (min-width: 1980px) {
  .movieImg {
    width: 67.5vw;
    border-radius: 2rem 0 0 2rem;
  }
}

.movieInfo {
  width: cover;
  display: flex;
  flex-direction: column;
  margin-left: 1%;
}

.movieTitle {
  font-size: 3vw;
  height: 6vh;
  margin: 5% 0;
}

.movieOverview {
  font-family: "Daughter_handwriting";
  font-size: 2vw;
  height: 30vh;
  margin: 10% 0 5%;
  padding: 2%;
  overflow: auto;
}
.movieOverview::-webkit-scrollbar {
  background-color: black;
  width: 0.8vw;
}
.movieOverview::-webkit-scrollbar-thumb {
  background-color: white;
  border-radius: 10px;
}

.movieVoteAverage {
  font-size: 2vw;
}

.modalButton {
  font-family: "Daughter_handwriting";
  font-weight: bold;
  text-decoration: underline;
  position: absolute;
  font-size: 3vw;
  bottom: -580%;
  right: 2%;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: auto;
  color: var(--red);
}

.modalContent {
  display: flex;
  margin: 2% auto;
  width: 70vw;
  height: 10vh;
  position: relative;
  border-radius: 50px;
}

.modalContent2 {
  color: white;
  display: flex;
  align-items: flex-start;
  background-color: black;

  width: 70vw;
  height: 80vh;
  border: 1px solid #888;
  border-radius: 1.8rem;
  position: relative;
}

.close {
  color: white;
  position: fixed;
  top: 10;
  right: 16%;
  font-size: 2vw;
  font-weight: bold;
  z-index: 5;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

body.scroll {
  overflow: hidden;
}

/* 모달 CSS 여기까지 */

/* 배경 음악 CSS */

#bgmBtn,
#muteBtn {
  margin: auto 0.2vw 0.5vw 1vw;
  color: white;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  background-color: transparent;
  border: 1px white solid;
  border-radius: 3px;
  padding: 2px;
  font-weight: 900;
  font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 1vw;
}

#bgmBtn:hover,
#muteBtn:hover {
  color: var(--wine);
  text-decoration: line-through;
  font-weight: 900;
  font-style: italic;
  border: 1px var(--wine) solid;
  border-radius: 3px;
}
#bgmBtn:active,
#muteBtn:active {
  transform: scale(1.2);
}

#volume-control {
  width: 10rem;
  margin-left: 0.4vw;
  border-radius: 8px;
  outline: none;
  accent-color: var(--wine);
}

/* 배경 음악 CSS 끝 */

/* footer */
footer {
  display: flex;
  color: white;
  width: 98vw;
  height: 15vh;
  margin-top: 14vh;
}
footer ul {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: flex-end;
  list-style: none;
  text-align: center;
  flex-wrap: wrap;
}

@media (max-width: 1200px) {
  footer {
    height: 20vh;
  }
  footer ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

footer ul li {
  padding: 2vh 0;
}
.fa-github {
  font-size: 4vw;
}
footer ul li a {
  text-decoration: none;
  color: white;
  font-size: 0.8vw;
}

.member_name {
  font-size: 1.4vw;
  margin-bottom: 1vh;
}

/* 탑버튼  */
.top_button {
  font-family: "Daughter_handwriting";
  font-weight: bold;
  position: fixed;
  width: 6rem;
  height: 6rem;
  right: 2rem;
  bottom: 4rem;
  font-size: 4rem;
  background: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  cursor: pointer;
}
.top_button:active {
  background-color: var(--wine);
}
