/* @import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300&display=swap'); */

.fade-in{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out; 
  /*  .4*/
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  z-index: -1;
}

/* The fundamentals */
html {
  font-family: "Fredoka", "sans-serif";
  color: white;
}

::placeholder {
  font-family: "Fredoka", "sans-serif";
}

button {
  font-family: "Fredoka", "sans-serif";
  background-color: #64dd17;
  color: white;
  border-color: white;
  display: block;
  margin: 0 auto;
  font-size: 18px;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

h1,
h3,
h4,
h5,
h6 {
  text-align: center;
  font-family: "Fredoka", "sans-serif";
}

body {
  background: linear-gradient(to bottom, rgb(30, 136, 229), rgb(0, 0, 139));
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-align: center;
  margin: 0;
  padding: 0;
}

/* --- NAVBAR --- */
.navbar {
  width: 100%;
  background: rgba(0, 0, 50, 0.6);
  backdrop-filter: blur(10px);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo {
  font-family: 'Fredoka', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #ff6b6b;
  /* Reddish accent */
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 15px;
}

.nav-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.2s;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFC107;
}


.visitor-counters-wrapper {
  display: flex;
  justify-content: center; /* Align items horizontally from left to right space-evenly*/
  align-items: center;    
}

.visitor-counter {
  display: inline-flex;
  flex-direction: row; 
  justify-content: center; 
  align-items: center;   
  text-align: center;
  margin: 0 25px;
  /* border: 1px dashed black;  */
  /* Ref for adjusting  */
}

/* First Counter adjustment */
.visitor-counter:first-child a {
  margin-top: 50%;
  /* margin: 0 auto; */
}

/* Second counter adjustmnet */
.visitor-counter:last-child a {
  /* margin: 0 auto; */
  margin-top: 10%; 
}

/* --- STATUS & FOOTER --- */
.status {
  color: #FFC107;
  margin: 10px 0;
  font-weight: bold;
}

.dismiss-btn {
  margin-left: 10px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  color: white;
}

.dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

footer {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.credits {
  color: #aaa;
  font-size: 14px;
  margin-top: 10px;
  line-height: 1.6;
}

.credits a {
  color: #AB47BC;
  text-decoration: none;
}

.credits a:hover {
  text-decoration: underline;
  color: #d68fe9;
}




/* -------------------------------- */

/* Fade in animations and particles */


/* Heading and home button click and hover animations */

.hide-button:hover,
.show-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: white;
}

/* ---  Bubble Effect --- */
/* --- CLEANER BUTTON STATES (Prevents Animation Glitches) --- */
.primary-btn, .secondary-btn, #searchButton, .size-button {
    position: relative;
    overflow: visible !important; /* CRITICAL: Allows bubbles to exit the button */
    transition: all 0.2s ease;
    z-index: 1;
    border: none;
}

/* We removed translateY to prevent conflict with the bubble math */
.primary-btn:hover, .secondary-btn:hover, #searchButton:hover {
    filter: brightness(1.1);
    cursor: pointer;
}

.primary-btn:active, .secondary-btn:active, #searchButton:active, .size-button:active {
    transform: scale(0.92) rotate(-0.1deg); /* The "Exciting" Thump */
}

/* --- ANIMATED LAUNCH BUTTON --- */
.pulse-btn {
  position: relative;
  overflow: hidden;
  /* Keep your existing button styles */
}

.pulse-btn:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

/* Subtle glow animation for idle state */
@keyframes glow-pulse {
  0% { box-shadow: 0 0 0 0 rgba(88, 193, 20, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(88, 193, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(88, 193, 20, 0); }
}

.pulse-btn {
  animation: glow-pulse 2s infinite;
}
/* Notification  when link is copied*/
.toast-notification {
  position: fixed;
  bottom: -50px; /* Start off-screen */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #58C114;
  padding: 12px 24px;
  border-radius: 30px;
  border: 1px solid #58C114;
  font-weight: bold;
  z-index: 9999;
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
  opacity: 0;
}

.toast-notification.show {
  bottom: 30px;
  opacity: 1;
}

/* Little elements */
.separator-text {
  color: #aaa;
  font-weight: bold;
  margin: 10px 0;
}

.separator-line {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 30px 0;
}

.subtle-text {
  color: #888;
  font-size: 0.9rem;
  margin-top: 20px;
}

/* --- LOADING SPINNER FOR VIDEO --- */
.video-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2; /* Above iframe but below controls */
  pointer-events: none; /* Let clicks pass through if needed */
  transition: opacity 0.3s ease;
}

.video-loading-overlay.hidden {
  opacity: 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #58C114; /* Norepted Green */
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
