/* Header */
nav{
  display: none;
}
header {
  padding: 10% 2%;
  background: linear-gradient( rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9) ),
   url(https://images.pexels.com/photos/1036642/pexels-photo-1036642.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260) repeat;
  color: white;
  background-size: cover;
  background-position: center
}
header h1 {
  font-size: 4em;
  font-family: 'Orbitron', sans-serif;
  text-align: center;
  margin-top: 1.4em;
  color:steelblue;
  text-shadow:  0 0 1em steelblue;
}
/* buttons */
.buttons {
  display: flex;
  justify-content: space-around;
  width: 30%;
  margin: 0 auto;
}
button {
  background: transparent;
  box-shadow: inset 0 0 7px #B2B4B5;
  padding: 0.2em 0 0.2em;
  color: #B2B4B5;
  cursor: pointer;
  font-size: 1.5em;
  width: 40%;
  border: none;
  outline: none;
  transition: all ease-in 0.3s;
  font-family: 'Orbitron';
}
button:hover{
  color:steelblue;
}
.topic-selected {
  box-shadow: inset 0 0 17px steelblue;
  color: steelblue;
}
footer button {
  width: 35%;
  padding: 0.7em 0.3em;
  margin: 3.5em auto;
  box-shadow: inset 0 0 25px steelblue;
  color:white;
}
footer button:hover {
  box-shadow: inset 0 0 40px steelblue;
}
footer button a:hover {
  color:steelblue;
}
footer button a{
  text-decoration: none;
  color: white;
}
/* Main */
h1 {
  font-size: 1.5em;
  color: white;
}
.container {
  font-family: Arial;
  display: flex;
  justify-content: space-around;
}
.container h2 {
  color: white;
  text-align: center;
}
#results, #results-youtube{
  min-width:60%;
  max-width:60%;
  background: lightgray;
}
#results {
  border-right: 0.3em solid rgb(29, 31, 32);
}
#results h2, #results-youtube h2 {
  color: black;
  font-family: 'Orbitron', sans-serif;
}
#results-tweets {
  min-width:30%;
  max-width:30%;
  background: rgb(29, 31, 32);
}
#results-tweets h2{
  font-family: 'Orbitron', sans-serif;
  padding-left: .5em;
  padding-right: .5em;
}
#results-list, #results-list-youtube {
  padding:0;
}
/* Tweets */
#tweets {
    margin-top: 3em;
    padding:0;
}
li.tweet{  
    list-style-type: none;
    font-family: Arial;
    border:1px solid rgb(225, 232, 237);
    border-radius: 5px;
    margin: .5em;
    flex: 1 0 29%;
    min-width:29%;
    background:white;
}
.tweet-header {
    display: flex;
    padding: 1em;
}
.avatar {
    max-width: 100%;
    max-height: 100%;
    border-radius: 50%;
    height: 36px;
}
.icon--twitter {
    width: 2em;
    background-image: url(img/twitter.png);
    display: inline-block;
    height: 2em;
    background-size: contain;
    vertical-align: text-bottom;
    background-repeat: no-repeat;
    margin-left: auto;
}
.TweetAuthor-nameScreenNameContainer {
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    line-height: 1.2;
    -webkit-box-align: start;
    align-items: flex-start;
    min-width: 0px;
    margin-left: .5em;
}
.TweetAuthor-decoratedName {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    min-width: 0px;
}
.TweetAuthor-name {
    text-overflow: ellipsis;
    padding-right: 4px;
    overflow: hidden;
}
.Identity-name {
    font-weight: 700;
}
.Identity-screenName {
    color: rgb(105, 120, 130);
}
.link-to {
    text-decoration:none;
    color: black;
}
.link-to:visited, .link-to:hover, .link-to:active {
    text-decoration:none;
    color: black;
}
.tweet-text {
    line-height: 1.4em;
    padding: 0 1em;
}
.TweetInfo-timeGeo {
    margin-left: 1em;
    margin-bottom: 0.5em;
    color: rgb(105, 120, 130);
    font-size: 0.9em;
}
/* Press News */
.card {
    float: left;
    padding-left: 1em;
    width: 90%;
  }
  .card .menu-content {
    margin: 0;
    padding: 0;
    list-style-type: none;
  }
  .card .menu-content::before, .card .menu-content::after {
    content: '';
    display: table;
  }
  .card .menu-content::after {
    clear: both;
  }
  .card .menu-content li {
    display: inline-block;
  }
  .card .menu-content a {
    color: #fff;
  }
  .card .menu-content span {
    position: absolute;
    left: 50%;
    top: 0;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Open Sans';
    -webkit-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
  }
  .card .wrapper {
    background-color: #fff;
    min-height: 540px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.2);
  }
  .card .wrapper:hover .data {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  .card .data {
    position: absolute;
    bottom: 0;
    width: 100%;
    -webkit-transform: translateY(calc(70px + 1em));
    transform: translateY(calc(70px + 1em));
    transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
    transition: transform 0.3s, -webkit-transform 0.3s;
  }
  .card .data .content {
    padding: 1em;
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.9);
  }
  .card .author {
    font-size: 0.9em;
    color: steelblue;
  }
  .card .video-author {
    margin-top: 7em;
  }
  .card .magazine {
    float: right;
    color: steelblue;
  }
  .card .title {
    margin-top: 10px;
  }
  .card .text {
    color: white;
    height: 70px;
    margin: 0;
  }
  .news .date {
    position: absolute;
    top: 0;
    left: 0;
    background-color: steelblue;
    color: #fff;
    padding: 0.8em;
  }
  .news .date span {
    display: block;
    text-align: center;
  }
  .news .date .day {
    font-weight: 700;
    font-size: 1.1em;
    text-shadow: 2px 3px 2px rgba(0, 0, 0, 0.18);
  }
  .news .date .month,
  .news .date .year {
    font-size: 12px;
  }
  .news .content {
    background-color: #fff;
    box-shadow: 0 5px 30px 10px rgba(0, 0, 0, 0.3);
  }
  .news .title a {
    color: white;
  }
  .card{
    transform: scale(0.8);
    width: 95%;
  }
  .news .menu-content {
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
    transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
    transition: transform 0.3s, -webkit-transform 0.3s;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  .news .menu-content li {
    width: 33.333333%;
    float: left;
    background-color: #77d7b9;
    height: 60px;
    position: relative;
  }
  .news .menu-content a {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    font-size: 24px;
  }
  .news .menu-content span {
    top: -10px;
  }

  /* YouTube Videos */
 h1.js-overlay-start {
   cursor: pointer;
 }
  .video .header {
    color: #fff;
    padding: 1em;
    background: rgba(0,0,0,0.8);
  }
  .video .header::before, .video .header::after {
    content: '';
    display: table;
  }
  .video .header::after {
    clear: both;
  }
  .video .header .date {
    float: left;
    font-size: 12px;
  }
  .video .menu-content {
    float: right;
  }
  .video .menu-content li {
    margin: 0 5px;
    position: relative;
  }
  .video .menu-content span {
    transition: all 0.3s;
    opacity: 0;
  }
  .video .video-data {
    color: #fff;
    background: rgba(0, 0, 0, .7);
    height: 31em;
  }
  .video-data .content{
    padding: 1em;
  }
  .video .title a {
    color: #fff;
    text-decoration: none;
  }
  
  .overlay-video {
    display: none;
    opacity: 0;
    -ms-transition: opacity 600ms ease-in;
    transition: opacity 600ms ease-in;
    -ms-transition: opacity .6s;
    transition: opacity .6s;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, .7);
    z-index: 999999;
  }
  .overlay-main {
    opacity: 1;
    -ms-transition: opacity 600ms ease-out;
    transition: opacity 600ms ease-out;
    -ms-transition: opacity .6s;
    transition: opacity .6s;
  } 
  .videoWrapperExt {
    position: relative;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    max-width: 982px;
    padding: 0 20px;
  }  
  .videoWrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
  } 
  .videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  } 
  .close {
   background-image:url(img/mark.png);
    position: absolute;
    top: -50px;
    right: 0px;
    cursor: pointer;
    z-index: 9999;
    height: 40px;
    width: 40px;
    background-size: 40px;
  }

  .start {
    margin-top: 4em;  
    text-align:center;
    font-size:40px;
    text-decoration:underline;
    color:transparent;
    cursor:pointer;
  }
  .play { 
    background: darkred;
    border-radius: 50% / 10%;
    color: #FFFFFF;
    font-size: .7em; 
    height: 3em;
    margin: 20px auto;
    padding: 0;
    position: relative;
    text-align: center;
    text-indent: 0.1em;
    transition: all 150ms ease-out;
    width: 4em;
  } 
  .play:hover {
    background: steelblue;
  }
  .play::before { 
    background: inherit;
    border-radius: 5% / 50%;
    bottom: 9%;
    content: "";
    left: -5%;
    position: absolute;
    right: -5%;
    top: 9%;
  }
  .play::after {
    border-style: solid;
    border-width: 1em 0 1em 1.732em;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.75);
    content: ' ';
    font-size: 0.75em;
    height: 0;
    margin: -1em 0 0 -0.75em;
    top: 50%;
    position: absolute;
    width: 0;
  }

  /* Footer */
footer {
  display: flex;
  background:
  linear-gradient(
    rgba(0, 0, 0, 0.7), 
    rgba(0, 0, 0, 0.85)
  ),  
    url(https://cdn.pixabay.com/photo/2017/09/05/10/07/office-2717006_960_720.jpg) repeat; 
    color: white;
    background-size: cover;
    background-position: center; 
  }
 
  /* Animations */
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.slideDown {
animation-name: slideDown;
animation-duration: 1s;
}
@keyframes slideUp {
  0% {
    opacity: 0;
    -webkit-transform: translateY(50px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateX(0);
  }
}
.slideUp {
animation-name: slideUp;
animation-duration: 1.2s;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
.fadeIn {
  -webkit-animation-name: fadeIn;
  animation-name: fadeIn;
  animation-duration: 2s;
}
 /* Responsive */
  @media screen and (max-width:800px){
  .container {
    flex-direction: column;
  }
  #results, #results-youtube, #results-tweets {
    min-width: 100%;
    max-width: 100%
  }
  #results {
    border: none;
  }
  header h1 {
    font-size: 2.5em;
  }
  h1 {
    font-size: 1.2em;
  }
  section h2 {
    margin-top: 2.7em;
  }
  /* Menu */
  nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 1% 0;
    background-color: rgba(0, 0, 0, 0.85);
  }
  .mobile-menu ul {
    display: flex;
    justify-content: space-around;
    padding-left: 0    
  }
  .mobile-menu ul li {
    display: flex;
    list-style-type: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1em;
  }
  .mobile-menu ul li a,
  .mobile-menu ul li a:visited{
    text-decoration: none;
    font-weight: 700;
    color: steelblue;
    text-shadow:  0 0 1rem steelblue;
  }
  .buttons {
    width: 60%;
  }
  button {
    font-size: 1.1em;
  }
  /* back top top */
  .back-to-top {
    display: none;
  } 
  a.back-to-top{
    display: none;
    visibility: hidden;
  } 
  footer button a{
    font-size: .9em;
  }
}
@media screen and (min-width:800px){
  /* back top top */
  a.back-to-top {
    background: rgba(0,0,0,0.8);
    position: fixed;
    color: steelblue;
    text-shadow: 2px 2px 1em steelblue;
    bottom: 20px;
    right: 20px;
    padding: 1em;
    font-size: 1.2em;
    font-family: 'Arial';
  }
} 
@media screen and (max-width:1200px){
  #tweets {
    font-size: .85em;
  }
}

