@import url('https://fonts.googleapis.com/css2?family=Roboto&family=Roboto+Serif&display=swap');
@import url('icomoon.css');

body {
  font-size: 18px;
  width: 900px;
  margin: auto;
  margin-top: 0px;
  font-family: 'Roboto', sans-serif;
}            
a {
  text-decoration: none;
}
ul {
  list-style-type: none;
}
li {
  margin: 8px 0;
}
 #title {
  font-family: 'Roboto Serif', sans-serif;
  height: 100vh;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

#title h1 {
  font-size: 5em;
  font-weight: 400;
}

#info {
  padding-top: 5vh;
  display: flex;
  flex-direction: row;
  text-align: left;                
}

#contact {
  padding: 2em;
  width: 50%;
  border: 1px solid black;
  background-color: #333333;
  color: #eeeeee;
}
#contact a {
  color: #dddddd;
}

#projects {
  padding: 2em;
  width: 50%;
  border: 1px solid black;
}
#projects a {
  color: #222222;
}

footer {
  text-align: center;
  border: 1px solid black;
  padding: 1em;
  background-color: #777777;
  color:  #ffffff;
}

@media only screen and (max-width: 1080px) {
  body {
    width: 96%;
  }
  #title {
    height: 100vh;
  }
  #title h1 {
    font-size: 3.4em;
    font-weight: 400;
  }   
  #info {
    flex-direction: column;
  }
  #contact {
    width: auto;
    display: block;
  }
  #projects {
    width: auto;
    display: block;
  }
  footer {
    width: auto;
    display: block;
  }
}

@media only screen and (max-width: 500px) {
  body {
    width: 96%;
    height: 100vh;
  }
  #title {
    height: 50vh;
  }
  #title h1 {
    padding: 0.4em;
    padding-top: 2em;
    font-size: 1.7em;
    font-weight: 400;
  }   
  #info {
    flex-direction: column;
  }
  #info h2 {
    font-size: 1.3em;
  }
}
.icon {
  text-decoration: none;
  border-bottom: none;
  position: relative;
}
.icon:before {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  text-transform: none !important;
  font-family: 'Icomoon';
  font-weight: 400;
}
.label {
  margin-left: 0.4em;
}
