/* Global Layout Set-up */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  color: #222;
  background: #f7f5f0;
}


/* Link Styles */
a {
  text-decoration: none;
  color: #0499ff;
}
a:hover {
  color: #6633ff;
}


/* Section Styles */
.main-nav {
  width: 100%;
  background: black;
  min-height: 30px;
  padding: 10px;
  position: fixed;
  text-align: center;
}
.nav {
  display: flex;
  justify-content: space-around;
  font-weight: 700;
  list-style-type: none;
  margin: 0 auto;
  padding: 0;
}
.nav .name {
  display: none;
}
.nav li {
  padding: 5px 10px 10px 10px;
}
.nav a {
  transition: all .5s;
}
.nav a:hover {
  color: white
}

header {
  text-align: center;

  /* https://unsplash.com/photos/WYd_PkCa1BY */
  background: url('../images/absolutvision-WYd_PkCa1BY-unsplash_resized.jpg') no-repeat top center;
  /* failed experiment below */
  /* background: url('../images/counterbalanced_background_0001.jpg') no-repeat center center; */


  background-size: cover;
  overflow: hidden;
  padding-top: 60px;
}
header {
  line-height: 1.5;
}
header .profile-image {
  margin-top: 25px;
  width: 350px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid white;
  transition: all .5s;
}
header .profile-image:hover {
  /* transform: scale(1.2) rotate(5deg); */
  transform: scale(1.2);
}

.tag {
  background-color: #efefef;
  color: black;
  padding: 10px;
  border-radius: 5px;
  display: table;
  margin: 10px auto;
}
.tagline2 {
  background-color: #222;
  color: yellow;
}

.card {
  margin: 30px;
  padding: 20px 40px 40px;
  max-width: 500px;
  text-align: left;
  background: #fff;
  border-bottom: 4px solid #ccc;
  border-radius: 6px;
}
.card:hover {
  border-color: linen;
}

footer {
  width: 100%;
  min-height: 30px;
  padding: 20px 0 40px 20px;
}
footer .copyright {
  top: -8px;
  font-size: .75em;
}
footer ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
footer ul li {
  display: inline-block;
}

a.social {
  display: inline-block;
  text-indent: -9999px;
  margin-left: 5px;
  width: 30px;
  height: 30px;
  background-size: 30px 30px;
  opacity: .5;
  transition: all .25s;
}
a.twitter {
  background-image: url(../images/iconmonstr-twitter-1.svg);
}
a.instagram {
  background-image: url(../images/iconmonstr-instagram-11.svg);
}
a.facebook {
  background-image: url(../images/iconmonstr-facebook-6.svg);
}
a.linkedin {
  background-image: url(../images/iconmonstr-linkedin-3.svg);
}
a.social:hover {
  opacity: 1;
}

.clearfix {
  clear: both;
}


/* News Stories */
#newsstory h2 {
  color: steelblue;
}

#newsstory h3 {
  text-align: center;
  border: solid black 3px;
  border-radius: 10px;
  padding: 20px 10px;
}

#newsstory h4 {
  color: steelblue;
}

ul.newsstories {
  padding: 0;
  text-align: center;
}
.newsstories li {
  border-radius: 5px;
  display: inline-block;
  /* background: #ff9904; */
  background: tomato;
  color: white;
  padding: 10px 20px;
  margin: 10px 2px;
}
.newsstories li:nth-child(odd) {
  /* background: #0399ff; */
  background: steelblue;
}
.newsstories a {
  color: linen;
}

/* Breakdown of News Sources */
ul.breakdown {
  margin: 0;
  padding: 0;
  /* text-align: center; */
}
.breakdown li {
  /* border-radius: 5px; */
  /* display: inline-block; */
  /* background: #ff9904; */
  /* background: tomato; */
  /* color: white; */
  padding: 1px 1px;
  margin: 0px 0px;
}
.breakdown li:nth-child(odd) {
  /* background: #0399ff; */
  /* background: steelblue; */
}
.breakdown a {
  color: slategrey;
}
.breakdown a:hover {
  color: darkgrey;
}
.breakdownnotice {
  color: darkgrey;
}
.breakdownnotice a {
  color: slategrey;
}

/* Quiz */
#quiz h2 {
  text-align: center;
  border: solid black 3px;
  border-radius: 10px;
  padding: 5px 10px;
}

#quiz h3 {
  color: steelblue;
  letter-spacing: .5px;
}

button.answers {
  background-color: linen;
  color: black;
  padding: 10px;
  border-radius: 5px;
  margin: 10px auto;
  opacity: 0.5;
  font-weight: 700;
}
button.answers:hover {
  opacity: 1;
}

.answer {
  font-weight: 500;
}

button.quizbutton {
  background-color: lightskyblue;
  /* color: black; */
  padding: 10px 30px;
  border: dimgray solid 1px;
  border-radius: 5px;
  margin: 10px auto;
  /* font-weight: 700; */
}
button.quizbutton:disabled {
  background-color: lightgray;
}

/* Styles for larger screens */
@media screen and (min-width: 720px) {

  .flex {
      display: flex;
      max-width: 1200px;
      justify-content: space-around;
      margin: 0 auto;
  }

  header {
    min-height: 450px;
  }

  header .profile-image {
    margin-top: 50px;
    width: 700px;
    height: 112px;
    border-radius: 20px;
    border: 3px solid white;
    transition: all .5s;
  }

  .nav {
    max-width: 1200px;
  }

  .nav .name {
    display: block;
    margin-right: auto;
    color: white;
  }

  main {
    padding-top: 50px;
  }

  main p {
    line-height: 1.6em;
  }

  footer {
    font-size: 1.3em;
    max-width: 1200px;
    margin: 40px auto;
  }

}
