/* -------------------------------- 
Primary style
-------------------------------- */
*, *::after, *::before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

*::after, *::before {
  content: '';
}

html, body{
  padding: 0;
  margin: 0;
}

body {
  font-size: 100%;
  font-family: "Open Sans", sans-serif;
  color: #4e5359;
  background-color: rgb(211, 210, 194);
}
body::after {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(78, 83, 89, 0.8);
  visibility: hidden;
  opacity: 0;
  -webkit-transition: opacity .3s 0s, visibility 0s .3s;
  -moz-transition: opacity .3s 0s, visibility 0s .3s;
  transition: opacity .3s 0s, visibility 0s .3s;
}
body.cd-overlay::after {
  visibility: visible;
  opacity: 1;
  -webkit-transition: opacity .3s 0s, visibility 0s 0s;
  -moz-transition: opacity .3s 0s, visibility 0s 0s;
  transition: opacity .3s 0s, visibility 0s 0s;
}
@media only screen and (min-width: 768px) {
  body::after {
    display: none;
  }
}

a {
  color: rgb(64,64,64);
  text-decoration: none;
}

/* -------------------------------- 
Main components 
-------------------------------- */

.header {
  position: relative;
  height: 80px;
  line-height: 80px;
  text-align: center;
  background-color: #f3f1f3;
}

.header img {
  float: left;
  margin-top: 16px;
  vertical-align: middle;
  margin-right: 15px;
  margin-left: 5px;
}

.main-section {
  width: 90%;
  max-width: 1024px;
  margin: 2em auto;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.main-section:after {
  content: "";
  display: table;
  clear: both;
}

.message-box{
  width: 50%;
  background-color: #f3f1f3;
  border: 1px solid #bcbcbc;
  margin: 0 auto;
}

.message-box-container{
  position: relative;
  display: inline-block;
  padding: 15px;
  width: 100%;
}

.message-image, .message-text{
  height: 100%; 
  float: left;
}

.message-image{
  padding: 10px 15px;
}
.message-image i{
  color: #8d173c;;
}
.message-text{
  width: 80%;
  display: table;
}
.message-text div{
  vertical-align: middle;
  display: table-cell;
}

.message-button{
  float: right;
  margin-top: 10px;
  padding: 8px 15px;
  border: 1px solid #8d173c;
  background-color: #8d173c;
  color: #fff;
  font-size: 13px;
}

@media only screen and (min-width: 1024px) {
  .header {
    position: relative;
    height: 80px;
    line-height: 80px;
    text-align: center;
    background-color: #f3f1f3;
  }

  .header img {
    float: left;
    margin-top: 16px;
    vertical-align: middle;
    margin-right: 15px;
  }
}

@media only screen and (min-width: 768px) {
  .main-section {
    position: relative;
    margin: 4em auto;
    box-shadow: none;
  }
}

@media only screen and (max-width: 350px) {
  .header img {
    width: 80px;
  }
}
