body {
  transition: opacity 0.9s ease-in-out;
  font-family: 'Coolvetica', serif;
  background:  linear-gradient(90deg,  #f8e7ca 20%, #f8f0e3 100%);
  .card, .button, .text, .fun-fact-text, .theme-switcher-container, .dropdown-btn {
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}
;
  margin: 0;
  padding: 0;
  color: #333;
}
header {
  transition: opacity 0.3s ease-in-out;
  font-family: 'Coolvetica', serif;
  letter-spacing: 1px;
  background: linear-gradient(90deg,#94c4ff 0%, #7eb5fa 25%, #5f97ff 75%, #3d94ff 100%);
  color: #1d1e24;
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.002);
}

.logo {
  height: 120px;
  margin-bottom: 0.5rem;
  border-radius: 19px;
  box-shadow:  rgba(0,0,0,0.3);
}

.about-link {
  color: #000000;
  text-decoration: rgb(255, 153, 0);
  font-weight: bolder;
  margin-left: -0.5rem;
  transition: color 0.5s;
}

.about-link:hover {
  color: #ffffff;
  transition: color 0.5s;
}

#scrollProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 5px; /* Adjust height as needed */
  background: linear-gradient(90deg,#d1e4f6,	#c4ddf6,	#b7d5f6,	#aacef6,	#9dc6f6,	#90bef5,	#83b7f5,	#76aff5,	#69a8f5,	#5c9ff4,	#4a90e2); /* Change color as desired */
  z-index: 9999;
  border-radius: 10px;
  transition: width 0.2s ease;
}


.tabs {
  display: flex;
  justify-content: center;
  background: linear-gradient(90deg,  #f8e7ca 20%, #f8efe2 100%);
;
}
.tab-button {
  background: transparent;
  border: none;
  color: #000000;
  padding: 1rem 2rem;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.5s ease, border-bottom 0.5s ease;
  border-bottom: 3px solid transparent;
  letter-spacing: 0.05em;
}
.tab-button:hover, .tab-button.active {
  color: #000000;
  border-bottom: 3px solid #0095ff;
  background: rgba(255, 255, 255, 0.1);
}

.fun-fact-slider {
  background-clip: text;
  position: relative;
  background: linear-gradient(90deg,  #f8e7ca 10%, #f8eede 100%);
  border-radius: 12px;
  box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
  padding: 14px 12px;
  margin: 32px auto;
  max-width: 600px;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  border: 1px solid #f8e9cf;
  text-align: center;
}

.fun-fact-text {
  transition: opacity 0.5s ease-in-out;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-content {
  display: none;
  max-width: 720px;
  margin: 0rem auto;
  background:  linear-gradient(90deg,  #f8e7ca 10%, #f8eede 100%);
  border-radius: 12px;
  box-shadow: 1 0px 0px rgba(0, 0, 0, 0);
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  height: 1;
  overflow: hidden;
  padding: 0rem 2.5rem;
  font-size: 1rem;
}

@media (prefers-color-scheme: dark) {
  .color-invertible {
    filter: invert(1) brightness(2);
    transition: filter 0.3s;
  }
}


.member {
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #c8c7c7;
  justify-content: flex-start;
  position: relative;
}

.member-info {
  flex: 1;
}


.member-photo {
  width: 60px;
  margin-right: 20px;
  margin-top : 1px;
  transition: transform 0.5s ease;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  cursor:pointer;
  margin-right: 1.5rem;
  box-shadow: 0 2px 8px rgba(25, 23, 23, 0.243);
}
.member-photo:hover {
  transform: scale(1.15);
  z-index: 1000;             /* make sure it appears on top */
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.member-info {
  flex: 1;
}
.member-name{
  
  
  font-weight: 100;
  transition: opacity 0.3s ease-in-out;
  font-size: 1.2rem;
  color: #1d2032;
  margin-bottom: 0.1  rem;
  letter-spacing: 0.05em;
}

.member-title{
  transition: opacity 0.3s ease-in-out;
  font-weight: 90;
  font-size: 1.1rem;
  margin-bottom: 0.1rem;
  color : #011037

}
.member-birthday {
  color: #666;
  font-size: 1rem;
  font-style: italic;

}
@media (max-width: 600px) {
  .member {
    flex-direction: column;
    align-items: flex-start;
  }
  .member-photo {
    margin-bottom: 0.7rem;
  }
  .tab-button {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }
  .tab-content {
    padding: 1.5rem 1.5rem;
  }
}

/* Toggle button styling */
.dark-mode-toggle {
  position: left;
  top: 1.5rem;
  right: 20rem;
  background: none;
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
  color: #222;
  transition: color 0.3s;
  z-index: 10;
}
body.dark-mode .dark-mode-toggle {
  color: #ffe066;
}

/* Dark mode styles */
body.dark-mode {
  background: linear-gradient(90deg,#1d2132 0%, #21263a 100%);
  color: #f3f3f3;
}

body.dark-mode header {
  background: linear-gradient(90deg,#1f1f3d,#3f56bc, #3f56bc, #1f1f3d);
  color: #fff;
}

body.dark-mode .tabs,
body.dark-mode .blur-backdrop {
  background: linear-gradient(90deg,#1d2132 0%, #21263a 100%);
  backdrop-filter: blur(2px);
}

body.dark-mode .about-link {
  color: #ffffff;
  text-decoration: rgb(255, 153, 0);
  font-weight: bolder;
  margin-left: -0.5rem;
  transition: color 0.5s;
}

body.dark-mode .about-link:hover {
  color: #000000;
  transition: color 0.5s;
}

body.dark-mode .tab-button {
  color: #eee;
  background: transparent;

}
body.dark-mode .tab-button.active,
body.dark-mode .tab-button:hover {
  color: #ffe066;
  border-bottom: px  #ffe066;
}

body.dark-mode .tab-content {
  letter-spacing: 0.5px;
  background:linear-gradient(90deg,#1e2236 20%, #202538 100%);
  color: #f3f3f3;
  box-shadow: 1 0px 0px #ffe066;
}

body.dark-mode .member {
  border-bottom: 1px solid #2e3350;
}
body.dark-mode .member-name {
  color: #ffe066;
}
body.dark-mode .member-title {
  color: #F8F0E3;
}
body.dark-mode .member-birthday {
  color: #fde99a;
}
body.dark-mode .sort-controls label,
body.dark-mode .sort-controls select {
  color: #eee;
  background: #21243b;
  border-color: #444;
}

body.dark-mode #scrollProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 5px;
  background: linear-gradient(90deg, #000dbe, #0015d3, #0028e6, #0043f6, #0066ff, #008dff, #00b4ff, #00d7ff, #00e9ff, #00fbff);
  z-index: 9999;
  border-radius: 3px;
  transition: width 0.2s ease;
}


body.dark-mode .fun-fact-slider {
  position: relative;
  background: linear-gradient(90deg,#1e2236 20%, #202538 100%);
  border-radius: 12px;
  box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
  padding: 14px 12px;
  margin: 32px auto;
  max-width: 600px;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #ffe066;
  border: #1d2133;
  text-align: center;
}

body.dark-mode .fun-fact-text {
 .fun-fact-text {
  animation: flashlight 6s infinite ease-in-out;
}

@keyframes flashlight {
  0% { filter: brightness(0.5); }
  50% { filter: brightness(2); }
  100% { filter: brightness(0.5); }
}

  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}


.member {
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #dbd0c6;
  justify-content: space-between; /*aligns days left to the right */
}
.star {
  position: fixed;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.8;
  z-index: 9999;
  animation: twinkle 4s infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.asteroid {
  position: fixed;
  top: -40px;
  width: 36px;
  height: 36px;
  background: radial-gradient(circle at 30% 30%, #bbb 70%, #888 100%);
  border-radius: 50%;
  box-shadow: 0 0 20px #333, 8px 8px 0 0 #666 inset;
  z-index: 9999;
  animation: asteroid-fall 1.6s linear forwards;
  pointer-events: none;
}

@keyframes asteroid-fall {
  to {
    top: 100vh;
    transform: rotate(360deg) scale(1.2);
    opacity: 0.7;
  }
}

.asteroid-crash {
  animation: asteroid-crash 0.5s steps(3) forwards;
  background: #ffec8b;
  box-shadow: 0 0 30px #ffec8b, 0 0 80px #fc575e;
}

@keyframes asteroid-crash {
  0% { opacity: 1; }
  50% { opacity: 0.7; transform: scale(1.4); }
  100% { opacity: 0; transform: scale(1.8); }
}

body.shake {
  animation: shake 0.4s;
}
@keyframes shake {
  0%, 100% { transform: translateX(0);}
  20%, 60% { transform: translateX(-10px);}
  40%, 80% { transform: translateX(10px);}
}

.site-footer {
  background: linear-gradient(90deg,#24283e 10%, #42456a 40%, #42456a 70%, #242852 100%);
  color: #fff;
  padding: 2rem 0 1rem 0;
  text-align: center;
  margin-top: 3rem;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.15);
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  position: relative;
}

.tooltip {
position: absolute;
top: 0;
font-size: 14px;
background:l#fff;
padding: 5px 8px;
border-radius: 5px;
box-shadow: 0 10px 10px

rgba(0,0,0,0.1);
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.site-footer {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  letter-spacing: 1px;
  font-weight: 3;
  font-size: 1.03rem;
  color: #ffffff;
}

.footer-links {
  margin: 1rem 0;
}

.footer-links a {
  display: inline-block;
  margin: 0 0.7em;
  opacity: 0.9;
  transition: opacity 1s, transform 0.4s;
}
.footer-links a:hover {
  opacity: 1;
  transform: translateY(-5px) scale(1.3);
}

.footer-links img {
  width: 30px;
  height: 30px;
  vertical-align: middle;
  filter: brightness(1) invert(1);
}

body.dark-mode .site-footer {
  background: linear-gradient(90deg,#181c24 0%,#194253 40%, #0b4044 50%, #195352 60%,#134245 70%, #222245 80%, #181c24 100%);
  color: #ffffff;
}
body.dark-mode .site-footer strong {
  color: #fff;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.search-bar {
  margin-left: auto;
  display: inline-flex;
  align-items: left ;
  position: left;
  transition: width 0.3s;
}

.search-bar input[type="text"] {
  width: 0;
  opacity: 0;
  padding: 0.4em 0;
  border-radius: 20px;
  border: transparent;
  font-size: 1rem;
  background: #f8e7ca;
  outline: none;
  min-width: 170px;
  transition: width 0.3s, opacity 0.3s, padding 0.3s;
  pointer-events: visible;
}

.search-bar.active input[type="text"] {
  width: 170px;
  opacity: 1;
  padding: 0.4em 1em;
  pointer-events: auto;
}

.search-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3em;
  display: flex;
  align-items: center;
}
.search-icon-btn img {
  width: 32px;
  height: 32px;
  filter: brightness(0.2);
  transition: filter 0.2s;
}
.search-bar.active .search-icon-btn img {
  filter: brightness(0.8);
}

body.dark-mode .search-bar input[type="text"] {
  background: #1e2235;
  color: #ffe066;
  border-color: #444;
}

.tooltip {
  position: relative;
  display: inline-flex;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 140px;
  background-color: #232946;
  color: #ffe066;
  text-align: center;
  border-radius: 4px;
  padding: 5px 0;
  position: absolute;
  z-index: 100;
  bottom: -0%; /* Show above button */
  left: 280%;
  margin-left: -110px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  pointer-events: none;
}

.tooltip:hover .tooltiptext,
.tooltip:focus .tooltiptext {
  visibility: visible;
  opacity: 1;
}

body.dark-mode .tooltip .tooltiptext {
  background: #ffe066;
  color: #232946;
}


.back-link {
  background: transparent;
  border: none;
  color: #e0e0e0;
  padding: 1rem 2rem;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.75s ease;
  text-decoration: 0.75s ease;
  border-bottom: 3px solid transparent;
  letter-spacing: 0.05em;
}
body.dark-mode .back-link {
  color: #ffe066;
}

img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Underline animation */
.year-glider {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 25%;
  height: 1px;
  background: var(--tab-underline);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(.25,.8,.5,1), background 0.2s;
  z-index: 1;
}

