body {
  margin: 0;
  padding: 0;
  font-family: 'times new roman', serif;
  background-color: black;
}

.main-card {
  max-width: 450px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 0 auto;
  background-color: white;
}

.greeting {
  margin-top: 40px;
  text-align: center;
  font-size: 30px;
}

.cover {
  max-width: 600px;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  padding: 20px;
  margin: 0 auto;
  background-image: url('../assets/img/frame-template.svg');
  background-repeat: no-repeat;
  background-size: 1005 100%;
  background-position: center;
  border-radius: 0;
  overflow: hidden;
  text-align: center;
}

.cover-section {
  position: relative;
  overflow: hidden;
  height: auto;
  min-height: 100vh;
  background-repeat: no-repeat;
  background-position: top center;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  background-size: 100% 100%;
  box-sizing: border-box;
  background: none;
  border-radius: 0 auto;
}

.cover-img {
display: block;
width: 100%;
height: 100vh;
object-fit: cover;
z-index: 1;
position: relative;
}

.cover-subtitle {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: black;
  text-align: center;
}

.cover-names {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  font-family: 'Times New Roman', Times, serif serif;
}

.cover-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cover-frames {
  position: relative;
  width: 100%;
  height: 100%;
  display: inline-block;
}

.framed-section {
  position: relative;
  min-height: 100vh; /* biar full layar */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  overflow: hidden;
}

.frame-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px; /* biar nggak kepanjangan */
  padding: 2rem;
  box-sizing: border-box;
  text-align: center;
}


.frame.corner {
  position: absolute;
  width: 400px;
  height: auto;
  pointer-events: none;
}

.top-left{top: 0; left:0;}
.top-right{top: 0; right: 0;}
.bottom-left{bottom: 0; left: 0;}
.bottom-right{bottom: 0; right: 0;}

.content {
  position: relative;
  z-index: 1; /* supaya teks di atas frame */
}

section {
  padding: 60px 0;
}

.couple-section{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 2rem 1rem;
}

.couple{
  text-align: center;
}

.couple-name{
  margin-top: 10px;
  font-weight: bold;
}

.couple-img{
width: 100%;
max-width: 150px;
height: auto;
border-radius: 12px;
margin-bottom: 10px;
}


.gallery{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 10rem;
}

.gallery img{
  width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


.galeri-section {
  text-align: center;
  padding: 40px 20px;
  background-color: transparent;
}

.galeri-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  font-family: 'Times New Roman', serif;
}

.galeri-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.galeri-container img {
  width: 100%;
  max-width: 180px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.galeri-container img:hover {
  transform: scale(1.05);
}

.couple img {
  width: 150px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.card {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  background-color: white;
  border-radius: 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.4s ease;
}


.card-body {
  padding: 2rem;
}

.card-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-text {
  font-size: 1.1rem;
  color: #333;
}

.btn-primary {
  background-color: #8A3E74;
  border: none;
}

.btn-primary:hover {
  background-color: #6d2f5b;
}


.pembuka-section {
  text-align: center;
  padding: 2rem 1rem;
}

.pembuka-text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #444;
  font-family: 'Georgia', serif;
}

.cover-card {
  background-color: rgb(15, 15, 15);
  padding: 2rem 1.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 450px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cover-img {
  width: 160px;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.countdown{ 
  display: flex;
  justify-content: space-around;
  margin: 1rem 0;
}

.countdown div {
  text-align: center;
}

.countdown span {
  font-size: 1.2rem;
  font-weight: bold;
}

.invitation-to{
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.open-button{
  position: relative;
  z-index: 2;
  padding: 8px 20px;
  background-color: #222;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  width: fit-content;
  min-width: 140px;
  max-width: 200px;
  margin-top: 1.5rem;
  transition: background-color 0.3s ease;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.open-button:hover {
background-color: #444;
}

.pembuka-section {
text-align: center;
padding: 1rem 2rem;
background-color: transparent;
}

.pembuka-text {
  font-size: 1.2rem;
  line-height: 1.6;
}

.card-cover {
  width: 90%;
  max-width: 400px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba (0,0,0,0.2);
  background-color: white;
  text-align: center;
}

.sound-toggle {
  position: fixed;
  bottom: 30px; /* Lebih turun dari sebelumnya */
  right: 20px;
  background-color: #000; /* hitam */
  color: white;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: background-color 0.3s;
}

.sound-toggle:hover {
  background-color: #222;
}

.sound-toggle span {
  font-size: 20px;
}

section {
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

section > div {
  padding: 32px 24px; 
}

section h2,
section h3,
section h4,
section p {
  text-align: center;
}

.salam {
  font-family: 'Times new roman', serif;  
  margin-top: 9rem;     
  font-size: 15px;                    
  text-align: center;                 
  margin-bottom: 20px;                     
  width: 100%;             
}

.judul-section {
  font-family: 'Times new roman', serif;
  font-weight: bold;  
  margin-top: 8rem;     
  font-size: 30px;                    
  text-align: center;                 
  margin-bottom: 15px;                     
  width: 100%;             
}

.penutup-acara {
  margin-bottom: 8rem;
}

.akad-nikah {
  margin-top: 8rem;
}

.galeri-kami {
  margin-top: 8rem;
  font-size: 30px;
}

.couple-name {
  font-family: 'Times new roman', serif;       
  font-size: 15px;                    
  text-align: center;                 
  margin: 0 auto;                     
  width: 100%;         
  font-weight: normal;               
}

.love-story-section {
  padding: 40px 20px;
  background-color: #fff8f5;
  text-align: center;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 40px;
  color: #5e4638;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: #c1a375;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 20px 40px;
  position: relative;
  background-color: transparent;
  width: 50%;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #c1a375;
  border: 3px solid #fff;
  z-index: 1;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.left::before {
  right: -8px;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-item.right::before {
  left: -8px;
}

.timeline-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  font-family: 'Open Sans', sans-serif;
}

.timeline-content h3 {
  margin-top: 0;
  color: #5e4638;
  font-size: 18px;
  font-weight: 600;
}

.timeline-content p {
  margin: 5px 0 0;
  color: #666;
  font-size: 14px;
}

.love-story-section {
  padding: 40px 20px;
  background-color: #fff;
  text-align: center;
}

.section-title {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 40px;
  margin-top: 3rem;
  font-family: 'Times New Roman', serif;
  color: black;
}

.story-timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.story-item {
  max-width: 600px;
  margin-bottom: 5rem;
  padding: 20px;
  border-left: 3px solid #2c2c2c;
  position: relative;
  background: #fdfaf6;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.story-date {
  font-size: 16px;
  color: #2c2c2c;
  font-weight: bold;
  margin-bottom: 10px;
}

.story-title {
  font-size: 20px;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
}

.story-description {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin: 40px auto;
  max-width: 300px;
  margin-bottom: 15rem;
}

.profile-card {
  border: 1px solid #999;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 7rem;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  background-color: #fefefe;
}

.profile-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin-bottom: 16px;
}

.profile-info .nama {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 6px;
}

.info-acara {
  display: inline-block;
  border: 1px solid #444;
  padding: 10px 20px;
  border-radius: 8px;
  background-color: #f4f4f4;
}

.info-acara p {
  margin: 8px 0;
  font-size: 16px;
  font-family: 'Times New Roman', serif;
}

.emoji {
  margin-right: 8px;
}

.section-box {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  margin-bottom: 40px; 
}

.section-title {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 8px;
}

.divider {
  border: none;
  border-top: 1px solid #ccc;
  margin-bottom: 12px;
}

.section-content p {
  margin: 4px 0;
  font-size: 16px;
}


.calendar-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #080808;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: 0.3s ease;
  text-align: center;
}

.calendar-button:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.calendar-icon {
  width: 20px;
  height: 20px;
  fill: white;
}

.location-section {
  padding: 40px 20px;
  background-color: #f9f9f9;
  border-radius: 16px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.location-section h2 {
  margin-top: 7px;
  margin-bottom: 8px;
  color: #333;
}

.location-section p {
  margin: 6px 0;
  font-family: "Times New Roman", serif;
}

.location-note {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}

.maps-button {
  display: inline-block;
  margin-top: 12px;
  margin-bottom: 20px;
  padding: 10px 20px;
  background-color: #050505;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  transition: background 0.3s;
}

.maps-button:hover {
  background-color: #fff;
}

.map-container {
  margin: 0 auto;
  margin-bottom: 10rem;
  border: 2px solid #ccc;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 700px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-acara {
  margin-top: 20px;
}

.frame-wrapper {
  position: relative;
}

.frame.corner {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.frame-wrapper > *:not(.frame) {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px){
  .couple-section{
    gap: 15px;
    padding: 1.5rem 1rem;
  }

  .couple img{
    max-width: 200px;
  }
}