/*! FONTS   Generated by Font Squirrel (https://www.fontsquirrel.com) on July 30, 2018 */

@font-face {
    font-family: 'orkneybold';
    src: url('fonts/orkney-bold-webfont.woff2') format('woff2'),
         url('fonts/orkney-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'orkneyregular';
    src: url('fonts/orkney-regular-webfont.woff2') format('woff2'),
         url('fonts/orkney-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

/*!  Provided styles */


, .peg, .wheelSVG {
 visibility: hidden;
}
.wheelContainer, body, html {
 width: 100%;
 height: 100%;
 margin: 0;
 padding: 0;
}

.centerCircle, .valueContainer, .wheelOutline, .wheelText {
 pointer-events: none;
}
.toast, .wheelContainer, .timerContainer, body, html {
 text-align: center;
}
.wheelContainer, .timerContainer {
 transform: translate(-50%, 0);
}

.toast {
 position: absolute;
 background-color: #80DE13;
}

body {
 background-color: #2d2d2d;
 overflow: hidden;
}
body, html {
 margin: 0;
 padding: 0;
}

.wheelContainer {
 position: absolute;
 max-width: 1000px;
 margin-left: auto;
 margin-right: auto;
 left: 50%;
 top: 100px;
 height: 100%;
 width: 100%;
 position:fixed;
}
.timerContainer {
 position: absolute;
 right: -50px;
 top: 100px; 
}

.wheelSVG {
 position: absolute;
 overflow: visible;
 width: 100%;
 height: auto; 
}
.wheelText {
 text-anchor: middle;
 font-family: 'orkneybold', Arial, sans-serif;
 -webkit-user-select: none;
 user-select: none;
}
.toast {
 border-radius: 12px;
 opacity: 0;
}


/* .toast is the text box displyaed as result of spin */
.toast p {
 clear: both;
 font-family: 'orkneybold', Arial, sand-serif;
 margin: 23px;
 font-size: 30px;
 color: #000000;
 letter-spacing: 0;
 -webkit-touch-callout: none;
 -webkit-user-select: none;
 -khtml-user-select: none;
 -moz-user-select: none;
 -ms-user-select: none;
 user-select: none;
 line-height: 32px;
 -webkit-transition: line-height .2s ease;
 transition: line-height .2s ease;
}
button {
 position:absolute;
 right:50px;
 width: 10%;
 max-width: 400px;
 padding: 10px;
 font-weight: 200;
 font-size: 24px;
 color: #ededed;
 background-color: #4C2C5D;
 border-radius: 3px;
 border: none;
 cursor: pointer;
 font-family: "orkneybold", Helvetica, Arial, sans-serif;
}
.begin {
 bottom: 120px;
}
.reset {
 bottom: 50px; 
}

body .timer {
  color: #fff;
  font-family: 'orkneybold', Arial, sans-serif;
}

body .timer .show {
  position: fixed;
  top: 50px;
  left: 0px;
  right: 0px;
  transform: translateY(-50%);
  height: 100%;
  background-color: #308C13;
  transition: height .5s ease;
}
body .timer .show.timeup {
  background-color: #D8334A;
}
body .timer .timecontainer {
  position: relative;
  top: 70px;
  left: 0px;
  right: 0px;
  padding: 20px;
  transform: translateY(-50%);
}
body .timer .timecontainer > .time {
  display: flex;
  flex-direction: row;
  justify-content: center;

}
body .timer .timecontainer > .time .switcher {
  display: flex;
  position: relative;
}
body .timer .timecontainer > .time .switcher .time {
  font-size: 5vw;
  margin-bottom: 20px;
}
body .timer .timecontainer > .time .switcher:not([type="none"]):not(.active) .up,
body .timer .timecontainer > .time .switcher:not([type="none"]):not(.active) .down {
  position: absolute;
  left: 0px;
  right: 0px;
  height: 1vw;
  cursor: pointer;
}
body .timer .timecontainer > .time .switcher:not([type="none"]):not(.active) .up:before,
body .timer .timecontainer > .time .switcher:not([type="none"]):not(.active) .down:before {
  position: absolute;
  content: '';
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1vw solid transparent;
}
body .timer .timecontainer > .time .switcher:not([type="none"]):not(.active) .up {
  top: -2vw;
}
body .timer .timecontainer > .time .switcher:not([type="none"]):not(.active) .up:before {
  border-top: 0;
  border-bottom-color: #fff;
}
body .timer .timecontainer > .time .switcher:not([type="none"]):not(.active) .down {
  bottom: 1vw;
}
body .timer .timecontainer > .time .switcher:not([type="none"]):not(.active) .down:before {
  border-bottom: 0;
  border-top-color: #fff;
}

@media only screen and (max-width: 480px) {
 .toast p, .toast span {
  font-size: 18px;
  line-height: 18px;
 }

}
@media only screen and (min-width: 481px) and (max-width: 800px) {
 .toast p, .toast span {
  font-size: 38px;
  line-height: 38px;
 }

}
@media only screen and (min-width: 801px) {
 .toast p, .toast span {
  font-size: 58px;
  line-height: 60px;
 }

}
@media only screen and (max-height: 480px) {
 .toast p, .toast span {
  font-size: 33px;
  line-height: 35px;
 }

 button {
  font-size: 22px;
  padding: 10px;
  width: 40%;
 }
 .wheelContainer {
  top: 70px;
 }
}
button:focus {
 outline: 0;
}
