/*
Colour Scheme Hex Codes
Dark Green: #033220
Forest Green: #024818
Lighter Green: #026402
Cherry Blossom Pink: #FFB7C6
Charm Pink: #E78FAC
Darker Pink: #D7789F
*/



h1{
    color: #D7789F;
}

.hidden { display: none; }
.confirmation {
  background: #eef9f0;
  border: 1px solid #024818;
  padding: 10px;
  border-radius: 6px;
  margin-top: 12px;
}

/* ===== Header ===== */
.site-header {
    background-color: #024818; /* Forest Green */
    padding: 12px 24px;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    height: 48px;
    width: auto;
}

.site-title {
    color: #FFB7C6; /* Cherry Blossom Pink */
    font-size: 1.6rem;
    font-weight: bold;
}

/* Push page content away from header */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    padding-left: 10px;
}


/* Form Styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

form {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

form {
  font-family: system-ui, sans-serif;
}

label {
  font-weight: 500;
}

input,
select,
textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

input:invalid {
  border-color: #dc2626;
}

/* ELO Table Styles */

.elo-table-wrapper {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.elo-table {
  width: 100%;
  border-collapse: collapse;
}

.elo-table th,
.elo-table td {
  padding: 0.6rem 0.8rem;
}

.elo-table thead {
  background: #f3f4f6;
  font-weight: 600;
}


.elo-table td,
.elo-table th {
  white-space: nowrap;
}

.elo-table th,
.elo-table td {
    text-align: center;
}

@media (max-width: 480px) {
  .elo-table-wrapper {
    overflow-x: auto;
  }
}

/* Match Table Styles */

.match-table-wrapper {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.match-table {
  width: 100%;
  border-collapse: collapse;
}

.match-table th,
.match-table td {
  padding: 0.6rem 0.8rem;
}

.match-table thead {
  background: #f3f4f6;
  font-weight: 600;
}


.match-table td,
.match-table th {
  white-space: nowrap;
}

.match-table th,
.match-table td {
    text-align: center;
}

@media (max-width: 480px) {
  .match-table-wrapper {
    overflow-x: auto;
  }
}

/* Form Confirmation Styles */

.hidden {
  display: none;
}

#confirmation {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4caf50;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 9999;
}

#confirmation.show {
  opacity: 1;
}

