@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:300,400,700');
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,400i,700,700i');

*{
	box-sizing: border-box;
	list-style: none;
	text-decoration: none;
	margin: 0;
	padding: 0;
	text-align: center;
    box-sizing: border-box;
 
   
 }

body{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    flex: 1;  
       
    
}

header{
    width: 80%;
    margin: 0 auto;

}

.nav1 ul {
  overflow: hidden;
    background-color: #093a35;
}
 
.nav1 ul li {
  float: left;
  font-size: 16px;
    display: block;
}
 
.nav1 ul li a {
  display: flex;
    justify-content: center;
    align-content: center;
    padding: 1.5em;
  margin: 0 auto;
  color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-family: "400", monospace;

}

 
.nav1 ul li a:hover{
  background: cadetblue;
  
}

.nav2{  
    background-color: #838988;
     width: 80%;
    padding: 0.4em auto;
    margin: 0 auto;
  
    overflow: hidden;
    
}

.nav2 ul li {
  font-size: 1em;
  display: flex;
  flex-grow: 1;
  justify-content: center;
  float:left;


}

.nav2 ul li a {
    display: flex;
    float: left;
    justify-content: center;
    color: white;
    font-size: 0.9em;
    align-content: center;
     border-left: 0.05em solid #093a35;
    flex-grow: 2;
    
   
    
    
}

.nav2 a{
    display: flex;
    flex-wrap: wrap;
    padding: 0.6em 5em;
    font-size: 0.3em;
    align-items: center;
    font-family: "Roboto Slab", monospace;
    font-size: 0.5em;
}

.nav2 ul li a:hover {
    
    color: #093a35;
    
}

h1{
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    width: 80%;
    margin: 0.8em  auto;
    color: #093a35;
     border-bottom: 0.09em  solid #093a35;
    margin-bottom: 0.5em;
    font-family: "Roboto Slab", monospace;
    
    
    
}

h2{
    background-color: cadetblue;
    color: white;
    margin: 0 auto;
    padding: 8%;
    font-family: "Roboto Slab", monospace;
    font-weight: 300;
    
    
}
    
    h3 {
    
   background: #093a35;
    margin: 0  auto;
    color: white;
    padding: 0.5%;
    border-radius: 0.5em;
    width: 40%;
    margin-top: 1em;
    font-family: "Roboto Slab", monospace;
    
    
}
h3:hover {
    background-color: cadetblue;
}

h4{
    
    color: white;
    background: cadetblue;
    margin: 0 auto; 
    width:100%;
    align-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    font-family: "Roboto Slab", monospace;
}

h5{
     margin-bottom: 1.2em;
    margin: 0 auto;
     background-color: #093a35;
    width: 110%;
    padding: 0.5em;
    display: flex;
    align-content: center;
   
}
    
    h5 a{    
   color: white;
    margin: 0 auto;
    align-items: center;
    
    font-size: 1em;

    
}
h5 a:hover {
    background: cadetblue;
}

h5:hover{
    background-color: cadetblue;
}

.ph1{
    margin: 0 auto;
    margin-bottom: 2.8em;
    width: 80%;
    font-family: "Roboto", monospace;
    line-height: 1.7em;
}
.sections{
    
    display: flex;
    justify-content: space-between;
    align-items: center;
	align-content: center;
    width: 80%;
    height: auto;
    margin: 0 auto;
    line-height: 1.8em;
}
.contenidoscreen{
    background-color: #093a35;
    height: 20%;
    width: 80%;
    margin: 0 auto;
}

p{
    width: 100%;
    margin: 0 auto;
    font-family: "Roboto", monospace;
    font-size: 0.9em;
    
    
}
.slider{
 margin: 0 auto;
 width: 80%;
height: 20%;
 overflow:hidden;
        }


.slider ul {
    display: flex;
    padding: 0;
    margin: 0;
    width: 400%;
    animation: cambio 15s infinite;
    animation-direction: alternate-reverse;
   
}

.slider li {
  
    list-style: none;

}



@keyframes cambio {
    0%  { margin-left: 0%;}
    20% { margin-left: 0%;}
    
    25% { margin-left: -100%;}
    45% { margin-left: -100%;}
    
    50% { margin-left: -200%;}
    70% { margin-left: -200%;}
    
    75% { margin-left: -300%;}
    100% { margin-left: -300%;}
}

main{
    background-image: url(img/mock.jpg);width: 80%;height:150%;
    background-size: 100%;
    background-repeat: no-repeat;
    margin: 0 auto;
    padding: 13%;
    margin-bottom: -5em;
        
}

.pfrase{
    
    margin: 0 auto;
    background: #093a35;
    color: white;
    padding: 0.5%;
    border-radius: 0.5em;
    font-size: 0.9em;
    
}


#contenedor {
    width: 80%;
    height: 80%;
}
@media screen and (min-width: 40em) {
video {
    width: 50%;
    height: 80%;
    padding: 1%;
}
   } 



footer {
    margin-top: 2em;
    background-color: #093a35;
    color: white;
    font-size: 1em;
    font-family: "Roboto Slab", monospace;
    font-size: 0.7em;
    padding: 0.2em 0.5em;
}
