body {
  background-color: #F4F8FB;
  font-family: Merriweather;
}
h1,h2,h3,h4,h5,h6 {
    font-family: Lato;
    font-weight: bold;
    text-transform: uppercase;
}
h5.sub-title {
  margin: -20px 0 20px 0;
  opacity: 0.8;
  text-transform: lowercase;
}
a {
  color: #4E76EC;
  font-family: Lato;
}
p {
  font-family: Merriweather;
  font-size: 1rem;  
}
.home {
  position: relative;
}
.nameplate {
  position: absolute; 
  bottom: 0; 
  right: 10px;
}
.contact ul li {
  display: inline-block;
  margin-left: 15px;
  font-size: 24px;
}
.contact ul li a {
  color: #333;
  font-weight: normal;  
  padding-bottom: 5px;
}
.contact ul li a:hover {
  border-bottom: 2px solid #333;
}
.menu {
  position: absolute; 
  top: 20px; 
  right: 20px;
}
.menu a {
  color: #000;
  font-weight: bold;
  text-transform: uppercase;
  padding: 3px 0;
  margin: 0 5px;
}
.menu a:hover {
    border-bottom: 2px solid #000;
}
.menu a.active {
    border-bottom: 2px solid #000;
}
.section-title {
  margin: 50px 0;
}
.projects .prj-thumb {
    width: 100%;
}
.projects h6 small a {
    color: #888;    
}
.projects h6 small a:hover {
    color: #333;
}

.projects:hover .prj-title {
    text-decoration: underline;
}

/* for flip box */
.flipbox {
  position: relative;
  margin: 15px;  
}
.flipbox .front {
  height: inherit;
/* Ninh: disable for the wrapper catches the box's height
  position: absolute;
  top: 0;*/
  z-index: 1900;
  text-align: center;
  border-radius: 2px;
  -webkit-transform: rotateX(0deg) rotateY(0deg);
     -moz-transform: rotateX(0deg) rotateY(0deg);
  -webkit-transform-style: preserve-3d;
     -moz-transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
     -moz-backface-visibility: hidden;
  -webkit-transition: all .8s ease-in-out;
     -moz-transition: all .8s ease-in-out;
    -ms-transition: all .8s ease-in-out;
     -o-transition: all .8s ease-in-out;
      transition: all .8s ease-in-out;
}
.flipbox .front * {
  border-radius: 2px;
}

.flipbox .back {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  z-index: 1000;
  display: flex;  
  text-align: center;
  align-items: center;
  color: #000;
  background-color: #fff;
  /*background-color: #4E76EC;*/
  border-radius: 2px;
  -webkit-transform: rotateY(-180deg);
     -moz-transform: rotateY(-180deg);
  -webkit-transform-style: preserve-3d;
     -moz-transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
     -moz-backface-visibility: hidden;
  -webkit-transition: all .8s ease-in-out;
     -moz-transition: all .8s ease-in-out;
    -ms-transition: all .8s ease-in-out;
     -o-transition: all .8s ease-in-out;
      transition: all .8s ease-in-out;
}
.flipbox .back .box-content {
  padding: 20px;
}
.flipbox .back > * {
    display: block;
    width: 100%;
}
.flipbox.flip .front {
  z-index: 1900;
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
}
.flipbox.flip .back {
  z-index: 1000;
  -webkit-transform: rotateX(0deg) rotateY(0deg);
  -moz-transform: rotateX(0deg) rotateY(0deg);
}
.flipbox img {
  width: 100%;
}
a.box-link {
  margin-top: 20px;
  display: inline-block;
}
.ngdialog.ngdialog-theme-plain.custom-width .ngdialog-content {
  width: inherit;
}
.ngdialog.ngdialog-theme-plain .ngdialog-close:before {
  content: 'close';
  text-transform: uppercase;
  font-size: 0.7rem;
  color: #4e76ec;
  font-weight: bold;
  font-family: Oxygen;
  margin: 5px;
  border: 2px solid #4E76EC;
  width: 80px;  
}
.ngdialog.ngdialog-theme-plain .ngdialog-close:hover:before {
  color: #216EB6;
  border-color: #216EB6;
  text-decoration: underline;
}
.friend a {
  font-size: 1rem;
  font-family: Merriweather;  
}
.friend a:hover {
  text-decoration: underline;
}
a, small {
  outline: none!important;
}
a.button {
  color: #4E76EC;
  border-radius: 2px;
  border: 2px solid #4E76EC;
  padding: 6px 20px;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.75rem;
}
a.button:hover {
  color: #216EB6;
  border-color: #216EB6;
  text-decoration: underline;
}
.section {
    min-height:100vh;
}
.section.home {
  background: url('../assets/img/bg_16x9.jpg');
  background-size: cover;
}
@media only screen and (max-width : 480px) {
  .ngdialog.ngdialog-theme-plain .ngdialog-close:before {
    width: 50px;
  }
  .section.home {
    background-position: -200px 0;
  }
}
.about ul li {
  margin: 20px 0;
  color: #333;
}
.about ul li span.program {
  color: #888;
}
.about ul li span.location {
  color: #888;
  font-weight: bold;
}
.about .description {
  font-style: italic;
  font-size: 90%;
  color: #888;
}