
 {box-sizing: border-box;}

body {
  margin: 0;
  font-family: 'Bungee', cursive;
  background-color: black;
}

.header {
  overflow: hidden;
  background-color: rgb(0, 0, 0, 0.5);
  position: fixed;
  width: 100%;
  z-index: 100;
  top: 0;
}

.header a {
  float: right;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 20px;
  text-decoration: none;
  font-size: 20px;
  border-radius: 4px;
  line-height: 20px;
  top: 0;
  margin-top: 10px;
  margin-right: 10px;
  margin-bottom: 10px;
}

.header a.logo {
  float: left;
  font-size: 30px;
}

.header a:hover {
  background-color: #ddd;
  color: black;
}

.active {
  background-color: black;
  color: white;
}

.header .icon {
  display: none;
  margin-right: 20px;
  margin-top: 20px;
  position: static;
}

@media screen and (max-width: 900px) {
  .header a:not(:first-child) {display: none;}
  .header a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 900px) {
  .header.responsive {position: relative;}
  .header.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .header.responsive a {
    float: none;
    display: block;
    text-align: left;
    color: white;
    padding: 20px;
    text-decoration: none;
    font-size: 20px;
  }
  .header a.logo {
    font-size: 25px;
    margin-top: 20px;
    margin-left: 10px;
  }
}

/* Header */

#slide {
  vertical-align: central;
  margin-top: 250px;
  top: 50%;
  left: 50%;
}

  
#myVideo {
  right: 0;
  display: flex;
  z-index: -100;
  position: fixed;
  top: 20px;

}

#myVideo1 {
  position: fixed;
  bottom: 0;
  right: 0;
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  display: flex;
  z-index: -100;
}

@media screen and (max-width: 900px) {
  #slide {
    height: 400px;
    width: 600px;
    margin-left: 70px;
    margin-top: 300px;
  }
}

@media screen and (max-width: 600px) {
  #myVideo1 {
    width: 250%;
    position: absolute;

  }
  #slide {
    height: 150px;
    width: 300px;
    margin-left: 35px;
    margin-top: 200px;
  }
}

/* First page */

.text {
  color: black;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 15px;
  padding: 10px;
  margin-top: 150px;
  text-align: center;
  background-color: white;
  margin-right: 8px;
  margin-left: 8px;
}

/* work + curso */

.textcurso {
  color: white;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 15px;
  padding: 30px;
}

/* texto curso*/

.textContacts {
  margin-top: 90px;
  color: white;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 15px;
  padding: 25px; 
  text-align: center;
}

@media screen and (max-width: 900px) {
  .textContacts {
    font-size: 20px;
  }
}

@media screen and (max-width: 600px) {
  .textContacts {
    font-size: 15px;
  }
}

/* texto contactos */

.main {
  max-width: 1000px;
  margin: auto;
}

.row {
  margin: 8px-16px;
  margin-top: 100px;
}

.row,
.row > .column {
  padding: 8px;
}

.column {
  float: left;
  width: 50%;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

.content {
  background-color: white;
  padding: 20px;
  font-size: 14px;
  font-family: 'M PLUS Rounded 1c', sans-serif;

}

@media screen and (max-width: 900px) {
  .column {
    width: 50%;
  }
}

@media screen and (max-width: 600px) {
  .column {
    width: 90%;
    margin-left: 10px;
  }
}

/*Noticias ends here*/

img {
    display: block;
}

nav,
.filter {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 15px;
    line-height: 20px;
    margin-top: 150px;
}


.portfolio {
    margin: 0;
    padding: 10px;
    color: white;
    font-size: 13px;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

.main-grid {
    width: 100%;
    margin: 0;

    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
}

.work {
    width: 100%;
    margin: 0;
    padding: 0;
}

.work img {
    width: 100%;
    height: auto;
}

.dgm {}

.dg {}

.dm {}

.filter {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;

}

.filter a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    padding: 0 0 5px;
    border: none;
}

.filter a:hover {
    border-bottom: solid 1px #000;
    margin-bottom: -1px;
}

.filter a.active {
    border-bottom: solid 1px #000;
    margin-bottom: -1px;
}

@media screen and (min-width: 900px) {
   .main-grid {
        width: 60%;
        margin: 0 auto;
        grid-template-columns: repeat(2, 1fr);
    }

    .dg {
        grid-column: span 2;
    }
    .dm {
        grid-column: span 2;
    }
    .filter {
        grid-column: span 2;
    }
}

@media screen and (max-width: 900px) {
   .main-grid {
        width: 80%;
        margin: 0 auto;
        grid-template-columns: repeat(2, 1fr);
    }

    .dg {
        grid-column: span 2;
    }
    .dm {
        grid-column: span 2;
    }
    .filter {
        grid-column: span 2;
    }
}

@media screen and (max-width: 600px) {
  .work {
    width: 100%;
    margin-left: 0;
  }
}
/* trabalhos ends here*/

.footer {
    width: 100%;
    margin: 0;
    padding: 10px 0;
    text-align: center;

    color: #E7E6D2;
    background-color: #000;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 15px;
}

.footer a {
    color: #FFF;
    text-decoration: underline;
}

.footer a:hover {
    color: #FFF;
}

#Video {
  width: 100%;
  height: auto;
}