:root {
  --spacex-blue: #005288;
  --spacex-silver: #a7a9ac;
  --spacex-black: #0b0b0b;
  --spacex-white: white;
  --spacex-silver-light: #fbfbfb;
  --spacex-border-color: #666;
  --main-font: "Montserrat", sans-serif;

  --max-width: 80rem;
  --line-height: 1.4rem;

  --banner-background: url("../img/missions-header.jpg") !important;
}

body {
  margin: 0;
  font-family: var(--main-font);
}

header {
  width: 100%;
  background-color: var(--spacex-black);
  color: white;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.header-text-wrapper {
  width: 100%;
  justify-content: center;
  display: flex;
  min-height: 3em;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.5em 0;
  box-sizing: border-box;
}

.home-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5em;
  min-width: 12em;
}

.header-logo-image {
  position: relative;
  bottom: 0.2em;
  left: 0.3em;
  display: flex;
  justify-content: center;
  height: 1em;
}

.header-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--main-font);
  font-weight: normal;
  font-size: 1em;
  height: 2.5em;
  margin: 0;
  min-width: 12em;
}

.header-menu {
  width: 100%;
  background-color: var(--spacex-silver-light);
  display: flex;
  justify-content: center;
}

.header-menu-list {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  max-width: var(--max-width);
  width: 100%;
}

.header-menu-list-item {
  border: 1px solid white;
  background-color: var(--spacex-white);
  flex: 1;
  min-width: 12rem;
  border-right: 1px dashed var(--spacex-silver);
  border-bottom: 1px dashed var(--spacex-silver);
  box-sizing: border-box;
  transition: transform 0.5s ease;
}

.header-menu-list-item:first-child {
  border-left: 1px dashed var(--spacex-silver);
}

.header-menu-list-item:hover {
  transform: translateY(5px);
  background-color: var(--spacex-silver-light);
}

.header-menu-list-item a {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: var(--spacex-black);
  font-size: 0.8rem;
  min-height: 3em;
  height: 6vh;
}

.header-menu-list-item a span {
  padding-bottom: 0.3rem;
}

.header-menu-list-item .active span {
  border-bottom: 2px solid var(--spacex-blue);
}

.banner-background {
  display: flex;
  width: 100%;
  z-index: -2;
  position: relative;
  background: center bottom / cover no-repeat var(--banner-background);
}

.banner-filter {
  display: flex;
  backdrop-filter: brightness(50%);
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.644));
  min-height: 38vh;
  width: 100%;
  position: relative;
  z-index: -1;
  justify-content: center;
}

.banner blockquote {
  display: flex;
  align-items: center;
  text-align: center;
  font-size: 1.3rem;
  margin: 0;
  position: relative;
  z-index: 0;
  color: white;
  max-width: var(--max-width);
  padding: 1em;
  box-sizing: border-box;
}

section h2 {
  margin: 0 0 1.4rem;
  max-width: var(--max-width);
  width: 100%;
}

.showcase {
  background-color: var(--spacex-blue);
  color: white;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  line-height: var(--line-height);
  padding: 1em;
}

.showcase > div {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  max-width: var(--max-width);
  width: 100%;
  min-height: 25vh;
  border-bottom: 1px solid white;
  border-top: 1px solid white;
  padding-top: var(--line-height);
}

.showcase-image-titles-container {
  display: flex;
  flex-wrap: wrap;
}

.showcase-image-container {
  display: flex;
  min-height: 25vh;
  width: 9rem;
  align-items: center;
}

.showcase-image-container img {
  width: 8em;
  height: 8em;
}

.showcase-titles-container {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 10rem;
  width: 20%;
  min-height: 25vh;
}

.showcase-titles-container li {
  margin-bottom: var(--line-height);
}

.showcase-details-container {
  min-height: 25vh;
  min-width: 10rem;
  width: 40%;
  margin: 0;
}

.showcase-details-container p {
  margin: 0;
}

.showcase-details-container .video-link {
  color: white;
  text-decoration: none;
  font-weight: bold;
  margin: var(--line-height) 0;
  display: block;
  width: 100%;
}

.showcase-launchdate-container {
  width: 20%;
  min-width: 10rem;
}

.showcase-launchdate-container .info-type {
  text-align: right;
}

.showcase-launchdate-date {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.showcase-launchdate-countdown {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 1.4rem;
  line-height: 1.9rem;
  font-weight: bold;
}

.info-type {
  display: block;
  width: 100%;
  font-weight: bold;
}

p {
  margin: 0;
}

.detailview {
  width: calc(100% - 2em);
  background-color: var(--spacex-blue);
  color: white;
  padding: 1em;
  animation: 0.6s grow 1;
  margin-bottom: 2em;
  min-height: 22em;

  max-width: var(--max-width);
}

@keyframes grow {
  from {
    min-height: 0;
    height: 0;
  }
  to {
    min-height: 22em;
    height: 22em;
  }
}

.sub-list-title {
  font-weight: bold;
  margin-top: 0.3em;
}

span[class^="detail-property"] {
  font-weight: bold;
  margin-right: 0.3em;
}

.detail-property-1 {
  min-width: 15em;
}

.detail-property-2 {
  min-width: 10em;
}

.property-list {
  list-style-type: none;
  padding: 0 1em;
  height: 20em;
  overflow-y: scroll;
  box-sizing: border-box;
}

.detail-level-1 {
  border-bottom: 1px solid var(--spacex-white);
  padding: 0.3em 0;
}

.property-list-sub-list-2 {
  border-bottom: 1px solid var(--spacex-white);
  padding: 0.3em 1.1em;
}

ul[class^="property-list-sub-list"] {
  list-style-type: square;
}

li[class^="detail-level"] {
  display: flex;
}

.detail-level-5 {
  padding: 0 0 0 6em;
}

.property-list-sub-list-5 .sub-list-title {
  margin-left: 6em;
}

.property-list-sub-list-6 {
  margin-left: 3.5em;
}

.detail-level-2 .detail-data {
  margin-left: 4em;
}

.detail-data {
  min-width: 15em;
}

.detail-data-link {
  color: white;
  cursor: pointer;
}

@media (max-width: 870px) {
  /* .showcase > div {
    flex-direction: column;
    align-items: center;
  } */

  .showcase-details-container {
    width: 100%;
  }

  .showcase-launchdate-container {
    width: 100%;
  }

  .showcase-launchdate-date .info-type {
    text-align: left;
  }

  .showcase-launchdate-date {
    display: flex;
    min-width: 10rem;
    width: 80%;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
  }
}

.loader-image {
  width: 3em;
  position: absolute;
  left: 0;
  animation: 6s rocket linear infinite;
}

@keyframes rocket {
  from {
    transform: translateX(10vw);
  }
  47% {
    transform: translateX(calc(90vw - 3em)) rotate(0deg);
  }
  50% {
    transform: translateX(calc(90vw - 3em)) rotate(180deg);
  }
  97% {
    transform: translateX(10vw) rotate(180deg);
  }
  to {
    transform: translateX(10vw) rotate(0deg);
  }
}
