:root {
  /* color  */
  --pink: #f14e95;
  --white: rgba(255, 255, 255, 0.9);
  --bg-color: rgb(26, 26, 26);
  /* font  */
  --sacramento: "Sacramento", cursive;
  --work-sans: "Work Sans", sans-serif;

  /* special attribute  */
  --shadow: 0 2px 2px rgba(10, 10, 10, 0.671);
}

/* 
  
  main  
  
  */

body {
  font-size: 1.2rem;
  font-family: var(--work-sans);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(img/bg-pict.png);
  z-index: -1;
  filter: brightness(30%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero {
  min-height: 100vh;
}

.hero h1 {
  font-family: var(--sacramento);
  font-size: 6rem;
}

.hero h4 {
  font-size: 1.6rem;
}

.hero p {
  font-size: 1.4rem;
}

.hero a {
  color: var(--pink);
  background-color: var(--white);
  margin-top: 1rem;
  box-shadow: var(--shadow);
  font-weight: 600;
}

.hero a:hover {
  color: var(--white);
  background-color: var(--pink);
}

.hero h1,
.hero h4,
hero p {
  text-shadow: var(--shadow);
}

/* 


navbar  


*/

.my-navbar {
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(3px);
}

.my-navbar .navbar-brand {
  font-family: var(--sacramento);
  font-size: 3.2rem;
  font-weight: bold;
}

.my-navbar .navbar-nav .nav-link {
  font-weight: bold;
  font-family: var(--work-sans);
  text-transform: uppercase;
  padding-left: 0.5rem;
}

/* 


home section  


*/

.home {
  min-height: 100vh;
  margin-top: -6.4rem;
  padding: 10rem 0;
}

.home::before {
  background-image: url(img/bg-home.png);
  background-size: cover;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 100vh;
  left: 0;
  z-index: -1;
  opacity: 0.3;
}

.home h2,
.info h2,
.story h2,
.gallery h2,
.rsvp h2,
.gift h2 {
  color: var(--pink);
  font-family: var(--sacramento);
  font-size: 5rem;
  font-weight: bold;
}

.home h3 {
  color: #444;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.home p {
  font-size: 1.2rem;
  color: #666;
}

/* couple section  */
.home .couple {
  margin-top: 5rem;
}

.home .couple h3 {
  font-family: var(--sacramento);
  font-size: 2.4rem;
  color: var(--pink);
}

/* 


info section 


*/

.info {
  background-color: var(--bg-color);
  min-height: 100vh;
  color: var(--white);
  padding: 10rem 0;
}

.info .alamat {
  font-size: 1rem;
}

.info a {
  font-weight: 500;
}

/* card  */
.info .card {
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--white);
}

.info .card .card-header {
  border-bottom: 1px solid var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-weight: 500;
}

.info .card .card-body {
  font-size: 1rem;
}

.info .card .card-footer {
  border-top: 1px solid var(--white);
  font-size: 0.9rem;
  font-weight: 300;
}

/* 


Story section  


*/

.story,
.gallery,
.rsvp,
.gift {
  padding-bottom: 8rem;
  padding-top: 10rem;
}

.story span,
.gallery span,
.gift span {
  text-transform: uppercase;
  color: #666;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: block;
}

.story p,
.gallery p,
.rsvp p,
.gift p {
  font-size: 1rem;
  font-weight: 300;
}

/* timeline  */
.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: #ccc;
  left: 50%;
}

.timeline li {
  margin-bottom: 1.5rem;
  position: relative;
}

.timeline li::before,
.timeline li::after {
  content: "";
  display: table;
}

.timeline li::after {
  clear: both;
}

.timeline li .timeline-image {
  width: 160px;
  height: 160px;
  background-color: #ccc;
  position: absolute;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.timeline li .timeline-panel {
  width: 40%;
  float: left;
  border: 1px solid #ccc;
  padding: 1rem;
  position: relative;
  border-radius: 5px;
}

.timeline li:nth-of-type(even) .timeline-panel {
  float: right;
}

/* 


gallery section  


*/
.gallery {
  background-color: #f5f5f5;
}

/* 


rsvp section  


*/
.rsvp {
  background-color: var(--bg-color);
}

.rsvp h2 {
  font-size: 4.5rem;
}

.rsvp p,
.rsvp form {
  color: var(--white);
  font-family: var(--work-sans);
}

.rsvp form input:focus,
.rsvp form button:focus {
  box-shadow: 0 0 0 0.15rem var(--pink);
  border: 1px solid var(--pink);
}
.rsvp form input[type="checkbox"]:checked {
  background-color: var(--pink);
  box-shadow: none;
  border: 1px solid var(--pink);
}

.rsvp form button {
  border: 1px solid var(--pink);
  background-color: var(--pink);
  font-weight: 500;
}

.rsvp form button:hover {
  background-color: var(--white);
  color: var(--pink);
  border: 1px solid var(--pink);
}

/* 


footer  


*/

footer {
  padding: 3rem;
  background-color: var(--pink);
  color: var(--white);
}

footer a {
  color: var(--bg-color);
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  color: var(--white);
}

footer ul li {
  list-style: none;
  display: inline;
  margin: 0 0.5rem;
}

/* 


audio section  


*/

.audio-icon-wrapper {
  width: 4rem;
  height: 4rem;
  font-size: 4rem;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  color: var(--pink);
  cursor: pointer;
  opacity: 0.6;
  mix-blend-mode: difference;
  animation: rotating 4s linear infinite;
  transform-origin: center;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
}

/* 


Media query  


*/
/* laptop */
@media (max-width: 992px) {
  .timeline::before {
    left: 60px;
  }
  .timeline li .timeline-image {
    left: 15px;
    margin-left: 45px;
    top: 16px;
  }

  .timeline li .timeline-panel {
    width: calc(100% - 200px);
    float: right;
  }
}

/* tablet  */
@media (max-width: 768px) {
  html {
    font-size: 70%;
  }
  .my-navbar .navbar-nav .nav-link:hover {
    background-color: rgba(199, 198, 198, 0.5);
  }

  .timeline li .timeline-image {
    width: 110px;
    height: 110px;
  }
}

/* smartphone  */
@media (max-width: 576px) {
  html {
    font-size: 65%;
  }
  .my-navbar .navbar-nav .nav-link:hover {
    background-color: rgba(199, 198, 198, 0.5);
  }
  .timeline li .timeline-image {
    width: 80px;
    height: 80px;
  }

  .timeline li .timeline-panel {
    width: 65%;
    transform: translate(-10px);
  }
}

/* 


animation 


*/

@keyframes rotating {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
