@font-face { font-family: smalls-medium; 
             src: url('../fonts/smalls-medium.ttf'); } 

html,body { height: 100%; margin: 0px; padding: 0px; }

body {
	background: #dfcec0;
    font-family: 'smalls-medium', serif;
    font-weight: 300;
    font-size: 16px;
    color: #555;
    line-height: 1.6em;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
}

.text-layer {background-color: white; padding:30px 0 0;}

.top-layer {
  background-color: #dfcec0;
  background-size: auto 150%;
  background-position: center center;
  background-repeat: no-repeat;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'smalls-medium', serif;
    font-weight: 600;
    color: white;
}

h1 {
	font-size: 40px;
}

h3 {
  margin-bottom: 20px;
  margin-top: 5em;
  font-size: 13px;
  font-weight: 300;
  font-family: 'smalls-medium', sans-serif;
  text-transform: uppercase;
}

h4 {
	font-weight: 400;
	font-size: 20px;
}

p {
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 400;
    color:#333;
}


a {
    color: #4c270d;
    word-wrap: break-word;
    -webkit-transition: color 0.1s ease-in, background 0.1s ease-in;
    -moz-transition: color 0.1s ease-in, background 0.1s ease-in;
    -ms-transition: color 0.1s ease-in, background 0.1s ease-in;
    -o-transition: color 0.1s ease-in, background 0.1s ease-in;
    transition: color 0.1s ease-in, background 0.1s ease-in;
}

a:hover,
a:focus {
    color: #840037;
    text-decoration: none;
    outline: 0;
}

a:before,
a:after {
    -webkit-transition: color 0.1s ease-in, background 0.1s ease-in;
    -moz-transition: color 0.1s ease-in, background 0.1s ease-in;
    -ms-transition: color 0.1s ease-in, background 0.1s ease-in;
    -o-transition: color 0.1s ease-in, background 0.1s ease-in;
    transition: color 0.1s ease-in, background 0.1s ease-in;
}

main {
    flex: 1;
    position: relative;
}

.top-left, .top-right, .bot-left, .bot-right {
    position: absolute;
    background-repeat: no-repeat;
    background-size: 30%;
    min-width: 300px;
}

.top-left {
    top:0;
    left:0;
    right: 30%;
    bottom: 30%;
    background-image: url(../img/top-left.png);
    background-position: top left;
}

.top-right {
    top:0;
    right:0;
    left:30%;
    bottom:30%;
    background-image: url(../img/top-right.png);
    background-position: top right;
}

.bot-left {
    bottom:0;
    left:0;
    top:30%;
    right: 30%;
    background-image: url(../img/bot-left.png);
    background-position: bottom left;
}

.bot-right {
    bottom:0;
    right:0;
    left:30%;
    top:30%;
    background-image: url(../img/bot-right.png);
    background-position: bottom right;
}

.logo {
  box-sizing: border-box;
  display: inline;
  position: relative;
  margin-top: 20vh;
  transform: scale(1);
  margin-bottom: 5vh;
  width: 100%;
}

.address-line {
    text-transform: uppercase;
    color: black;
    font-size: 12px;
    font-weight: 600;
}

.middle-block {padding: 5px;}

.middle-block p {
    color: white;
    font-size: 16px;
    position: relative;
    text-align: left;
    padding-left: 35px;
    line-height: 1.2em;
    margin-bottom: 20px;
}

.middle-block p::before {
    position: absolute;
    left: 0px;
    top: 5px;
    content: '';
    background-image: url(../img/bullet.png);
    width: 25px;
    height: 21px;
}

.alignleft {
    text-align: left;
}
.alignright {
    text-align: right;
}

.aligncenter {
    text-align: center;
}

.ceo-title {
    margin-bottom: 0;
    font-size: 16px;
}

.ceo-name {
    font-size: 30px;
    margin-top: 10px;
    margin-bottom: 50px;
}

.grey-bg {
  padding: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.428571429;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
       -o-user-select: none;
          user-select: none;
  background-image: none;
  border: 1px solid transparent;
  border-radius: 0;
}

.btn-theme  {
  color: #fff;
  background-color: #4F92AF;
  border-color: #4F92AF;
  transition: background 0.3s;
}
.btn-theme:hover  {
  color: #fff;
  background-color: #5cacce;
  border-color: #5cacce;
}


/* wrapper */

#wrapper {
	text-align: center;
}

#wrapper h1 {
  margin-top: 4em;
  margin-bottom: 1em;
  color: black;
  font-size: 3em;
  font-weight: 900;
  text-shadow: 0 0 23px #e088dc;
  -webkit-text-stroke: 2px #e088dc;
  letter-spacing: 4px;
}

#wrapper h1 small {
    display: block;
    font-size: 50%;
    color: black;
}

h2.subtitle {
  color: black;
  font-size: 1.6em;
  margin-top: 4vh;
  margin-bottom: 8vh;
  font-weight: 900;
  line-height: 1.5em;
  text-shadow: 0 0 23px #e088dc;
  -webkit-text-stroke: 2px #e088dc;
  letter-spacing: 3px;
}

.email {
  font-size: 24px;
  font-weight: 600;
  color: #59bc91;
}

.phone {white-space: nowrap; font-size: 24px;}

/* social */
.social {
    padding: 30px 0 0 0;
}

.instagram i {
  color: #e088dc;
  margin-top: 10px;
  text-shadow: 0 0 20px #e088dc;
  font-size: 3em;
  font-weight: 100;
  transition: all ease-in-out .1s;
}

.instagram:hover i {
  color: white;
}

.social a {
    font-size: 24px;
    color: #333;
    padding: 0 5px;
    transition: all 0.3s;
}

.phone, .email {
  margin-bottom: 35px;
  display: block;
  font-size: 2em;
  color: white;
  font-weight: 400;
  transform: scale(1);
  transition: all ease-in-out .1s;
}

.phone:hover, .email:hover { transform:scale(1.1) } 

.social a:hover {
    color: #5cacce;
}


/* footer */
p.copyright {
  text-align: center;
  padding: 10px 0;
  font-size: 12px;
  background-color: #988e8c;
  color: white;
}	

p.registration {
  margin-top: 6vw;
  color: #00416b;
  text-align: center;
  padding: 0;
  font-size: 2.5vw;
  font-family: 'smalls-medium', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
}

.credits, .credits a {
    color: #fff;
}

@media (max-width: 767px) {

    .top-left, .top-right, .bot-left, .bot-right {
    background-size: 60%;
}

    p.registration {
      font-size: 6vw;
      line-height: 1.1em;
      margin-top: 20vw;
    }

    .phone, .email {
        font-size: 8vw;
    }

    h2.subtitle {
        margin-top: 8vh;
        font-size: 22px;}

    .logo-wrapper {
      width: 60vw;
      height: 60vw;
    }

    .logo {
        margin-bottom: 8vh;
      }

    #wrapper h1 {
      font-size: 40px;
    }

    body {
      background-size: contain;
    }

}