* {
  box-sizing: border-box;
}

div#wrapper {
  max-width: 1028px !important;
}

div#header {
  float: none !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
}

div#header div.search {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  margin: 10px 45px 0 0 !important;
}

div#header ul.menu {
  display: flex;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: auto;
  margin: 0 !important;
  padding: 55px 0 0 0 !important;
}

div#mobile-menu {
  position: absolute;
  top: 0;
  right: 0.25em;
  display: none;
  visibility: hidden;
  background: #f8e9c1;
}

div#mobile-menu-btn {
  display: none;
  visibility: hidden;
  position: absolute;
  top: 0.5em;
  left: 0.5em;
  font-size: 3em;
  color: #8b1e20;
}

div#mobile-menu ul {
  margin: 0.25em 0 0 0;
  padding: 0.25em;
}

div#mobile-menu ul li {
  list-style: none;
  margin: 0;
  padding: 0.5em 0 1em 0.5em;
}

div#mobile-menu ul li a {
  text-decoration: none;
  color: #8b1e20;
  font-size: 1.25em;
}

.top,
.middle,
.bottom {
  display: flex;
  flex-direction: row;
}

.top {
  height: 477px !important;
}

.left-col {
  flex: 1 0 393px;
  flex-wrap: wrap;
  flex-direction: row;
  text-align: right;
}

.right-col {
  flex: 1 0 636px;
  flex-wrap: wrap;
  flex-direction: row;
  text-align: right;
}

.top .left-col {
  background: url(../images/header_top.jpg) top left no-repeat;
}

.top .right-col {
  background: url(../images/header_top.jpg) top right no-repeat;
}

.middle .left-col {
  margin-left: 25px !important;
}

.middle .right-col {
  text-align: left;
  margin-left: -25px !important;
}

div#content {
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 2px 0 0 0 !important;
}

div#content div.youtube_embed {
  position: relative !important;
  top: auto !important;
  left: auto !important;
}

div#content div.youtube_embed iframe {
  width: 368px;
  height: 307px;
}

div#buckets,
div#buckets div.buckets-inner div.buckets-border {
  background: none !important;
}

div#footer div.footer-inner {
  max-width: 972px !important;
}

div#footer div.footer-inner .custom {
  display: flex !important;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.footer-menu {
  display: flex;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.footer-menu li {
  flex: 1 0 auto;
}

.footer-menu-container {
  flex: 2 0 500px;
}

div#footer div.footer-inner .hiring-block {
  flex: 1 0 140px;
}

div#footer div.footer-inner .copyright {
  flex: 1 0 330px;
}

div#footer div.footer-inner .facebook-icon {
  flex: 1 0 50px;
}

div#footer div.footer-inner a:last-child {
  padding-right: 0 !important;
}

/* Extra small devices */
@media only screen and (max-width: 390px) {
  body {
    margin-top: 0 !important;
    background: #fcf5e5 !important;
  }

  div#wrapper {
    width: 390px !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
  }

  div#mobile-menu {
    visibility: visible;
  }

  div#mobile-menu-btn {
    display: block;
    visibility: visible;
  }

  div#header {
    display: none !important;
  }

  div#rotator {
    display: block !important;
    width: 100% !important;
    height: 550px !important;
  }

  div#rotator div.slide,
  div#rotator div.slide img {
    width: 100% !important;
  }

  .top,
  .middle,
  .bottom {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  .bucket,
  .custombucket {
    font-size: 1.5em !important;
    line-height: 1.25em !important;
  }

  .left-col,
  .right-col {
    position: relative;
    display: block !important;
    width: 100% !important;
    text-align: left;
  }

  .top .left-col {
    background: none !important;
    width: 390px !important;
    height: 300px !important;
    overflow: hidden;
  }

  .top .left-col img {
    width: 100% !important;
    height: auto !important;
  }

  .top .right-col {
    display: block !important;
    background: none !important;
    width: 390px !important;
    height: 210px !important
  }

  .middle .left-col,
  .middle .right-col {
    width: 100% !important;
    display: block !important;
    height: auto !important;
    text-align: left !important;
  }

  .middle .left-col {
    margin-left: 0 !important;
  }

  .middle .right-col {
    margin-left: 0 !important;
  }

  div#content {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  div#content div.youtube_embed {
    width: 100% !important;
    height: auto !important;
  }

  div#content div.youtube_embed iframe {
    width: 100% !important;
    height: 480px !important;
  }

  div#content div.sub-content {
    width: 100% !important;
    min-height: auto !important;
    float: none !important;
    padding: 1em;
  }

  div#content div.sub-content h2,
  div#content div.sub-content p {
    width: 92% !important;
  }

  div#content div.sub-content h2 {
    font-size: 3em;
    line-height: 1.25em;
  }

  div#content div.sub-content p {
    font-size: 1.5em !important;
  }

  div#buckets {
    display: block !important;
    float: none !important;
    width: 100% !important;
    height: auto;
    padding-bottom: 2rem !important;
  }

  div#buckets div.buckets-inner {
    display: block !important;
    width: 95% !important;
    margin: 0 !important;
  }

  div#buckets div.buckets-inner div.buckets-border {
    display: block !important;
    width: 100% !important;
    padding: 0 0 2rem 1rem !important;
  }

  div#buckets div.buckets-inner div.buckets-border div.bucket,
  div#buckets div.buckets-inner div.buckets-border div.wide {
    width: 49% !important;
    height: auto !important;
  }

  .bottom p,
  .bottom div > em {
    font-size: 1em !important;
  }

  div#footer {
    display: none !important;
    visibility: hidden !important;
  }
}
