body,
div,
section,
nav,
ul,
li,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  padding: 0;
  font-family: 'Oswald', sans-serif;
  max-width: 800px;
  display: block;
  margin: auto; 
  border-radius: 5px 5px;

}

body {
  background-color: #8d99ae;
  -webkit-animation: mymove 7s infinite; /* Chrome, Safari, Opera */
  animation: mymove 7s infinite;
  /*flex-box*/
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
}

/*info on css animation from w3schools.org*/
/* Chrome, Safari, Opera */
@-webkit-keyframes mymove {
    50% {background-color: #e0e0e3;}
}

/* Standard syntax */
@keyframes mymove {
    50% {background-color: #e0e0e3;}
}


#spacer {
  padding: 5px;

}
nav ul {
  background-color: #8d99ae;
  position: fixed;
  width: 100%;
  overflow: hidden;
  color: white;
  padding: 0;
  margin: 0;
  text-align: center;
  z-index: 4;
  transition: max-height 0.4s;
  -webkit-transition: max-height 0.4s;
  -moz-transition: max-height 0.4s;
  -ms-transition: max-height 0.4s;
  -o-transition: max-height 0.4s;
}

nav ul li {
  display: inline-block;
  padding: 0 40px;
}

nav ul li a {
  color: white;

}
nav ul li a:hover {
  color: black;
}


h1 {
  font-size: 40px;
  color: #6a0101;
  line-height: 48px;
  display: inline-block;
  margin: 10px 2px 0 10px;
}

h2 {
  font-weight: bold;
  font-size: 24px;
  color: #140912;
  line-height: 29px;
  padding: 10px;
  /*position relative in order to animate*/
  position: relative;
}

h3 {
  font-style: italic;
  font-size: 20px;
  color: #140912;
  line-height: 22px;
}

h4 {
  font-weight: bold;
  font-size: 14px;
  color: #140912;
  line-height: 10px;
}

h2,
h3,
h4,
h5 {
  padding: 5px 5%;

}

hr {
  border-color: #a59797;
}

.date-text {
  font-style: italic;
  font-size: 14px;
  color: #151111;
  line-height: 16px;
  float: left;
}

.location-text {
  font-style: italic;
  font-size: 14px;
  color: #999;
  line-height: 16px;
  float: right;
  padding-right: 15px;

}

p {
  font-size: 14px;
  color: #333;
  line-height: 21px;
  margin: 0 0 30px 0;
  text-align: justify;
  padding-right: 45px;
}

a {
  color: #2b2d42;
  text-decoration: none;
  display: block;
}

.welcome-message {
  font-style: italic;
  font-size: 16px;
  color: #430909;
  line-height: 18px;
  color: white;
}

#skills-h3 {
  color: #a52626;
  padding-top: 20px;
}

.clear-fix {
  overflow: auto;
}

.education-entry,
.work-entry,
.project-entry {
  padding-left: 40px;
  color:#140912;
}

.orange {
  background-color: #ad6565;
  color: white;
}

.orange-text {
  color: orange;
}

.white-text {
  font-weight: normal;
  color: #DBDBDB;
  font-size: 18px;
}

.gray {
  background-color: #ad6565;
  padding: 0 0 10px 0;
  clear: both;

}

/* TODO: Replace with image later */
#header {
  background-color: #2b2d42;
  display: block;
  max-height: 100%;
}

#name {
  padding: 5px 5px 5px 25px;
}

#footerContacts {
	background-color: #2b2d42;
}

.flex-box {
  display: -webkit-flex;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-justify-content: space-around;
  -ms-flex-pack: distribute;
  justify-content: space-around;
  padding: 5px;
}

.center-content {
  padding: 0% 5px;
  text-align: justify;
}

ul {
  list-style-type: none;
}

.biopic {
  float: left;
  padding: 20px;
  width: 200px;
  height:200px;
  display: block;
  border-radius: 10%;
  margin: 0 0 -30px 0;
}

img {
  padding: 2px;
}

span {
  padding: 5px;
}

#lets-connect {
  text-align: center;
  color: white;
}

.handle {
  width: 100%;
  background-color: inherit;
  text-align: left;
  box-sizing: border-box;
  cursor: pointer;
  color: white;
  display: none;
  font-size: 2em;
  background-color: #8d99ae;
  position: fixed;
  width: 100%;
  overflow: hidden;
  padding: 0 0 0 10px;
  margin: 0;


}
/* Media queries to handle various device widths */


@media only screen and (max-width: 1024px) {
  #lets-connect {
    margin-top: 5%;
  }
}

@media only screen and (max-width:900px) {
  .biopic {
    width: 175px;
  }
}

@media only screen and (max-width: 750px) {
  #lets-connect {
    margin-top: 10%;
  }

  img, .biopic {
    width: 125px;
    height: 125px;
    display: block;
  }

  #name{
    display: table-footer-group;
  }

  .welcome-message {
    display: block;
    text-align: left;
  }

  .white-text {
    font-size: 0.7em;
  }
  li {
    display: table-header-group;
  }
}
@media screen and (max-width: 720px) {
  nav ul {
    max-height: 0;
  }
  .showing {
    max-height: 18em;
  }
  nav ul li{
    box-sizing: border-box;
    width: 100%;
    padding: 5px;
    text-align: left;
  }
  .handle{
    display: block;
  }
  #header {
    margin-top: 40px;
  }
}
#map {
  display: block;
  height: 100%;
  margin: 0 5%;
}

#mapDiv {
  height: 400px;
  width: 100%;
  padding-bottom: 5%;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

@media only screen and (min-width: 750px) {
  #skills-h3,
  .biopic {
    display: block;
  }
}
