:root {
    --text-color: #000;
    --text-color-white: #fff;
    --shadow: 5px 5px 5px rgba(94, 92, 94, 0.5);
    --button-background-color: #110f12;
    --background-color: #020205;
}

* {
    margin: 0;
    padding: 0;
    border: none;
    outline: 0;
    box-sizing: border-box;
    text-decoration: none;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

@font-face {
    font-family: "Breathing";
    src: url(assets/font/Breathing.ttf) format('truetype');
}

body {
    background-color: rgb(110, 109, 109);
    overflow-x: hidden;
    min-height: 100vh;
    font-family: Old Standard TT, sans-serif;
}

body.scroll-locked {
    overflow: hidden;
    height: 100%;
}

.huruf-sambung {
    font-family: Breathing, cursive;
}

.content-wrapper {
    position: relative;
    box-sizing: border-box;
    width: min(451px, 100%);
    margin: 0 auto;
    background-color: white;
    z-index: 1;
    justify-content: center;
}

section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 5rem 1.5rem;
}

/* navbar */
.navbar {
    padding-top: 0;
    padding-bottom: 0;
}

.navbar.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.navbar {
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

#main-nav {
    padding: 1.5rem 0;
}

.offcanvas-body a {
    font-size: 1.5rem;
}

/* hero css */

#hero,
#home {
    min-height: 100vh;
    width: 100%;
    height: 100%;
    background-image: url(assets/img/background.webp);
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero .cover,
.home .cover {
    /* Style untuk konten di dalam hero & home */
}

#hero.opened {
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

.hero .awal,
.home .awal {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero .huruf-sambung,
.home .huruf-sambung {
    font-size: 5.5rem;
    margin-bottom: 3rem;
}

.hero .alamat-undangan {
    font-size: 1.1rem;
}


.hero .nama-undangan {
    display: inline-block;
    font-size: 1.3rem;
    padding: 2.5rem;
    text-transform: uppercase;
}

.hero .btn-main {
    background-color: var(--button-background-color);
    color: var(--text-color-white);
    box-shadow: var(--shadow);
    margin: 2rem auto;
    border: solid 2px var(--text-color-white)
}

.hero .btn-main:hover {
    background-color: var(--text-color-white);
    color: var(--text-color);
}

/* home css */
.home .col-10 {
    margin-top: 12rem;
}

.home .ucapan {
    font-size: 1.5rem;
}

.container-menu {
    position: relative;
    width: 90%;
    max-width: 40rem;
    display: inline-block;
    margin-top: 8rem;
}

.menu-bg {
    display: block;
    width: 100%;
    height: auto;
}

.menu-icons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 1rem;
}

.menu-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: white;
    border-radius: 50%;
    color: black;
    font-size: 2rem;
    text-decoration: none;
}

.menu-icons a:hover {
    background-color: #ddd;
}

/* quote css */

#quote {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background: linear-gradient(to bottom, #2c2c2c, #000000);
}

.quote .col-10 {
    color: var(--text-color-white);
}

.quote .col-10.ucapan {
    margin-top: 42rem;
    font-size: 1.2rem;
}

.quote .col-10.huruf-sambung {
    margin-top: 3rem;
    font-size: 1.4rem;
}

.quote .quote-img {
    position: absolute;
    top: 8%;
    width: 35rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.quote .quote-img img {
    width: 100%;
    height: auto;
}

.quote-img .pengantin {
    color: var(--text-color);
    margin-top: -6.5rem;
    font-size: 3rem;
}

/* bride css */

#bride {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 120rem;
    height: 100%;
    width: 100%;
    background: linear-gradient(to bottom, #2c2c2c, #000000);
}

.bride .bride-img {
    position: absolute;
    top: 0;
    width: 35rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.bride .bride-img img {
    width: 100%;
    height: auto;
}

.bride .bride-img.cpp {
    top: 6%;
}

.bride .bride-img.cpw {
    top: 54%;
}
 
.bride-img .cpp,
.bride-img .cpw {
    color: var(--text-color-white);
}

.bride-img .cpp .huruf-sambung,
.bride-img .cpw .huruf-sambung {
    font-size: 2rem;
}

.bride-img .cpp .ucapan,
.bride-img .cpw .ucapan {
    font-size: 1.2rem;
    padding-top: .5rem;
}

.bride-img .cpp {
    text-align: right;
    margin-top: 2rem;
}

.bride-img .cpw {
    margin-top: 2rem;
}

.bride .ampersand {
    color: var(--text-color-white);
    font-size: 6rem;
    top: 50%;
    transform: translateY(-50%);
}

/* acara css */
#acara {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100%;
    width: 100%;
    background: linear-gradient(to bottom, #ffffff 0%, #bdbdbd 50%, #424242 100%);
}

.acara .title {
    color: var(--text-color);
    margin-top: -12rem;
}

.title1 {
    font-size: 5rem;
    font-weight: lighter;
    z-index: 2;
}

.title2 {
    font-size: 2.7rem;
    margin-top: -2.2rem;
    font-weight: bolder;
    z-index: 3;
}

.isi-acara.card {
    margin: 1rem;
}

.card-container {
    position: relative;
}

.card-container::before {
    content: "";
    position: absolute;
    top: 1px;
    bottom: 1px;
    width: 2px;
    height: auto;
    background-color: var(--background-color);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.sub-judul {
    font-size: 2rem;
    padding: 1.5rem;
}

.jadwal {
    font-size: 1.2rem;
}

.card-footer {
    font-size: 1.5rem;
    padding: 2rem;
}

.card-footer span {
    font-size: 2rem;
}

.btn-lokasi {
    background-color: var(--button-background-color);
    color: var(--text-color-white);
    box-shadow: var(--shadow);
    margin-top: 1rem;
}

/* galeri css */
#galeri {
    position: relative;
    min-height: 100vh;
    height: auto; 
    padding-top: .5rem;
    padding-bottom: .5rem;
    align-items: flex-start;
    justify-content: center;
    display: flex;
    width: 100%;
    background: linear-gradient(to bottom, #000000, #2c2c2c);
}

#galeri img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#galeri a:hover img {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.galeri .title1,
.galeri .title2 {
    color: var(--text-color-white);
}

/* gift css */
#gift {
    position: relative;
    min-height: 100vh;
    height: auto; 
    padding-top: .5rem;
    padding-bottom: .5rem;
    align-items: flex-start;
    justify-content: center;
    display: flex;
    width: 100%;
    background: linear-gradient(to bottom, #ffffff 0%, #bdbdbd 50%, #424242 100%);
}

.gift .ucapan {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.gift .card {
    background: linear-gradient(to bottom, #f5f5f5, #ffffff);
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 12px;
}

.gift .card-body {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gift .card-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.gift .card-subtitle {
    font-size: 1.3rem;
}

.gift .card-text {
    font-size: 1.5rem;
    padding: 1rem 0;
    flex-grow: 1;
}

.gift .logoKartu {
    position: relative;
    width: 6rem;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}

.gift .btn {
    background-color: #333;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.2rem;
    padding: 0.8rem;
    border-radius: 5px;
    margin-top: 1rem;
}

.gift .btn:hover {
    background-color: #555;
}

/* doa css */
#doa {
    position: relative;
    min-height: 100vh;
    height: auto; 
    padding-top: .5rem;
    padding-bottom: .5rem;
    align-items: flex-start;
    justify-content: center;
    display: flex;
    width: 100%;
    background: linear-gradient(to bottom, #000000, #2c2c2c);
}

.doa .col-10 {
    color: var(--text-color-white);
}

.doa .arab {
    font-size: 2.2rem;
    margin: 2rem auto;
}

.doa p {
    font-size: 2rem;
}

.doa .riwayat {
    font-size: 1.8rem;
    font-weight: bolder;
}

/* rsvp css */
#rsvp {
    position: relative;
    min-height: 100vh; 
    padding: 3rem 0;
    height: auto;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #ffffff 0%, #bdbdbd 50%, #424242 100%);
}

.rsvp-box {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.rsvp-box .rsvp-intro {
    font-size: 1.5rem;
    color: #555;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.rsvp .btn-rsvp {
    background-color: var(--button-background-color);
    color: var(--text-color-white);
    box-shadow: var(--shadow);
    border: solid 1px var(--text-color-white);
    padding: 1rem 2rem;
    font-size: 1.4rem;
}

.rsvp .btn-rsvp:hover {
    background-color: var(--text-color-white);
    color: var(--text-color);
    border: solid 1px var(--text-color);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 2.5rem 3rem;
  border: 1px solid #ddd;
  width: 90%;
  max-width: 451px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
  animation: slide-in 0.5s ease-out;
}
/* ucapan css */
#ucapan-doa {
    position: relative;
    min-height: 100vh; 
    padding: 3rem 0;
    height: auto;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #000000, #2c2c2c);
}
.ucapan-doa .title {
    color: var(--text-color-white);
}

.ucapan-doa p {
    font-size: 1.5rem;
}

.ucapan-list {
    max-height: 40rem;
    overflow-y: auto;
    padding: 1rem;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ucapan-item {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.ucapan-item:last-child {
    border-bottom: none;
}

.ucapan-item .nama-pengirim {
    font-weight: bold;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.ucapan-item .pesan-ucapan {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 0;
    font-style: italic;
}

.ucapan-item .pesan-ucapan::before {
    content: '"';
}
.ucapan-item .pesan-ucapan::after {
    content: '"';
}

.loading-text {
    font-size: 1.5rem;
    color: #888;
}


@keyframes slide-in {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close {
  color: #aaa;
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 2.8rem;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.rsvp-container .form-label {
  font-weight: bold;
  font-size: 1.4rem;
  color: #333;
  margin-bottom: .8rem;
  display: block;
  text-align: left;
}

.rsvp-container .form-control,
.rsvp-container .form-select {
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 1rem;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.rsvp-container .form-control:focus,
.rsvp-container .form-select:focus {
  border-color: #555;
  box-shadow: 0 0 0 2px rgba(85, 85, 85, 0.2);
  outline: none;
}

#my-form .btn {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.5rem;
  background-color: var(--button-background-color);
  color: var(--text-color-white);
  border: none;
  transition: background-color 0.3s ease;
}

#my-form .btn:hover {
  background-color: #333;
}

/* penutup css */
#penutup {
    position: relative; 
    min-height: 100vh;
    padding: 3rem 0;
    height: auto;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #ffffff 0%, #bdbdbd 50%, #424242 100%);
}

.penutup .title p {
    font-size: 1.6rem;
}

.penutup .namaAkhir{
    margin: 5rem 0;
}

.penutup .namaAkhir p {
    font-size: 2rem;
}

.penutup .namaAkhir h1 {
    font-size: 5.5rem;
    padding-top: 1.5rem;
}

.penutup .ot p {
    font-size: 1.2rem;
}

.penutup .ot h3 {
    font-size: 1.5rem;
}

footer {
    padding: 2rem;
    background-color: var(--background-color);
}
footer .block {
    color: var(--text-color-white);
}
footer a {
    color: var(--text-color-white);
    font-weight: 700;
}
footer a:hover {
    color: gray;
}
footer li {
    list-style: none;
    display: inline;
    margin: 0.5rem;
}

.audio-icon-wrapper {
    width: 3rem;
    height: 3rem;
    font-size: 3rem;
    position: fixed;
    bottom: 2.5rem;
    right: 2rem;
    z-index: 10;
    cursor: pointer;
    color: var(--text-color-white);
    opacity: 0.7;
    mix-blend-mode: difference;
    animation: 4s linear infinite discRotate;
    transform-origin: center;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 0;
}

@keyframes discRotate {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}





@media (max-width: 768px) {
   #hero,
   #home {
    background-attachment: scroll;
   }

   .sticky-top {
        overflow: hidden;
    }
}

@media (max-width: 520px) {
   
}

@media (max-width: 462px) {
   html {
    font-size: 65%;
   }
   #hero,
   #home {
    background-attachment: scroll;
   }

    .menu-icons {
        gap: .5rem;
   }
   .menu-icons a {
        width: 3.5rem;
        height: 3.5rem; 
   }
   .sub-judul {
        font-size: 1.8rem;
   }
   .jadwal {
        font-size: 1.1rem;
   }
   .card-footer {
        font-size: 1.2rem;
   }
   .quote .col-10.ucapan {
    font-size: 1.6rem;
   }

   .quote .col-10.huruf-sambung {
    font-size: 1.8rem;
   }

   .galeri .title,
   .gift .title,
   .ucapan-doa .title {
    margin-top: 3.5rem;
   }

   .doa .arab {
    font-size: 1.8rem;
   }

   .doa p {
    font-size: 1.6rem;
   }

   .penutup .title p {
    font-size: 1.4rem;
   }
    .penutup .ot p {
        font-size: 1.5rem;
   }
}

@media (max-width: 377px) {
   html {
        font-size: 60%;
   }
   #hero,
   #home {
        background-attachment: scroll;
   }

   .quote .col-10.ucapan {
    font-size: 1.4rem;
   }

   .quote .col-10.huruf-sambung {
        margin-top: 1.3rem;
   }

   .sub-judul {
        font-size: 1.6rem;
   }

   .jadwal {
        font-size: 1.1rem;
   }

   .card-footer {
        font-size: 1.3rem;
   }

   .gift .ucapan {
    font-size: 1.8rem;
   }

   .rsvp p {
    font-size: 2rem;
   }

   .penutup .title p {
    font-size: 1.4rem;
   }
    .penutup .ot p {
        font-size: 1.5rem;
   }

}





