* {
  box-sizing: border-box;
}

body {
  max-width: 60em;
  margin: 0 auto;
}

a {
  color: rgb(234, 0, 255);
}

.hidden {
  display: none;
}

h1 {
  text-align: center;
  font-family: 'Bangers', cursive;
  margin: .75em auto .5em auto;
  font-size: 3.5em;
  cursor: pointer;
}

button {
  display: block;
  font-family: 'Bangers', cursive;
  margin: 0 auto;
  padding: .4em;
  font-size: 1.5em;
  cursor: pointer;
  border-radius: 10px;
  border-style: none;
}

main {
  width: 85%;
  margin: 0 auto;
  font-family: 'Times', sans-serif;
}

/* User input */
form {
  max-width: 31em;
  margin: 0 auto;
  font-size: 1.1em;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
legend, label {
  display: none;
}

input[type="text"] {
  float: left;
  font-family: 'Open Sans', sans-serif;
  height: 2.5em;
  width: 75%;
  padding-left: .5em;
  border: 1px solid lightgrey;
  border-radius: 10px;
}

input[type="submit"] {
  float: right;
  height: 2.5em;
  width: 20%;
  font-family: 'Bangers', cursive;
  background-color: rgb(68, 248, 68);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

input[type="range"] {
  clear: both;
  display: block;
  width: 80%;
  margin: 4.5em auto 2em auto;
  -webkit-appearance: none;
  height: .3em;
  border-radius: 5px;   
  background: rgb(187, 187, 187);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 2em;
  height: 2em;
  border-radius: 50%; 
  background: rgb(234, 0, 255);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: rgb(234, 0, 255);
  cursor: pointer;
}

/* News container */
main ul {
  width: 95%;
  margin: 0 auto;
  list-style-type: none;
  padding: 0 .75em;
  border: 1px solid grey;
  border-radius: 5px;
}

/* News items */
li h3 {
  font-family: 'Lora', serif;
}
li p {
  font-family: 'Times', serif;
  line-height: 1.25em;
}

/* About */
footer {
  max-width: 70%;
  margin: 0 auto;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.5em;
}

footer li {
  text-align: center;
}

footer p:last-child {
  text-align: center;
}

/* Sources */
#js-tabs {
  display: flex;
}

.tab {
  flex: 1;
  height: 3em;
  cursor: pointer;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.active-tab {
  border-top: 2px solid rgb(68, 248, 68);
  border-left: 2px solid rgb(68, 248, 68);
  border-right: 2px solid rgb(68, 248, 68);
  border-bottom: none;
}

#blue {
  background-color: blue;
  color: white;
}
#lightblue {
  background-color: lightblue;
}
#grey {
  background-color: lightgray;
}
#lightred {
  background-color: lightpink;
}
#red {
  background-color: red;
  color: white;
}

#source-list ul {
  list-style-type: none;
  border: 2px solid lightgrey;
  padding: .25em;
  margin: 0;
}

#source-list ul li {
  padding: .25em 0;
  font-weight: bold;
}
