:root {
  --pink: #f14e95;
  --bg: #0a0a0a;
  --shadow: 0 2px 2px rgba(0 0 0 / 0.5);
  --transparant: rgba(0, 0, 0, 0.319);
}
body {
  font-size: 1.2rem;
  font-family: 'Work Sans', sans-serif;
  min-height: 4000px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(img/proposal.jpeg);
  background-size: cover; /* Create an image that covers the hero area */
  background-repeat: no-repeat; /* Prevent repeated images */
  background-position: center top; /* Anchor to the top so the top isn't cropped */
  z-index: -1;
  /* filter: grayscale(); */
}
.hero {
  position: relative;
  min-height: 100vh;
  background-color: var(--transparant);
}
.hero h1,
.hero h4,
.hero p {
  text-shadow: var(--shadow);
}
.hero h1 {
  font-family: 'Sacramento', cursive;
  font-weight: 6rem;
  font-size: 6rem;
  margin-top: 30px;
}
.hero h4 {
  font-size: 1.6rem;
}
.hero p {
  font-size: 1.4rem;
}
.hero a {
  color: var(--pink);
  background-color: aliceblue;
  box-shadow: var(--shadow);
}
.hero a:hover {
  background-color: var(--pink);
  color: aliceblue;
}

/* .mynavbar */
.mynavbar {
  background-color: rgba(225, 225, 225, 0.4) !important;
}
/* Apply the blur only at >=md, where the navbar is expanded inline. Below md the
   menu is a position:fixed offcanvas; backdrop-filter on this ancestor would make
   .mynavbar the offcanvas's containing block and clip/break it on small screens. */
@media (min-width: 768px) {
  .mynavbar {
    backdrop-filter: blur(4px);
  }
}
.mynavbar .offcanvas {
  height: 100vh;
}
/* On mobile (below md, where the menu is a slide-in offcanvas) make the panel
   cover only 20% of the screen width instead of the default 400px. */
@media (max-width: 767.98px) {
  .mynavbar .offcanvas {
    --bs-offcanvas-width: 35%;
  }
}
.mynavbar .navbar-brand,
.mynavbar .offcanvas-title {
  font-family: 'Sacramento', cursive;
  font-size: 3.2rem;
  font-weight: bold;
}
.mynavbar .nav-link {
  text-transform: uppercase;
}
.sticky-top {
  overflow: hidden;
}
.home {
  background-image: url(img/35a7c1b3-9ca6-4289-aa32-55610d0c2452.jpg);
  background-size: cover;
  background-position: center top; /* Anchor to the top so the top isn't cropped */
  min-height: 100vh;
  margin-top: -6rem;
  padding-top: 15rem;
  padding-bottom: 5rem;
}

.home h2{
  color: var(--grey);
  font-family: 'Sacramento';
  font-size: 5rem;
  font-weight: bold;
}

.info h2,
.story h2,
.gallery h2,
.rsvp h2 {
  color: var(--pink);
  font-family: 'Sacramento';
  font-size: 5rem;
  font-weight: bold;
}
.home h2 {
  margin-top: -6rem;
}
.home h3 {
  color: #444;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.home p {
  font-size: 1.1rem;
  color: #666;
}

.home .couple {
  margin-top: 75px;
  position: relative; /* anchor the .heart to this row at every screen size */
}
.home .couple h3 {
  font-family: 'Sacramento';
  font-size: 3rem;
  font-weight: bold;
  color: var(--grey);
}
.home .couple img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.home .heart {
  width: 50px;
  height: 50px;
  background-color: white;
  display: flex;
  border-radius: 50%;
  box-shadow: var(--shadow);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* centered between the two images on all screens */
  z-index: 2;
}
.home .heart i {
  margin: auto;
  color: var(--pink);
}

/* info */
.info {
  background-color: var(--bg);
  color: azure;
  padding-top: 10rem;
  padding-bottom: 8rem;
}
.info .alamat {
  font-size: 1.1rem;
}
.info .description {
  font-size: 1rem;
  font-weight: 300;
}
.info .card {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  border: 1px solid #999;
}
.info .card-header {
  border-bottom: 1px solid #999;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}
.info .card-body {
  font-size: 1rem;
}
.info .card-footer {
  border-top: 1px solid #999;
  font-size: 0.9rem;
  font-weight: 300;
}

/* story */
.story,
.gallery,
.rsvp {
  padding-top: 10rem;
  padding-bottom: 8rem;
}
/* Tighten only the gap between Story (timeline) and Gallery — this is the
   bottom of Story and the top of Gallery, so no other section is affected. */
.story {
  padding-bottom: 2rem;
}
.story span,
.gallery span {
  text-transform: uppercase;
  color: #666;
  font-size: 0.9rem;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 1rem;
}
.story p,
.gallery p,
.rsvp p {
  font-size: 1rem;
  font-weight: 300;
}
.timeline {
  list-style: none;
  padding: 1.4rem 0;
  margin-top: 1rem;
  position: relative;
}
.timeline::before {
  content: '';
  top: 0;
  bottom: 0;
  position: absolute;
  width: 1px;
  background-color: #a4a2a2;
  left: 50%;
}
.timeline li {
  margin-bottom: 1.5rem;
  position: relative;
  display: flow-root; /* contain floats without clipping the image */
  min-height: 175px; /* reserve room so the circular image isn't overlapped */
}
.timeline::before,
.timeline::after {
  content: '';
  display: table;
}
.timeline::after {
  clear: both;
}
.timeline li .timeline-image {
  width: 160px;
  height: 160px;
  background-color: #ccc;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.timeline li .timeline-panel {
  width: 40%;
  float: left;
  padding: 2rem;
  position: relative;
}
.timeline li.timeline-inverted .timeline-panel {
  float: right;
}

/* gallery */
.gallery {
  background-color: #f5f5f538;
  padding-top: 2rem;
}

/* rsvp */
.rsvp {
  background-color: var(--bg);
}
.rsvp h2 {
  font-size: 4.5rem;
}
.rsvp p {
  color: white;
}
.rsvp form label {
  color: white;
}
.rsvp button {
  background-color: var(--pink);
  color: white;
  border: 1px solid var(--pink);
}
.rsvp button:hover {
  background-color: white;
  color: var(--pink);
  border: 1px solid white;
}

/* RSVP confirmation popup */
.rsvp-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1090;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.rsvp-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.rsvp-modal {
  background-color: #fff;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
  transform: translateY(1.5rem) scale(0.96);
  transition: transform 0.25s ease;
}
.rsvp-modal-overlay.show .rsvp-modal {
  transform: translateY(0) scale(1);
}
.rsvp-modal-icon {
  font-size: 3rem;
  line-height: 1;
  color: var(--pink);
  margin-bottom: 0.5rem;
}
.rsvp-modal-title {
  font-family: 'Sacramento', cursive;
  font-size: 3.5rem;
  font-weight: bold;
  color: var(--pink);
  margin-bottom: 0.75rem;
}
.rsvp-modal-message {
  color: #444;
  font-size: 1.15rem;
  font-weight: 300;
  margin-bottom: 1.75rem;
}
.rsvp-modal-close {
  background-color: var(--pink);
  color: #fff;
  border: 1px solid var(--pink);
  padding: 0.5rem 2rem;
}
.rsvp-modal-close:hover {
  background-color: #fff;
  color: var(--pink);
}

@keyframes muter {
  form {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

/* media query */
/* extra large */
@media (max-width: 1200px) {
  .timeline li {
    min-height: 210px;
  }
  .timeline li .timeline-image {
    left: 25px;
    margin-left: 85px;
    width: 190px;
    height: 190px;
  }
  .timeline li .timeline-panel {
    width: 70%;
    float: right;
    transform: translateX(-25px);
  }
  .timeline li .timeline-panel::before {
    border-left-width: 0;
    border-right-width: 15px;
    left: -15px;
    right: auto;
    top: 30px;
  }
  .timeline li .timeline-panel::after {
    border-left-width: 0;
    border-right-width: 14px;
    left: -13px;
    right: auto;
    top: 31px;
  }
}
/* laptop */
@media (max-width: 992px) {
  html {
    font-size: 75%;
  }
  .simply-countdown-circle > .simply-section {
    padding: 70px;
  }
  .timeline::before {
    left: 60px;
  }
  .timeline li {
    min-height: 175px;
  }
  .timeline li .timeline-image {
    left: 15px;
    margin-left: 70px;
    width: 155px;
    height: 155px;
  }
  .timeline li .timeline-panel {
    width: 70%;
    float: right;
    transform: translateX(-15px);
  }
  .timeline li .timeline-panel::before {
    border-left-width: 0;
    border-right-width: 15px;
    left: -15px;
    right: auto;
    top: 30px;
  }
  .timeline li .timeline-panel::after {
    border-left-width: 0;
    border-right-width: 14px;
    left: -13px;
    right: auto;
    top: 31px;
  }
}

/* tablet */
@media (max-width: 768px) {
  html {
    font-size: 65%;
  }
  .simply-countdown-circle > .simply-section {
    padding: 30px;
    margin: 4px;
  }
  .mynavbar .nav-link {
    font-size: 1.5rem;
    text-align: center;
  }
  .timeline li {
    min-height: 140px;
  }
  .timeline li .timeline-image {
    width: 110px;
    height: 110px;
    left: 0;
    top: 15px;
  }
  .timeline li .timeline-panel {
    width: 70%;
    transform: translateX(-8px);
  }
  .timeline li .timeline-panel::before {
    top: 30px;
  }
  .timeline li .timeline-panel::after {
    top: 31px;
  }
}

/* mobile phone */
@media (max-width: 576px) {
  html {
    font-size: 60%;
  }
  .home .heart {
    width: 38px;
    height: 38px;
  }
  /* Shrink the countdown circles so all four fit on one row. The #countdown ID
     is needed to out-specify circle.css, which is loaded after style.css and
     otherwise wins the cascade tie with its fixed 100px size. */
  #countdown {
    gap: 1rem;
  }
  #countdown > .simply-section {
    width: 85px;
    height: 85px;
    padding: 0.5rem;
    margin: 0;
  }
  .timeline li .timeline-image {
    width: 115px;
    height: 115px;
    left: 0;
    top: 5px;
  }
  .timeline li .timeline-panel {
    width: 55%;
    transform: translateX(-20px);
    padding: 2%;
  }
  .timeline li .timeline-panel::before {
    top: 30px;
  }
  .timeline li .timeline-panel::after {
    top: 31px;
  }
}

/* small mobile phone */
@media (max-width: 460px) {
  html {
    font-size: 55%;
  }
  .home .heart {
    width: 32px;
    height: 32px;
  }
  #countdown {
    gap: 0.6rem;
  }
  #countdown > .simply-section {
    width: 72px;
    height: 72px;
    padding: 0.4rem;
    margin: 0;
  }
  #countdown > .simply-section::before {
    inset: 4px;
  }
  .timeline li {
    min-height: 110px;
  }
  .timeline li .timeline-image {
    width: 90px;
    height: 90px;
    left: 0;
    top: 1.5px;
  }
  .timeline li .timeline-panel {
    width: 60%;
    transform: translateX(-15px);
    padding: 1.5%;
  }
  .timeline li .timeline-panel::before {
    top: 28px;
  }
  .timeline li .timeline-panel::after {
    top: 29px;
  }
}

@media (max-width: 380px) {
  .home .heart {
    width: 28px;
    height: 28px;
  }
  .simply-countdown-circle {
    gap: 0.4rem;
  }
  .simply-countdown-circle > .simply-section {
    width: 60px;
    height: 60px;
    padding: 0.25rem;
    margin: 0;
  }
  .simply-countdown-circle > .simply-section::before {
    inset: 4px;
  }
  .timeline li .timeline-image {
    width: 80px;
    height: 80px;
    left: 0;
    top: 12px;
  }

  .timeline li .timeline-panel {
    width: 55%;
    transform: translateX(-15px);
    padding: 0.6%;
  }
  .timeline li .timeline-panel .timeline-heading h3,
  .timeline li .timeline-panel .timeline-heading span {
    padding: 0.5%;
  }
  .timeline li .timeline-panel .timeline-body p {
    font-size: 80%;
  }
}
