/**
 * Global styles
 */
 
:root {
  --sea-body-color: #222222;
  --sea-background: #fafaf2;
  --sea-cream: #fafaf2;
  --sea-main: #41acba;
  --sea-teal: #41acba;
  --sea-secondary: #2b5583;
  --sea-dark-blue: #2b5583;
  --sea-accent-1: #ce752d;
  --sea-dark-orange: #ce752d;
  --sea-accent-2: #fb24ff;
  --sea-fuschia: #fb24ff;
  --sea-accent-3: #ecb51b;
  --sea-mustard-yellow: #ecb51b;
  --sea-accent-4: #95d1da;
  --sea-accent-5: #4CADC9;
  --sea-accent-6: #39a0bd;

  --ast-global-color-0: #00558c;
  --ast-global-blue: #00558c;
  --ast-global-lightblue: var(--sea-teal);
  --ast-global-purple: #2b3990;
  --ast-global-darkgreen: #07733b;
  --ast-global-lightgreen: #2266b1;
  --ast-global-darkblue: var(--sea-dark-blue);
  --ast-global-background: var(--sea-cream);
  --ast-global-grey: #bcbec0;
  --ast-global-darkgrey: #58595b;
  --ast-global-black: #000000;

  --bs-light-rgb: var(--sea-cream);
  --bs-dark-rgb: var(--sea-dark-blue);
  --bs-list-group-bg: var(--sea-cream) !important;

  --sea-body-font: Roboto, Sans-serif;
  --sea-heading-font: Cookie, handwriting;
  --sea-subheading-font: Montserrat, sans-serif;
}

body {
  --bs-body-color: var(--sea-body-color);
  --bs-body-font-family: var(--sea-body-font);
  --bs-link-color: var(--sea-secondary);
  --bs-link-hover-color: var(--sea-main);

  font-family: var(--sea-body-font);
  background-color: var(--ast-global-background);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--sea-heading-font);
  font-style: normal;
  font-weight: 400;
  color: var(--sea-dark-blue);
}

h1 {
  font-size: 2em;
  line-height: 1.2;
}

h2 {
  font-size: 1.7em;
  line-height: 1.3;
}

h3,
legend {
  font-size: 1.5em;
  line-height: 1.4;
}

h4 {
  line-height: 1.5;
  font-size: 1.3em;
}

h5 {
  line-height: 1.6;
  font-size: 1.2em;
}

h6 {
  line-height: 1.7;
  font-size: 1.1em;
}

.btn {
  font-family: var(--sea-body-font);
  color: var(--sea-cream);
  background-color: var(--sea-accent-5);
  border: none;
  text-decoration: none;
}
.btn:is(:hover, :focus) {
  color: var(--sea-cream);
  background-color: var(--sea-accent-6);
}
.btn:active {
  --bs-btn-active-color: var(--sea-cream);
  --bs-btn-active-bg: var(--sea-accent-6);
}

/**
 * Layout styles
 */

.navbar {
  z-index: 999;
  position: fixed;
  inset-inline: 0;
  max-height: none;
  background-color: var(--sea-dark-blue) !important; /* !important needed to override bootstrap */
}

.navbar .d-flex {
  width: 100%;
}

.navbar-nav {
  flex-grow: 1;
}

.navbar-mobile-toggle {
  margin-left: auto;
}

@media (min-width: 992px) {
  .nav-logout {
    margin-left: auto;
    align-self: center;
  }
}

.nav-logout .btn {
  font-size: 15px;
}

.nav-link {
  color: var(--sea-accent-4);
  font-family: var(--sea-body-font);
  font-size: 15px;
}

.nav-link:is(:hover, :focus) {
  color: var(--sea-accent-3);
}

.footer {
  text-align: center;
  background-color: var(--ast-global-background);
}

.footer .container + .container {
  margin-top: 1em;
}

#login {
  margin-inline: auto;
}

.d-flex .row {
  width: 100%;
}

.grid-container {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

/**
 * Page-specific styles
 * I'm not actually sure where a lot of these are being used?
 */

.panel {
  background: var(--sea-cream) !important;
}

.lead {
  font-size: 18px;
  font-weight: 400;
}

.center-title {
  color: #283891;
  font-family: Roboto Slab;
  font-size: clamp(1.875rem, 1.5461rem + 1.3158vw, 3.125rem);
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
}

table.results {
  border-collapse: collapse;
  width: 100%;
}

.results th,
.results td {
  border: 1px solid #dee2e6;
}

.results td {
  border: 1px solid #dee2e6;
  text-align: center;
}

.results td:empty {
  border: none;
}

.results .eliminated {
  background-color: lightgrey;
  color: darkred;
}

.results .winner {
  background-color: var(--ast-global-lightblue);
}

.results .won {
  font-weight: bold;
}

.header-image {
  width: 150px;
  height: auto;
}

.inside-header {
  padding: 20px 40px;
}

.site-header {
  background-color: var(--sea-teal);
  position: relative;
}

.site-branding-container {
  display: inline-flex;
  align-items: center;
  text-align: left;
  flex-shrink: 0;
}

.site-branding-container .site-logo {
  margin-right: 1em;
}

.site-logo {
  display: inline-block;
  max-width: 100%;
}

.site-description {
  font-family: Cookie, handwriting;
  font-size: 30px;
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
  text-transform: none;
}
