/**********************************
GENERAL
***********************************/

body {
  font-family: 'Open Sans', sans-serif;
}

#wrapper {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 5%;
}

a {
  text-decoration: none;
}

p{
	font-size: 20;
}

img {
  max-width: 100%;
  border-radius: 20px 20px 20px 20px;
  box-shadow: 0px 0px 12px 0px rgba(0,0,0,0.35);
  background-size: 100%;
}


h3 {
  margin: -90 0 1em 0;
  height: center;
  text-align: center;
  
  transition: color .1s ease-in-out, box-shadow .3s ease-in-out;
  border-radius: 4px;
  box-shadow: 0 1px 2px 0;
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

h3:hover {
  box-shadow: inset 100px 0 0 0 #54b3d6;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  color: #fff;
    }



/**********************************
HEADING
***********************************/

header {
  float: left;
  margin: 0 0 30px 0;
  padding: 5px 0 0 0;
  width: 100%;
  
}

#logo {
  text-align: center;
  margin: 0;
}

#logoimg {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
  margin: 0;
}

.logo {
  /*Background pictures*/
  display: inline-block;
  background-repeat:no-repeat;
  background-size: auto;
  background-color: white;
  margin-left: 5%;
  padding: 30px;
  display: inline-block;
  background-image: url("img/logo.svg");
  background-size: 100%;
}

h1 {
  text-transform: uppercase;
  font: bold 14px/1.4 'Open Sans', arial, sans-serif;
  margin: 15px 0;
  font-size: 1.75em;
  font-weight: 800;
  line-height: 0.8em;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
}

h2 {
  font-size: 0.75em;
  margin: -5px 0 0;
  font-weight: normal;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
}



/**********************************
NAVIGATION
***********************************/

nav {
  text-transform: uppercase;
  font: bold 14px/1.4 'Open Sans', arial, sans-serif;
  text-align: center;
  padding: 10px 0;
  margin: 20px 0 0;
}


nav ul {
  list-style: none;
  margin: 0 10px;
  padding: 0;
}

nav li {
  display: inline-block;
  transition: color .1s ease-in-out, box-shadow .3s ease-in-out;
}

nav a {
  font-weight: 800;
  padding: 15px 10px;
}


/**********************************
FOOTER
***********************************/

footer {
  font-size: 0.75em;
  text-align: center;
  clear: both;
  padding-top: 50px;
  color: black;
}

.social-icon {
  width: 20px;
  height: 20px;
  margin: 0 5px;
}

.fa {
  padding: 20px;
  font-size: 30px;
  width: 20px;
  height: 20px;
  text-align: center;
  text-decoration: none;
  margin: 5px 2px;
  border-radius: 50%;
}

.fa:hover {
    opacity: 0.7;
}

.fa-linkedin {
  background: black;
  color: white;
}

.fa-envelope {
  background: black;
  color: white;
}

.fa-instagram {
  background: black;
  color: white;
}

/**********************************
PAGE: PORTFOLIO
***********************************/

#gallery {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 2;
}

.#gallery tile {
  width:33.33%;
  min-height:20em;
  line-height: 1.2;
  display:inline-block;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  position: relative;
  
  color:#fff;
  font-family:"Verdana",sans-serif;
  text-shadow: 2px 2px 2px #000;
  cursor: pointer; 
  cursor: hand;
}

#gallery li {
  float: left;
  width: 45%;
  margin: 2.5%;
  color: #bdc3c7;
}
#gallery li p {
  position: absolute;
}

#smooth {
  border: 10px solid transparent;
  padding: 15px;
  
}


.box {
  /*Background pictures*/
  background-repeat:no-repeat;
  background-size: auto;
  background-color: white;
  padding: 100px;
  display: inline-block;
  box-shadow: 0px 0px 12px 0px rgba(0,0,0,0.35);
  background-image: url("img/flowerRight.png");
  background-size: 100%;
  
}
.secondbox {
  /*Background pictures*/
  background-repeat:no-repeat;
  background-size: auto;
  background-color: #2f2f2f;
  padding: 10px;
  display: inline-block;
  box-shadow: 0px 0px 12px 0px rgba(0,0,0,0.35);
  
}

.bg {
  animation:slide 63s ease-in-out infinite alternate;
  background-image: linear-gradient(50deg, #e0e0e0 50%, #8f8f8f 50%);
  bottom:0;
  left:-50%;
  opacity:.5;
  position:fixed;
  right:-50%;
  top:0;
  z-index:-1;
}

.bg2 {
  animation-direction:alternate-reverse;
  animation-duration:64s;
}

.bg3 {
  animation-duration:65s;
}

@keyframes slide {
  0% {
    transform:translateX(-25%);
  }
  100% {
    transform:translateX(25%);
  }
}


.page {
	margin: 0 -8 0;
	margin-top: 100;
	text-align: center;
	background-color: #5ccc7a;
	position: absolute;
	z-index:-1;
	width:100%;
	color: white;
}

.space{
	margin-top: 200;
}

/**********************************
PAGE: ABOUT
***********************************/

.profile-photo {
  display: block;
  max-width: 150px;
  margin: 0 auto 30px;
  border-radius: 100%;
}



/**********************************
PAGE: CONTACT
***********************************/

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9em;
}

.contact-info a {
  display: block;
  min-height: 20px;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  padding: 0 0 0 30px;
  margin: 0 0 10px;
}

.contact-info li.phone a {
  background-image: url('../img/phone.png');
}

.contact-info li.mail a {
  background-image: url('../img/mail.png');
}

.contact-info li.twitter a {
  background-image: url('../img/twitter.png');
}



/**********************************
COLORS
***********************************/

/* site body */
body {
  background-image: linear-gradient(#cae7df, #d3d6db);
}

/* green header */
header {
  background: white;
  border-radius: 20px 20px 5px 5px;
  box-shadow: 0px 0px 12px 0px rgba(0,0,0,0.35);
}

/* nav background on mobile */
nav {
  background: #5ccc7a;
  border-radius: 5px 5px 5px 5px;
}
}

/* logo text */
h1, h2 {
  color: #2F2F2F;
}

/* links */
a {
  color: #2F2F2F;
}

/* nav link */
nav a, nav a:visited {
  color: #2F2F2F;
}


/* selected nav link */
nav a.selected {
  border-radius: 25px;
  border-right-style: solid;
  border-left-style: solid;
  padding: 8px;
  width: 200px;
  height: 150px;
}

nav a.hover-underline-animation {
  position: relative;
}

nav a.hover-underline-animation::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 10;
  left: 0;
  background-color: #2F2F2F;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

nav a.hover-underline-animation:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}




/**********************************
MEDIA QUERIES
***********************************/

@media screen and (min-width: 480px) {
  
  /**********************************
  TWO COLUMN LAYOUT
  ***********************************/
  
  #primary {
    width: 50%;
    float: left;
  }
  
  #secondary {
    width: 40%;
    float: right;
  }
  

  
  /**********************************
  PAGE: PORTFOLIO
  ***********************************/
  
  #gallery li {
    width: 28.3333%;
  }
  
  #gallery li:nth-child(4n) {
    clear: left;
  }
  
  /**********************************
  PAGE: ABOUT
  ***********************************/
  
  .profile-photo {
    float: left;
    margin: 0 5% 80px 0;
  }
  
}

@media screen and (min-width: 660px) {

  /**********************************
  HEADER
  ***********************************/

  nav {
    background: none;
    float: right;
    font-size: 1.125em;
    margin-right: 5%;
    text-align: right;
    width: 45%;
  }
  
  #logo {
    float: left;
    margin-left: 5%;
    text-align: left;
    width: 45%;
  }
  
  h1 {
    font-size: 2.5em;
  }
  
  h2 {
    font-size: 0.825em;
    margin-bottom: 20px;
  }
  
  header {
    border-bottom: 5px solid #599a68;
    margin-bottom: 60px;
  }

  
}
