:root {
  --white: #ffffff;
  --lightgray: #dbdbdb;
  --darkRed: #b62729;
  --yellow: #ffcb05;
  --black: #1d1614;
  --textColor: #1d1614;
  --mainNavTextColor: #6a6a6a;
  --textAlert: #f00;
  --fontFamilyPrimary: "Noto Sans SC", serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: rgb(249, 249, 249);
  background: linear-gradient(180deg, #fde9e2 0%, #fee4cd 100%);
  color: var(--textColor);
  height: 100%;
  min-height: 100vh;
  font-family: var(--fontFamilyPrimary);
  font-style: normal;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5rem;
  position: relative;
}

/*
#bg-tree {
  background-image: url("../img/bg_tree.png");
  background-size: 646px auto;
  background-position: left top;
  background-repeat: no-repeat;
  height: 752px;
  width: 648px;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
}
  */
#bg-tree {
  background-image: url("../img/blossom_bg.png");
  background-size: auto 100px;
  background-position: left top;
  background-repeat: no-repeat;
  display: none;
  height: 100px;
  width: 280px;
  position: absolute;
  left: 0;
  bottom: 0;
}

#bg-tree2 {
  background-image: url("../img/blossom_bg2.png");
  background-size: 240px auto;
  background-position: left top;
  background-repeat: no-repeat;
  height: 360px;
  width: 240px;
  position: absolute;
  right: 0;
  bottom: 100px;
  z-index: -1;
}

.material-symbols-outlined-36 {
  font-size: 36px;
}

.material-symbols-outlined-48 {
  font-size: 48px;
}

h1,
h2,
h3,
h4,
h5,
h6,
b,
strong {
  font-family: var(--fontFamilyPrimary);
  font-weight: bold;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--darkRed);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.625rem;
}

h3 {
  font-size: 1.5rem;
}

.sub-title {
  color: var(--black);
  display: block;
  font-size: 1.625rem;
}

.title-border {
  border-top: 6px solid var(--yellow);
  display: inline-flex;
  align-items: center;
}

.fs-42 {
  font-size: 42px;
}

.fs-28 {
  font-size: 28px;
}

.fs-24 {
  font-size: 24px;
}

.fs-20 {
  font-size: 20px;
}

h5,
.fs-18 {
  font-size: 18px;
}

strong,
b {
  font-weight: 700;
}

a,
a:visited {
  color: var(--black);
  text-decoration: underline;
}

a:hover {
  color: var(--black);
}

ol li {
  margin-bottom: 15px;
}

.pl-20 {
  padding-left: 20px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-15 {
  margin-bottom: 15px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-40 {
  margin-top: 40px;
}

.mt-60 {
  margin-top: 60px;
}

.mr-10 {
  margin-right: 10px;
}

.border-primary {
  border-color: #223770 !important;
}

.btn {
  border-radius: 0.3125rem;
  font-size: 1rem;
  padding: 10px 20px;
}

.btn-primary,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
  background: var(--yellow);
  border-color: var(--yellow);
  border-radius: 100px;
  color: var(--darkRed) !important;
  text-decoration: none;
}

.btn-primary:hover,
.btn-outline-primary:hover,
.btn-secondary:hover {
  background: var(--darkRed);
  border-color: var(--darkRed);
  color: var(--yellow) !important;
}

.btn-outline-primary,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.show > .btn-outline-primary.dropdown-toggle,
.btn-secondary,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary:not(:disabled):not(.disabled).active,
.btn-secondary:not(:disabled):not(.disabled):active,
.show > .btn-secondary.dropdown-toggle {
  background: var(--white);
  border-color: var(--white);
  color: var(--darkRed) !important;
  text-decoration: none;
}

[data-toggle="collapse"] {
  cursor: pointer;
}

img {
  max-width: 100%;
}

.aspect-ratio-3-2 {
  aspect-ratio: 3 / 2;
}

.border-rounded {
  border-radius: 10px;
}

.section {
  padding: 80px 0;
}

.fade-in-section {
  opacity: 0; /* Initially hidden */
  transition: opacity 1s ease-in-out;
}

/* Class added when section is in view */
.fade-in-section.visible {
  opacity: 1; /* Fade in effect */
}

/************
Header & Main Navigation
***********/
#header-placeholder {
  min-height: 113px;
}

header .navbar-brand {
  background-image: url(../img/logo.png);
  background-size: 168px 81px;
  background-repeat: no-repeat;
  background-position: center center;
  height: 81px;
  width: 168px;
}

nav {
  font-size: 1rem;
}

nav a {
  margin-left: 15px;
  text-decoration: none;
}

.navbar-expand-md .navbar-nav .nav-link {
  color: var(--mainNavTextColor);
  font-weight: bold;
  padding-left: 0.875rem;
  padding-right: 0.875rem;
  text-align: center;
  opacity: 0.8;
  transition: all 0.5s ease;
}

.navbar-expand-md .navbar-nav .nav-link:hover {
  color: var(--darkRed);
  opacity: 1;
}

.navbar-toggler {
  color: #132048;
  border-color: #132048;
  margin-right: 15px;
}

header.white .navbar-toggler {
  color: var(--white);
  border-color: var(--white);
}

.navbar-toggler-icon {
  /*background-image: url(../img/menu.png);
  background-size: 24px auto;
  background-position: center center;
  background-repeat: no-repeat;*/
  content: e5d2;
}

header.white .navbar-toggler-icon {
  filter: brightness(10000%);
}

.dropdown-toggle::after {
  display: none;
}

.mobile-nav {
  background: #fff;
  position: fixed;
  z-index: 9;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  transform: translateX(100%);
  transition: all 0.5s ease;
}

.mobile-nav.show {
  overflow: auto;
  transform: translateX(0%);
}

.mobile-nav .placeholder a {
  color: var(--textColor) !important;
}

.mobile-nav .btn-close {
  background: none;
  cursor: pointer;
  display: flex;
  justify-content: end;
  padding: 0.875rem;
  width: auto;
}

.mobile-nav .btn-close::before {
  font-family: "Material Symbols Outlined";
  font-size: 28px;
  content: "cancel";
  -webkit-font-feature-settings: "liga";
}

.asterisk {
  color: var(--textAlert);
}

/************
Footer
***********/
footer {
  background: #fad9c8;
  background: linear-gradient(
    180deg,
    rgba(250, 217, 200, 0) 0%,
    rgba(247, 169, 167) 100%
  );
  padding: 1rem 0;
}

/************
Home
***********/
#hero {
  background-image: url(../img/mobile_hero.png);
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  position: relative;
}

/* If the browser supports WebP, use WebP image as background */
@supports (background-image: url(../img/mobile_hero.webp)) {
  #hero {
    background-image: url("../img/mobile_hero.webp"); /* WebP image for modern browsers */
  }
}

.welcome-msg {
  padding-top: 360px;
}

.welcome-msg .animated-bubble {
  background-image: url(../img/mobile_animated_bubble.png);
  background-size: 100% auto;
  background-position: 0 0;
  background-repeat: repeat-y;
  position: absolute;
  width: 100%;
  height: 450px;
  left: 0;
  top: 0;
  z-index: 1;
  animation-name: example;
  animation-duration: 3s;
  animation-iteration-count: infinite;
}

@keyframes example {
  0% {
    opacity: 1;
    background-position: 0 0;
  }
  50% {
    opacity: 0;
    background-position: 10px 10px;
  }
  51% {
    opacity: 0;
    background-position: 0 0;
  }
  100% {
    opacity: 1;
    background-position: 0 0;
  }
}

#main-event {
  background-image: url(../img/yellow_gradient_bg.png);
  background-size: 100% auto;
  background-position: right center;
  background-repeat: no-repeat;
}

.events .home-gallery-thumbnail {
  cursor: pointer;
  width: 100%;
  height: 100%;
  object-fit: cover; /* This ensures that images cover the container without distortion */
  object-position: center; /* Centers the image within the container */
}

/************
Inner Page
***********/
.description-slot {
  background-image: url(../img/pink_gradient_bg.png);
  background-size: 50% auto;
  background-position: left center;
  background-repeat: no-repeat;
}

#image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

#image-gallery .thumb-div {
  position: relative;
  overflow: hidden; /* Ensure any overflow from the image is hidden */
}

#image-gallery .gallery-thumbnail {
  cursor: pointer;
  width: 100%;
  height: 100%;
  object-fit: cover; /* This ensures that images cover the container without distortion */
  object-position: center; /* Centers the image within the container */
}

.speech-avatar img {
  width: 140px;
}

.landing-page-bg {
  background-image: url(../img/yellow_gradient_bg2.png);
  background-size: 100% auto;
  background-position: top center;
  background-repeat: repeat-y;
}

.landing-page-hero-container {
  height: 600px;
  overflow: hidden;
  position: relative;
}

.landing-page-hero {
  background-image: url("https://yuhuaren.com.my/img/events/dinner4.jpg");
  background-color: #000;
  background-repeat: no-repeat;
  background-position: center -100px;
  background-attachment: scroll;
  background-size: cover;
  animation: kenburns 20s ease-in-out infinite alternate;
  display: table;
  width: 100%;
  z-index: 1;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.wishes-ribbon .landing-page-hero {
  animation: wishes-ribbon 20s ease-in-out infinite alternate;
}
.wishes-ribbon .landing-page-hero.one {
  background-image: url("https://yuhuaren.com.my/img/events/wishes_ribbon7.jpg");
}
.wishes-ribbon .landing-page-hero.two {
  background-image: url("https://yuhuaren.com.my/img/events/wishes_ribbon6.jpg");
}
.wishes-ribbon .landing-page-hero.three {
  background-image: url("https://yuhuaren.com.my/img/events/wishes_ribbon2.jpg");
}
.wishes-ribbon .landing-page-hero.four {
  background-image: url("https://yuhuaren.com.my/img/events/wishes_ribbon5.jpg");
}

.landing-page-hero-overlay {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  position: absolute;
  z-index: 2;
}

.landing-page-hero-title {
  color: #fff;
  padding: 12px 24px;
}

.landing-page-hero-title h1 {
  color: var(--yellow);
}

@keyframes kenburns {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.25);
  }
}

@keyframes wishes-ribbon {
  0% {
    transform: scale(1.5);
  }

  100% {
    transform: scale(2);
  }
}

/************
Captcha
***********/
.captcha-font {
  font-family: "Baskervville SC", serif;
  font-weight: 400;
  font-style: normal;
}

.captcha {
  background-color: #eaf0f9;
  font-size: 28px;
  margin: 0;
  padding: 16px 8px;
  text-align: center;
  width: 100%;
}

@media only screen and (min-width: 400px) {
  .welcome-msg {
    padding-top: 450px;
  }

  .welcome-msg .animated-bubble {
    height: 500px;
  }
}

@media only screen and (min-width: 500px) {
  .welcome-msg {
    padding-top: 490px;
  }

  .welcome-msg .animated-bubble {
    height: 580px;
  }
}

@media only screen and (min-width: 667px) {
  .navbar-expand-md .navbar-toggler {
    display: block;
  }

  .welcome-msg {
    padding-top: 490px;
  }

  .welcome-msg .animated-bubble {
    height: 650px;
  }
}

@media only screen and (min-width: 768px) {
  header .mobile-nav {
    display: block;
  }

  nav a {
    margin-left: 0;
  }

  .collapse:not(.show) {
    display: none !important;
  }

  .mobile-nav {
    display: none;
  }

  .welcome-msg {
    padding-top: 650px;
  }

  #main-event {
    background-size: 500px auto;
  }

  .single-page-section {
    padding: 40px 0;
  }

  .title-slot {
    background-image: url(../img/yellow_gradient_bg2.png);
    background-size: 80% auto;
    background-position: top center;
    background-repeat: no-repeat;
  }

  .landing-page-hero {
    background-position: bottom center;
  }

  .landing-page-bg {
    background-size: 80% auto;
  }

  #bg-tree {
    display: block;
  }
}

@media only screen and (min-width: 992px) {
  .navbar-expand-md .navbar-toggler {
    display: none;
  }

  header .mobile-nav {
    display: none;
  }

  .navbar-expand-md .navbar-collapse {
    display: flex !important;
  }

  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  .sub-title {
    font-size: 1.75rem;
  }

  .line-break-lg {
    display: block;
  }

  #hero {
    background-image: url(../img/hero.png);
    background-size: 682px 572px;
    background-position: right 40px center;
    background-repeat: no-repeat;
  }

  /* If the browser supports WebP, use WebP image as background */
  @supports (background-image: url(../img/hero.webp)) {
    #hero {
      background-image: url("../img/hero.webp"); /* WebP image for modern browsers */
    }
  }

  .welcome-msg {
    padding-top: 80px;
  }

  .welcome-msg .animated-bubble {
    z-index: -1;
    background-size: 500px auto;
    background-repeat: repeat-x;
  }

  #main-event {
    background-size: 500px auto;
  }

  #image-gallery .thumb-div {
    flex-basis: 49%;
  }
}

@media only screen and (min-width: 1200px) {
  .line-break-lg {
    display: inline;
  }
}

@media only screen and (min-width: 1400px) {
  #hero {
    background-position: right 130px center;
  }

  #hero .mx-xl-5 {
    margin-right: 3.5rem !important;
    margin-left: 3.5rem !important;
  }
}
