/* =========================
   Golf Theme CSS
   ========================= */

/* Root Variables */
:root {
  --fairway-green: #2e7d32;
  --deep-green: #1b5e20;
  --light-green: #e8f5e9;
  --sand: #f4e7c5;
  --sky-blue: #e3f2fd;
  --flag-red: #c62828;
  --dark-text: #1f1f1f;
  --soft-shadow: rgba(0, 0, 0, 0.12);
}

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

body {
  /*font-family: "Georgia", "Times New Roman", serif;*/
  font-family: Arial, Helvetica, sans-serif;
  /*background: linear-gradient(to bottom, var(--sky-blue), var(--light-green));*/
  background: linear-gradient(to bottom, var(--sky-blue), var(--sky-blue));
  /*color: var(--dark-text);*/
  line-height: 1.6;
}

/* Header */
header {
  background: linear-gradient(
    135deg,
    var(--deep-green),
    var(--fairway-green)
  );
  color: white;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 8px var(--soft-shadow);
}

header h1 {
  font-size: 2.2rem;
  letter-spacing: 1px;
}

header p {
  opacity: 0.9;
}

/* Navigation */
nav {
  margin-top: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  margin-right: 1.5rem;
  font-weight: 600;
}

nav a:hover {
  text-decoration: underline;
}

/* Main Content */
main {
  padding: 2rem;
  max-width: 1100px;
  margin: auto;
}

/* Golf Card (Courses, Players, Scores) */
.card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 12px var(--soft-shadow);
  border-left: 6px solid var(--fairway-green);
}

.card h2 {
  margin-bottom: 0.5rem;
  color: var(--deep-green);
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--fairway-green);
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s ease, transform 0.1s ease;
}

.button:hover {
  background: var(--deep-green);
  transform: translateY(-1px);
}

.button--danger {
  background: var(--flag-red);
}

.button--danger:hover {
  background: #8e1b1b;
}

/* Score Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th,
td {
  padding: 0.75rem;
  text-align: center;
}

th {
  background: var(--fairway-green);
  color: white;
}

tr:nth-child(even) {
  background: var(--light-green);
}

/* Golf Badge (e.g., Par, Birdie) */
.badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: bold;
}

.badge--par {
  background: var(--sand);
}

.badge--birdie {
  background: #c8e6c9;
  color: var(--deep-green);
}

.badge--bogey {
  background: #ffcdd2;
  color: #b71c1c;
}

/* Footer */
footer {
  background: var(--deep-green);
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}
 
/* Header Layout */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Right-side logo + company name */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.company-logo {
  height: 48px;
  width: auto;
}

.company-name {
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

button, input[type="submit"], input[type="button"] {
  /* Apply consistent styles here */
  background-color: #007bff;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  /* Add more styles as needed */
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* Fallback for older browsers */
    min-height: 100vh; /* Recommended for full viewport height */
    width: 100%;
}
