/* Base Theme Colors */
:root {
  --primary-color: #d90429; /* Vibrant Red */
  --accent-color: #ef233c; /* Lighter Red */
  --dark-color: #2b2d42; /* Dark gray for text */
  --light-color: #edf2f4; /* Light background */
  --white: #ffffff;
  --black: #000000;
  --border-radius: 6px;
  --transition: all 0.3s ease;
  --font-stack: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Global Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.6;
  padding: 2rem;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

/* Paragraphs & Text */
p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--dark-color);
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}
a:hover,
a:focus {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Buttons */
button,
input[type="submit"],
input[type="button"] {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background-color: var(--accent-color);
}

button {
  border: 2px solid var(--primary-color);
}

/* Forms */
input,
input[readonly],
input[type="text"],
input[type="email"],
input[type="password"],
input[name="player_1"],
input[name="player_2"],
input[name="player_3"],
input[name="player_4"],
input[name="player_5"],
input[name="player_6"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  font-size: 1rem;
  transition: var(--transition);
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(217, 4, 41, 0.2);
}

/* Lists */
ul,
ol {
  margin: 1rem 0 1rem 2rem;
}
li {
  margin-bottom: 0.5rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
th,
td {
  padding: 0.75rem;
  border: 1px solid #ccc;
  text-align: left;
}
th {
  background-color: var(--primary-color);
  color: var(--white);
}

hr {
  border: 1px solid red;
  margin: 20px;
}

/* Utility Classes */
.text-center {
  text-align: center;
}
.round {
  border-radius: 8px;
  border: 2px solid white;
  background-color: white;
  margin: 10px;
  padding: 10px;
}
.drop-shadow {
  box-shadow:
    /* white outline */ 0 0 0 2px white,
    /* black glow */ 0 0 15px rgba(0, 0, 0, 0.7);
}
.center-horizontally {
  display: flex;
  justify-content: center;
  height: 100vh;
}
.center-vertically {
  display: flex;
  align-items: center;
  height: 100vh;
}
.mt-1 {
  margin-top: 1rem;
}
.mb-1 {
  margin-bottom: 1rem;
}
.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}
.login-box {
  width: 25%;
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  h4,
  h5,
  h6 {
    font-size: 1.25rem;
  }

  .login-box {
    width: 90%;
  }
}
/* Styled Checkboxes */
.checkbox-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-right: 15px;
}
.checkbox-label input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--dark-color);
  border-radius: 4px;
  margin-right: 6px;
  position: relative;
}
.checkbox-label input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 4px;
  width: 6px;
  height: 12px;
  border: solid var(--primary-color);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.container-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 224px);
  gap: 8px 16px;
}

.container-video {
  height: 146px;
  width: 224px;
}

.thumbnail {
  height: 126px;
  width: 224px;
}

.thumbnail-text {
  height: 20px;
  width: 100%;
  margin: 0px 0px 0px 0px;
  text-align: center;
}

/* Bid selectors */
.bid-select {
  width: 33%;
  margin-right: 4px;
}
.bid-select:last-child {
  margin-right: 0;
}

@media (min-width: 769px) {
  #finished_at_input {
    width: 30%;
  }
}

/* Homepage styles */
.hero {
  background: linear-gradient(
    135deg,
    rgba(217, 4, 41, 0.08),
    rgba(239, 35, 60, 0.06)
  );
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius);
  padding: 1.25rem 1rem;
}
.hero .kicker {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0.35rem;
}
.cta-group {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

/* Button styles for anchor elements */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.6rem 1.1rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
}
.btn:hover,
.btn:focus {
  background-color: var(--accent-color);
  color: var(--white);
  text-decoration: none;
}
.btn.btn-outline {
  background-color: var(--white);
  color: var(--primary-color);
}
.btn.btn-outline:hover,
.btn.btn-outline:focus {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Grids */
.card-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

/* App cards */
.app-card {
  display: block;
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--border-radius);
  padding: 1rem;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}
.app-card:hover,
.app-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.app-card .app-icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.app-card h3 {
  margin: 0 0 0.25rem 0;
  color: var(--dark-color);
}
.app-card p {
  margin: 0;
  color: #444;
  font-size: 0.95rem;
}

/* Feature cards */
.feature-card {
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--border-radius);
  padding: 1rem;
}
.feature-card .feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
