/* Box Model Hack */
*, *:before, *:after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  font-size: 16px;
}

/* Clear fix hack */
.clearfix:after {
     content: ".";
     display: block;
     clear: both;
     visibility: hidden;
     line-height: 0;
     height: 0;
}

.clear {
	clear: both;
}

/******************************************
/* BASE STYLES
/*******************************************/

body, html {
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  text-decoration: none;
}


/******************************************
/* LAYOUT
/*******************************************/
header {
  width: 100%;
  height: 12%;
  background: #f5f9fc;
}

.top, .mid, .bot {
  height: 65%;
  width: 100%;
  padding: 0 7%;
  color: #304659;
}

.top, .mid{
  background: #f5f9fc;
}

.mid {
  padding-top: 2rem;
  height: 50%;
}
/******************************************
/* ADDITIONAL STYLES
/*******************************************/
nav {
  text-align: center;
  padding-left: 7%;
  color: #304659;
}

#menuToggle
{
  display: block;
  position: relative;
  top: 20px;
  
  z-index: 1;
  
  -webkit-user-select: none;
  user-select: none;
}

#menuToggle a
{
  text-decoration: none;
  color: #232323;
  
  transition: color 0.3s ease;
}

#menuToggle a:hover
{
  color: #9ba8b3;
}


#menuToggle input
{
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;
  
  cursor: pointer;
  
  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */
  
  -webkit-touch-callout: none;
}

/*
 * Just a quick hamburger
 */
#menuToggle span
{
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  
  background: #cdcdcd;
  border-radius: 3px;
  
  z-index: 1;
  
  transform-origin: 4px 0px;
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

#menuToggle span:first-child
{
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2)
{
  transform-origin: 0% 100%;
}

/* 
 * Transform all the slices of hamburger
 * into a crossmark.
 */
#menuToggle input:checked ~ span
{
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: #232323;
}

/*
 * But let's hide the middle one.
 */
#menuToggle input:checked ~ span:nth-last-child(3)
{
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

/*
 * Ohyeah and the last one should go the other direction
 */
#menuToggle input:checked ~ span:nth-last-child(2)
{
  transform: rotate(-45deg) translate(0, -1px);
}

/*
 * Make this absolute positioned
 * at the top left of the screen
 */
#menu
{
  position: absolute;
  width: 300px;
  margin: -100px 0 0 -50px;
  padding: 50px;
  padding-top: 125px;
  
  background: #ededed;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */
  
  transform-origin: 0% 0%;
  transform: translate(-100%, 0);
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#menu li
{
  padding: 10px 0;
  font-size: 22px;
}

/*
 * And let's slide it in from the left
 */
#menuToggle input:checked ~ ul
{
  transform: none;
}

.reg-menu {
  display: none;
}

.inline {
  display: inline-block;
}

.source {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: bold;
}

h5 {
  font-weight: bold;
  font-size: .8rem;
  margin-top: 5%;
}

h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-top: 5%;
  margin-bottom: 7%;
}

input {
  font-size: 1rem;
  width: 100%;
  padding: .8rem .8rem;
  margin-bottom: 3%;
}

.top p {
  margin-top: 5%;
}

.btn {
  text-align: center;
  background: #304659;
  color: white;
  padding: .98rem 1rem;
}

.btn-2 {
  background: #304659;
  color: white;
  font-weight: bold ;
}

.top-gal {
  background: url("https://i.imgur.com/M9TyprO.png");
  background-size: cover;
}
/*
* MID
*/

.mid h4 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 10%;
}

.bold {
  font-weight: bold;
}

.mid p {
  margin: 10% 0;
}

.bot h2 {
  font-size: 2.7rem;
  font-weight: bold;
  margin-top: 5rem;
  margin-bottom: 2rem;
}

/*
* MEDIA QUERIES
*
*/

@media (min-width: 768px) {
  .top {
    width: 50%;
    height: 70%;
    float: left;
  }

  .mid {
    width: 25%;
    height: 40%;
    float: left;
  }

  .bot {
    height: 30%;
  }

  .burger-menu {
    display: none;
  }

  .reg-menu {
    display: contents;
  }

  input {
    width: 70%;
    float: left;
  }


  .flt {
    float: left;
  }

  nav {
    padding-top: 1%;
  }

  .source {
    position: absolute;
    left: 5%;
    top: 4%;
  }

  nav .btn {
    position: absolute;
    left: 90%;
  }

  .in-pad {
    margin-top: 1%;
    padding-left: 3%;
    font-weight: bold;
  }

  .in-pad a {
    color: #304659;
  }

  .in-pad:last-child {
    margin-right: 20%;
  }

   h2 {
    margin-top: 10%;
  }
}