/* navigation bar that is mobile-friendly */
body {margin:0;}

.topnav {
  overflow: hidden;
  background-color: #5C668A;
  box-shadow: 3px 3px 3px #999;   /* for shadow under navbar */
  -moz-box-shadow: 3px 3px 3px #999;
  -webkit-box-shadow: 3px 3px 3px #999;
}

.topnav a {
  float: right;
  display: block;
  color: white;
  text-align: center;
  font-family: 'Raleway', sans-serif;
  padding: 15px 20px;
  text-decoration: none;
  font-size: 120%;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;  /* for hover transition time */
  cursor: pointer;
}

.topnav a:hover {
  background-color: white;
  color: #5C668A;
  text-decoration: none;
}

.topnav .icon {
  display: none;
}

/* X-Small */
@media only screen and (min-width: 0px) {

  #logo-ec{
    float: left;
  }

  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }

  .topnav.responsive {
    position: relative;
  }

  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }

  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

/* Small */
@media only screen and (min-width: 576px) {

  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }

  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }

  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

/* Medium */
@media only screen and (min-width: 768px){

  #logo-ec{
    float: left;
  }

  .topnav a:not(:first-child) {display: block;}
  .topnav a.icon {
    float: right;
    display: none;
  }
}

/* Large */
@media only screen and (min-width: 992px) {

  .topnav a:not(:first-child) {display: block;}
  .topnav a.icon {
    float: right;
    display: none;
  }
}

/* Extra-Large */
@media only screen and (min-width: 1366px) {

  .topnav a:not(:first-child) {display: block;}
  .topnav a.icon {
    float: right;
    display: none;
  }
}

/* I'd love to hear from you + resume parts*/
h1, h3, p {
    text-align: center;
    width: 100%;
    font-family: 'Raleway', sans-serif;
}

/* contact buttons */
.contactButton {
    width: 50px;
    height: 50px;
}

.contactButton:hover {
    opacity: 0.7;
}
