* {h1, h2, h3, h4 {
  text-shadow: 0 0 5px #00ffc6, 0 0 10px #00ffc6;
}

  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', sans-serif;
  background: url('images/ChatGPT\ Image\ Jun\ 18\,\ 2025\,\ 09_40_30\ PM.png') no-repeat center center fixed;
  background-size: cover;
  color: #f3f4f8;
  line-height: 1.1;
  padding-bottom: 30px;
  color: inherit;
  font-family: 'Poppins', sans-serif;
}

.site-logo {
  width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: transform 0.2s ease-in-out;
}
.site-logo:hover {
  transform: scale(1.1) rotate(1deg);
}

header {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(6, 204, 39, 0.4);
  animation: flicker 2s infinite alternate;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: flicker 3s infinite alternate;
}

@keyframes flicker {
  0% { opacity: 1; }
  100% { opacity: 0.85; transform: scale(1.01); }
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

nav a {
  color: #080808;
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  text-shadow: 0 0 5px #12e76b, 0 0 10px #fdfffd;
  transition: background 0.4s ease, transform 0.3s ease;
}

nav a:hover {
  background: rgba(199, 192, 192, 0.25);
  transform: translateY(-3px) scale(1.05);
}

section {
  max-width: 999px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
  text-align: center;
  transition: transform 0.4s ease;
  color: #cfd3f1;
  text-shadow: 0 0 5px #0c19d4, 0 0 10px #0d0e0d;
  background: rgba(0, 0, 0, 0.6);
  border-top: 2px solid #00ffc3;
  border-radius: 12px;
  margin-top: 2rem;
  box-shadow: 0 4px 12px rgba(0, 255, 195, 0.2);
}

section:hover {
  transform: translateY(-5px);
}

section h2 {
  color: #0a0a0a;
  margin-bottom: 1rem;
}

form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  background: rgba(0, 0, 0, 0.6);
  border-top: 2px solid #00ffc3;
  border-radius: 12px;
  margin-top: 2rem;
  box-shadow: 0 4px 12px rgba(0, 255, 195, 0.2);
}

input,
textarea {
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  width: 55%;
  margin: 0 auto;              /* Centers element horizontally */
  display: block;
  background: rgba(0, 0, 0, 0.6);
  border-top: 2px solid #00ffc3;
  border-radius: 12px;
  margin-top: 2rem;
  box-shadow: 0 4px 12px rgba(0, 255, 195, 0.2);             /* Needed for margin auto to work */
}

label {
  font-weight: bold;
  text-align: center;
}

button {
  background: #ff416c;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

button:hover {
  background: #ff4b2b;
  transform: scale(1.05);
}

button a {
  color: white;
  text-decoration: none;
}

ul {
  list-style: none;
  margin-top: 1rem;
  padding-left: 0;
  text-align: left;
}

ul li {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* MODAL STYLES */
.modal {
  display: none;
  position: fixed;
  z-index: 20;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(15, 15, 15, 0.8);
  animation: fadeIn 0.4s;
}

.modal-content {
  background-color: #222;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  color: #fff;
  border-radius: 12px;
  animation: slideDown 0.5s;
}

@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.close {
  color: #fff;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover {
  color: #ff4b2b;
}

/* Team section gallery */
.team-gallery {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #00ffc6;
  transition: transform 0.3s ease;
}

.team-member img:hover {
  transform: scale(1.3);
}

.highlight-img {
  width: 200px;
  border-radius: 10px;
  margin: 1rem 0;
}

/* Background Gaming Animation */
.background-animation {
  position: -ms-page;
  bottom: 0;
  right: 0;
  opacity: 0.08;
  z-index: 0;
}
.background-animation img {
  width: 999px;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 0.3rem;
  color: #ccc;
  background-color: #111;
  border-top: 2px solid #444;
  z-index: 1;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}

#registrationModal {
  transition: all 0.3s ease;
}
#donate {
  background: #1e1e1e;
  color: #f5f5f5;
  padding: 2rem;
  text-align: center;
  border-top: 2px solid #444;
}

#donate input[type="number"] {
  padding: 0.5rem;
  margin: 0.5rem 0;
  border-radius: 8px;
  border: none;
  width: 200px;
  background: #333;
  color: white;
}

#donate button {
  background-color: #00c853;
  color: white;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
}

#donate button:hover {
  background-color: #00e676;
}

#donation-message {
  margin-top: 1rem;
  color: #a0ffac;
  font-weight: bold;
}

.rules-btn {
  display: inline-block;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.3s;
  background: rgba(0, 0, 0, 0.6);
  border-top: 2px solid #00ffc3;
  border-radius: 12px;
  margin-top: 2rem;
  box-shadow: 0 4px 12px rgba(0, 255, 195, 0.2);
}
.rules-btn:hover {
  background: #cce7eb;
  transform: scale(1.05);
}

.rules-list {
  text-align: center;
  line-height: 1.4;
  padding-left: 1rem;
  color: #f0f0f0;
}

#previous-tournaments {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  text-align: center;
  border: 1px solid #292929;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6);
  border-top: 2px solid #00ffc3;
  border-radius: 12px;
  margin-top: 2rem;
  box-shadow: 0 4px 12px rgba(0, 255, 195, 0.2);
}

#previous-tournaments h2 {
  font-size: 2.3rem;
  color: #00ffd9;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 8px rgba(0, 255, 217, 0.5);
}

.tournament-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.tournament-gallery img {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  border: 2px solid #00ffd9;
  box-shadow: 0 0 12px rgba(0, 255, 217, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tournament-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(0, 255, 217, 0.5);
}

.google-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 10px 18px;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s ease;
  background: rgba(0, 0, 0, 0.6);
  border-top: 2px solid #00ffc3;
  border-radius: 12px;
  margin-top: 2rem;
  box-shadow: 0 4px 12px rgba(0, 255, 195, 0.2);
}

.google-link:hover {
  background-color: #525a6d;
}

/* --- Payment Section Styling --- */

/* === Scan to Pay Section === */
#donate h3,
#donate p {
  text-align: center;
  color: #ffffff;
  margin-bottom: 1rem;
}

#donate {
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6);
  border-top: 2px solid #00ffc3;
  border-radius: 12px;
  margin-top: 2rem;
  box-shadow: 0 4px 12px rgba(0, 255, 195, 0.2);
}

#donate input[type="number"] {
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 10px;
  width: 220px;
  text-align: center;
  font-size: 1rem;
  background: #1f1f1f;
  color: #00ffc6;
  display: block;
  margin: 0.5rem auto 1rem auto;
  box-shadow: 0 0 10px rgba(0, 255, 195, 0.3);
}

/* === Payment Buttons === */
#donate img[alt*="Scan to Pay with FNB"],
#donate img[alt*="Donate via PayFast"] {
  display: block;
  margin: 0.5rem auto;
  transition: transform 0.3s ease;
  border-radius: 10px;
}

#donate img:hover {
  transform: scale(1.05);
}

/* === Card Icons (Visa / Mastercard) === */
.card-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.card-icons img {
  width: 60px;
  height: auto;
  transition: transform 0.3s ease;
}

.card-icons img:hover {
  transform: scale(1.15);
}

/* Optional Donation Confirmation Message */
#donation-message {
  text-align: center;
  margin-top: 1rem;
  color: #00e676;
  font-weight: bold;
}
/* === Glowing Donation Section === */
#donate {
  padding: 2rem;
  background: rgba(0, 0, 0, 0.65);
  border-top: 2px solid #00ffc3;
  border-radius: 14px;
  margin-top: 2rem;
  box-shadow: 0 0 20px rgba(0, 255, 195, 0.25);
}

/* === Glowing Number Input === */
#donate input[type="number"] {
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 10px;
  width: 220px;
  text-align: center;
  font-size: 1rem;
  background: #1a1a1a;
  color: #00ffc6;
  margin: 0.5rem auto 1rem auto;
  box-shadow: 0 0 12px rgba(0, 255, 195, 0.5);
  display: block;
  transition: box-shadow 0.3s ease;
}

#donate input[type="number"]:focus {
  outline: none;
  box-shadow: 0 0 20px rgba(0, 255, 195, 0.9);
}

/* === Glowing Payment Images === */
#donate img[alt*="Scan to Pay with FNB"],
#donate img[alt*="Donate via PayFast"] {
  display: block;
  margin: 1rem auto;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 255, 195, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#donate img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 255, 195, 0.6);
}

/* === Glowing Card Icons (Visa / Mastercard) === */
.card-icons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1rem;
}

.card-icons img {
  width: 60px;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

.card-icons img:hover {
  transform: scale(1.15);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}

/* === Donation Message Glow === */
#donation-message {
  text-align: center;
  margin-top: 1rem;
  color: #00ff8c;
  font-weight: bold;
  text-shadow: 0 0 8px #00ff8c;
}

form {
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  background: #1a1a1a;
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: none;
  border-radius: 5px;
  background: #333;
  color: #fff;
}

button {
  width: 100%;
  padding: 10px;
  background: #00b894;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #00a07a;
}

.form-container {
  max-width: 600px;
  margin: 50px auto;
  background: #1e1e1e;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 255, 135, 0.4);
  color: #fff;
}

form h2 {
  text-align: center;
  margin-bottom: 20px;
}

form label {
  display: block;
  margin: 15px 0 5px;
  font-weight: bold;
}

form input,
form select {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 5px;
  margin-bottom: 10px;
}

form input:focus,
form select:focus {
  outline: none;
  border: 2px solid #00b894;
  background: #2a2a2a;
  color: #fff;
}

.back-home-btn {
  display: inline-block;
  margin: 40px auto;
  padding: 12px 25px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: white;
  background: #111;
  border: 2px solid #00ffc8;
  border-radius: 8px;
  box-shadow: 0 0 12px #00ffc8;
  transition: all 0.3s ease;
}

.back-home-btn:hover {
  background: #00ffc8;
  color: #000;
  box-shadow: 0 0 20px #00ffc8, 0 0 30px #00ffc8;
  transform: scale(1.05);
}

.back-home-wrapper {
  text-align: center;
  margin-top: 40px;
}

.gallery{
  max-width: 600px;
  margin: 50px auto;
  background: #1e1e1e;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 255, 135, 0.4);
  color: #fff;
}

#gallery ul {
  list-style-type: disc;
  padding-left: 80px;
  padding-right: 80px;
  text-align: center;
  box-shadow: 0 0 20px #00ffc8, 0 0 30px #00ffc8;
  border-radius: 16px;
  margin-top: 20px;
  padding: 16px 30px;
  max-width: 999px;
  font-weight: 600;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  color: #b6b4b4;
  font-size: 18px;
}

/* Social Media Links Styling */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.social-links a img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-links a img:hover {
  transform: scale(1.1);
  opacity: 0.8;
}
