header {
  background-color: transparent !important;
  position: absolute !important;
}

main {
  --windowWidth: calc(100vw - (2*7.5vw));
  gap: 10rem;
  padding: 0 7.5vw 5rem 7.5vw;
}

.buttonGrid {
  display: flex;
  flex-flow: row wrap;
  gap: 0.75rem;
}

.buttonGrid a {
  text-decoration: none;
}

h2 {
  font-family: var(--oswald);
  font-size: 2.5rem;
  font-weight: 500;
  margin: 0 0 0.5rem 0;
  text-wrap: balance;
}

#what-is-sunsketcher h2, #so-how-does-this-work-anyway h2, #supported-by-nasa h2 {
  color: var(--themeOrange);
}
#we-know-what-youre-thinking h2, #latest-from-sunsketcher h2, #the-sunsketcher-universe h2 {
  color: var(--brandBlue);
}

h3 {
  font-family: var(--montserrat);
  font-weight: 400;
}

/* Layout Classes */

.twoHalfLayout {
  align-items: space-between;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}
.layoutHalf {
  display: flex;
  flex-flow: column nowrap;
}
.layoutHalf img {
  align-self: center;
  max-height: 400px;
  padding: 0 1rem;
}
.caption {
  font-family: var(--oswald);
  font-weight: 300;
  padding: 0 1rem;
  text-align: center;
  text-wrap: balance;
}

.layoutHalf.even {
  width: calc((var(--windowWidth) * 0.5) - 1rem);
}
.layoutHalf.even img {
  max-width: calc((var(--windowWidth) * 0.5) - 1rem);
}

.layoutHalf.wide {
  width: calc((var(--windowWidth) * 0.6) - 2rem);
}
.layoutHalf.wide img {
  max-width: calc((var(--windowWidth) * 0.6) - 2rem);
}

.layoutHalf.thin {
  width: calc((var(--windowWidth) * 0.4));
}
.layoutHalf.thin img {
  max-width: calc((var(--windowWidth) * 0.4));
}

.layoutHalf.maj{
  width: calc((var(--windowWidth) * 0.75) - 2rem);
}
.layoutHalf.maj img {
  max-width: calc((var(--windowWidth) * 0.75) - 2rem);
}

.layoutHalf.min {
  width: calc((var(--windowWidth) * 0.25));
}
.layoutHalf.min img {
  max-width: calc((var(--windowWidth) * 0.25));
}

/* Hero */

#hero {
  align-items: flex-end;
  background-color: black;
  color: white;
  display: flex;
  flex-flow: column nowrap;
  min-height: 100vh;
  justify-content: center;
  position: relative;
  width: 100vw;
}

#heroBg {
  height: 100vh;
  left: 0;
  position: absolute;
  top: 0;
  width: auto;
  z-index: 0;
  transform : translate3d(0, 0, 0);
}

#heroCopy {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
  margin: 3rem 3rem 0 0;
  width: 60vw;
}

h1 {
  animation: 1.25s ease-out 750ms 1 forwards buildGlow;
  font-family: 'Fugaz One', 'Russo One', 'Arimo', Helvetica, sans-serif;;
  font-size: 6rem;
  line-height: 102%;
  margin: 0;
  text-shadow: 3px 0px 12px white, 0px 0px 8px white;
  text-wrap: balance;
}

@keyframes buildGlow {
  0% {
    text-shadow: 3px 0px 12px white, 0px 0px 8px white;
  }
  100% {
    text-shadow: 3px 0px 12px black, 0px 0px 8px white;
  }
}

#heroCopy p {
  margin: 0;
}

#message {
  bottom: 5px;
  font-size: 0.8rem;
  font-style: italic;
  left: 5px;
  margin: 0;
  position: absolute;
}

#imgCred {
  color: var(--brandDarkGrey)
}

/* Countdown */

#countdown {
  display: flex;
  flex-flow: row wrap;
  gap: 1rem;
  justify-content: center;
  margin-left: 7.5vw;
  min-width: 300px;
}

.countdownPlace {
  align-items: center;
  display: flex;
  flex-flow: column nowrap;
  margin: 0;
}

.countdownNumber {
  background: linear-gradient(to top, #ffcd70, rgb(241, 237, 223) 50%, transparent 50%);
  color: white;
  font-size: 4.35rem;
  font-family: var(--impact);
  letter-spacing: 1px;
  margin: 0;
  min-width: 6.5rem;
  padding: 0 0.5rem 0.25rem 0.25rem;
  text-align: center;
  text-shadow: 2px 2px 4px rgb(77, 56, 0);
}

.countdownUnit {
  color: white;
  font-family: 'Teko', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  margin: 0;
  vertical-align: sub;
}

@media  only screen and (max-width: 500px) {
  #secondsPlace {
    display: none;
  }
}

@media screen and (max-width: 1000px) {
  @keyframes dim {
    0% {
      opacity: 1;
    }
    100% {
      opacity: 0.8;
    }
  }

  #hero {
    align-items: center;
  }
  #heroBg {
    animation: 1.25s ease-out 750ms 1 forwards dim;
    height: 100vh;
    left: 0;
    object-fit: cover;
    top: 0;
    width: 100vw;
  }
  #heroCopy {
    align-items: center;
    gap: 1.25rem;
    height: 100%;
    margin: 0;
    width: 85%;
  }
  h1 {
    font-size: 4rem;
    text-align: center;
  }

  .countdownNumber {
    font-size: 3rem;
    min-width: 5rem;
    padding: 0 0.5rem 0.25rem 0.25rem;
  }
}

@media screen and (max-width: 600px) {
  #hero {
    padding-top: 3rem;
    justify-content: center;
  }
  h1 {
    font-size: 3rem;
  }
}

/* Hero Transitioner */

#heroDivider {
  background: linear-gradient(black, white);
  height: 5vh;
  margin-top: -10rem;
  width: 100vw;
}

/* We Know... */

#we-know-what-youre-thinking {
  align-items: center;
}

#we-know-what-youre-thinking .wide {
  padding: 0 2rem;
}

/* How Does it Work */

#so-how-does-this-work-anyway {
  align-items: center;
}

#tutorial {
  margin-left: 1rem;
}

/* Socials & SunSketcherUniverse */

.homepageSocialButton div, .sunsketcherUniverseButton {
  align-items: center;
  background-color: white;
  border: 1px solid var(--brandBlack);
  border-radius: var(--uiBorderRadius);
  color: var(--brandBlack);
  display: flex;
  font-family: var(--openSans);
  font-weight: 600;
  position: relative;
  text-decoration: none;
}

.homepageSocialButton div:hover, .sunsketcherUniverseButton:hover {
  background-color: var(--cue);
  box-shadow: 3px 3px 0px var(--brandBlack);
  color: var(--brandWhite);
}

/* Latest from SunSketcher */

#latest-from-sunsketcher {
  align-items: center;
  display: flex;
  flex-flow: column nowrap;
  position: relative;
  width: 100vw;
}

#latest-from-sunsketcher h2 {
  text-align: center;
}

#featuredNav {
  justify-content: flex-start;
  display: flex;
  flex-flow: row nowrap;
  min-height: fit-content;
  margin-top: 1.25rem;
  overflow-x: scroll;
  padding-bottom: 1rem;
  scrollbar-width: 7px;
  scrollbar-color: var(--cue) var(--brandDarkGrey);
  width: 100vw;
}
#featuredNav::-webkit-scrollbar {
  height: 7px;
}
#featuredNav::-webkit-scrollbar-thumb {
  background-color: var(--cue);
}
#featuredNav::-webkit-scrollbar-track {
  background-color: var(--brandDarkGrey);
}

.featuredStoryBox {
  align-items: center;
  background-color: white;
  border: 1px solid var(--brandDarkGrey);
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  margin-left: 1.25rem;
  max-width: 90vw;
  min-width: 300px;
  padding: 3rem 1.5rem 1.5rem 1.5rem;
  position: relative;
  width: 27vw;
}

.featuredStoryBox:hover {
  background: linear-gradient(white, white 65%, var(--cue) 65%, var(--cue));
  box-shadow: 3px 3px 0px var(--brandBlack);
}

.featuredStoryBox p {
  margin: 0;
  padding: 0;
}

.readStoryLabel {
  color: var(--brandDarkGrey);
  font-family: var(--oswald);
  font-size: 1rem;
  font-weight: 300;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.featuredStoryBox:hover .readStoryLabel {
  font-weight: 400;
}

.storyImage {
  background-color: black;
  border-radius: var(--uiBorderRadius);
  height: 175px;
  margin-bottom: 1rem;
  object-fit: cover;
  position: relative;
  width: 90%;
}

.storyImage.outlined {
  border: 1px solid var(--brandDarkGrey);
}

.featuredStoryBox:hover .storyImage {
  border: none;
  box-shadow: 2px 2px 6px var(--brandBlack);
}

.featuredStoryTitle {
  color: var(--brandBlack);
  font-family: var(--montserrat);
  font-size: 1.15rem;
  font-weight: 600;
}

.featuredStoryBox:hover .featuredStoryTitle {
  color: white;
  font-weight: bold;
}

.featuredStoryDate {
  color: var(--brandBlack);
  font-family: var(--openSans);
}

.featuredStoryBox:hover .featuredStoryDate {
  color: white;
}

/* Socials */

.homepageSocialButton div {
  gap: 0.75rem;
  justify-content: center;
  min-width: 12rem;
  padding: 0.4rem 0;
}

.homepageSocialButton div img {
  height: 3rem;
  width: 3rem;
  padding: 0.25rem;
}

.homepageSocialButton div:hover img.square {
  background-color: white;
  border-radius: var(--uiBorderRadius);
}

.homepageSocialButton div:hover img.circle {
  background-color: white;
  border-radius: 50%;
}

.homepageSocialButton div .upRightArrow, .sunsketcherUniverseButton .upRightArrow {
  font-size: 1rem;
  position: absolute;
  right: 0.25rem;
  top: 0.25rem;
}

/* Supported by NASA  */

#nasaPartnerLogo-Large {
  align-self: center;
  border: 2px solid var(--brandBlack);
  height: calc((var(--windowWidth) * 0.25));
  margin-right: 2rem;
  padding: 1rem;
  width: calc((var(--windowWidth) * 0.25));
}

#nasa-disclaimer {
  color: var(--brandDarkGrey);
  font-size: 0.85rem;
}

/* SunSketcher Universe */

#the-sunsketcher-universe h2, h3 {
  text-align: center;
}

#the-sunsketcher-universe h3 {
  color: var(--brandDarkBlue);
  font-family: var(--oswald);
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.sunsketcherUniverseButton {
  height: 100%;
  gap: 1rem;
  padding: 0.6rem 1.75rem 0.6rem 1rem;
  text-wrap: balance;
  width: calc((85vw - 1.5rem) / 3);
}

.sunsketcherUniverseButton .logo {
  background-color: white;
  border: 1px solid var(--brandDarkGrey);
  border-radius: var(--uiBorderRadius);
  box-shadow: none;
  height: 5rem;
  min-height: 5rem;
  min-width: 5rem;
  overflow: hidden;
  padding: 5px;
  width: 5rem;
}

.sunsketcherUniverseButton .logo img {
  border-radius: var(--uiBorderRadius);
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.sunsketcherUniverseButton:hover .logo {
  border: none;
  box-shadow: 0px 0px 5px var(--brandBlack);
}

/* Media Query */

@media screen and (max-width: 1000px) {
  main {
    --windowWidth: calc(100vw - 20vw);
    gap: 10vh;
    padding: 0vw 10vw 5vw 10vw;
  }
  main section {
    gap: 10vh;
  }
  h2 {
    text-align: center;
  }
  .twoHalfLayout {
    flex-flow: column nowrap;
  }
  .layoutHalf {
    width: 100% !important;
  }
  .buttonGrid {
    justify-content: center;
  }
  .caption {
    align-self: center;
    text-wrap: balance;
    width: 70vw;
  }

  #we-know-what-youre-thinking .wide {
    padding: 0;
  }
  #tutorial {
    margin: 0rem;
  }

  #nasaPartnerLogo-Large {
    height: 250px;
    margin: 2.5rem 0 -2.5rem 0;
    max-height: 250px;
    max-width: 250px;
    padding: 0;
    width: 250px;
  }

  #latest-from-sunsketcher {
    gap: 1rem;
  }
  #socialsNav {
    padding: 0 2rem;
  }
  #featuredNav {
    display: flex;
    flex-flow: row nowrap;
    gap: 0;
    margin-top: 0rem;
    padding-bottom: 1.5rem;
  }

  .sunsketcherUniverseButton {
    width: calc((80vw - 1.5rem) / 2);
  }
}

@media screen and (max-width: 600px) {
  .layoutHalf img {
    height: auto;
    max-width: none !important;
    width: 70vw;
  }
  .homepageSocialButton div, .sunsketcherUniverseButton {
    width: 85vw;
  }
}
