@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');

/* Content */

.pg-name {
  color: #1C1AAF;
  font-family: 'Roboto';
  text-transform: uppercase;
}

.h5color {
  font-weight: 500;
  color: #1C1AAF;
}

.upcoming-container a.viewbtn {
  display: inline-flex; 
  align-items: center; 
  gap: 5px; 
  text-decoration: none;
  color: #7D899C;
  font-weight: 400;
}

.upcoming-container a.viewbtn i {
  font-size: 16px;
  font-weight: 500; 
}

.news-container {
  width: 95%;
  display: flex;
  justify-content: center;
}

.content { 
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 20px;
  width: 100%;
  padding-bottom: 0;
}

.card-container {
  display: flex;
  align-items: center;
  height: 170px;
  
  border-radius: 10px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
  background-color: #C3CCE8;
}

.img-container {
  flex: 0 0 40%; 
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%; 
  overflow: hidden;
}

.img-container img {
  width: 100%;
  height: 100%; 
  object-fit: fit;
  border-radius: 8px;
}

.text-container {
  flex: 0 0 60%; 
  padding-left: 10px;
  text-align: center;
  padding-right: 20px;
  padding-left: 20px;
}

.text-container h6 {
  color: #000B4F;
  font-weight: bold;
}

.text-container p {
  color: #1E1E1E;
}


.gallery-container {
  width: 95%;
  max-height: 40em; 
  overflow-y: auto; 
  background: linear-gradient(180deg, rgba(217, 217, 217, 0.05) 78.4%, rgba(0, 0, 0, 0.35) 100%);
  border-radius: 10px;
  box-shadow: inset 0px 4px 8px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));  /* Flexible columns */
  grid-auto-rows: 100px;  /* Base row height */
  grid-auto-flow: dense;  /* Helps fill gaps */
  gap: 10px;
  padding: 20px;
  margin-top: 20px;
}

.gallery-item {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
}

/* Hide the modal by default */
#imageModal {
    display: none; /* make sure it's hidden initially */
    position: fixed;
    z-index: 999;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

/* Only shown when openModal sets display = flex */
#imageModal.show {
    display: flex;
}

/* The image inside the modal */
#imageModal #fullImage {
    width: 50%;
    height: auto;
    max-height: 500px;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    object-fit: contain;
}

/* Close button */
#imageModal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}


.birthday-card .font-face {
    background: linear-gradient(270deg, #0039E3 0%, #2244AA 51.9%, #0039E3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* For Safari */
    color: transparent;
    font-size: 40px;
    font-family: 'Praise';
}

/* Different row spans for different image types */
.gallery-item.short { grid-row: span 1; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.taller { grid-row: span 3; }
.gallery-item.tallest { grid-row: span 4; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.footer-container {
  background-color: #20368F;
  border-radius: 10px;
  padding: 10px;
  color: white;
  align-items: center;
}

.footer-container .footer-side label,
.footer-container .footer-side span {
  font-size: 13px;
}

.table-responsive {
  width: 100%;
  max-height: 12em;
  margin-bottom: 30px;
}

.table-responsive .namewidth {
  max-width: 180px;
  padding-right: 20px;
}

.birthday-container {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
}

/* Background Banner */
.birthday-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.birthday-banner img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  display: block;
}

/* Slider Container */
.birthday-slider {
  position: relative;
  width: 80%;
  max-width: 500px;
   z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slider */
.birthdayslider {
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.slideprofile img {
  max-width: 150px;
  max-height: 150px; 
  border-radius: 50%; 
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-top: 5rem;
}

.slideprofile h5 {
  color: black;
  padding: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 20px;
  background-color: #dadada;
}

.balloon {
  position: absolute;
  width: 80px;
  animation: float 4s ease-in-out infinite;
  z-index: 2;
}

.balloon-left {
  left: 15%;
  bottom: 70px; /* was 20px – now higher */
}

.balloon-right {
  right: 12%;
  bottom: 70px; /* was 20px – now higher */
  animation-delay: 2s;
}


@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}


.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.confetti-piece {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 2px; /* keep square shape, but slightly soften corners */
  opacity: 0.9;
  animation: fall 4s linear infinite; /* faster fall than 6s */
}

@keyframes fall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}


@keyframes confetti {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-50px);
  }
  100% {
    transform: translateY(100vh);
  }
}

/*
.popup-modal {
  display: none;
  position: fixed;
  z-index: 9999; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
  display: flex;
  flex-direction: column;
  background: white;
  padding: 40px;
  padding-top: 20px;
  border-radius: 30px;
  text-align: left;  
  width: 70%;  
  max-width: 50em; 
  min-width: 20em; 
  position: absolute;
  top: 40%;
  left: 50%;
  border: 10px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(92.56deg, #63A6E9 0%, #2244AA 99.74%) border-box;
  transform: translate(-50%, -50%);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.popup-img-container {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.popup-content img {
  width: 80px;
  height: 80px;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 1em;
}

.popup-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #2244AA;
}

.popup-header .date-posted {
  color: #7D899C;
  font-size: 14px;
  font-weight: 400;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-weight: 800;
  font-size: 40px;
  cursor: pointer;
  color: black;
}

.message-content {
  margin-bottom: 2em;
} */

#mayorMessageModal .custom-modal-border {
  border: 10px solid transparent;
  border-image-source: linear-gradient(92.56deg, #63A6E9 0%, #2244AA 99.74%);
  border-image-slice: 1;
  background: white;
  border-radius: 10px;
}


#mayorMessageModal .modal-header .imgsize {
  height: 70px;
  width: 70px;
  margin-right: 20px !important;
}

#mayorMessageModal .custom-header .btn-close {
  position: absolute;
  right: 15px;
  top: 15px;
}

#mayorMessageModal .modal-title {
  font-weight: 700;
  font-family: "Moul", serif;
  background: linear-gradient(90deg, #63A6E9 0%, #2244AA 50.5%, #63A6E9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; /* For Safari */
  color: transparent; /* other browsers */
}

#mayorMessageModal .footerlabel {
  bottom: 2px;
  position:absolute;
}

#mayorMessageModal .modal-lg {
  max-width: 800px;
}

#mayorMessageModal .modal-content {
  min-height: 500px;
}