@font-face {
  font-family: svn-gotham-book;
  src: url(./font/svn-gotham-book.otf);
}
.font-svn-gotham-book {
  font-family: svn-gotham-book;
}
.font-roboto {
  font-family: Roboto;
}

.theme-wedding {
  width: 100%;
  background-color: #000;
  padding: 50px 0;
}

.main-content {
  background-color: #f1ece8;
  max-width: 1024px;
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  text-align: center;
  display: flex;
}
.box-content {
  width: 55%;
  position: relative;
}
.box-content .content {
  padding: 0 40px;
  margin: 25px 0;
}
.box-content .content p {
  font-size: 20px;
  color: #745335;
  line-height: 25px;
}
.box-content .content p:first-child {
  padding: 0 20px;
}
.box-content > img,
.footer img {
  width: 100%;
  height: auto;
  display: block;
}

.box-image {
  width: 45%;
  border: 8px solid #745335;
  overflow: hidden;
}
.box-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
form > input {
  border: none;
  height: 40px;
  padding: 0 10px;
  text-align: center;
  width: 250px;
  border-radius: 18px;
}
form > button {
  border: none;
  height: 40px;
  background-color: #745335;
  color: #fff;
  border-radius: 18px;
  min-width: 150px;
  line-height: 40px;
  cursor: pointer;
}
#condition {
  z-index: 2;
}
#condition label {
  position: relative;
  padding-left: 10px;
  color: #745335;
  margin: 0 10px 10px;
}
#condition label input {
  opacity: 0;
}

#condition label .box {
  width: 20px;
  height: 20px;
  border: 1px solid;
  background-color: transparent;
  position: absolute;
  top: 2px;
  left: 0;
  line-height: 20px;
  font-size: 0;
}
#condition label .box.active {
  font-size: 16px;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-content {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  max-width: 360px;
  position: relative;
}
.popup button {
  border: none;
  height: 40px;
  background-color: #745335;
  color: #fff;
  border-radius: 18px;
  padding: 7px 15px;
  margin: 5px 0;
  cursor: pointer;
}
.group {
  margin-bottom: 40px;
}
.group input {
  text-align: center;
}
#closePopup,
#closePopup1,
#closePopup2 {
  position: absolute;
  right: 10px;
  bottom: 10px;
  opacity: 0.7;
  font-size: 14px;
  line-height: 14px;
  margin: 0;
  height: 30px;
}

#closePopup2 {
  bottom: 5px;
}

#popup2 h4 {
  margin-bottom: 30px;
}
.money {
  width: 100%;
  text-align: center;
  margin: 0 auto;
}
.money img {
  width: 80px;
}
.money p {
  color: #745335;
}
.popup-content img {
  width: 100%;
  height: auto;
  display: block;
}
#popup1 h4 {
  margin-bottom: 30px;
}
.shake {
  animation: shake 1.6s infinite;
  transform-origin: center;
}
#condition {
  margin-bottom: 30px;
}

@keyframes shake {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  20% {
    transform: translate(-2px, 2px) rotate(-3deg);
  }
  40% {
    transform: translate(2px, -2px) rotate(3deg);
  }
  60% {
    transform: translate(-2px, -2px) rotate(-3deg);
  }
  80% {
    transform: translate(2px, 2px) rotate(3deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@media screen and (max-width: 1023px) {
  .main-content {
    max-width: 400px;
    width: 100%;
    max-height: none;
    display: flex;
    flex-direction: column;
  }
  .box-content {
    width: 100%;
    position: relative;
    order: 2;
  }
  .box-image {
    width: 100%;
    order: 1;
  }
  .footer {
    z-index: 0;
  }
  .box-content .content p {
    font-size: 17px;
  }
}
