* {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}
html {
  background-image: url("../img/background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  margin: 0;
  background-position: 30% 10%;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 991px) {
  html {
    background-position: 30% 50%;
  }
}
@media (max-width: 767px) {
  html {
    background-position: 31% 50%;
  }
}
@media (max-width: 459px) {
  html {
    background-position: 27% 65%;
    background-size: 1400px auto;
  }
}
body {
  font-family: "myriad-pro", sans-serif;
  margin: 0;
  color: white;
  line-height: 1.1em;
}
.body-wrapper {
  background-repeat: no-repeat;
  background-size: cover;
  margin: 0;
  background-position: 50% 50%;
  padding-top: 8px;
  padding-bottom: 30px;
}
p {
  margin: 0;
}
@media (max-width: 991px) {
  .body-wrapper {
    background-image: none;
  }
}
img {
  margin: 0 auto;
  display: block;
  max-width: 267px;
  height: auto;
}
@media (max-width: 992px) and (min-width: 600px) {
  img {
    max-width: 150px;
  }
}
@media (max-width: 599px) {
  img {
    max-width: 100px !important;
  }
}
.yellow {
  color: #f8ef27;
}
.about .yellow {
  font-weight: 600;
}
h1 {
  font-size: 60px;
  margin: 35px 0 0;
  text-align: center;
  line-height: 1.1em;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding-left: 24%;
  padding-right: 24%;
}
/*@media (min-width: 1110px) and (max-width: 1162px) {
  h1 {
    padding: 0 23%;
  }
}*/
@media (min-width: 992px) and (max-width: 1199px) {
  h1 {
    padding: 0;
    font-size: 38px;
    margin-top: 20px;
    margin-bottom: -10px;
    letter-spacing: 0;
  }
  .about, .thank-you {
    margin-top: 20px !important;
  }
}
@media (min-width: 600px) and (max-width: 991px) {
  h1 {
    font-size: 29px;
    padding: 0;
    margin-top: 15px;
    letter-spacing: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: -3px;
    line-height: 34px;
  }
  .line-wrap {
    /*display: block;*/
  }
}
@media (max-width: 599px) {
  h1 {
    font-size: 24px;
    padding-left: 0px;
    padding-right: 0px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1), 0 3px 3px rgba(0,0,0,0.1);
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    max-width: 320px;
    line-height: 24px;
    letter-spacing: 0;
  }
  .line-wrap {
    display: block;
  }
  .about, .thank-you {
    margin-top: 10px !important;
  }
}
@media (min-width: 1039px) and (max-width: 1163px) {
  h1 {
    /*padding: 0 21%;*/
  }
}
h2 {
  font-size: 2em;
  margin: 0.57em;
  text-align: center;
  line-height: 1.1em;
}
@media (max-width: 992px) and (min-width: 600px) {
  h2 {
    font-size: 1.5em;
  }
}
@media (max-width: 599px) {
  h2 {
    font-size: 1.2em;
  }
}
.header,
.thank-you {
  width: 100%;
  position: relative;
  display: block;
  padding-bottom: 0.57em;
}
.header:after,
.thank-you:after {
  content: '';
  display: block;
  height: 2px;
  width: 165px;
  background-color: #f8ef27;
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  margin: auto;
}
@media (max-width: 992px) and (min-width: 600px) {
  .header:after,
  .thank-you:after {
    width: 135px;
    bottom: -3px;
    /*margin-left: -16.5%;*/
  }
}
@media (max-width: 599px) {
  .header:after,
  .thank-you:after {
    width: 100px;
    /*margin-left: -25%;*/
    bottom: -1px;
  }
}
.content-wrapper {
  margin: 0 auto;
}
@media (min-width: 1200px) {
  .content-wrapper {
    max-width: 1200px;
    width: 100%;
  }
}
@media (max-width: 1199px) {
  .content-wrapper {
    max-width: auto;
  }
}
.form-tag {
  font-size: 20px;
  line-height: 35px;
  text-align: center;
  padding: 0 15px;
}
@media (max-width: 992px) and (min-width: 600px) {
  .form-tag {
    font-size: 18px;
    line-height: 24px;
  }
}
@media (max-width: 599px) {
  .form-tag {
    font-size: 14px;
    line-height: 18px;
  }
}
button,
input,
optgroup,
select,
textarea,
.select {
  display: block;
  margin: 24px auto 0;
  width: 667px;
  height: 54px;
  font-size: 18px;
  color: #acacac;
  text-align: center;
  border: none;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
  -webkit-appearance: none;
  
  line-height: 48px;
  padding-top: 4px;
}
@-moz-document url-prefix() {
  input {
    padding-top: 3px;
  }
}
@media (max-width: 1199px) {
  button,
  input,
  optgroup,
  select,
  textarea,
  .select {
    /*height: 34px;*/
    height: auto;
    line-height: 30px;
    padding-bottom: 3px;
  }
  .select {
    height: 34px !important;
    line-height: 37px !important;
    border: none;
    vertical-align: baseline;
    text-align: center;
    padding-top: 1px !important;
  }
}
@media (max-width: 992px) and (min-width: 600px) {
  button,
  input,
  optgroup,
  select,
  textarea,
  .select {
    width: 80%;
  }
}
@media (max-width: 599px) {
  button,
  input,
  optgroup,
  select,
  textarea,
  .select {
    width: 90%;
    margin: 10px 5%;
  }
  .about {
    max-width: 660px;
    width: 90%;
  }
}
input,
optgroup,
select,
textarea,
.select {
  -webkit-box-shadow: inset 5px 6px 12px -5px rgba(0, 0, 0, 0.55), 0 0 0 1px #989594;
  -moz-box-shadow: inset 5px 6px 12px -5px rgba(0, 0, 0, 0.55), 0 0 0 1px #989594;
  box-shadow: inset 5px 6px 12px -5px rgba(0, 0, 0, 0.55), 0 0 0 1px #989594;
  color: #000;
  /*border: 1px solid #989594;*/
  border: 0;
  -webkit-transition: box-shadow .2s ease-out, border .2s ease-out;
  -moz-transition: box-shadow .2s ease-out, border .2s ease-out;
  transition: box-shadow .2s ease-out, border .2s ease-out;
}
input:focus,
optgroup:focus,
select:focus,
textarea:focus,
.select:focus {
  outline: none;
  -webkit-box-shadow: inset 3px 3px 3px transparent, 0 0 0 4px #000;
  -moz-box-shadow: inset 3px 3px 3px transparent, 0 0 0 4px #000;
  box-shadow: inset 3px 3px 3px transparent, 0 0 0 4px #000;
  border-color: #000;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  box-shadow: none;
}
select {
  width: auto;
  box-shadow: none;
  height: auto;
  margin: 10px auto;
  outline: none;
}
.select {
  background-color: white;
  padding: 0;
  overflow: hidden;
  display: table;

  /*height: auto;*/
  line-height: 53px;
}
.select .mc-field-group {
  display: table-cell;
  vertical-align: middle;
}
.button {
  background-color: #f8ef27;
  color: black;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 16px;
  width: 190px;
  /*height: 45px;*/
  line-height: 46px;
  text-decoration: none;
  border: 2px solid transparent;
  -webkit-transition: box-shadow 0.5s ease-out, background-color 0.3s ease-out, color 0.2s ease-out;
  -moz-transition: box-shadow 0.5s ease-out, background-color 0.3s ease-out, color 0.2s ease-out;
  -ms-transition: box-shadow 0.5s ease-out, background-color 0.3s ease-out, color 0.2s ease-out;
  -o-transition: box-shadow 0.5s ease-out, background-color 0.3s ease-out, color 0.2s ease-out;
  transition: box-shadow 0.5s ease-out, background-color 0.3s ease-out, color 0.2s ease-out;
  border: 0;
  -webkit-box-shadow: 0 0 0 0 #f8ef27;
  -moz-box-shadow: 0 0 0 0 #f8ef27;
  box-shadow: 0 0 0 0 #f8ef27;
  
  padding-top: 2px;
  padding-bottom: 0;
  height: auto;
  /*  &:hover, &:focus {
    background-color: black;
    border-color: @gosend-yellow;
    color: @gosend-yellow;
    border-width: 5px;
  }*/
}
@-moz-document url-prefix() {
  .button {
    line-height: 48px;
    padding-top: 1px;
  }
}

@media (max-width: 992px) {
  .button {
    margin: 24px auto 0;
  }
}
.button:hover,
.button:focus {
  background-color: #000;
  color: #FFF;
  -webkit-box-shadow: 0 0 0 6px #f8ef27;
  -moz-box-shadow: 0 0 0 6px #f8ef27;
  box-shadow: 0 0 0 6px #f8ef27;
}
form {
  margin-bottom: 5px;
}
#countdown {
  text-transform: uppercase;
  text-align: center;
}
#countdown .days,
#countdown .hours,
#countdown .minutes,
#countdown .seconds {
  font-size: 58px;
  margin: 0;
  line-height: 1.1em;
  letter-spacing: -1px;
  font-weight: 600;
}
@media (max-height: 820px) and (min-width: 1200px) {
  #countdown .days,
  #countdown .hours,
  #countdown .minutes,
  #countdown .seconds {
    font-size: 34px;
  }
}
@media (max-width: 599px) {
  #countdown .days,
  #countdown .hours,
  #countdown .minutes,
  #countdown .seconds {
    font-size: 38px;
  }
}
#countdown p {
  line-height: 1.1em;
  margin-top: 0;
  font-size: 13px;
}
@media (max-width: 599px) {
  #countdown p {
    font-size: 10px;
  }
}
.counter-group {
  display: inline-block;
  padding: 0 20px;
}
@media (max-width: 599px) {
  .counter-group {
    padding: 0 5px;
  }
}
/* Dropdown control */
.selectBox-dropdown {
  min-width: 150px;
  position: relative;
  border: solid 1px #BBB;
  /*line-height: 1;*/
  line-height: 21px;
  text-decoration: none;
  text-align: left;
  color: #000;
  outline: none;
  vertical-align: middle;
  background: #F2F2F2;
  background: -moz-linear-gradient(top, #f8f8f8 1%, #e1e1e1 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(1%, #f8f8f8), color-stop(100%, #e1e1e1));
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#F8F8F8', endColorstr='#E1E1E1', GradientType=0);
  -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  display: inline-block;
  cursor: default;
/*  vertical-align: baseline;
  vertical-align: -webkit-baseline-middle;*/
}
.selectBox-dropdown:focus,
.selectBox-dropdown:focus .selectBox-arrow {
  border-color: #666;
}
.selectBox-dropdown.selectBox-menuShowing-bottom {
  -moz-border-radius-bottomleft: 0;
  -moz-border-radius-bottomright: 0;
  -webkit-border-bottom-left-radius: 0;
  -webkit-border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.selectBox-dropdown.selectBox-menuShowing-top {
  -moz-border-radius-topleft: 0;
  -moz-border-radius-topright: 0;
  -webkit-border-top-left-radius: 0;
  -webkit-border-top-right-radius: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.selectBox-dropdown .selectBox-label,
.selectBox-dropdown .selectBox-arrow {
  padding: 0;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  height: auto;
}
.selectBox-dropdown .selectBox-arrow {
  display: none;
}
/*.selectBox-dropdown .selectBox-arrow {
  width: 23px;
  background: url('../img/arrow.gif') 50% center no-repeat;
  border-left: solid 1px #BBB;
  display: inline-block;
  min-height: 20px;
}*/
/* Dropdown menu */
.selectBox-dropdown-menu {
  position: absolute;
  z-index: 99999;
  max-height: 200px;
  min-height: 1em;
  border: solid 1px #BBB;
  /* should be the same border width as .selectBox-dropdown */
  background: #FFF;
  -moz-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
/* Inline control */
.selectBox-inline {
  min-width: 150px;
  outline: none;
  border: solid 1px #BBB;
  background: #FFF;
  display: inline-block;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  overflow: auto;
}
.selectBox-inline:focus {
  border-color: #666;
}
/* Options */
.selectBox-options,
.selectBox-options LI,
.selectBox-options LI A {
  list-style: none;
  display: block;
  cursor: default;
  padding: 0;
  margin: 0;
}
.selectBox-options.selectBox-options-top {
  border-bottom: none;
  margin-top: 1px;
  -moz-border-radius-topleft: 5px;
  -moz-border-radius-topright: 5px;
  -webkit-border-top-left-radius: 5px;
  -webkit-border-top-right-radius: 5px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}
.selectBox-options.selectBox-options-bottom {
  border-top: none;
  -moz-border-radius-bottomleft: 5px;
  -moz-border-radius-bottomright: 5px;
  -webkit-border-bottom-left-radius: 5px;
  -webkit-border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}
.selectBox-options LI A {
  line-height: 1.5;
  padding: 0 .5em;
  white-space: nowrap;
  overflow: hidden;
  background: 6px center no-repeat;
}
.selectBox-options LI.selectBox-hover A {
  background-color: #EEE;
}
.selectBox-options LI.selectBox-disabled A {
  color: #888;
  background-color: transparent;
}
.selectBox-options LI.selectBox-selected A {
  background-color: #C8DEF4;
}
.selectBox-options .selectBox-optgroup {
  color: #666;
  background: #EEE;
  font-weight: bold;
  line-height: 1.5;
  padding: 0 .3em;
  white-space: nowrap;
}
/* Disabled state */
.selectBox.selectBox-disabled {
  color: #888 !important;
}
.selectBox-dropdown.selectBox-disabled .selectBox-arrow {
  opacity: .5;
  filter: alpha(opacity=50);
  border-color: #666;
}
.selectBox-inline.selectBox-disabled {
  color: #888 !important;
}
.selectBox-inline.selectBox-disabled .selectBox-options A {
  background-color: transparent !important;
}
.selectBox-dropdown .selectBox-label {
  color: #000;
  background: url('../img/arrow.gif') 100% 5px no-repeat;
  padding-right: 15px;
  /*vertical-align: middle;*/
  padding-top: 0px;
}
@media (min-width: 1200px) {
  @-moz-document url-prefix() {
    .selectBox-dropdown .selectBox-label {
      padding-top: 0px;
    }
  }
}
@media (max-width: 1199px) {
  @-moz-document url-prefix() {
    .selectBox-dropdown .selectBox-label {
      position: relative;
      top: -2px;
      padding-top: 1px;
      background-position: 100% 7px;
    }
  }
}
.selectBox-dropdown .selectBox-label.active-select {
  color: #acacac;
}
@media (max-width: 992px) {
  .selectBox-dropdown .selectBox-label {
    max-width: 100%;
    width: 100%!important;
  }
}
.selectBox-dropdown {
  background: none;
  border: none;
  text-align: center;
  width: 100%!important;
}
.selectBox-dropdown .selectBox-arrow {
  border-left: none;
}
.selectBox-options li.selectBox-selected a {
  /*background-color: #333;*/
  background-color: #F8EF27;
  color: #000;
}
.selectBox-options li a {
  /*color: #acacac;*/
  color: #333;
}
.selectBox-options {
  text-align: center;
}
.invalid {
  outline: medium solid red;
  transition: all 0.2s ease;
}
.about,
.thank-you {
  text-align: center;
  padding: 5px 20px;
  margin: 20px 0;
  /*background-color: rgba(0, 0, 0, 0.4);*/
}
@media (max-width: 991px) {
  .about,
  .thank-you {
    background-color: rgba(0, 0, 0, 0.2);
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 10px !important;
  }
}
.about {
  max-width: 667px;
  line-height: 1.3em;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2px;
}
.about p {
  font-size: 16px;
  font-weight: 400;
  /*line-height: 35px;*/
}
.about p:last-of-type,
.thank-you p:last-of-type {
  margin: 0;
}
.thank-you p strong {
  font-weight: 700;
  margin-bottom: 6px;
  display: inline-block;
  color: #F8EF27;
  text-shadow: 0 1px 1px rgba(0,0,0,0.25);
}
@media (max-width: 991px) {
  .about p br {
    display: none;
  }
  .about p,
  .thank-you p {
    font-size: 14px;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.2);
    margin-bottom: 10px;
  }
}
@media (min-width: 992px) {
  .about p {
    line-height: 30px;
    font-weight: 400;
    letter-spacing: -0.5px;
    font-size: 19px;
    margin-bottom: 10px !important;
    text-shadow: 0 0 1px rgba(255,255,255,0.85), 0 1px 3px rgba(0,0,0,0.2);
  }
  .thank-you p {
    text-shadow: 0 0 1px rgba(255,255,255,0.85), 0 1px 3px rgba(0,0,0,0.2);
  }
}
@media (max-width: 459px) {
  .about,
  .thank-you {
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 10px;
  }
  .about p {
    font-size: 13px;
  }
}

footer {
  text-align: center;
  font-size: 11px;
  padding: 13px 20px 0;
}
@media (max-width: 767px) {
  footer {
    padding-top: 13px;
  }
}
@media (max-width: 599px) {
  footer {
    padding-top: 13px;
  }
}
#countdown {
  padding-top: 15px;
}
@media (max-width: 599px) {
  #countdown {
    padding-top: 15px;
  }
}
.thank-you {
  padding-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  border-bottom: 2px solid #F8EF27;
}
@media (max-width: 991px) {
  .thank-you {
    padding-bottom: 20px;
    width: 90%;
  }
}
@media (max-width: 599px) {
  .thank-you {
    padding-bottom: 20px;
    width: 90%;
  }
}
.hide {
  display: none;
}
.thank-you:after {
  bottom: -25px;
  display: none !important;
}
.selectBox-dropdown .selectBox-label {
  width: auto!important;
}
/*** Notebooks CSS ***/
@media (max-width: 1200px) {
  img {
    max-width: 150px;
  }
}
@media (max-height: 920px) and (min-width: 1200px) {
  h1 {
    font-size: 50px;
    margin-bottom: -12px;
    letter-spacing: 0;
    line-height: 50px;
  }
  .line-wrap {
    display: block;
  }
  img {
    max-width: 150px;
  }
  #countdown {
    padding-top: 0;
    padding-bottom: 10px;
  }
  form {
    margin-bottom: 15px;
  }
  .counter-group p {
    margin: 0;
  }
  .button {
    /*height: 45px;*/
    height: auto;
    line-height: 40px;
    padding: 0;
  }
  button,
  input,
  optgroup,
  select,
  textarea,
  .select {
    /*height: 34px;*/
    height: auto;
    line-height: 32px;
    border: none;
    vertical-align: baseline;
    text-align: center;
    padding-top: 3px;
  }
  .select {
    height: 34px;
    padding-bottom: 2px;
  }
  @-moz-document url-prefix() {
    input, .select {
      padding-top: 0;
    }
  }
  .selectBox-dropdown .selectBox-label {
    padding-top: 0;
    background-position: 100% 5px;
  }
  @-moz-document url-prefix() {
    .selectBox-dropdown .selectBox-label {
      position: relative;
      top: -2px;
      background-position: 100% 6px;
    }
  }
  
  .about p {
    line-height: 25px;
    font-size: 18px;
  }

  .thank-you {
    padding-bottom: 20px;
  }
  .thank-you:after {
    bottom: -20px;
  }
}
@media (max-height: 820px) and (min-width: 1200px) {
  h1 {
    font-size: 50px;
    margin-top: 5px;
    padding: 0 24%;
    padding-left: 0;
    padding-right: 0;
    padding-top: 10px;
    margin-bottom: -6px;
    line-height: 52px;
  }
  .line-wrap {
    display: block;
  }
  .header:after, .thank-you:after {
    bottom: -3px;
  }
  .about {
    padding: 5px 0;
    margin-top: 5px;
  }
  img {
    max-width: 150px;
  }
  button,
  input,
  optgroup,
  select,
  textarea,
  .select {
    height: 34px;
    padding-top: 3px;
  }
  @-moz-document url-prefix() {
    input, .select {
      padding-top: 0;
      height: auto;
    }
  }
  .selectBox-dropdown .selectBox-label {
    padding-top: 0;
  }
  #countdown {
    padding-top: 0;
    padding-bottom: 10px;
  }
  form {
    margin-bottom: 15px;
  }
  .counter-group p {
    margin: 0;
  }
  .button {
    height: 45px;
  }
  @-moz-document url-prefix() {
    .button {
      height: auto;
    }
  }
  .thank-you {
    padding-bottom: 20px;
  }
  .thank-you:after {
    bottom: -15px;
  }

  .about p {
    line-height: 25px;
    font-size: 18px;
  }
}
@media (max-width: 1199px) and (min-width: 992px) {
  .selectBox-dropdown .selectBox-label {
    padding-top: 0;
    background-position: 100% 5px;
  }
  .about p {
    line-height: 25px;
    font-size: 18px;
  }
}
/*** End of Notebooks CSS ***/
.mc-field-group,
.select {
  margin-left: auto;
  margin-right: auto;
}
.mc-field-group:first-of-type input {
  margin-top: 0;
}
@media (max-width: 992px) and (min-width: 600px) {
  button,
  input,
  optgroup,
  select,
  textarea,
  .select {
    width: 80%;
    max-width: 660px;
    padding-top: 3px;
  }
  .about {
    max-width: 660px;
    width: 80%;
  }
}
/*** Browser specific CSS ***/
input::-webkit-input-placeholder {
  color: #acacac;
}
input::-moz-placeholder {
  color: #6d6d6d;
  padding-top: 4px;
}
input:-moz-placeholder {
  color: #6d6d6d;
  padding-top: 4px;
}
input::-ms-input-placeholder {
  color: #acacac;
}
/* IE10+ */
a.selectBox.required.selectBox-dropdown {
  box-shadow: none;
}

/*** HEADER ADDITIONS ***/
#topmenu {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}
#topmenu a {
  background-color: #F8EF27;
  color: black;
  text-decoration: none;
  padding: 0 10px;
  line-height: 30px;
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid #F8EF27;
  -webkit-transition: all .2s ease-out;
  -moz-transition: all .2s ease-out;
  transition: all .2s ease-out;
  /*-webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;*/
}
#topmenu a:hover,
#topmenu a:active {
  background-color: #FFF;
  color: #000;
  border-color: #FFF;
  -webkit-box-shadow: 0 0 0 4px #000;
  -moz-box-shadow: 0 0 0 4px #000;
  box-shadow: 0 0 0 4px #000;
}

#language-switch {
  position: absolute;
  left: 0;
  top: 0;
  padding: 10px;
  background-color: rgba(255,255,255,0.5);
  z-index: 1;
  -webkit-border-radius: 0 0 6px 0;
  -moz-border-radius: 0 0 6px 0;
  border-radius: 0 0 6px 0;
}
#language-switch a {
  opacity: 0.5;
  display: block;
  -webkit-transition: all .2s ease-out;
  -moz-transition: all .2s ease-out;
  transition: all .2s ease-out;
  margin-bottom: 5px;
  position: relative;
}
#language-switch a.active:after {
  display: block;
  content: '';
  background-color: rgba(255, 255, 255, 0.7);
  position: absolute;
  left: -10px;
  right: -10px;
  top: -3px;
  bottom: -3px;
  z-index: -1;
}
#language-switch a:last-child {
  margin-bottom: 0;
}
#language-switch a.active,
#language-switch a:hover {
  opacity: 1;
}
@media all and (max-width: 767px) {
  #languages {
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.2);
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  #topmenu,
  #language-switch {
    position: relative;
  }

  #language-switch {
    float: left;
    background-color: transparent;
    padding: 5px 0 5px 10px;
  }

  #language-switch a {
    display: inline-block;
    margin: 0 5px 0 0;
  }
  #language-switch a.active:after {
    display: none;
  }
  
  #topmenu {
    top: auto;
    right: auto;
    display: table-cell;
    vertical-align: middle;
    height: 100%;
    text-align: right;
  }
  #topmenu a {
    line-height: 33px;
  }
  #topmenu a:hover,
  #topmenu a:active {
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  }
}

@media all and (max-width: 400px) {
  #topmenu {
    width: 33%;
  }
  #topmenu a {
    font-size: 12px;
  }
}