/* Global Layout Set-up */

* { 
  box-sizing: border-box;
}  
body {
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  color: #222;
  background: #f7f5f0;
}


/* Link Styles */

a {
  text-decoration: none;
  color: #999;
}


img #certificate .card {
  text-align: center;
}

/* Section Styles */

.main-nav {
  width: 100%;
  background: black;
  min-height: 30px;
  padding: 10px;
  position: fixed;
  text-align: center;
}
.nav {
  display: flex;
  justify-content: space-around;
  font-weight: 700;
  list-style-type: none;
  margin: 0 auto;
  padding: 0;
}
.nav .name {
    display: block;
    margin-right: auto;
    color: white;
}
.nav li {
  padding: 5px 10px 10px 10px;
}
.nav a {
  transition: all .5s;
}
.nav a:hover {
  color: white
}
.nav .selected {
  color: white;
}

#htmlhome header {
  text-align: center;
  background: url('images/ireland-dublin-bridge-05.jpg') no-repeat center center ;
  background-size: cover;
  background-attachment: fixed;
  overflow: hidden;
  padding-top: 60px;
}

#htmlcontact header {
  text-align: center;
  background: url('images/ireland-dublin-by-night-01.jpg') no-repeat center center ;
  background-size: cover;
  background-attachment: fixed;  
  overflow: hidden;
  padding-top: 60px;  
}

#htmlprojects header {
  text-align: center;
  background: url('images/ireland-dublin-temple-bar-02.jpg') no-repeat center center;  
  background-size: cover;
  background-attachment: fixed; 
  overflow: hidden;
  padding-top: 60px;
}
 
header {
  line-height: 1.5;
}

header .profile-image {
  margin-top: 40px;
  width: 150px;
  height: 150px; 
  border-radius: 50%;
  border: 5px solid #efefef;
  transition: all .6s;
}
header .profile-image:hover {
  transform: scale(1.5) rotate(0deg);
}

.project-image {
  margin-top: 25px;
  width: 200px;
  border-radius: 6px;
}

.card div,
.card h2,
.card p,
.card a,
#reference
{
  text-align: center;
}

.card a {
  display: block;
}

.card .references-back {
  display: none;
}

.card:hover .references-back {
  display: block;
}

.card:hover .references-front {
  display: none;
}

.tag {
  background-color: #efefef;
  color: black;
  padding: 10px;
  border-radius: 5px;
  display: table;
  margin: 10px auto;
} 
.location {
  background-color: #222;
  color: #ff9904;
}
.card {
  margin: 30px;
  padding: 20px 40px 40px;
  max-width: 500px;
  min-width: 287px;
  min-height: 264px;  
  text-align: left;
  background: #fff;
  border-bottom: 4px solid #ccc;
  border-radius: 6px;
  transition: all .5s;
}
.card:hover {
  border-color: #c21d2d;
}

ul.skills {
  padding: 0;
  text-align: center;
}

.skills li {
  border-radius: 6px;
  display: inline-block;
  background: #ff9904;
  color: #efefef; 
  padding: 5px 10px;
  margin: 2px;
}

.skills li:nth-child(odd) {
  background: #c21d2d;
}

footer {
  width: 100%;
  min-height: 30px;
  padding: 20px 0 40px 20px;
}

footer .copyright {
  top: -8px;
  font-size: .75em;
}

footer ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

footer ul li {
  display: inline-block;
}

a.social {
  display: inline-block;
  text-indent: -9999px;
  margin-left: 5px;
  width: 30px;
  height: 30px;
  background-size: 30px 30px;
  opacity: .4;
  transition: all .5s;
}
a.linkedin {
  background-image: url(images/linkedin.jpg);
}
a.xing {
  background-image: url(images/xing.jpg);
}
a.treehouse {
  background-image: url(images/treehouse.jpg);
}
a.github {
  background-image: url(images/github.jpg);
}
a.bitbucket {
  background-image: url(images/bitbucket.png);
}
a.social:hover {
  opacity: 1;
}
.clearfix {
  clear: both;
}


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

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.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;
  color: black;
}

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

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

.contact-info a:hover {
  opacity: 1;
}



@media screen and (max-width: 719px) {
  div.card.mobilenone {
    display: none;
  }
  div.card.references {
    height:312.81px;
  }
}

/* Styles for larger screens */
@media screen and (min-width: 720px) {
  
  .flex {
      display: -ms-flexbox;      /* TWEENER - IE 10 */
      display: flex; 
      max-width: 1200px;
      -ms-flex-pack: distribute;
      justify-content: space-around;
      margin: 0 auto;
  }

  header {
    min-height: 470px;
  }

  .nav {
    max-width: 1200px;
    padding: 0 30px;
  }

  main {
    padding-top: 20px;
  }

  main p {
    line-height: 1.6em;
  }

  footer {
    font-size: 1.3em;
    max-width: 1200px;
    margin: 40px auto;
  }
}


@media screen and (min-width: 720px) and (max-width: 1200px) {

  div.card.references {
    width: 287px;
    height:312.81px;
  }
}

@media screen and (min-width: 1200px) { 
  .card {
    width: 500px;
  }
  div.card.references {
    height:312.81px;
  }
}

@media (max-width: 512px) {
  .nav .name {
    display: none;
  }
  .nav {
    float: right;
  }
}





