* {
  box-sizing: border-box;
  padding-left:5px;
  padding-right:5px;
}

html {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
}

img {
  max-width: 100%;
}

header, main, main > section, footer {
  display: grid;
  margin-top: 3px;
  background-color: black;
}

p{
  color: white;
}

header, main, footer{
  margin:0 auto; 
}

header #logo {
  margin-left: 10%; 
}

header {
  grid-template-columns: 1fr 1fr; 
  grid-auto-rows: 50px; 
  z-index: 10;
}

header nav {
  align-self: center; 
  justify-self:end; 
}



#sobremim {
  padding-top: 10px;
  padding-bottom: 20px;
  font-size: 40px;
  justify-self: center;
}

#section1 {
    text-align: center;
    justify-content: center;
    margin-top: 20px;
  }

  #section1 article {
    justify-content: center;
  }

main #section1, main #section2 {
  max-width: 100%;
  height: 100%;
}

main #section1 {
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(200px, auto);
  grid-column-gap: 40px; 
  grid-row-gap: 1em; 
}

main #section1 article {
  height: 100%;
  width: 100%;
  display: grid;
}

main #section1 article p {
  align-self: center; 
  justify-self:center; 
}

a {
    color: #fff;
    text-decoration: none;
}

#textdesign {
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 40px;
  justify-self: center;
}

#section2 {
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  grid-column-gap: 20px; 
  grid-row-gap: 20px;
  margin: 5px;
  align-self: center; 
  justify-self:stretch;
  width:  100%;
}

.container {
    filter: blur(0);
    transform: scale(1);
  }

  .image {
    display: block;
    width: 100%;
    height: auto;
  }

  .overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background-color: #000;
    opacity: 50%
  }

  .container:hover .overlay {
    opacity: 1;
  }

  .text {
    color: white;
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
  }


#foto {
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 40px;
  justify-self: center;
}

#section3 {
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  grid-column-gap: 20px; 
  grid-row-gap: 20px;
  padding: 20px;
  margin: 5px;
  align-self: center; 
  justify-self:stretch;
  width:  100%;
}

.um img, .dois img, .tres img, .quatro img, .cinco img, .seis img {
  transition: transform .2s ease-in-out;
}

.um:hover img, .dois:hover img, .tres:hover img, .quatro:hover img, .cinco:hover img, .seis:hover img {
  transform: scale(2);
}

footer #contacts {
  align-self: center;
}

#contacts {
  display: grid; 
  grid-template-columns: repeat(2, 1fr);
}

#contacts img {
  width: 30px;
}

footer > section {
  width: 100%;
  padding-bottom: 10px;
}
