/*1 GLOBABL STYLING
----------------------------------------------------------*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/*API loader, Noroff Code
  ------------------------------------*/
.secondLoader {
  margin: 0 auto;
  border: 16px solid rgb(243, 243, 243);
  border-top: 16px solid rgb(12, 10, 11);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*text styling
  ------------------------------------*/
h1 {
  font-size: 30px;
  padding-top: 45px;
  padding-bottom: 20px;
}

h2 {
  font-family: "Karla", sans-serif, Arial, Helvetica;
  font-weight: bold;
  font-size: 28px;
}

h3 {
  padding-bottom: 10px;
  font-size: 24px;
}

h4 {
  padding-top: 20px;
  padding-bottom: 4px;
  letter-spacing: 3px;
}

.quote {
  max-width: 500px;
  margin: auto;
}

p {
  font-family: "Karla", sans-serif, Arial, Helvetica;
  font-size: 16px;
  -webkit-font-smoothing: none;
  line-height: 27px;
  padding-top: 6px;
  color: rgba(255, 255, 255, 0.699);
}

h1,
h3,
h4 {
  font-family: "Exo", sans-serif, Arial, Helvetica;
}
h1,
h3 {
  letter-spacing: 6px;
}
h1,
h2,
h3,
h4 {
  color: rgb(255, 255, 255);
  text-align: center;
}

.launch-date {
  font-size: 18px;
}

.underline,
.cardLink {
  font-family: "Karla", sans-serif, Arial, Helvetica;
  font-weight: bold;
}

.card,
.cardLink {
  color: rgba(235, 235, 235, 0.836);
}

.red {
  color: red;
}

/*content images
  ------------------------------------*/
.spacexImages {
  height: auto;
  max-width: 700px;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
  display: block;
  margin: 20px auto;
  border-radius: 10px;
}

.imgGallery {
  padding-top: 50px;
}

/*icons
  ------------------------------------*/

.fa-exclamation {
  font-size: 18px;
  padding-top: 4px;
}

.fa-images,
.fa-twitter,
.fa-youtube {
  font-size: 25px;
}

.fa-rocket:hover,
.fa-images:hover,
.fa-twitter:hover,
.fa-youtube:hover {
  color: rgb(255, 255, 255);
}

.fa-images,
.fa-twitter,
.fa-youtube {
  padding-left: 5px;
}
.fa-rocket {
  margin-right: 8px;
}
.fa-exclamation {
  color: yellow;
  padding-right: 5px;
}
/*background image
  ------------------------------------*/
.bg-color {
  background-color: rgb(12, 10, 11);
}
.no-color {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("49970682603_2c9427218d_k.jpg");
}
.bg-img,
.bg-color {
  min-height: 950px;
  height: 100%;
  background-position: center center;
  background-attachment: fixed;

  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  position: relative;

  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
}

/*content container
  ------------------------------------*/

.container {
  margin-top: 50px;
}
.content-wrap {
  max-width: 600px;
  margin: auto;
  padding-bottom: 200px;
}

.company-container {
  position: relative;
  padding-top: 20px;
  overflow: hidden;
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: rgb(12, 10, 11);
}
.company-content {
  margin: 0 auto;
  padding: 15px;
}

.center-align {
  text-align: center;
}

/*search
  ------------------------------------*/
div.searchBox input[type="text"] {
  padding: 10px;
  font-size: 16px;
  float: left;
  width: 80%;
  background: rgba(241, 241, 241, 0.89);
}
div.searchBox {
  padding-bottom: 15px;
}

.searchBox {
  margin: auto;
  max-width: 300px;
}

div.searchBox button {
  float: left;
  width: 20%;
  padding: 10px;

  background: rgb(136, 111, 81, 0.596);
  color: rgb(255, 255, 255);
  font-size: 17px;
  cursor: pointer;
  border: none;
  border-left: none;
}

div.searchBox button:hover {
  background: rgb(136, 111, 81);
}

div.searchBox::after {
  content: "";
  clear: both;
  display: table;
}

/*footer
  ------------------------------------*/
footer {
  text-align: center;
  padding: 15px;
  bottom: 0;
  background-color: rgb(0, 0, 0);
  padding-top: 40px;
  padding-bottom: 40px;
}

/*scroll bar - chrome
  ------------------------------------*/
::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background-color: rgb(64, 73, 89);
  outline: 1px solid rgb(64, 73, 89);
}

/*buttons + links
  ------------------------------------*/
.pageLink {
  text-decoration: underline;
}
.pageLink:hover {
  color: rgb(255, 255, 255);
}

.toogleBtn {
  cursor: pointer;
  padding: 6px;
  background-color: rgba(88, 72, 52, 0.452);
  color: rgb(255, 255, 255);
  font-size: 15px;
  border-radius: 8px;
}
.toogleBtn:hover {
  background-color: rgb(114, 94, 69);
}

.hiddenContent {
  display: none;
}

#hiddenDetails {
  border: 3px dotted rgba(255, 255, 255, 0.747);
  padding: 5px;
}

.fa-caret-down {
  padding-right: 4px;
  font-size: 18px;
}

div.sticky {
  position: fixed;
  left: 0;
  padding-top: 100px;
}

.launch {
  margin-top: 20px;
  margin-left: 20px;
}
.stickyBm {
  display: none;
}

/*media
  ------------------------------------*/

@media screen and (max-width: 1055px) {
  div.sticky {
    display: none;
  }
  div.stickyBm {
    position: fixed;
    display: block;
    z-index: 2;
    margin-bottom: 8px;
    padding: 10px;
  }
  .launchBm {
    padding: 10px;
  }
  div.stickyBm {
    bottom: 0;
  }
  .fa-arrow-down,
  .fa-arrow-up {
    font-size: 18px;
  }

  a.btnResponsive {
    border-radius: 50%;
    background-color: rgb(136, 111, 81);
  }
}

@media screen and (max-width: 650px) {
  .searchBox {
    display: none;
  }
  .container {
    margin-top: 0px;
  }
}

/*2 CARDS
  ----------------------------------------------------------*/

/*only one column with cards,
    and responsive
  --------------------------------*/
.column {
  width: 100%;
  display: block;
  margin-bottom: 40px;
  padding: 0 10px;
}

.row {
  margin: 0 -5px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

/*style of the card
  --------------------------------*/
.card {
  background-color: rgba(0, 0, 0, 0.932);
  border-radius: 5px;
  width: 100%;
  display: block;
  padding: 16px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.226);
  color: rgb(255, 255, 255);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.center {
  text-align: center;
}

.card:hover {
  box-shadow: 0 4px 8px 0 rgba(83, 83, 83, 0.445);
}

.image {
  height: 200px;
  width: 200px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  margin: 0 auto;
}

#image{
  max-width: 100%;
}

.smallImage {
  height: 100%;
  max-width: 200px;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.launch-date {
  text-align: center;
  padding-bottom: 10px;
}

.underline {
  text-decoration: underline;
}

/*3 CONTACT PAGE - form
  ----------------------------------------------------------*/
.contact-container {
  width: 750px;
  margin: 0 auto;
}

.submit {
  border: none;
  font-size: 14px;
  font-family: "Karla", sans-serif, Arial, Helvetica;
}

.linkButton {
  padding: 10px 14px;
  background-color: rgba(136, 111, 81, 0.596);
  color: rgb(255, 255, 255);
}
.linkButton:hover {
  background-color: rgb(136, 111, 81);
}
.back {
  margin-top: 30px;
}
.group,
input,
textarea {
  font-family: "Karla", sans-serif, Arial, Helvetica;
  font-size: 16px;
}
.group {
  color: rgba(255, 255, 255, 0.699);
  padding-bottom: 15px;
}

form {
  text-align: center;
  padding: 18px;
  border-radius: 6px;
}
input {
  width: 50%;
  padding: 12px;
  border: none;
}

textarea {
  margin: 12px 0;
  height: 150px;
  padding: 12px 20px;
  border: 2px solid rgb(204, 204, 204);
  border-radius: 4px;
  background-color: rgb(248, 248, 248);
  resize: none;
}

.error {
  color: var(--error);
  font-size: 14px;
  display: none;
}

input[type="text"],
textarea {
  width: 50%;
}

@media screen and (max-width: 650px) {
  .contact-container,
  input[type="text"],
  textarea {
    width: 90%;
  }
  input {
    width: 90%;
  }
}

/*4 NAVIGATION BAR
  ----------------------------------------------------------*/
.hamburger-menu {
  display: none;
}

.logo {
  height: 20px;
  cursor: pointer;
}

li,
a {
  color: rgba(255, 255, 255, 0.466);
  font-size: 16px;
  font-family: "Exo", sans-serif;
  text-decoration: none;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 12%;
}

.navLinks {
  list-style: none;
}

.navLinks li {
  padding: 0px 4px;
  display: inline-block;
}

.navLinks li a {
  transition: all 0.3s ease 0s;
}

.navLinks li a:hover {
  color: rgb(255, 255, 255);
}

/* responsive nav */
.overlay a {
  padding: 15px;
  font-size: 24px;
  display: block;
  transition: all 0.3s ease 0s;
  color: rgb(255, 255, 255);
}

.overlay a:hover,
.overlay a:focus {
  color: rgb(242, 200, 148);
}
.active {
  color: rgb(255, 255, 255);
}

.overlay .close {
  position: absolute;
  right: 30px;
  font-size: 55px;
}

/*start of code borrowed/referance - expect for styling*/
.overlay {
  width: 0;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  height: 100%;
  background-color: rgb(12, 10, 11);
  overflow: hidden;
  transition: all 0.5s ease 0s;
}

.navOverlayContent {
  align-items: center;
  justify-content: center;
  display: flex;
  height: 100%;
  flex-direction: column;
}

/*--------------media-------------- */
@media only screen and (max-width: 850px) {
  .navLinks {
    display: none;
  }
  .hamburger-menu {
    display: inherit;
    color: rgb(255, 255, 255);
    font-size: 22px;
  }
  /*end of code borrowed/referance - expect for styling - (see bottom of page)*/

  #navResponsive {
    z-index: 999;
  }
}

@media screen and (max-height: 450px) {
  .overlay a {
    font-size: 20px;
  }
  .overlay .close {
    font-size: 40px;
    top: 15px;
    left: 30px;
  }
}

/*help to get the navigation bar responsive and animated,
  same markup to get animated sidebar menu + but different styling
  https://www.youtube.com/watch?v=WxQZsN6LICM&feature=youtu.be&ab_channel=Skillthrive */
