/*-------------------------------------------*/
/* Navigation top                            */
/*-------------------------------------------*/

.nav-wrapper{
  z-index: 9001;
  position: relative;
  float: left;
  margin: 0;
  width: 100%;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 1px 1px 2px 0 #333333; 
}

.nav{
  position: relative;
  margin: auto;
  width: 480px;
}

.nav-each{
  position: relative;
  float: left;
  height: 70px;
  width: 70px;
  float: left;
  line-height: 20px;
  text-align: center;
  color: #000;
  cursor: pointer;
  text-decoration: none;
  z-index: 1;
  transition: 0.2s ease-in-out;
  margin: 0 5px 0 5px;
}

.nav-each img{
  position: relative;
  margin: 0 0 0 3px;
  width: 64px;
  height: 64px;
}

.nav-each:before{
  content: "";
  position: absolute;
  width: 70px;
  height: 3px;
  bottom: -5px;
  left: 0;
  background: #fff;
  visibility: hidden;
  border-radius: 5px;
  transform: scaleX(0);
  transition: 0.2s linear;
}

.nav-each:after{
  content: "";
  position: absolute;
  width: 100%;
  height: 7px;
  border: 1px solid #000;
  bottom: -2px;
  left: 0;
  background: #fff;
  border-radius: 5px;
  opacity: 0;
  transform: scalex(0);
  transition: .5s;
}

.nav-each:hover:before, .nav-each:focus:before{
  visibility: visible;
  transform: scaleX(1);
}

.nav-each:hover{
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-title{
  position: relative;
  float: left;
  width: 100%;
  margin-top: 10px;
}

.nav-title h2{
  text-align: left;
  width: 100%;
}

.nav-title img{
  position: relative;
  float: left;
  height: 48px;
  margin-top: -12px;
}

/*-------------------------------------------*/
/* Navigation top - submenus                 */
/*-------------------------------------------*/

.blackout{
  z-index: 9000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
}

.nav-each-sub-wrapper{
  z-index: 9002;
  position: absolute;
  top: 80px;
  right: 10px;
  width: 450px;
  height: auto;
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 1px 1px 2px 0 #333333;
  border-radius: 12px;
  padding: 5px;
  display: none;
}

.nav-each-sub{
  position: relative;
  float: left;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  padding: 5px;
  border-radius: 12px;
  background-color: #eeeeee;
  box-shadow: 1px 1px 2px 0 #333333;
}

.nav-each-sub-header-wrapper{
  position: relative;
  float: left;
  width: 450px;
  height: 50px;
  margin: -5px 0 5px -5px;
  background-image: url(../img/backLightGrey.png);
  background-color: #2c415d;
  border-radius: 12px 12px 0 0;
}

.nav-each-sub-header{
  position: relative;
  float: left;
  width: calc(100% - 30px);
  height: 100%;
  margin: 0 15px 0 15px;
  line-height: 50px;
  text-align: left;
  color: #fff;
  font-size: 120%;
}

.nav-each-sub-close{
  position: absolute;
  width: 50px;
  height: 50px;
  top: 0;
  right: 0;
  line-height: 50px;
  text-align: center;
  font-size: 160%;
  color: #fff;
  cursor: pointer;
  border-radius: 0 12px 0 0;
  transition: 0.2s ease-in-out;
}

.nav-each-sub-close:hover{
  background-color: rgba(255, 255, 255, 0.2);
}

.nav-each-sub-each{
  position: relative;
  float: left;
  width: 100%;
  height: 70px;
  margin-top: 5px;
  line-height: 70px;
  border-radius: 12px;
  margin-bottom: 5px;
}

.nav-each-sub-each:first-of-type{
  margin-top: 0;
}

.nav-each-sub-each img{
  position: relative;
  float: left;
  height: 64px;
  width: 64px;
  margin-top: 3px;
  margin-right: 10px;
}

.nav-each-sub-each a{
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: calc(100% - 10px);
  height: 100%;
  background-color: #ffffff;
  transition: 0.2s ease-in-out;
  border-radius: 12px;
  box-shadow: 0 0 1px 0px #333;
  border-left: 5px solid #6D7A8B;
  border-right: 5px solid #6D7A8B;
  border-top: 1px solid #6D7A8B;
  border-bottom: 1px solid #6D7A8B;
}

.nav-each-sub-each a:hover{
  border-left: 15px solid #2c415d;
  border-right: 15px solid #2c415d;
  border-top: 1px solid #2c415d;
  border-bottom: 1px solid #2c415d;
  width: calc(100% - 30px);
}

/*-------------------------------------------*/
/* Message center                            */
/*-------------------------------------------*/

.message-center-wrapper{
  position: relative;
  float: left;
  width: calc(100% - 12px);
  margin: 0 0 1px 1px;
  padding: 0 5px 0 5px;
  height: auto;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 0 2px 0 #666666;
}

.message-center-wrapper:nth-of-type(2){
  margin-bottom: 10px;
}

.message-center-message{
  padding: 0 5px 0 5px;
  font-size: 90%;
}