/*
    MASTER TEMPLATE STYLES
    placeholders: {{COLOR_BG}}, #FFFFFF, #FF007F, #0080FF,
                  #FFD700, #FF007F, #FFD700,
                  and background-image:url("../images/pattern.png");background-repeat:repeat;
*/

/* Body & Global */
body {
  margin: 0;
  padding: 0;
  background-color: {{COLOR_BG}};
  color:            #FFFFFF;
  background-image:url("../images/pattern.png");background-repeat:repeat;   /* replaced by Python with: background-image:url("/images/pattern.png");background-repeat:repeat; */
  font-family: "Open Sans", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Centered main */
main[role="main"] {
  padding: 2rem 1rem;
  flex: 1;
}

/* Card */
.card {
  /* force any white container to use your theme’s text color */
  background-color: #fff;
  color:            #FFFFFF;

  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  opacity: 0;
  animation: fadeInCard 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

/* Logo */
.logo {
  width: 100%;
  max-width: 200px;
  border-radius: 0.75rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  transform: scale(0);
  animation: popIn 0.6s ease-out forwards;
  margin: 0 auto 1.5rem;
}

/* Text fade-in */
h1, p {
  opacity: 0;
}
h1 {
  animation: fadeInText 0.8s ease-out forwards;
  animation-delay: 0.6s;
}
p {
  animation: fadeInText 0.8s ease-out forwards;
  animation-delay: 0.9s;
}

/* Telegram button */
.btn-telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF007F, #0080FF);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.15s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-top: 1.5rem;
}
.btn-telegram i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}
.btn-telegram:hover {
  background: linear-gradient(135deg, #0080FF, #FF007F);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.btn-telegram:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Disclaimer */
.footer-disclaimer {
  background-color: #FFD700;
  color: #000; /* override if accent is dark */
  font-size: 0.875rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.4;
  padding: 1rem;
  border-top: 2px solid rgba(255,255,255,0.2);
  border-bottom: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2) inset;
}

/* Footer logos */
.footer-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-logos img {
  max-height: 40px;
  display: block;
}

/* Footer links */
.footer-links {
  margin-bottom: 1.5rem;
}
.footer-links a,
.footer-links a:visited {
  margin: 0 0.75rem;
  color: #FFFFFF !important;
  text-decoration: none;
  font-size: 0.875rem;
}
.footer-links a:hover,
.footer-links a:focus {
  color: #FFD700 !important;
  text-decoration: underline;
}

/* Animations */
@keyframes popIn      { to { transform: scale(1);                    } }
@keyframes fadeInCard { to { opacity: 1;                              } }
@keyframes fadeInText { from { transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
