body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.65); /* dark overlay */
  z-index: -1;
}

  body {
    font-family: Arial, sans-serif;
    background: url("images/background.jpeg") no-repeat center center fixed;
    background-size: cover;
    color: #d1d0d0; /* off-white text */
    padding: 20px;
  }

.header {
  text-align: center;
  margin-bottom: 20px;
}

.site-title {
  font-size: clamp(1.5rem, 10vw, 3rem);
  font-weight: 700;
  color: #B30000;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  margin-top: 10px;
  white-space: nowrap;
}

.site-tagline {
  font-size: 1.5rem;
  font-weight: 500;
  color: #B30000;
  text-transform: none;
  margin-top: 10px;
}


  label {
    display: block;
    margin-top: 10px;
  }

  select, input {
    padding: 6px;
    margin-top: 5px;
    width: 260px;
    border: 1px solid #444;
    background-color: #262626;
    color: #f2f2f2;
  }

.button-container {
  text-align: center;
}

  button {
    background-color: #b30000; /* blood red */
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.2s;
  }

  button:hover {
    background-color: #800000; /* darker red on hover */
    animation: pulse 1.5s infinite;
  }

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

  .result {
    margin-top: 30px;
    font-size: 1.4em;
    font-weight: bold;
    color: #ff3333;
    text-align: center;
  }

.result strong {
  text-shadow: 0 0 6px #ff0000, 0 0 12px #b30000;
}

  .container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #111; /* darker panel */
    padding: 20px;
    border: 2px solid #b30000; /* red border frame */
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(179, 0, 0, 0.5);
  }


.disclaimer {
  max-width: 600px;
  margin: 15px auto 0 auto;
  font-size: 0.75em;
  color: #888;
  text-align: center;
  line-height: 1.4em;
}
.tooltip {
  display: inline-block;
  position: relative;
  margin-left: 6px;
  cursor: help;
  color: #aaa; /* gray */
  font-size: 0.9em;
  border: 1px solid #555;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  text-align: center;
  line-height: 14px;
  font-weight: bold;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 220px;
  background-color: #333;
  color: #f2f2f2;
  text-align: left;
  border-radius: 4px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* position above the icon */
  left: 50%;
  margin-left: -110px; /* half of width to center */
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.85em;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

#fightingChart {
  display: none;
}

.custom-select {
  position: relative;
  width: 250px;
  background: #111;
  border: 1px solid #444;
  cursor: pointer;
  color: white;
  font-family: Arial, sans-serif;
}

.custom-select .selected {
  padding: 10px;
  background: #111;
}

.custom-select .options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #111;
  border: 1px solid #444;
  z-index: 10;
}

.custom-select .option {
  padding: 8px 10px;
  border-bottom: 1px solid #333;
}

.custom-select .option strong {
  display: block;
  font-size: 14px;
  color: white;
}

.custom-select .option span {
  font-size: 12px;
  color: #aaa;
}
.custom-select .option:hover {
  background: darkred;
}
										/* Celebrity Cards */
.celeb-title {
  margin-top: 20px;
  text-align: center;
  color:#b30000
}

/* grid wrapper */
.celeb-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;       /* fits 3 across comfortably */
  margin: 0 auto;
  padding: 0 10px;
}

/* individual card */
.celeb-card {
  background: #111;
  border-radius: 10px;
  padding: 8px;
  flex: 1 1 calc(30% - 20px); /* three per row, subtracting gaps */
  max-width: 220px;               /* prevents growing too wide */
  min-width: 150px;               /* don’t shrink below this */
  text-align: center;
  color: white;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.25);
  border: 1px solid rgba(255, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.celeb-card h4 {
  margin-top: 6px;
  margin-bottom: 6px; /* tight to % */
  font-size: 1em;
}

/* hover animation */
.celeb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.5);
}

.celeb-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
}

.celeb-percent {
  font-size: 0.9em;
  color: #ccc;
  margin: 0;
}

.celeb-desc {
  font-size: 0.8em;
  margin-top: 10px;
  color: #ddd;
}

/* responsive tweaks */
@media (max-width: 700px) {
  .celeb-card {
    flex: 1 1 calc(50% - 20px); /* two per row */
  }
}

@media (max-width: 450px) {
  .celeb-card {
    flex: 1 1 100%; /* one per row on narrow phones */
  }
}

/* Martial Arts Training section */
.style-input {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 6px 0;
}

.style-input label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ddd;
  line-height: 1.2;
}

.style-input input[type="checkbox"] {
  width: 20px;
  accent-color: #c00; /* red checkmark tint (optional) */
  cursor: pointer;
}

.style-input select {
  width: 120px;
  padding: 3px 6px;
  font-size: 0.9rem;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #222;
  color: #fff;
  cursor: pointer;
}

.style-input select:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

/* --- NAVBAR --- */
.navbar {
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 2px solid #b30000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(6px);
}

.navbar a {
  color: #ccc;
  text-decoration: none;
  margin-right: 20px;
  font-weight: 600;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.navbar a:hover {
  color: #fff;
  text-shadow: 0 0 6px #b30000;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: #b30000 !important;
  letter-spacing: 1px;
  margin-right: 30px;
  text-transform: uppercase;
}

/* --- DROPDOWN MENU --- */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  margin-top: 0;
  background: none;
  border: none;
  color: #ccc;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.dropbtn:hover {
  color: #fff;
  text-shadow: 0 0 6px #b30000;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #111;
  border: 1px solid #b30000;
  min-width: 200px;
  box-shadow: 0 0 10px rgba(179, 0, 0, 0.4);
  z-index: 1;
}

.dropdown-content a {
  color: #ccc;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
  font-weight: 500;
}

.dropdown-content a:hover {
  background-color: #890000;
  color: #fff;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* --- INTERNAL NAVBAR / TOPBAR --- */
.topbar {
  background-color: #890000;
  color: #f2f2f2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 600px;
  padding: 0 20px;                /* reduced height */
  border-radius: 5px;               /* round all four corners */
  font-size: 0.95rem;
  line-height: 1;                   /* keeps text vertically centered */
  box-shadow: inset 0 -1px 0 #7a0000; /* subtle bottom inner line for depth */
  margin: 0 auto 8px auto;
}


/* Links inside */
.topbar a {
  color: #f2f2f2;
  text-decoration: none;
  margin: 0 8px;
  font-weight: 600;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.topbar a:hover {
  color: #fff;
  text-shadow: 0 0 6px #000;
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: none;
  border: none;
  color: #f2f2f2;
  font-weight: 300;
  cursor: pointer;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  align-items: center
}

.dropbtn:hover {
  color: #fff;
  text-shadow: 0 0 6px #000;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #111;
  border: 1px solid #b30000;
  min-width: 180px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.dropdown-content a {
  display: block;
  color: #ccc;
  padding: 10px 12px;
  text-decoration: none;
  font-weight: 500;
}

.dropdown-content a:hover {
  background-color: #b30000;
  color: #fff;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Responsive stack for small screens */
@media (max-width: 600px) {
  .topbar {
    flex-direction: column;
    text-align: center;
  }

  .nav-left {
    margin-bottom: 8px;
  }
}

/* Custom link style for in-text links */
.text-link {
  color: #ff6b6b; /* light red */
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  overflow-wrap: anywhere;
}

.text-link:visited {
  color: #cc2e2e; /* darker red */
}

.text-link:hover {
  color: #ff8787; /* lighter red on hover */
  text-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
}

.text-link:active {
  color: #e63946; /* mid red */
}
