@font-face {
    font-family: 'MontserratRegular';
    src: url(Montserrat-Regular.ttf);
}
@font-face {
    font-family: 'MontserratBlack';
    src: url(https://haagssportgala-stem.nl/css/Montserrat-Black.otf);
}
@font-face {
    font-family: 'MontserratBold';
    src: url(Montserrat-Bold.otf);
}

.hgs_yellow {
  color: #f1ce6b;
}

body {
  background-color: black;
  color: white;
  font-family: 'MontserratRegular';
}

h1, h2, h3 {
  font-family: 'MontserratBold';
  text-transform: uppercase;
}
h1, h2, h3, h4, h5, h6 {

  color: #f1ce6b;

}

h4, h5, h6 {

  color: #f1ce6b;
  font-family: 'MontserratRegular';
}

h1 {

  font-size: 40px;
  line-height: 45px;
}

h2 {
  font-size:23px;
}

h3, h4 {
  font-size:19px;
}

strong {
    font-family: 'MontserratBold';
}

section {

  padding: 36px;
  box-sizing: border-box;
  border-bottom: 1px #f1ce6b solid;
  background-position: center;
  background-image: url('../images/bg_section.jpg');
  background-size: cover;
  padding-top: 38px;
  box-sizing: border-box;
  position: relative;
}

section::after {
  position: absolute;
  bottom:-37px;
  left: 50%;
  margin-left: -20px;
	width: 0;
	height: 0;
	border-left: 24px solid transparent;
	border-right: 24px solid transparent;
	border-top: 36px solid white;
  content: " ";
  z-index: 100;
}

section:nth-last-child(2)::after {

  border-left: 24px solid transparent;
	border-right: 24px solid transparent;
	border-top: 36px solid black;
  bottom:-36px;
}
section:last-child::after {

 display: none;
}

body > .container {

  padding:0;
}

.container {
  margin-right: auto;
  margin-left: auto;
  max-width: 800px;
  width: 100%;
}

.vote {

  text-align: center;
}

.image-wrapper img {

  margin-bottom: 16px;
}

.image-wrapper .mouseover {

  font-size: 13px;
  line-height: 17px;
  transition: opacity 0.5s;
  position: absolute;
  top:0;
  left:0;
  opacity: 0;
  padding: 24px 10px;
  box-sizing: content-box;
  background-color: rgba(0, 0, 0, .74);
}

.image-wrapper:hover > .mouseover {

  opacity: 1;
  display:inline-block;
}

img.responsive {

  width: 100%;
  height: auto;
}

.button {

    cursor: pointer;
    font-family: 'MontserratBold';
    font-size: 17px;
    text-transform: uppercase;
    width: auto;
    padding: 12px 10px;
    line-height: 15px;
    background-color: transparent;
    background-size: 100% 95%;
    background-position: center center;
    display: inline-block;
    background-image: url(../images/button_border.png);
    position: relative;
}
.disabled,
.button.disabled {

  color: #847a61;
  cursor: default;
}

.button:hover {

  color: #86723B;
}

.button.disabled:hover {
  color: #847a61;
}
.button.voted,
.button.voted:hover {

  color:#f1ce6b;
  cursor: default;
}

.vote .button {
  min-width: 222px;
}

.checkbox {

  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border:1px solid #86723B;
  background-color: transparent;
  cursor: pointer;
  display: inline-block;
}

.checkbox.voted::after,
.button.voted::after {

  position: absolute;
  top: -15px;
  right: -15px;
  width: 34px;
  height: 34px;
  background-image: url(https://haagssportgala-stem.nl/images/check.png);
  background-repeat: no-repeat;
  background-position: center;
  content: " ";
}

.checkbox.voted::after{

  top: -2px;
  right: -1px;
}

.ui-dialog {

  background-image: url(https://haagssportgala-stem.nl/images/bg.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.ui-dialog .ui-dialog-content,
.ui-dialog-content,
.ui-widget.ui-widget-content {

  border: none;
  background-color: transparent;
  overflow: hidden;
}

.ui-dialog-titlebar {

  display: none;
}

.ui-widget-overlay {
  background-color: white;
  opacity: .77;
}

.form {

  display: inline-block;
  vertical-align: middle;
  text-align: center;
  max-width: 646px;
  max-height: 326px;
  width: 100%;
}

.form .wrapper:nth-child(1) {

  margin-top: 80px;
}

.form .wrapper:nth-child(2) {

  margin-top: 15px;
}

.form .wrapper:nth-child(3) {

  margin-top: 50px;
}

.form .input {

  width: 60%;
  font-family: 'MontserratRegular';
  font-size: 17px;
  background-color: white;
  color: black;
  height: 2em;
  line-height: 2em;
  display: inline-block;
  margin: auto;
}

#header {

  padding:0;
}

#header::after {

  display: none;
}

#intro {

  text-align: center;
}

#confirmation {
  text-align: center;
  min-height: 178px;
  background-color:#f1ce6b;
  background-image: none;
}

#confirmation .button {

  margin-top: 65px;
  background-color:#f1ce6b;
  background-image: none;
  color: black;
  width: 120px;
}
#confirmation .button:hover {

  color: white;
}

.ui-widget-content {

  box-shadow: -2px 6px 7px 5px rgba(0,0,0,0.5);
  padding: 0;
  margin: 0;
}


#thanks,
#option,
#message {

  display: none;
}

#message,
#option,
#thanks {

  vertical-align: middle;
  text-align: center;
}

#option p,
#message h1,
#option h2,
#thanks h1 {

  width: 64%;
  margin-left: auto;
  margin-right: auto;
}
#message h1 {

  width: 86%;
}

#option p,
#message h2,
#option h2,
#thanks h2 {

  color:white;
}
a {
  outline:none;
}

.ui-widget-content a {

  color: #f1ce6b;
}

.dialog .tag {

    text-decoration: underline;
    cursor: pointer;
    display: inline-block;
}

.dialog .tag.disabled {

    text-decoration: underline;
    cursor: default;
}
.dialog .wrapper p {

  color: white;
}
.dialog .wrapper p,
.dialog .wrapper h2{

    text-align: center;
}

#close {

  position: absolute;
  top: 15px;
  right: 22px;
  width: 15px;
  height: 15px;

}
#close .tag {
  text-decoration: none;
  border: 2px solid #f1ce6b;
  padding:1px 5px;
  font-weight: bold;
}
#message .wrapper:nth-child(1) ,
#thanks .wrapper:nth-child(1) {

  margin-top: 40px;
}

#message .wrapper:nth-child(2) ,
#thanks .wrapper:nth-child(2) {

  margin-top: 50px;
}

#thanks .wrapper:nth-child(3) {

  margin-top: 30px;
}

#option .wrapper:nth-child(1) {
  margin-top: 16px;
}
#option .wrapper:nth-child(2) {
  margin-top: 30px;
}
#option .wrapper:nth-child(3) {
  margin-top: 30px;
}
#option .wrapper:nth-child(4) {
  margin-top: 30px;
}
#option .wrapper:nth-child(1) p{

  width: 80%;
}

#option .wrapper:nth-child(2) h2 {

  width: 54%;
}
#option .wrapper:nth-child(3) h2{

  width: 72%;
}

#option .wrapper:nth-child(4) h2  {

  width: 33%;
  font-size: 18px;
  display: inline-block;
  text-transform:none;
  font-family: 'MontserratRegular';
}

#message .wrapper:last-of-type ,
#form .wrapper:last-of-type ,
#option .wrapper:last-of-type ,
#thanks .wrapper:last-of-type {
  margin-bottom:15px;
}

#option,
#thanks ,
.dialog {

  display: none;
}


@media all and (min-width:767px) {
  
  #sportvrouw .vote:nth-child(1) h3,
  #sportvrouw .vote:nth-child(2) h3 {
    height: 42px;
  }  
  #sportvrouw .vote:nth-child(3) h3 {
    height: 42px;
  }

  #sportploeg .vote h3 {
    min-height: 42px;
  }
}

@media all and (max-width:767px) {

  .vote {
    margin-bottom:16px;
  }

  .form .input {
      width: 80%;
  }

  .row > .col-sm-12 > h2 {

    text-align: center;
  }


  #thanks h1 {

    font-size: 36px;
    line-height: 40px;
  }

  #thanks .wrapper:nth-child(1) {

    margin-top: 20px;
  }

  #message .wrapper:nth-child(2) ,
  #thanks .wrapper:nth-child(2) {

    margin-top: 25px;
  }

  #thanks .wrapper:nth-child(3) {

    margin-top: 25px;
  }

  #option .wrapper:nth-child(1) {
    margin-top: 16px;
  }
  #option .wrapper:nth-child(2) {
    margin-top: 15px;
  }
  #option .wrapper:nth-child(3) {
    margin-top: 25px;
  }
  #option .wrapper:nth-child(4) {
    margin-top: 25px;
  }
  #option .wrapper:nth-child(1) p{

    width: 80%;
  }

  #option .wrapper:nth-child(2) h2 {

    width: 74%;
  }
  #option .wrapper:nth-child(3) h2{

    width: 72%;
  }

  #option .wrapper:nth-child(4) h2  {

    width: 63%;
  }

  section {
    padding-bottom: 0px;
  }

}