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

body {
  /* background-color: #3d0200; */
  background-color: #510300;
  /* This is mostly intended for prototyping; please download the pattern and re-host for production environments. Thank you! */
  display: flex;
  flex-direction: row;
}

#desktop {
  width: 75%;
  height: 100vh;
  background-color: #3d0200;
  background-image: url("assets/photo_grid/desktop_bg.webp");
  background-size: cover;
  position: relative;
}

.ovrly {
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  position: absolute;
  top: 0;
  left: 0;
}

.ovrly h1 {
  font-family: "Jim Nightshade", cursive;
  font-weight: 400;
  font-size: 6rem;
  color: #f2e2c4;
  text-align: right;
  margin-right: 15%;
  margin-top: 10vh;
}

#main {
  width: 35%;
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}

#main.cover-open {
  overflow: hidden;
}

#main::-webkit-scrollbar {
  display: none;
}

.section-card {
  background-color: #f2e2c4;
  /* background-color: #ffe4e3; */
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.paper-textured {
  background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
}

#welcome {
  background-color: transparent;
  background-image: url("https://www.transparenttextures.com/patterns/xv.png");
  color: #f2e2c4;
  flex-direction: column;
}

#welcome h3 {
  font-family: "Jim Nightshade", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 2rem;
}

#welcome h2 {
  font-family: "Jim Nightshade", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 4rem;
}

.wlcm-corner {
  height: 15vh;
  position: absolute;
}

.wcr-bl {
  bottom: 8px;
  left: 8px;
}

.wcr-tl {
  top: 8px;
  left: 8px;
  transform: rotate(90deg);
}

.wcr-tr {
  top: 8px;
  right: 8px;
  transform: rotate(180deg);
}

.wcr-br {
  bottom: 8px;
  right: 8px;
  transform: rotate(270deg);
}

#guest-book {
  font-family: "Jim Nightshade", cursive;
  color: #510300;
  flex-direction: column;
  align-items: center;
}

#guest-book h2 {
  font-weight: 400;
  font-style: normal;
  font-size: 2rem;
  margin-bottom: 2vh;
}

#guest-book-frm {
  margin: 0px auto;
  width: max-content;
  display: flex;
  flex-direction: column;
}

.frm-block {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
}

.frm-block label,
.frm-block .frm-label {
  text-align: left;
  width: 80px;
  cursor: pointer;
}

.radio-options {
  display: flex;
  gap: 2px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
}

.frm-block input {
  font-family: "Jim Nightshade", cursive;
  color: #510300;
  font-size: 1.2rem;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #3d0200;
  cursor: pointer;
}

.frm-block textarea {
  font-family: "Jim Nightshade", cursive;
  color: #510300;
  font-size: 1.2rem;
  background-color: transparent;
  border: 1px solid #3d0200;
  padding: 8px;
  border-radius: 8px;
  flex-grow: 1;
}

#loader {
  font-family: "Jim Nightshade", cursive;
  color: #3d0200;
  background-color: #f2e2c4;
  position: absolute;
  right: 0;
  height: 100vh;
  width: 35%;
  z-index: 999;
  display: flex;
  gap: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
}

#covercard {
  display: block;
  height: 85vh;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  /* background-color: #ffe4e3; */
  background-color: #f2e2c4;
  background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
  z-index: 99;
  overflow-x: clip;
}

.center-cover-bg {
  /* position: absolute; */
  width: 45%;
  margin-bottom: 4rem;
}

.fs-ovrly {
  width: 100%;
  position: absolute;
}

.top-part {
  top: 0;
}

.mid-part {
  height: 100%;
}

.btm-part {
  bottom: 0;
}

.cvr-male-puppet {
  height: 45vh;
  position: absolute;
  top: 0;
  left: -15%;
  opacity: 0.4;
}

.cvr-female-puppet {
  height: 40vh;
  position: absolute;
  top: 1vh;
  right: 40%;
  transform: translateX(100%);
  opacity: 0.4;
}

.cvr-memend {
  position: absolute;
  top: 0;
  height: 12vh;
}

.cvr-surya {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 12vh;
}

.memend-l {
  left: -3vh;
}

.memend-r {
  right: -3vh;
  transform: scaleX(-1);
}

.cvr-parang {
  height: 10vh;
  width: 120%;
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0px 6px 6px rgba(0, 0, 0, 0.6);
}

.cvr-bottom-border {
  height: 8vh;
  width: 100%;
  position: absolute;
  bottom: 8px;
  /* border-top: 1px solid #3d0200; */
  background-image: url("assets/parang_1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cvr-date {
  font-family: "Jim Nightshade", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 1.2rem;
  /* color: #e0b251; */
  text-align: center;
  color: #a70500;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4);
  position: absolute;
  top: 13vh;
  left: 50%;
  transform: translateX(-50%);
}

#hex-sign {
  width: 90%;
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  top: 10vh;
  left: 50%;
  transform: translate(-50%, 0);
  text-align: center;
  font-family: "Jim Nightshade", cursive;
  font-weight: 400;
}

.cvr-name-m {
  position: absolute;
  top: 3vh;
  left: 5%;
  font-family: "Cherish", cursive;
  font-weight: 400;
  font-size: 3.5rem;
  line-height: 3rem;
  color: #a70500;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4);
}

.cvr-name-f {
  position: absolute;
  top: 3vh;
  right: 5%;
  font-family: "Cherish", cursive;
  font-weight: 400;
  font-size: 3.5rem;
  line-height: 3rem;
  color: #a70500;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4);
}

#hex-sign h2 {
  font-size: 3rem;
  font-weight: 800;
  /* letter-spacing: 8px; */
  color: #7e0804;
}

#hex-sign span {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 8px;
  color: #a70500;
}

.bttn-red {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  position: absolute;
  bottom: 14vh;
  color: white;
  background-color: #7e0804;
  padding: 8px 20px;
  border-radius: 25px;
  left: 50%;
  transform: translateX(-50%);
  height: 50px;
}

.bttn-red-send {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  color: white;
  background-color: #7e0804;
  padding: 8px 10px;
  border-radius: 25px;
  border: none;
  margin-top: 10px;
  cursor: pointer;
}

.top-seal-container {
  height: 80px;
  width: 80px;
  /* background-color: #a70500; */
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
}

#seal-full {
  width: 100%;
  /* position: absolute;
  bottom: 15vh;
  left: 50%;
  transform: translateX(-50%); */
}

.btm-box {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: #53433c;
  background-image: url("https://www.transparenttextures.com/patterns/skulls.png");
  height: 15vh;
  z-index: 1;
  box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.6);
}

.btm-seal-container {
  position: absolute;
  top: 0;
  height: 50px;
  /* padding: 0px 20px; */
  left: 50%;
  transform: translate(-50%, 10px);
}

.btm-seal-container img {
  height: 100%;
}

.vertical-decor-top {
  width: 60%;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.vertical-decor-btm {
  width: 60%;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
}

.def-txt-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.def-txt-non-red {
  text-align: center;
  font-size: 1.2rem;
  color: #53433c;
}

.def-txt-cream {
  text-align: center;
  font-size: 1.2rem;
  font-family: "Jim Nightshade", cursive;
  color: #f2e2c4;
}

.def-txt {
  text-align: center;
  font-size: 1.2rem;
  font-family: "Jim Nightshade", cursive;
  color: #510300;
  z-index: 1;
}

#couple-card {
  flex-direction: column;
  height: 100vh;
  position: relative;
}

.cpl-container {
  width: 100%;
  height: 25vh;
  margin: 30px 0px;
  display: flex;
  align-items: center;
  z-index: 1;
}

.cpl-male {
  margin-left: 20%;
}

.cpl-female {
  margin-right: 20%;
}

.pp_container {
  height: 180px;
  width: 130px;
  background-color: #53433c;
  position: relative;
  border-radius: 10px;
}

.pp_male {
  background-image: url("assets/male.webp");
  background-size: cover;
  background-position: center;
}

.pp_female {
  background-image: url("assets/female.webp");
  background-size: cover;
  background-position: center;
}

.text-logo {
  font-family: "Cherish", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 2.5rem;
  color: #510300;
}

.pp_container img {
  position: absolute;
  width: 180px;
  height: 220px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cpl-info {
  flex-grow: 2;
  font-family: "Jim Nightshade", cursive;
  color: #510300;
}

.cpl-info-m {
  margin-left: 40px;
}

.cpl-info-f {
  margin-right: 40px;
  text-align: right;
}

.cpl-info h2 {
  font-size: 1.8rem;
}

.cpl-info span {
  font-size: 1.2rem;
}

.cpl-info p {
  font-size: 1.3rem;
}

.img-bg {
  height: 80%;
  width: 80%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.img-bg-gng {
  width: 80%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#event-date-card {
  flex-direction: column;
  justify-content: start;
  font-family: "Jim Nightshade", cursive;
  color: #510300;
  min-height: 800px;
}

#event-date-card h2 {
  font-size: 2.5rem;
}

#event-date-card p {
  font-size: 1.4rem;
  text-align: center;
}

.spacer {
  width: 100%;
  height: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0px;
}

.spacer img {
  width: 50%;
}

#btn-map {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  color: white;
  background-color: #7e0804;
  padding: 8px 20px;
  border-radius: 25px;
  width: max-content;
  margin: 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

#btn-alarm {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  color: #7e0804;
  background-color: #f2e2c4;
  padding: 8px 20px;
  border-radius: 25px;
  margin: 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

#save-date {
  background-color: transparent;
  background-image: url("https://www.transparenttextures.com/patterns/xv.png");
  color: #f2e2c4;
  height: 50vh;
  flex-direction: column;
  gap: 2vh;
}

#countdown {
  width: 80%;
  display: flex;
  justify-content: space-between;
}

.ctdwn-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.angka {
  font-size: 3rem;
}

#messages {
  background-color: transparent;
  background-image: url("https://www.transparenttextures.com/patterns/xv.png");
  color: #f2e2c4;
  font-family: "Jim Nightshade", cursive;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  height: max-content;
  padding-bottom: 10vh;
}

.closing-ornament {
  position: absolute;
  width: 110%;
  bottom: -40px;
}

#galery {
  font-family: "Jim Nightshade", cursive;
  color: #510300;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  padding-bottom: 15vh;
  height: max-content;
}

#galery h2 {
  font-size: 2rem;
  margin-top: 2rem;
}

#photo-grid {
  margin-top: 5vh;
  z-index: 1;
  width: 90%;
  display: flex;
  justify-content: space-around;
}

.pg-col {
  /* height: 150vh; */
  width: 48%;
  display: flex;
  flex-direction: column;
  /* background-color: #3d0200; */
  /* opacity: 0.4; */
}

.pg-col img {
  width: 100%;
  border-radius: 12px;
  margin: 4px 0px;
}

#messages h2 {
  font-size: 2rem;
  margin-top: 10vh;
  margin-bottom: 3vh;
}

#chat-container {
  min-height: 60vh;
  max-height: 90vh;
  padding: 2rem 1rem;
  width: 90%;
  border: 2px solid #f2e2c4;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  overflow-y: scroll;
  -ms-overflow-style: none;
}

#chat-container::-webkit-scrollbar {
  display: none;
}
.chat-bubble {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.chat-bubble p {
  font-size: 1.4rem;
}

.cb-avatar {
  height: 40px;
  width: 40px;
  background-color: #f2e2c4;
  background-image: url("assets/ava.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;
  border-radius: 50%;
}

.cb-name {
  margin-left: 8px;
}

.cb-message {
  position: relative; /* Required so the tail positions relative to this box */
  min-height: 60px;
  width: 100%;
  background-color: #f2e2c4;
  margin-top: 14px;
  margin-left: 14px;
  border-radius: 8px;
  padding: 12px;
}

.cb-message::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 21px;
  width: 0;
  height: 0;
  border-right: 18px solid transparent;
  border-bottom: 14px solid #f2e2c4;
}

.cb-message p {
  font-size: 1.2rem;
  color: #3d0200;
}

.cb-text-message {
  white-space: pre-line;
}

.cb-date {
  font-size: 0.8rem;
  color: #444;
  text-align: right;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

.spinner-loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: #3d0200;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

input[type="checkbox"] {
  accent-color: #3d0200;
}

#play-button {
  position: fixed; /* Keeps button anchored in corner on scroll */
  bottom: 0;
  right: -80px;
  margin: 10px;
  height: 30px;
  width: 30px;
  background-color: #3d0200;
  border: 1px solid #ffffff;
  border-radius: 50%;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Mobile View */

@media (max-width: 900px) {
  #desktop {
    display: none;
  }

  #main,
  #loader {
    width: 100%;
    height: 100vh;
  }

  #couple-card {
    height: max-content;
    padding: 10vh 0;
  }

  .cpl-container {
    flex-direction: column;
    height: max-content;
  }

  .cpl-female {
    flex-direction: column-reverse;
    margin-right: 0;
  }

  .cpl-male {
    margin-left: 0;
  }

  .pp_container {
    margin-bottom: 20px;
  }

  .cpl-info-m {
    margin-left: 0;
    text-align: center;
  }

  .cpl-info-f {
    margin-right: 0;
    text-align: center;
  }
}

@media (min-width: 900px) {
  #main,
  #loader {
    min-width: 500px;
  }
  #countdown {
    justify-content: space-evenly;
  }
  .img-bg-gng {
    width: 60%;
  }
}
