head{
    width: 80%;
    margin: 1em ;
    padding: 1em;
}
body {
    background-color: #A6D2EE;
    box-sizing: border-box;
    font-family: sans-serif;
    }

video{
    width: 100%;
    max-width: 640px;
}

img{
    width: 100%;
    max-width: 400px;
}

header {
    color: white;
    background-color: #0E5E93;
    padding: 1em;
    }
footer {
    color: white;
    background-color: #0E5E93;
    padding: 1em;
    }

/* 'a' es el header que dice Agua segura*/
a{
  color: white;
}


header h1 {
    float:inherit;
}
article {
    background-color: #A6D2EE;
}

.proyectos ul li {
    display: flex; 
    flex-direction: column;
    align-items:center;  
}

footer {
    font-size: 8pt;
}

#button {
 padding: 0;
 width: 100%;
 }
#button li {
 display: inline;
 }
#button li a {
 font-family: Arial;
 text-decoration: none;
 float: left;
 padding: 10px;
 background-color: #2175bc;
 color: #fff;
 }
#button li a:hover {
 background-color: #2586d7;
 margin-top: -2;
 padding-bottom: 12px;]
 }

#Youtube {
max-width: 96%;
display: block;
}

#aresultado{
    color: white;
    background-color: #0E5E93;
    padding: 1em;
}

nav ul{
    text-align: left;
	flex-grow: 1;
    display: list-item;
    list-style: none
    }



* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
    display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}


/* MenuToggle */
/* Posicion del menuToggle */
#menuToggle
{
  display: block;
  position: fixed;
  top: 30px;
  left: 30px;
  
  z-index: 1;
  
  -webkit-user-select: none;
  user-select: none;
}

/* Posicion y tamaño del input dentro del menuToggle */
#menuToggle input
{
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -10px;
  left: -10px;
  
  cursor: pointer;
  
  opacity: 0; 
  z-index: 3; 
  
  -webkit-touch-callout: none;
}

/* Diseño de los tres span del menuToggle */
#menuToggle span
{
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  
  background: #cdcdcd;
  border-radius: 3px;
  
  z-index: 1;
  
  transform-origin: 4px 0px;
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

/* Animacion del segundo span caundo se apreta */
#menuToggle span:first-child
{
  transform-origin: 0% 0%;
}


#menuToggle span:nth-last-child(2)
{
  transform-origin: 0% 100%;
}

/* Animacion del tercer span caundo se apreta */
#menuToggle input:checked ~ span
{
  opacity: 1;
  transform: rotate(45deg);
  z-index: 2;
}

/* Animacion del segundo span caundo se apreta */
#menuToggle input:checked ~ span:nth-last-child(3)
{
  transform: rotate(0deg);
  background-color: transparent;
  z-index: 1;
  width: 0;
}

/* Animacion del primer span caundo se apreta */
#menuToggle input:checked ~ span:nth-last-child(2)
{
  opacity: 1;
  transform: rotate(-45deg);
  z-index: 2;
}

/* Diseño y posicion del menu de navegacion */
#menu
{
  position: sticky;
  width: 200px;
  height: 100vh;
  margin: -57px 0 0 -50px;
  padding-top: 50px;
  text-decoration: none;
  background: #0E5E93;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;

  /* to stop flickering of text in safari */
  
  transform-origin: 0% 0%;
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

/* Transicion del menu de navegacion para cerrarlo */
#menuToggle input:not(:checked) ~ #menu
{   
  transform: translate(-100%, 0);
}

/* Transicion del menu de navegacion para abrirlo */
#menuToggle input:checked ~ #menu
{
  transform: translate(0%, 0);
}

/* menu items (items de la barra de navegacion) */
#menu li {
    padding: 1em 0;
    font-size: 22px;
}

h1{
    text-align: center
}

header ul li {
    display: flex; 
    align-items:center;     
}


