@import url("https://fonts.googleapis.com/css2?family=Nanum+Pen+Script&display=swap");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");

:root {
  --width: min(80vw, 130vh);
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0 auto;
}

.nanum-pen-script-regular {
  font-family: "Nanum Pen Script", cursive;
  font-weight: 400;
  font-style: normal;
}

.pretendard-bold {
  font-family: "Pretendard Variable";
  font-weight: 700;
}
.pretendard-regular {
  font-family: "Pretendard Variable";
  color: black;
  font-weight: 400;
}
.mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0);
  z-index: 9999;
  transition: 0.5s ease;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0);
  z-index: 1;
  opacity: 0;
  transition: 0.5s ease;
}

.wrap {
  position: relative;
  height: 100%;
  background: #157ed1;
  text-align: center;
}

.loadingImg {
  position: relative;
  display: block;
  top: 50vh;
  transform: translateY(-50%);
}

#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: url("../image/background.jpg") no-repeat center/cover;
}
.page-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.notebook-background {
  width: var(--width);
  z-index: 1;
  position: relative;
}

#notebackground {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(4px 6px 6px #040404);
}

.menu-container {
  position: absolute;
  z-index: 2;
  /* 메뉴의 크기와 위치를 조정하세요 */
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  top: 0;
}

.menu-container > div {
  height: 97%;
  width: 44%;
}

#title {
  position: relative;
  top: 7%;
  display: flex;
  justify-content: space-around;
  width: calc(var(--width) * 0.25);
}
#title > img {
  width: 45%;
  height: auto;
  object-fit: contain;
}
#letter {
  position: relative;
  top: 12%;
  width: 80%;
  height: 55%;
}

#letter > div {
  text-align: center;
  position: relative;
  top: 90%;
  font-size: calc(var(--width) * 0.015);
}

.invitation {
  width: calc(var(--width) / 3);
  height: auto;
  object-fit: contain;
  z-index: 9;
  position: absolute;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: calc(50% - var(--width)* 0.435);
  top: calc(50% - var(--width)* 0.18);
}

.invitation img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.invitation-name {
  margin-top: 15px;
  width: calc(var(--width) * 0.2);
  height: calc(var(--width) * 0.02);
  font-size: calc(var(--width) * 0.009);
  border: 0;
  border-radius: 15px;
  outline: none;
  padding-left: 10px;
  background-color: rgb(233, 233, 233);
}
.invitation-button {
  margin-top: 7px;
  width: calc(var(--width) * 0.05);
  height: calc(var(--width) * 0.02);
  font-size: calc(var(--width) * 0.009);
  border: 0;
  border-radius: 15px;
  outline: none;
  background-color: rgb(233, 233, 233);
  cursor: pointer;
}

.dear-text {
  position: absolute;
  top: 80%;
  left: 60%;
  font-size: calc(var(--width) * 0.02);
}
#timer {
  position: relative;
  top: 13%;
  text-align: center;
  font-size: calc(var(--width) * 0.1);
}
.left-menu {
  margin-right: 5%;
}
.right-menu {
  margin-left: 5%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.slider-img {
  position: relative;
  width: calc(var(--width) * 0.35);
  height: 90%;
  overflow: hidden;
}

.slider-inner {
  display: flex;
  flex-wrap: wrap;
  width: 4000px;
  height: 100%;
}
.slider {
  margin: 0;
  height: 100%;
  width: calc(var(--width) * 0.35);
}

.s2 img,
.s3 img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-btn {
  text-align: center;
}

.slider-btn img {
  width: calc(var(--width) * 0.023);
  margin: 0 5px;
  cursor: pointer;
}

.video-title-text {
  font-size: calc(var(--width) * 0.02);
}
.video-date-text {
  font-size: calc(var(--width) * 0.015);
  color: #969696;
}

.video-wrapper {
  height: 45%;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.video-wrapper * {
  margin: 0;
}

.video-wrapper img {
  cursor: pointer;
}

.download-text{
  font-size: calc(var(--width) * 0.012);
  position: relative;
  top: 12%;
  text-align: center;
  width: 100%;
  display:block;
}