@import url('https://fonts.googleapis.com/css2?family=MuseoModerno&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap');

/* SpaceX Stylesheet v2*/

/* ---------box sizing--------- */

html{
    box-sizing: border-box;
  }
  *,
  *:before,
  *:after {
    box-sizing: inherit;
  }

  /* ---------responsive images--------- */

img {
    max-width:100%;
    height: auto;
}

/* --------utility styles-------- */

.container{
    width:80vw;
    margin: 40px auto;
    max-width: 900px;
}

.img-right{
    float:right;
    margin: 10px 0 10px 20px;
    padding: 5px;
}

.img-left {
    float:left;
    margin: 10px 20px 10px 0px;
    padding: 5px;
}

.img-center {
    display: block;
    padding: 5px;
    margin: 20px auto;
    padding: 5px;
}

a.cta {
    color:#9879D9;
    font-size: 1.2rem;
    text-decoration:none;
    background-color: #000;
    padding:16px 16px;
    transition: .4s;
    border: 3px solid #9879D9;
    margin: 40px 30px;
}

a.cta:hover {
    background-color:rgba(0,0,0,.8);
}

body a.cta:after {
    content: "";
}

/* ---- Responsive Images ----*/
img {
    max-width: 100%;
    height: auto;
  }

/* ---------global styles--------- */

body {
    font-family: 'Raleway', sans-serif;
    margin: 0px;
    font-size: 1rem;
    line-height: 1.5rem;
}

h1,h2,h3 {
    font-family: 'MuseoModerno', sans-serif;
    margin-top: 30px;
}

body h2 {
    font-size: 1.9rem;
    line-height: 2.2rem;
}

a:hover {
    text-decoration: none;
}

a[href^="https://"]:after {
    content: url(../img/external-link.svg);
}

/*-------primary header---------*/

header.primary {
    color: #fff;
    background-color: #000;
    top: 0px;
    right: 0px;
    left: 0px;
    bottom: 0px;
    height: 300px;
    position: relative;
    text-align: center;
    padding-top: 10px;
}

header.primary.hero-image {
    height: 100vh;
    background-color: #000;
}

header.primary::before {
    content: "";
    background-size: cover;
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
}

header#main-hero::before {
    background-image: url("../img/spacex-crew-dragon-flight-hero.jpg");
    opacity: 0.8;
}

header#history-hero::before {
    background-image: url("../img/spacex-falcon-9-rocket-with-crew-dragon.jpg");
    opacity: 0.4;
}

header.primary h1 {
    font-size: 3.2rem;
    margin: 0px;
    position: relative;
  }

header.primary h1 a {
    background: url("../img/spacex-logo.png") no-repeat;
    display: block;
    width: 300px;
    height: 70px;
    margin: 0px auto;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}

header.primary h2 {
    font-size: 1.3rem;
    font-family: 'MuseoModerno', sans-serif;
    text-shadow: 2px 2px 3px #000000;
    margin: 20px auto 40px;
    position: relative;
}

header.primary nav{
    display: block;
}

header.primary nav ul{
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    padding: 0;
}

header.primary nav ul li{
    list-style-type:none;
}

header.primary nav a {
    color:#fff;
    font-size: 1rem;
    text-decoration:none;
    background-color:rgba(0,0,0,.7);
    padding:8px 16px;
    transition: .4s;
    border: 1px solid #9879D9;
    border-radius: 1px;
}

header.primary nav a:hover,
header.primary nav a:active
{
    background-color:rgba(0,0,0,.4);
}

.arrow,
.arrow:before {
  position: absolute;
  left: 50%;
}

.arrow {
  width: 40px;
  height: 40px;
  bottom: 40px;
  margin: -20px 0 0 -20px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  border-left: none;
  border-top: none;
  border-right: 2px #fff solid;
  border-bottom: 2px #fff solid;
}
  
.arrow:before {
  content: '';
  width: 20px;
  height: 20px;
  top: 50%;
  margin: -10px 0 0 -10px;
  border-left: none;
  border-top: none;
  border-right: 1px #fff solid;
  border-bottom: 1px #fff solid;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-name: arrow;
}
  
@keyframes arrow {
    0% {
    opacity: 1;
    }
    
    100% {
    opacity: 0;
    transform: translate(-10px, -10px);
    }
}

/*-----------contact form-------------*/

.wufoo .info h2.leftFormProp {
    font-family: 'MuseoModerno', sans-serif;
}

/*-----------content-------------*/

#content{
    background-color: #fff;
    padding: 1em 0 2em 0;
    color: #000;
}

#content iframe {
    width: 100%;
    border: none;
    height: 550px;
}

.countdown-container {
    display: flex;
    margin: -40px auto;
    padding: 2rem;
    justify-content: space-around;
    align-items: center;
    font-size: 1.1rem;;
    background: url('../img/stars-color.jpg') no-repeat center center / cover;
    color: white;
    border-bottom: solid 2px #000;
}

.countdown-container h2 {
    font-size: 1.8rem;
}

.days-container,
.hours-container,
.minutes-container, 
.seconds-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.1);
    border: 3px solid rgba(255, 255, 255, 0.213);
    width: 140px;
    height: 140px;
    border-radius: 99px;
    }
      
.days,
.hours,
.minutes,
.seconds {
    font-size: 2em; 
    margin: 12px 0;
    }
      
.days-label,
.hours-label,
.minutes-label,
.seconds-label {
    text-transform: uppercase;
    margin-bottom: 5px;
    }
      
#content details {
    padding: 40px 0px;
    border-bottom: 1px solid;
}

#content summary {
    font-family: 'MuseoModerno', sans-serif;
    font-size: 1.2rem;
    color: #0F1140;
    font-weight:900;
}

#content table {
    border: 1px solid;
    border-collapse: collapse;
}

#content table th {
    background-color: rgba(14, 17, 63, 1);
    color: #fff;
    padding: 15px;
}

#content table td {
    padding: 10px;
    border: 1px solid;
}

#content table caption {
    display: none;
}

#content tr:nth-child(even) {
    background-color: rgba(14, 17, 63, .08);
}

#content tr:hover {
    background-color: rgba(14, 17, 63, .2);
}

/*-------------articles---------------*/

#articles {
    background-color: #090826;
    margin-top: 2rem;
}

section#articles .container{
    display:flex;
    flex-direction:row;
    justify-content:space-between;
    flex-wrap: wrap;
    padding: 0 0 4em 0;
}

#articles h2 {
    flex: 0 0 100%;
    color: #fff;
    margin-top: 3rem;
    font-size: 1.8rem;
}

#articles h3 a {
    text-decoration: none;
    font-size: 1.5rem;
}

#articles h3 a:hover {
    text-decoration: underline;
}

#articles p.subtitle {
    font-size: .9rem;;
    margin-top: -10px;
}

article.post{
    width: 30%;
    box-shadow: 4px 4px 15px rgba(14, 17, 63, 1);   
    padding:20px;
    font-size: 1rem;
    transition:.5s;
    background-color: #D3D3D3;
    border-radius: 10px;
    border: 1px solid #9879D9;
  }

article.post:hover {
    box-shadow: 0 12px 8px rgba(0,0,0,.4);
    transition: .5s;
    background-color: #F8F8F8;
}

article.post figure {
    margin:0;
}

figcaption{
    text-transform:uppercase;
    color: #151859;
    font-size: .8rem;
}

article.post img {
    padding:5px 10px;
    border-radius:2px;
}

article.post a {
    color: #023859;
    transition:.5s;
}

article.post a:hover{
    text-decoration: none;
}

/*----------hero------------*/

#hero {
    padding: 4em 0;
    max-width: 800px;
    width:80vw;
    margin: 40px auto;
}

div.see-more {
    text-align: center;
    margin-top: 90px;
}

/* Customize Previous/Next/Dots/Autoplay */

.slick-autoplay-toggle-button,
.slick-prev .slick-prev-icon, .slick-next .slick-next-icon,
.slick-dots li button .slick-dot-icon,
.slick-dots li.slick-active button .slick-dot-icon {
  color: #000;
  font-size: 2rem;
}

/* Customize Previous/Next/Dots/Autoplay - Active State */

.slick-next:focus .slick-next-icon,
.slick-next:focus .slick-prev-icon,
.slick-prev:focus .slick-next-icon,
.slick-prev:focus .slick-prev-icon,
.slick-dots li button:focus .slick-dot-icon:before,
.slick-dots li.slick-active button:focus .slick-dot-icon,
.slick-autoplay-toggle-button:focus 
{
    color:#787878;
}

.slick-prev .slick-prev-icon:before {
    margin: -2rem;
}

/*----------aside------------*/

aside[role="complementary"] {
   background-color: #090826;
   color: #fff;
   padding: 2.5em;
}

aside .container {
    display:flex;
    flex-direction: row;
    justify-content: space-around;
}

aside article.widget {
    width: 40%;
  }

  .widget.overview table {
    font-size: 0.8em;
    border-collapse: collapse;
  }
  
.widget.overview table td {
    border-bottom: .05px solid #fff;
    padding: 10px;
  }
  
aside article.widget a {
    display: block;
    padding-top: 20px;
    color: #9879D9;
}  


/*----------footer------------*/

footer#colophon {
    background-color: #000;
    padding: 30px 70px;
    color: #fff;
}

footer#colophon h6 {
    margin-bottom: 0px;
}

footer#colophon h6 a{
    color: #fff;
}

footer#colophon a.cta {
    color:#9879D9;
    font-size: .9rem;
    text-decoration:none;
    background-color:rgba(0,0,0,.4);
    padding:8px 16px;
    transition: .4s;
    border: 1px solid #9879D9;
}

/* ---------------Media Queries----------------- */

@media screen and (max-width: 600px) {
    header.primary nav ul {
      flex-direction: column;
      margin: 0 auto;
      width: 400px;
    }
  
    header.primary nav ul li {
      margin-bottom: 10px;
      width: 400px;
    }
  
    header.primary nav ul li a {
      display: block;
    }
  
    section#articles .container {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      flex-wrap: wrap;
      border-bottom: 1px solid #c0c0c0;
      padding: 0 0 4em 0;
    }
  
    #articles article.post {
      width: 100%;
      margin-bottom: 2em;
    }
  }

  @media (max-width: 800px) {
  
    .countdown-container {
      max-width: 90%;
    }
    
    .days-container,
    .hours-container,
    .minutes-container, 
    .seconds-container {
      font-size: 0.8em;
      width: 100px;
      height: 100px;
    }
  }


/*------galactic color scheme from adobe color
Color Theme Swatches in Hex
#9879D9; light purple
#3C308C; true purple
#090826; near black (dark bg color)
#151859; true blue
#0F1140; darkest blue

Color Theme Swatches in RGBA
rgba(151, 121, 216, .5); 
rgba(60, 47, 140, 1);
rgba(8, 7, 38, 1);
rgba(20, 23, 89, 1);
rgba(14, 17, 63, 1);

Color Theme Swatches in HSLA
hsla(258, 55, 66, 1);
hsla(247, 49, 36, 1);
hsla(241, 66, 9, 1);
hsla(236, 62, 21, 1);
hsla(236, 62, 15, 1);

-------*/