@font-face {
  font-family: Fredoka;
  src: url("https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Pacifico&display=swap");
}

@font-face {
  font-family: Fredoka;
  font-style: normal; /* See note below */
  font-stretch: 75% 125%;
  font-weight: 100 800;

  src: url("https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Pacifico&display=swap");
}

@font-face {
  font-family: Fredoka;
  font-style: italic;
  src: url("https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Pacifico&display=swap");
  font-weight: 100 800;
  font-stretch: 75% 125%;
}
@font-face {
  font-family: Fredoka;
  font-style: bold;
  src: url("https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Pacifico&display=swap");
  font-weight: 100 800;
  font-stretch: 75% 125%;
}

:root {
  --bg-color-primary: #549ecb;
  --bg-color-accent: #0070be;
  --bg-color-subtle: #aed0e6;

  --bg-color-golden-yellow: #f7d038;
  --heading-deep-sky-blue: #00bfff;
  --heading-light-gray: #d3d3d3;

  --text-color-dark: #333;
  --text-color-light: #ffffff;
  --text-color-muted-light: #cccccc;

  --btn-bright-blue: #007bff;
  --btn-light-steel-blue: #b0c4de;

  --shadow: rgba(0, 0, 0, 0.1);
}

.container {
  display: grid;

  grid-template-areas:
    "header header"
    "nav content"
    "footer footer";

  grid-template-columns: 200px 1fr;
  grid-template-rows: auto 1fr auto;

  gap: 0;
  width: 100vw;
  max-width: 1000px;
  height: 100vh;
  margin: 0 auto;
}

body {
  font-family: Fredoka;
  font-variation-settings: "wght" 400;
  background-color: var(--bg-color-primary);
  color: var(--text-color-dark);
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100%;
}

header {
  grid-area: header;
  margin-bottom: -10px;
  background-color: var(--bg-color-primary);
}

nav {
  grid-area: nav;
  font-size: 1.2em;
  font-variation-settings: "wght" 500;
  background-color: var(--bg-color-subtle);
  padding-inline: 0.5em;
}

main {
  grid-area: content;
  background-color: var(--bg-color-primary);
  padding: 10px 20px;
}

footer {
  background-color: var(--bg-color-primary);
  grid-area: footer;
}

.banner {
  max-width: 100%;
}

.subtitle {
  background-color: var(--bg-color-subtle);
  text-align: center;
  width: 100%;
  margin-top: -10px;
  margin-bottom: 0.5em;
  padding-top: 15px;
  padding-bottom: 15px;
  padding-left: 0px;
  padding-right: 0px;
}

.subtitle p {
  font-size: 1em;
  font-weight: bold;
  line-height: 1.5;
  margin: 0;
  padding: 0 2em;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  background-color: var(--bg-color-golden-yellow);
  border-radius: 0.4em;
  margin-block: 0.5em;
}

nav ul li a {
  display: block;
  text-align: center;
  padding: 0.5em 1em;
  color: inherit;
  text-decoration: none;
}

nav li.active,
nav li:hover {
  background-color: var(--bg-color-accent);
  color: white;
}

nav a {
  text-decoration: none;
  color: var(--text-color-dark);
}

.sub-nav-container {
  display: flex;
  gap: 0.8em;
  margin-inline: auto;
  margin-block: 0.5em;
  flex-direction: row;
  width: fit-content;
}
.page-head {
  text-align: center;
  font-style: bold;
  font-variation-settings: "wght" 500;
  margin: 0px 5px 15px;
}

/* SHOW CARD */
.show-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 80%;
  padding: 10px 0 40px;
  margin-inline: auto;
  margin-bottom: 1.5em;
  border-radius: 2em;
  background-color: var(--bg-color-golden-yellow);
  box-shadow: 0 4px 10px var(--shadow);
}

.show-card h2 {
  margin: 5px;
}

/* BUTTON */
.btn-general {
  display: inline-block;
  background-color: var(--bg-color-golden-yellow);
  text-decoration: none;
  padding: 0.4em 0.8em;
  border-radius: 0.4em;
  transition: background-color 0.15s ease;
}
.btn-general a {
  color: var(--text-color-dark);
  text-decoration: none;
}

.btn-general:hover {
  background-color: var(--bg-color-accent);
}

.invert-button {
  background-color: var(--bg-color-primary);
}

.invert-button a {
  color: var(--text-color-light);
}

.poster {
  width: 90%;
  display: block;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 2em;
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

.cast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-color: var(--bg-color-golden-yellow);
  border-radius: 2em;
  box-shadow: 0 4px 10px var(--shadow);
  width: 100%;
  padding: 5px 0 0px;
  margin-inline: auto;
}

.cast-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 5px;
}

.cast-name {
  display: flex;
  flex-direction: row;
  align-items: baseline;
}

.cast-card h2 {
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}

.cast-card .pronouns {
  font-size: 0.7em;
  margin-inline-start: 0.4em;
}

.cast-card img {
  max-width: 90%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2em;
}

.cast-card .cast-bio {
  width: 90%;
  font-weight: bold;
}

/* MOBILE */
@media (max-width: 768px) {
  .container {
    grid-template-areas:
      "header"
      "nav"
      "content"
      "footer";

    grid-template-columns: 1fr;
    grid-template-rows:
      auto /* Header */
      minmax(auto, auto) /* Nav */
      1fr /* Content */
      auto; /* Footer */
  }

  main {
    width: 100vw;
    padding-inline: 0;
  }

  .show-card {
    min-width: 100%;
  }

  nav {
    margin: 0px;
  }
  .cast-grid {
    grid-template-columns: repeat(1, 2fr);
  }
  .cast-card h2 {
    padding-top: 0.25em;
  }
}
