// Page Layout
// -----------------------------------------------------------------------------

.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

a:hover, a:focus {
  text-decoration: none;
  outline: none;
  color: $bw-pink;
}
a {
  color: $bw-blue;
  transition: all 0.3s;
}
h2 { font-weight: bold; color: #000; font-size: 32px; text-align: center;}
.btn-default, .btn-primary {
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 20px;
  &:focus, &:active {
    outline: none;
  }
}

.table {
  thead {
    th {
      background: $bw_blue;
      color: #fff;
    }
  }
}

body {
  font-size: 18px;
}

.page-header {
  color: #000;
  .title {
    font-weight: bold;
    font-size: 42px;
  }
}

#main-wrapper {
  padding-top: 30px;
  min-height: calc(100vh - 583px);
}
.table-overflow {
  overflow-x: auto;
}

.not-front {
  #main-wrapper {
    padding-top: 70px;
  }
}
.page-front-page {
  #page-header {
    display: none;
  }
}
.front-read-more {
  text-align: center;
  margin-top: 70px;
  color: $bw-blue;
  font-weight: bold;
  cursor: pointer;
}
#front_how {
  padding-top: 20px;
}
.navbar-collapse {
  padding-top: 15px;
}
.navbar-default {
  padding-top: 15px;
  .navbar-toggle {
    border: none;
    margin-right: 0;
    padding-right: 0;
    &:hover, &:focus {
      background: transparent;
    }
    .icon-bar {
      background: #9B9B9B;
      width: 24px;
    }
  }
}
.navbar-brand {
  padding: 0;
  margin-top: 10px;
}

.no-padding {
  padding-left: 0;
  padding-right: 0;
}

#main-menu {
  li {
    a {
      text-transform: uppercase;
      font-weight: 800;
      padding: 5px 8px;
      font-size: 16px;
      border: solid 3px transparent;
      line-height: 38px;
    }
  }
}

.user-menu {
  padding-top: 8px;
  cursor: pointer;
  ul {@include list;}
  li { display: inline-block;
    a { color: $bw-gray; font-weight: 800; text-transform: uppercase; padding: 5px 8px; display: block; font-size: 16px; cursor: pointer;
      &:hover { color: $bw-blue;}
    }
  }
}

.not-logged-in {
  .user-menu {
    ul li {
      &:last-of-type {
        a { color: $bw-pink; border: solid 2px; border-radius: 30px;
          &:hover { color: $bw-blue; border-color: $bw-blue;}
        }
      }
    }
  }
}
.i-want {
  padding-left: 0;
  position: relative;
  h2 { font-size: 42px; margin-bottom: 24px; text-align: left;}
  .lead { margin-bottom: 18px; font-size: 24px;}
  .become-partner {
    @include gray-link;
    margin-top: 10px;
    line-height: 22px;
    font-size: 16px;
    text-align: center;
  }
}

#want-resolve-btn {
  @include half-rounded-btn($bw-blue, 30px, 0);
}
#create-account-btn {
  @include half-rounded-btn($bw-pink, 0, 30px);

}

.how {
  background: #f3f3f3;
 /* text-align: center; */
  .lead {
    font-size: 18px;
    margin-bottom: 12px;
  }
  h2 {
    border-radius: 0 0 50% 50%/  0 0 50px 50px;
    background: #fff;
    span { display: block; padding-bottom: 20px; padding-top: 20px;}
  }
  padding-bottom: 20px;
}
#how-more {
  color: $bw-blue;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 18px;
  display: block;
  padding: 30px 0 20px;
}
.block-front-expand-reality {
  padding-bottom: 70px;
  background: #f3f3f3;
  h2 {
    margin-bottom: 15px;
  }
  .category-item {
    img {
      max-width: 100%;
      width: 184px;
      position: absolute;
      bottom: 50px;
    }
  }
}

.category-item-wrapper { padding: 5px;}
.category-item {
  box-shadow: 0 5px 20px 0 rgba(0,0,0,0.1);
  border-radius: 20px;
  height: 260px;
  padding: 15px 20px;
  position: relative;
  background: #fff;
  img { max-width: 100%;}
  .btn {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    font-size: 16px;
    width: 156px;
  }
}
.category-title {
  font-family: $nunito;
  font-size: 20px;
  color: #7C7C7C;
  font-weight: 800;
  margin-top: 5px;
  text-align: center;
  text-transform: uppercase;
}

.block-slider {
  clear: both;
  min-height: 160px;
  width: 100%;
  float: left;
  background: #f3f3f3;
  margin-bottom: 50px;
  h2 {
    margin-bottom: 20px;
    text-transform: none;
  }
  .slick-slide {
    margin-top: 30px;
    &:focus { outline: none;}
    a {
      font-weight: bold;
      color: transparent;
      font-family: $merri;
      transition: all 0.4s;
    }
    &:hover {
      a { color: $bw-blue;}
    }
  }
  .slide__content {
    text-align: center;
    &:focus {outline: none;}
    .views-field-field-image {
      height: 130px;
      .field-content {
        position: relative;
        top: 50%;
        transform: translateY(-50%);
      }
    }
  }
  .view-content {
    border-radius: 50% 50% 0 0/ 50px 50px 0 0;
    background: #fff;
  }
}

.avatar-menu {
  border-radius: 50%;
  border: 3px solid #E8E8E8;
  max-width: 100%;
}

.logged-in .user-menu {
  border: solid 3px #e8e8e8;
  border-radius: 85px;
  padding: 2px 2px 0 20px;
  background: #fff;
  .user-basic-menu {
    display: inline-block;
    float: left;
    text-align: right;
    padding-right: 5px;
  }
  .user-name {
    display: block;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    color: #000;
    line-height: 16px;
  }
  .highlighted {
    font-size: 12px;
    color: $bw-blue;
    font-weight: bold;
    float: left;
    padding-right: 2px;
  }
  .user-level {
    text-transform: uppercase;
  }
  .dropdown {
    float: left;
    display: inline-block;
    top: -2px;
  }
  .dropdown-menu {
    border: none;
    top: calc(100% + 6px);
    li { width: 100%;}
  }
}

.project-sponsors {
  text-align: center;
  a { color: #8C8C8C;}
  .container {
    max-width: 100%;
  }
}
.sponsors-logos {
  width: 640px;
  margin: 0 auto 30px;
  float: none;
  max-width: 100%;
  clear: both;
  img {
    max-width: 100%;
  }
}

.header-image { text-align: center; margin: 0 auto;}

#footer {
  text-align: center;
  text-transform: uppercase;
  margin: 0;
  padding-bottom: 30px;
  .copyright {
    a {
      color: $bw-gray;
      &:hover {
        color: $bw-blue;
      }
    }
  }
}


.bigw-knowledge {
  .title {
    text-align: left;
    color: #8C8C8C;
    font-size: 24px;
  }
}

.contest-image {
  img {
    border-radius: 20px;
    max-width: 100%;
    position: relative;
  }
  &:before {
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgba(0,0,0,0.4);
    position: absolute;
    content: '';
    z-index: 9;
    border-radius: 20px;
  }
}
.contest-item {
  position: relative;
  padding: 0;
  margin: 0 5px 25px 5px;
}
.contest-details {
  position: absolute;
  top: 0;
  z-index: 10;
  text-align: center;
  padding: 10px;
  height: 100%;
  width: 100%;
}
.quiz-title {
  font-size: 18px;
  font-family: $nunito;
  color: #fff;
  width: 100%;
  text-align: left;
  margin-top: 10px;
}
.quiz-start {
  position: absolute;
  bottom: 30px;
  left: 10px;
  width: calc(100% - 20px);
}
.quiz-more {
  color: #fff;
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  font-weight: bold;
  cursor: pointer;
  &:hover {
    color: $bw-pink;
  }
}

.selected-category, .browse-category {
  text-align: left;
  font-size: 24px;
  display: inline-block;
  float: left;
  font-family: $merri;
  margin: 0 0 5px 0;
  line-height: 32px;
  font-weight: bold;
}
.selected-category {
  color: $bw-blue;
  padding-left: 5px;
  cursor: pointer;
}
.choose-category {
  top: 35px;
  left: 150px;
  text-transform: uppercase;
  li a {
    font-weight: bold;
    color: $bw-gray;
    &:hover {
      color: $bw-blue;
    }
  }
}

.bigw-contest {
  #bigw-contest-form {
    width: auto;
    .form-select {
      width: auto;
    }
  }
  .modal-content {
    border-radius: 20px;
    width: 440px;
    margin: 0 auto;
    max-width: 100%;
  }
  .modal-header {
    border: none;
    padding: 10px 15px;
  }
  .modal-body {
    padding: 0 15px 10px;
  }
  .modal-footer {
    clear: both;
  }
}
.contest-detail-image {
  position: relative;
  &:before {
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgba(0,0,0,0.4);
    position: absolute;
    content: '';
    z-index: 9;
    border-radius: 20px;
  }
  img {
    max-width: 100%;
    border-radius: 20px;
  }
}
.contest-detail-title {
  font-family: $nunito;
  margin: 0;
  font-weight: bold;
  color: #000;
  font-size: 20px;
  padding: 0 15px;
  margin-bottom: 5px;
  line-height: 24px;
}
.quiz-detail-start {
  position: relative;
  top: -45px;
  width: calc(100% - 20px);
  left: 10px;
  z-index: 9;
}
.quiz-summary {
  padding: 0 15px;
}

.form-modal {
  .form-control {
    box-shadow: none;
    border-radius: 20px;
  }
  .modal-dialog {
    width: 380px;
    max-width: 100%;
    margin: 10px auto;
  }
  .modal-header {
    border: none;
    padding-bottom: 0;
    text-align: center;
  }
  .form-submit {
    width: 100%;
  }
  #edit-profile-main {
    display: none;
  }
  .password-strength {
    width: 100%;
    float: left;
    margin-top: 0;
  }
  .password-confirm {
    margin-top: 0;
    width: auto;
  }
  .form-type-password,.form-type-password-confirm {
    margin-bottom: 5px;
  }
  .date-combo {
    margin-bottom: 5px;
    .panel-body {
      padding: 0;
    }
    .form-type-select {
      margin-right: 10px;
    }
    .container-inline-date {
      >.form-item {
        margin-right: 0;
      }
      .date-padding {
        padding: 5px 0;
      }
    }
  }
  #field-surname-wrapper, #field-name-wrapper {
    width: calc((100% - 10px)/2);
    display: inline-block;
  }
  .form-type-password {
    display: inline-block;
    input { max-width: 100%;}
    &:first-of-type {
      margin-right: 10px;
    }
  }
  #field-name-wrapper {
    margin-right: 10px;
  }
  &#register-modal {
    .form-type-password {
      width: calc((100% - 15px)/2) !important;
    }
  }
  .form-file {
    margin-bottom: 15px;
  }
  .field-name-field-date-of-birth {
    fieldset {
      border: none;
      margin: 0;
    }
    label { display: none;}
    .panel-heading {
      background: transparent;
      border: none;
      font-size: 14px;
      padding: 5px;
      margin: 0;
    }
    .panel-title {
      font-size: 14px;
    }
    .help-block {
      display: none;
    }
  }
}
.image-widget-data {
  max-width: 100%;
}
.form-item {
  max-width: 100%;
}

.facebook-btn {
  background: #3b5998;
  border: transparent;
  text-transform: none;
  width: calc((100% - 10px)/2);
  &:hover {
    background: darken(#3b5998, 10);
  }
}

.modal-content {
  box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);
  border: none;
  border-radius: 40px;
  min-height: 250px;
}
.modal-footer {
  padding: 10px 15px;
  border: none;
}
.modal-header {
  border: none;
}

div.password-suggestions {
  max-width: 100%;
}

.link-back {
  //color: $bw-blue;
  //font-size: 16px;
  //font-weight: bold;
  //line-height: 22px;
  //display: block;
  //clear: both;
  //float: left;
  //padding-bottom: 20px;
  //&:hover {
  //  color: $bw-pink;
  //}
  clear: both;
  float: left;
  margin-bottom: 20px;
  margin-top: 10px;
}

//category result rank
.result-user, .result-points, .result-img {
  display: inline-block;
  float: left;
}
.result-img {
  img { border-radius: 50%;}
}
.result-points {
  float: right;
  font-weight: bold;
}
.result-user {
  margin-left: 5px;
}
.leader {
  line-height: 32px;
  margin-bottom: 5px;
}
.expand-reality {
  .category-item {
    margin-bottom: 20px;
    img {
      width: 184px;
      position: absolute;
      bottom: 50px;
    }
  }
}
.leaders {
  border-right: 2px solid #F3F3F3;
  min-height: 180px;
  .leader:first-of-type {
    font-weight: bold;
    color: #000;
  }
}
.category-item-wrapper:last-of-type {
  .leaders {
    border-right: none;
  }
}

.quiz-page-details {
  text-align: center;
  .field {
    padding-bottom: 20px;
  }
  .field-name-field-category, .field-name-field-max-points {
    .field-items {
      font-family: $merri;
      font-size: 30px;
      color: $bw-blue;
      font-weight: bold;
    }
  }
}

.node-type-quiz {
  .field-name-field-image {
    text-align: center;
    img {
      border-radius: 20px;
      max-width: 100%;
      height: inherit;
    }
  }
}

#quiz-view-table td {
  vertical-align: middle;
  text-align: center;
}

.not-front {
  .block-slider {
    background: transparent;
    h2 { display: none;}
    .view-content {
      background: transparent;
    }
  }
}
.page-my-account {
  .form-item-old-password {
    width: 50%;
    .help-block {
      color: $bw-blue;
      font-weight: bold;
    }
  }
  .field-name-field-city {
    width: 50%;
  }
}


// ---------------TAKE QUIZ STYLES--------------
.answering-form {
  padding-top: 55px;
  .form-wrapper:not(.form-actions) {
    width: 780px;
    margin: 0 auto;
    box-shadow: 0 5px 20px 0 rgba(0,0,0,0.1);
    border-radius: 20px;
    max-width: 100%;
    padding: 40px 30px;
  }
  h2 { display: none;}
  .field-name-body {
    color: #000;
    font-weight: bold;
    font-size: 24px;
    padding-bottom: 5px;
  }
  .form-item {
    font-size: 20px;
    margin: 0 0 0 4px;
    line-height: 28px;
    width: 100%;
  }
  .form-type-radios, .form-type-radio {
    input[type=radio]{
      position: absolute;
      outline: none;
      margin-left: -26px;
      &:before {
        position: absolute;
        content: '';
        width: 24px;
        height: 24px;
        border: 2px solid #9B9B9B;
        background: #fff;
        border-radius: 50%;
        top: -2px;
        left: -2px;
        cursor: pointer;
      }
      &:checked {
        &:before {
          border: solid 8px $bw-blue;
          text-align: center;
        }
      }
    }
  }
  .form-type-select {
    width: 100%;
    clear: both;
    float: left;
    padding-bottom: 15px;
    label , .form-control {
      width: 50%;
      float: left;
      display: inline-block;
    }
  }

  .quiz-question-multichoice {
    .table-bordered , tr, td {
      border: none;
      background: transparent;
      padding: 0;
      &:nth-of-type(odd) {
        background: transparent;
      }
      cursor: pointer;
    }
    tbody {
      border: none;
    }
    .table-responsive {
      border: none;
    }
    .multichoice-row {
      font-size: 20px;
      line-height: 28px;
      p {
        margin: 0;
      }
      .form-item {
        margin-left: 10px;
      }
    }
    input[type=checkbox]{
      position: absolute;
      outline: none;
      margin-left: -26px;
      &:before {
        position: absolute;
        content: '';
        width: 24px;
        height: 24px;
        border: 2px solid #9B9B9B;
        background: #fff;
        border-radius: 2px;
        top: -2px;
        left: -2px;
        cursor: pointer;
      }
      &:checked {
        &:before {
          border: solid 3px $bw-blue;
          text-align: center;
          content: "\f00c";
          font-family: "FontAwesome";
          color: $bw-blue;
          font-size: 18px;
        }
      }
    }
  }
  .form-actions {
    text-align: center;
    width: 780px;
    max-width: 100%;
    margin: 40px auto 10px auto;
    #edit-navigation-back {
      @include half-rounded-btn(#8C8C8C, 30px, 0);
    }
    #edit-navigation-skip {
      @include half-rounded-btn(#bfbfbf, 0, 0);
    }
    #edit-navigation-submit {
      @include half-rounded-btn($bw-blue, 0, 30px);
    }
    .form-submit {
      margin-right: 5px;
      width: calc((100% - 10px)/3);
      font-size: 18px;
      padding: 10px;
      text-transform: none;
      &:last-of-type {
        margin-right: 0;
      }
    }
  }
}

#quiz-progress {
 text-align: center;
  text-transform: uppercase;
  font-weight: bold;
  font-style: normal;
  font-size: 16px;
}

.stop-quiz {
  font-weight: bold;
  font-size: 16px;
}

.quiz-take-title {
  font-size: 24px;
  font-weight: bold;
}
#bigw-quiz-take-form {
  margin-bottom: 20px;
  .form-submit {
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.33;
    width: 216px;
  }
}
.education-content {
  margin-bottom: 20px;
  background: $bw-pink;
  border-color: $bw-pink;
  &:hover, &:focus, &:active {
    background: darken($bw-pink, 10);
    border-color: darken($bw-pink, 10);
  }
}

.categories-form {
  .category-item {
    height: 320px;
  }
  h3 {
    font-weight: bold;
    text-align: center;
  }
  p {
    text-align: center;
  }
}
.account-save {
  text-align: center;
  margin-top: 30px;
  .btn {
    width: 300px;
    max-width: 100%;
    font-size: 16px;
  }
}

.manager-dashboard {
  border: solid 1px #dddddd;
  background: #f6f6f5;
  border-radius: 20px;
  margin-bottom: 30px;
  li {
    a {
      font-weight: bold;
      border-radius: 20px;
    }
  }
}

.item-list ul.pagination>li> {
  a, span {
    border-radius: 20px;
  }
  a { color: $bw-blue;
    font-weight: bold;}
}
.pagination>.active>span {
  border-radius: 20px;
  &, &:hover {
    background: $bw-blue;
    border-color: $bw-blue;
  }
}

.view .form-submit {
  margin-top: 5px;
}

#winner-info {
  font-size: 20px;
  text-align: center;
  .reward-link {
    background-color: #FF9B00;
    width: 250px;
    margin: 0 auto 30px;
    min-height: 40px;
    border-radius: 0 0 10px 10px;
    position: relative;
    border-top: 2px dashed rgba(255, 255, 255, 0.4);
    transform-origin: top left;
    transition: transform 0.2s linear;
    padding: 10px 20px;
    &:before, &:after {
      width: 20px;
      height: 20px;
      background: #fff;
      content: '';
      position: absolute;
      border-radius: 50%;
    }
    &:before {
      top: -10px;
      left: -10px;
    }
    &:after {
      top: -10px;
      right: -10px;
    }
    &:hover {
      transform: rotate(5deg)
    }
    a {
      color: #fff;
      display: block;
      font-weight: bold;
      text-transform: uppercase;
      position: relative;
      margin: 0 20px;
      &:before, &:after {
        width: 20px;
        font-size: 24px;
        content: '\f06b';
        font-family: "FontAwesome";
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
      }
      &:before {
        left: -20px;
      }
      &:after {
        right: -20px;
      }
    }
  }

  .modal-dialog {
    width: 780px;
    max-width: 100%;
  }
  .winner-message {
    margin-bottom: 15px;
  }
}

.reward {
  //background-color: #FF9B00;
  background: #FF9B00 url("../../assets/images/brain-bg.png") no-repeat center;
  color: #fff;
  width: 250px;
  margin: 25px auto 0;
  border-radius: 10px 10px 0 0;
  padding: 20px 20px 40px;
  font-weight: bold;
  position: relative;
  &:before, &:after {
    width: 20px;
    height: 20px;
    background: #fff;
    content: '';
    position: absolute;
    border-radius: 50%;
  }
  &:before {
    bottom: -10px;
    left: -10px;
  }
  &:after {
    bottom: -10px;
    right: -10px;
  }
}


#sliding-popup {
  font-family: $nunito;
  .popup-content #popup-buttons button {
    color: #fff;
    background-color: $bw-blue;
    border-color: $bw-blue;
    font-weight: 800;
    border-radius: 20px;
    background-image: none;
    text-shadow: none;
    box-shadow: none;
    font-family: $nunito;
    font-size: 16px;
    text-transform: none;
    &:hover {
      background: darken($bw-blue, 10);
      border-color: darken($bw-blue, 10);
    }
  }
}

.project-desc {
  font-size: 12px;
  padding-bottom: 30px;
}

.modal-lg {
  margin: 30px auto;
  .modal-footer {
    text-align: center;
  }
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;}
}

.dashboard-tile {
    list-style: none;
    display: inline-block;
    margin-right: 15px;
    a {
      color: #fff;
    }
}


div.quiz-report-score-container {
  display: none;
}

.view-quiz-question-bank {
  .views-reset-button {
    display: none;
  }
}

.alert-initial-quiz {
  background: #00c7ff;
  color: #fff;
  font-size: 26px;
  text-align: center;
  a {
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
  }
}


// ------------ MEDIA QUERIES --------------
@media (max-width: 480px) {
  .choose-category {
    right: 0;
    left: 0;
  }
  .form-modal {
    margin: 15px;
  }
  div#ui-datepicker-div {
    top: 50px !important;
    width: calc(100% - 30px);
    left: 15px !important;
  }
  .answering-form .form-actions .form-submit {
    width: 100%;
    border-radius: 30px !important;
    margin-bottom: 5px;
  }
}

@media (max-width: 767px) {
  .i-want {
    padding: 0;
    text-align: center;
    h2 {
      font-size: 24px;
      text-align: center;
      margin-bottom: 18px;
    }
    .btn-lg {
      font-size: 16px;
      width: 250px;
      margin: 0 auto;
      display: block;
    }
  }
  #want-resolve-btn {
    border-top-right-radius: 30px;
    border-bottom-left-radius: 0;
    margin-bottom: 5px;
  }
  #create-account-btn {
    border-top-right-radius: 0;
    border-bottom-left-radius: 30px;
  }
  h2 {
    font-size: 20px;
  }
  #how-more {
    text-align: center;
    display: block;
    font-size: 14px;
  }
  .front .container.no-padding { padding: 0 15px;}
  .how {
    h2 {
      border-radius: 0 0 30% 30%/ 0 0 15px 15px;
      padding-bottom: 10px;
    }
  }
  .block-slider {
    .view-content {
      border-radius: 30% 30% 0 0/ 15px 15px 0 0;
    }
  }

  .project-sponsors {
    img {
      height: auto;
    }
  }
  .logged-in {
    .user-basic-menu {
      right: 45px;
    }
    .dropdown-toggle {
      right: 50px;
    }
  }
  .form-modal {
    .modal-body {
      padding: 10px 10px 0 10px;
    }
  }
  .contest-item {
    margin: 0 auto 20px auto;
    width: 460px;
    max-width: 100%;
  }
  .category-item-wrapper {
    width: 460px;
    max-width: 100%;
    margin: 0 auto;
    float: none;
  }
  .category-item {
    text-align: center;
    img {
      height: 150px;
    }
  }
  .quiz-page-details {
    padding-top: 20px;
  }
  .answering-form {
    padding-top: 15px;
    .form-wrapper:not(.form-actions) {
      padding: 20px 15px;
    }
    .form-actions .form-submit {
      display: inline-block;
      font-size: 16px;
      padding: 5px;
    }
  }
  .manager-dashboard {
    display: none;
  }
  .form-managed-file .form-submit {
    margin-top: 20px;
  }
  .categories-form {
    .category-item {
      img { height: 130px;}
    }
    .category-title {
      margin: 0;
    }
  }
}
@media (min-width: 768px) {
  .navbar-collapse {
    float: right;
    padding-right: 0;
  }
  #main-menu, .user-menu {
    float: left;
  }
  .logged-in {
    .user-basic-menu {
      right: calc((100vw - 660px)/2);
    }
    .dropdown-toggle {
      right: calc((100vw - 652px)/2);
    }
  }
  .bigw-contest {
    .init {
      padding-top: 40px;
    }
  }
  .page-my-results {
    h2 { margin-top: 50px;}
  }
}

@media (max-width: 991px) {
  .navbar-default {
    padding: 0;
    margin: 0;
  }
  .header {
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);
    background-color: #FBFBFB;
    >.container { padding: 0 10px;}
    position: fixed;
    z-index: 666;
    width: 100%;
  }
  .navbar-brand {
    height: 30px;
    #logo {
      max-width: none;
    }
  }

  .navbar-collapse {
    text-align: center;
    padding-top: 0;
    background: #fbfbfb;
    width: 100%;
  }
  #main-menu {
    margin: 0;
    clear: both;
    width: 100%;
    li {
      a {
        line-height: 16px;
      }
    }
  }
  .user-menu {
    width: 100%;
    .dropdown { width: 100%;}
    .dropdown-menu {
      display: block;
      position: static;
      border: none;
      box-shadow: none;
      text-align: center;
      background: #fbfbfb;
      width: 100%;
      .divider {
        display: none;
      }
    }
  }

  .logged-in {
    .navbar-brand {
      width: 35px;
      overflow: hidden;
    }
    .navbar-collapse, .navbar-collapse.collapsing {
        display: block;
        overflow: hidden;
        height: 0;

      .dropdown-toggle {
        position: fixed;
        top: 8px;
        height: 31px;
        width: 31px;
      }

      .user-menu {
        border: none;
        background: transparent;
        padding: 0;
        .user-basic-menu {
          top: 4px;
          max-width: calc(100% - 90px);
          width: auto;
          background: #fff;
          height: 40px;
          border: solid 3px #e8e8e8;
          border-radius: 85px;
          padding: 4px 35px 0 10px;
          position: fixed;
        }
        .user-name {
          font-size: 14px;
          text-transform: none;
        }
      }
    }
  }
  .not-logged-in {
    .user-menu ul li {
      display: block;
    }
  }

  #winner-info {
    margin: 15px;
    .modal-dialog {
      margin: 0 auto;
    }
    .modal-body {
      padding: 10px;
    }
  }

}

@media (min-width: 992px) {
  .col-5 {
    width: 20%;
    display: inline-block;
  }
  .header-text {
    position: absolute;
    top: 200px;
  }
  .header-image {
    position: relative;
    top: -100px;
    z-index: -1;
    max-width: 100%;
  }
  .not-front {
    #main-wrapper {
      background: #fff;
    }
    #header {
      border-radius: 0 0 50% 50%/ 0 0 40px 40px;
      padding-bottom: 10px;
      background: #f3f3f3;
    }
    #footer {
      border-radius: 50% 50% 0 0/ 50px 50px 0 0;
      background: #f3f3f3;
      padding: 30px 0;
      margin-top: 70px;
    }
  }
  .user-menu {
    float: right;
    .dropdown-menu {
      left: auto;
      right: 0;
    }
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .navbar-brand {
    height: 40px;
    margin-top: 20px;
  }
}
#register-modal .user-info-from-cookie .help-block {display:none}