@charset "utf-8";

html {
  box-sizing: border-box;
}


*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Custom Font & Color Properties - Torin */
:root {
  --font-header: "Madimi One", "Garamond", serif;
  --font-body: "Red Hat Display", "Verdana", sans-serif;
  --color-dk-blue: hsl(195, 67%, 30%);
  --color-lt-blue: hsl(187, 64%, 73%);
  --color-orange: hsl(28, 83%, 90%);
  --color-black: hsl(195, 67%, 10%);
  --color-white: hsl(187, 62%, 96%);
}

body {
  margin: 0;
  background: var(--color-black) url(../images/space.webp) repeat center / 375px 250px;
  padding-bottom: 192px;
  font-family: var(--font-body);
  color: var(--color-black);
}

/* Header and H1 Styling - Anna */
header h1 {
  text-align: center;
  font-size: 3em;
  color: var(--color-dk-blue);
  text-shadow:
  -1px -1px 0 var(--color-black),
   1px -1px 0 var(--color-black),
  -1px  1px 0 var(--color-black),
   1px  1px 0 var(--color-black);
   text-decoration: underline;
   letter-spacing: 3px;
}

/* Madimi One font for all header elements */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-header);
  color: var(--color-black);
}

/* Error page styling - fixes contrast ratio */
main>h2,
main>p {
  color: var(--color-white);
}

/* Do not remove min-height */
/* Wrapper - Trevor */
.wrapper {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
  padding: 0 2.5rem;
  background: var(--color-white);
  min-height: calc(100dvh);
  margin: 0 auto 0;
  max-width: 1200px;
  box-shadow: 0 12px 12px -8px var(--color-white);
}

/* This makes all the main sections span full width by default */
header,
nav,
main,
.resources,
.pull-quotes,
footer {
  grid-column: 1 / -1;
  width: 100%;
}

/* END Wrapper */
nav {
  padding: 10px;
  background-color: var(--color-orange);
  box-shadow: 0 0 10px var(--color-dk-blue);
  border-radius: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  gap: 20px;
  width: 100%;
  justify-content: center;
}

nav ul li {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
  flex: 0 0 calc(50% - 20px);
}

nav ul li a {
  text-decoration: none;
  border: 1px solid var(--color-black);
  box-shadow: 4px 4px var(--color-black);
  background: var(--color-lt-blue);
  color: var(--color-black);
  transition: 0.3s ease-in;
  padding: 5px;
}

nav ul li a:hover {
  background: var(--color-dk-blue);
  color: var(--color-orange);
}

nav ul li a:active {
  transition: none;
  transform: translateY(4px);
  transform: translateX(4px);
  box-shadow: none;
}

/* Main Cards- Alex */
.cards {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-right: 2rem;
  margin-top: 1rem;
  padding-bottom: 1rem;
}

.card {
  background: var(--color-orange);
  padding-bottom: 1rem;
  box-shadow: 0 0 6px var(--color-lt-blue);
  transition-duration: 300ms;
}

.card:hover {
  box-shadow: 4px 4px var(--color-black);
  transition-duration: 300ms;
}

.card h2 {
  padding-left: 0.5rem;
}

.card img {
  height: 212px;
  padding-left: 0.5rem;
}

.card p {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  font-size: 1.1rem;
}

.resources {
  background-color: #fbe1cd;
  border: 4px solid #2a5a68;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 2rem auto;
  box-shadow: 3px 3px 0 #2a5a68;
  max-width: 100%;
}

.resources h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.resources a {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* 🔹 Responsive for tablets/desktops */
@media (min-width: 768px) {
  .resources {
    max-width: 800px;
    padding: 2rem;
  }

  .resources h2 {
    font-size: 2rem;
  }

  .resources a {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
  }
}

main {
  display: grid;
  width: 80%;
  grid-row: 3;
  background-color: var(--color-dk-blue);
  padding-left: 25px;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  main {
    width: 100%;
    padding-left: 35px;
  }
}

@media (min-width: 1025px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  main {
    grid-row: 4;
    padding-left: 40px;
  }
}

.card a {
  margin-left: 0.5rem;
  text-decoration: none;
  border: 1px solid var(--color-black);
  box-shadow: 4px 4px var(--color-black);
  background: var(--color-lt-blue);
  color: var(--color-black);
  transition: 0.3s ease-in;
  padding: 5px;
}

.card a:hover {
  background: var(--color-dk-blue);
  color: var(--color-orange);
  transition: 0.3s ease-in;
}

/* End Main Cards */
/* =================== */
/*==== Block Quotes ====*/
.pull-quotes {
  margin: auto;
  padding: 10px;
  padding-bottom: 3em;
  margin-top: 2em;
  margin-bottom: 2em;
  top: 5em;
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 0 30px var(--color-dk-blue);
  background: var(--color-orange);
}

.pull-quotes h2 {
  text-align: center;
  font-size: 3.5em;
  font-weight: 900;
  top: 10px;
  padding: 15px;
  -webkit-text-stroke: 2px var(--color-dk-blue);
}

.pull-quotes blockquote {
  margin-top: 10px;
  padding: 2rem;
  border: 2px solid var(--color-dk-blue);
  border-radius: 10px;
  box-shadow: 0 5px 10px var(--color-dk-blue);
  background: var(--color-white);
}

blockquote p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

blockquote cite {
  margin-left: 2rem;
  font-size: 1.2em;
  font-weight: 700;
  display: block;
  color: var(--color-dk-blue);
  margin-bottom: 0.5rem;
}

blockquote a {
  display: inline-block;
  padding: 5px;
  text-decoration: none;
  border: 1px solid var(--color-black);
  box-shadow: 4px 4px var(--color-black);
  background: var(--color-lt-blue);
  color: var(--color-black);
  transition: 0.3s ease-in;
}

blockquote a:hover {
  background: var(--color-dk-blue);
  color: var(--color-white);
}

blockquote a:active {
  transform: translateY(4px);
  transform: translateX(4px);
  box-shadow: none;
}

/* ======================= */
/*==== End Block Quotes ====*/
/* Footer Shell - Robert */
footer:has(.terminal) {
  flex-wrap: wrap;
}

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: middle;
}

.terminal {
  min-width: 1000px;
  flex: 0 0 100%;
  font-family: "Courier Prime", monospace;
  background: hsl(240, 1%, 21%);
  color: hsla(101, 45%, 47%, 1);
  line-height: 2;
  padding: 1em;
}

.terminal code {
  display: block;
}

.terminal code {
  color: white;
}

.terminal > span {
  display: block;
}

.terminal > .terminal-prompt {
  color: hsla(214, 75%, 57%, 1);
  font-weight: bold;
}

.terminal .terminal-command {
  color: white;
}

.terminal .terminal-caret-shape-block::before {
  content: " ";
  animation: blink 1s step-end infinite;
  border-left: 1ch solid white;
  margin-left: 1ch;
}

footer.shell {
  display: grid;
  justify-content: center;
  gap: 20px;
  clear: both;
  position: fixed;
  z-index: -1;
  /* right: 0; */
  bottom: 0;
  width: 100%;
  /* left: 0; */
}

footer.shell svg {
  margin-left: 5px;
  transform: translateY(1px);
}

footer.shell a {
  text-decoration: none;
  color: var(--color-link-secondary);
}

footer.shell :first-child {
  margin-right: auto;
}

footer.shell :last-child:not(.terminal-prompt) {
  margin-left: var(--gap);
}

footer:not(.shell) {
  display: flex;
  grid-column: -1/1;
}

footer:not(.shell) :first-child {
  margin-right: auto;
}

footer:not(.shell) a {
  margin-left: 5px;
}

/* END footer.shell */
@media (min-width: 768px) {
  nav ul li {
    width: 25%;
    flex: 0 0 calc(25% - 20px);
  }
}

@media (min-width: 1025px) {
  nav ul li {
    width: 12.5%;
    flex: 0 0 calc(12.5% - 20px);
  }
}
