/* The header's height, which the page content (.Content) starts below: 10px above and below its 52px buttons */
:root {
  --header-height: 72px;
}

.Header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-sizing: border-box;
  height: var(--header-height);
  padding: 0 20px; /* its contents are centered in the height, so the space above and below them is the same */
  justify-content: space-between;
  align-items: center;
  color: white;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

/* The title is a link home: it looks like the title, not a link */
.Header .titleLink {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.Header .title {
  margin: 0;
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.Header .userSection {
  display: flex;
  align-items: center;
  gap: 6px;
}

.Header .loginSection {
  display: flex;
}

.Header .emailBadge {
  background: rgba(255, 255, 255, 0.2);
  padding: 15px 25px;
  border-radius: 12.5px;
  backdrop-filter: blur(10px);
  margin-right: 7.5px;
}

.Header button {
  margin: 0 0 0 10px; /* the space on the left instead of the right (see button), so the last one ends at the header's padding */
  background: rgba(255, 255, 255, 0.9);
  color: #764ba2;
  padding: 15px 25px;
  border-radius: 12.5px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.Header button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* The Guide link (opens the guide in a new tab), drawn like the header's buttons */
.Header .guideLink {
  margin: 0 0 0 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #764ba2;
  padding: 15px 25px;
  border-radius: 12.5px;
  font-family: 'Roboto', sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.Header .guideLink:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Logged out: the Guide link, then the email field */
.Header .loginSection .guideLink {
  margin: 0 17.5px 0 0;
}

.Header .input {
  padding: 15px 25px;
  border-radius: 12.5px;
  border: none;
  outline: none;
  min-width: 250px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin-right: 7.5px;
}

.Content {
  position: fixed;
  top: var(--header-height); /* right below the header, not over its bottom edge */
  left: 0;
  right: 0;
  bottom: 0;
  background-color: black;
}

.LoggedInMainPage {
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto; /* the settings sit below the games list */
  padding: 40px;
  text-align: center;
}

/* The home page when logged out: the email field and Log In, then a note on how logging in works */
.LoginPage {
  padding: 80px 40px;
  text-align: center;
  color: white;
}

.LoginPage input {
  width: 320px;
  padding: 12px 20px;
  border: 2px solid #764ba2;
  border-radius: 25px 0 0 25px;
  font-size: 16px;
  vertical-align: top;
}

.LoginPage button {
  margin: 0;
  padding: 12px 24px;
  border-radius: 0 25px 25px 0;
  font-size: 19px;
}

.LoginPage .loginNote {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
}

/* How the game is meant to be played, above the login */
.LoginPage .howToPlay {
  max-width: 620px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  line-height: 1.5;
}

/* A join link was opened: the game waiting for the login */
.LoginPage .invite {
  margin: 0 auto 24px;
  font-size: 18px;
  color: #ffc107;
}

/* After a login link is sent: check your email, or start over with another */
.LoginPage h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.LoginPage button.otherEmail {
  margin-top: 24px;
  border-radius: 25px;
  font-size: 16px;
}

.LoginPage .guideLink {
  display: inline-block;
  margin-top: 32px;
  color: #b9a3f5;
  font-size: 17px;
}

/* Shown instead of the login when the server is at capacity (ServerBusyEvent): the ask, why, PayPal's button, then
   Try Again or Back */
.DonatePage {
  max-width: 620px;
  margin: 0 auto;
  padding: 80px 16px;
  text-align: center;
  color: white;
}

.DonatePage h2 {
  margin: 0 0 20px;
  font-size: 32px;
  line-height: 1.3;
}

.DonatePage p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.DonatePage .reason {
  color: #ffc107;
}

.DonatePage .after {
  margin-top: 32px;
}
