html, body{
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 18px;
  background: #efefef;
}
h1{
  font-weight: 500;
  font-size: 30px;
  padding: 0;
  margin: 0 1em 0 0;
}
#site{
  max-width: 924px;
  margin: 2em auto;
  position: relative;
}
#wrapper{
  max-width: 924px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: auto 300px;
}
#avatars{
  display: grid;
  grid-template-columns: auto auto auto auto auto auto auto auto;
  padding: 0;
  margin: 0 auto;
}
#avatars li{
  display: flex;
  margin: 5px 2px;
  cursor: pointer;
}
#avatars li img{
  max-width: 45px;
  height: auto;
  transition: all .2s ease-in-out;
  cursor: pointer;
}
#avatars li img:hover, #avatars li img.selected{
  transform: scale(1.3);
}

#onlineUsers{
  max-height: 200px;
  overflow-y: auto;
  display: none;
}
  #onlinePlayers{
    display: grid;
    grid-template-columns: auto auto auto auto auto auto auto auto;
    padding: 10px;
    margin: 0 auto;
  }
    #onlinePlayers li{
      display: grid;
      margin: 5px 2px;
      cursor: pointer;
      justify-content: center;
      align-items: center;
    }
    #onlinePlayers li img{
      max-width: 45px;
      height: auto;
      transition: all .2s ease-in-out;
      cursor: pointer;
      opacity: 0.7;
      border: 1px solid rgba(118,163,220,0);
    }
    #onlinePlayers li span{
      font-size: 12px;
      color: #7c7c7c;
      transition: all .2s ease-in-out;
    }
    #onlinePlayers li:hover span, #onlinePlayers li.selected span{
      transform: translateY(10px);
    }
    #onlinePlayers li img:hover, #onlinePlayers li.selected img{
      transform: scale(1.3);
      opacity: 1;
      border: 1px solid rgba(118,163,220,1);
      border-radius: 50%;
    }

.grid-container {
  max-width: 700px;
  display: grid;
  grid-template-columns: auto auto auto auto auto auto auto auto auto auto;
  background-color:#ff8585;
  padding: 10px;
  -webkit-box-shadow: 5px 5px 10px 2px rgba(0,0,0,0.1);
  box-shadow: 5px 5px 10px 2px rgba(0,0,0,0.1);
}
.grid-item {
  background-color: #f8abce;
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 10px;
  font-size: 22px;
  text-align: center;
  color: #656565;
  transition: opacity 1s;
  justify-content: center;
  align-items: center;
  display: flex;
}
.grid-item:hover{
  opacity: 0.2;
}
.player{
  width: 80px;
  height: 80px;
  background: url('../img/smiley-01.png') no-repeat;
  background-size: 65%;
  background-position: center;
  display: flex;
}
  .nametag{
    display: inline-block;
    background: rgba(255,255,255,0.8);
    width: auto;
    padding: 5px 10px;
    border-radius: 5px;
    height: 15px;
    font-size: 14px;
    letter-spacing: 1px;
    margin: -20px auto 0px auto;
    position: relative;
  }
  .nametag:before {
    content: '';
    position: absolute;
    margin: 20px auto 0 auto;
    border-top: 8px solid rgba(255,255,255,0.8);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
  }


.sadPlayer{
  width: 100px;
  height: 100px;
  background: url('../img/smiley-04.png') no-repeat;
  background-size: 65%;
  background-position: center;
}
.happyPlayer{
  width: 100px;
  height: 100px;
  background: url('../img/smiley-03.png') no-repeat;
  background-size: 100%;
  background-position: center;
}
#tile-100{ position: relative;}
  span{z-index: 1;}
  .trophyTile{
    width: 100%;
    height: 100%;
    background: url('../img/trophy-static.jpeg') no-repeat;
    background-size: 150%;
    background-position: center;
    position: absolute;
  }
  .finishTile{
    width: 100%;
    height: 100%;
    background: url('../img/trophy.gif') no-repeat;
    background-size: 150%;
    background-position: center;
    position: absolute;
    display: none;
  }

  #congrats .finishTile{
    width: 190px;
    height: 190px;
    background: url('../img/trophy.gif') no-repeat;
    background-size: 150%;
    background-position: center;
    display: block;
    margin: 0 auto;
    position: relative;
  }
.bounce {
  position:absolute;
  bottom:0;
  margin-top:-25px;
  margin-left:-50px;
  -webkit-animation: bounce 1s infinite;
}

@-webkit-keyframes bounce {
  0%       { bottom:0px; }
  25%, 75% { bottom:5px; }
  50%      { bottom:10px; }
  100%     {bottom:0;}
}

#questionform{
  margin-left: 2em;
  padding: 1em 1em;
  background: #fff;
  border-radius: 10px;
  -webkit-box-shadow: 5px 5px 10px 2px rgba(0,0,0,0.1);
  box-shadow: 5px 5px 10px 2px rgba(0,0,0,0.1);
  max-width: 300px;
  position: relative;
}
#congrats, #correctAnswer, #wrongAnswer{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2em 1em;
  background: rgba(255,255,255,1);
  text-align: center;
  max-width: 230px;
  height: 88%;
  border-radius: 10px;
  display: none;
  z-index: 9999;
}
#correctAnswer, #wrongAnswer{
  background: rgba(255,255,255,0.95);
}
#congrats h2, #correctAnswer h2, #wrongAnswer h2{
  font-size: 30px;
  font-weight: 500;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
#congrats img{
  max-width: 200px;
  height: 200px;
  background:url('../img/smiley-03.png') no-repeat;
  background-size: contain;
  background-position: center;
  margin: 2em auto !important;
}
.cardHolder{
  display: flex;
  grid-template-columns: auto 50px auto;
  margin:0.2em ;
}
.numCard{
  padding:10px;
  justify-content: center;
  align-items: center;
  font-size: 45px;
  font-weight: 500;
  display: block;
  color: #121212;
  /*background: #fefefe;
  border-radius: 10px;
  border: 1px solid #d9d9d9;
  -webkit-box-shadow: 6px 6px 0px 0px rgba(0,0,0,0.1);
  box-shadow: 6px 6px 0px 0px rgba(0,0,0,0.1);*/
  height: 50px;
  text-align: right;
}

#number3, #number3Mobile{
  background: #fefefe;
  border-radius: 10px;
  border: 1px solid #d9d9d9;
  -webkit-box-shadow: 5px 5px 0px 0px rgba(0,0,0,0.05);
  box-shadow: 5px 5px 0px 0px rgba(0,0,0,0.05);
  height: 50px;
  padding:10px;
  justify-content: center;
  align-items: center;
  font-size: 45px;
  font-weight: 500;
  display: block;
  color: #121212;
  margin-bottom: 20px;
}
#answer, #answerMobile{
  width: 100%;
  height: 50px;
  font-size: 50px;
  font-weight: 500;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  text-align: center;
  border: none;
}
.symbols{
  justify-content: center;
  align-items: center;
  font-size: 40px;
  font-weight: 500;
  display: flex;
}
.linetop{
  border-top: 5px solid #121212;
}
.clear{
  clear: both;
}
button{
  padding: 10px;
  font-size: 20px;
  width: 100%;
  margin: 10px 0;
}
label{
  font-size: 20px;
  font-weight: 600;
  color: #333
}
.button{
  box-shadow: 0 10px 30px -6px rgb(238, 103, 97, 0.5);
  text-transform:capitalize;
  color: #fff;
  border:none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  height: 45px;
  line-height: 10px;
}
#checker, #setDisplayName{
  background:#EA5455;
  background-image: linear-gradient(135deg, #FEB692 0%, #EA5455 100%);
}
#donation{
  background: #2761b8;
  background-image: linear-gradient(135deg, #85afee 0%, #2761b8 100%);
  width: 75%;
  display: block;
  margin: 10px auto;
  font-size: 16px;
}
#generator{
  background:#9F44D3;
  background-image: linear-gradient(135deg, #E2B0FF 0%, #9F44D3 100%);
  position: relative;
}
#generator span{
  position: absolute;
  right: 0;
  top: 2.2em;
  left: 3%;
}


#newgame, #reset, #createRoom, #createRoom2, #acceptBtn, #promptCancelBtn{
  background: #4caf50;
  background-image: linear-gradient(135deg, #9ccc65 0%, #4caf50 100%);
}
#multiplayer, #reset, #generator, #leaveRoom{
  width: 48%;
  font-size: 14px;
}
#multiplayer {
  background: #9e3c3c;
  background-image: linear-gradient(135deg, #d09393 0%, #9e3c3c 100%);
}
#leaveRoom {
  background: #830000;
  background-image: linear-gradient(135deg, #f30d0d 0%, #830000 100%);
}
#createRoom, #createRoom2, #joinRoomBtn, #joinRoomBtn2, #acceptBtn, #ignoreBtn, #promptOkBtn, #promptCancelBtn{
  width: 48%;
  font-size: 16px;
}
#joinRoomBtn, #joinRoomBtn2, #ignoreBtn, #promptOkBtn{
  background:#9F44D3;
  background-image: linear-gradient(135deg, #E2B0FF 0%, #9F44D3 100%);
}
#generatedRoom{
  display: block;
  font-size: 20px;
  color: #000;
  height: 40px;
  line-height: 40px;
  padding: 5px;
  background: #f9f9f9;
  margin: 10px;
  font-family: 'Courier New', Courier, monospace;
}
#generator:active:hover, #checker:active:hover, #donation:active:hover, #newgame:active:hover, #reset:active:hover, #multiplayer:active:hover,  #setDisplayName:active:hover, #createRoom:active:hover, #createRoom2:active:hover, #joinRoomBtn:active:hover, #joinRoomBtn2:active:hover, #leaveRoom:active:hover, #promptOkBtn:active:hover, #promptCancelBtn:active:hover{
  /*opacity: 0.5;*/
  transform: translatey(10px);
  box-shadow: none;
}

#generator:disabled, #leaveRoom:disabled{
  background:#999999;
  background-image: linear-gradient(135deg, #cccccc 0%, #999999 100%);
  cursor: not-allowed;
}
#roomNameFinal, #roomNameFinalLink{
  height: 0px;
  opacity: 0;
  font-size: 1px;
  padding: 0;
  position: absolute;
  border: none;
}
.copierbtns{
  display: inline-block;
  font-size: 14px;
  border: 1px solid #d0d0d0;
  padding: 5px 10px;
  float: right;
  cursor: pointer;
  height: 28px;
  line-height: 14px;
  margin: 0 1px;
  transition: all .2s ease-in-out;
}
.copierbtns:hover{
  background: lightblue;
}
.copierbtns small{
  font-size: 10px;
}
#info{
  font-size: 14px;
  color: #ffffff;
  display: none;
  margin: 0 0 10px 0;
  border-radius: 10px;
  padding: 10px;
  background: #f07a26;
}

hr{
  border: 1px solid rgb(229, 229, 229);
  margin: 0;
}
#errorMsg{
  height: 10px;
  visibility: hidden;
  color: red;
  font-size: 20px;
}
#mode, #modeRoom{
  display: flex;
}
#logo{
  width: 60px;
  margin-right: 20px;
}
#mode{
  align-items: end;
}
.mode-inner{ margin-right: 1em;}
#operator, #level, #operatorRoom, #levelRoom{
  padding: 5px 10px;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  border: 1px solid #ddd;
  width: 350px;
  margin-bottom: 1em;
}
#operator, #operatorRoom, #levelRoom{
  width:150px;
}


.w4rAnimated_checkmark svg {
  width: 100px;
  display: block;
  margin: 40px auto 0;
}
.w4rAnimated_checkmark .path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 0;
}
.w4rAnimated_checkmark .path.circle {
  -webkit-animation: dash 0.9s ease-in-out;
  animation: dash 0.9s ease-in-out;
}
.w4rAnimated_checkmark .path.line {
  stroke-dashoffset: 1000;
  -webkit-animation: dash 0.9s 0.35s ease-in-out forwards;
  animation: dash 0.9s 0.35s ease-in-out forwards;
}
.w4rAnimated_checkmark .path.check {
  stroke-dashoffset: -100;
  -webkit-animation: dash-check 0.9s 0.35s ease-in-out forwards;
  animation: dash-check 0.9s 0.35s ease-in-out forwards;
}

@-webkit-keyframes dash {
  0% {
    stroke-dashoffset: 1000;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes dash {
  0% {
    stroke-dashoffset: 1000;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
@-webkit-keyframes dash-check {
  0% {
    stroke-dashoffset: -100;
  }
  100% {
    stroke-dashoffset: 900;
  }
}
@keyframes dash-check {
  0% {
    stroke-dashoffset: -100;
  }
  100% {
    stroke-dashoffset: 900;
  }
}

/** STAR **/
#starLevel{ display: none; }
.star-rating {
  display: flex;
  align-items: center;
  width: 160px;
  /* flex-direction: row-reverse; */
  justify-content: space-between;
  margin: 40px auto;
  position: relative;
}
/* hide the inputs */
.star-rating input {
  display: none;
}
/* set properties of all labels */
.star-rating > label {
  width: 40px;
  height: 40px;
  font-family: Arial;
  font-size: 40px;
  transition: 2s ease-in-out;
  color: #f2f2f2;
  opacity: 0.1;
}
/* give label a hover state */
.star-rating label:hover {
  /*color: #ff69b4;
  transition: 0.2s ease;*/
}
.star-rating label.active{
  opacity: 1;
  /* transition: 2s ease-in-out; */
  animation: star-pop 0.5s ease forwards;
}

.star-rating label.active:nth-child(1){
  animation-delay: 0.5s;
}
.star-rating label.active:nth-child(2){
  animation-delay: 1s;
}
.star-rating label.active:nth-child(3){
  animation-delay: 1.5s;
}
@keyframes star-pop {
  to {
    color: orange;
    transform:scale(1.5);
  }
}
.star-rating label.active::before {
  /* transform:scale(1.5); */
}


/* set shape of unselected label */
.star-rating label::before {
  content: '\2605';
  /* position: absolute; */
  top: 0px;
  line-height: 36px;
}
/* set full star shape for checked label and those that come after it */
.star-rating input:checked ~ label:before {
  content:'\2605';
}

@-moz-document url-prefix() {
  .star-rating input:checked ~ label:before {
  font-size: 40px;
  line-height: 36px;
  }
}

.mobile-only{
  display: none;
}


#userDetails, #donateBox{
  background: rgba(255,255,255,0.95);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}
#donateBox{ display: none; }

  #userInput{
    position: relative;
    box-sizing: border-box;
    width: 500px;

    min-height: 240px;
    border-radius: 10px;
    background: #fff;
    padding: 2em;
    margin: 0 auto;
    box-shadow: 0px 0px 15px 0 rgba(0, 0, 0, 0.2);
    text-align: center;

  }
  #userAllSet, #multiplayerForm, #inviteForm, #promptLeave, #donate{
    display: none;
    transition: opacity 1s;
    position: absolute;
    box-sizing: border-box;
    width: 400px;
    position: relative;
    min-height: 240px;
    border-radius: 10px;
    background: #fff;
    padding: 2em;
    margin: 0 auto;
    box-shadow: 0px 0px 15px 0 rgba(0, 0, 0, 0.2);
    text-align: center;
  }

  #donate{
    position: absolute;
    left: 12%;
    top: 12%;
    box-shadow: 0px 0px 85px 0 rgba(0, 0, 0, 0.5);
    padding: 1em 2em;
    z-index: 99999;
  }
  #donate img{
    max-width: 280px;
  }
    .closerbtn{
      position: absolute;
      right: 1em;
      top: 0.5em;
      display: inline-block;
      border: 1px solid #6a6a6a;
      border-radius: 50%;
      width: 20px;
      height: 20px;
      line-height: 17px;
      color: #6a6a6a;
      cursor: pointer;
      transition: all .2s ease-in-out;
      opacity: 0.7;
    }
    .closerbtn:hover{
      transform: scale(1.3);
      opacity: 1;
    }
  .userForm{
    min-width: 400px;
    min-height: 240px;
    border-radius: 10px;
    background: #fff;
    padding: 2em;
    margin: 0 auto;
    box-shadow: 0px 0px 15px 0 rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
  }
  .overlayElem h4{
    font-size: 20px;
    font-weight: 300;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    padding: 0;
    margin: 20px 0 10px 0;
  }
    .overlayElem h4 b{
      font-weight: 400;
    }
      #inviteMsg {
        margin: 20px 0 30px 0;
      }
      #inviteMsg img{
        width: 30px;
        vertical-align: middle;
        margin-right: 5px;
      }
  .overlayElem h5{
    font-size: 16px;
    font-weight: 400;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    padding: 0;
    margin: 20px 0 10px 0;
  }
  .userForm h3, .overlayElem h3{
    font-weight: 400;
    font-size: 30px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    padding: 0;
    margin: 0 0 20px 0;
  }
  .userForm input, .overlayElem input{
    padding: 10px;
    min-width: 250px;
    width: 100%;
    font-size: 20px;
    text-align: center;
    box-sizing: border-box;
  }

  #userGreeting{
    font-size: 20px;
    font-weight: normal;
    margin: 0 0 10px 0;
    padding: 0 0 5px 0;
    border-bottom: 1px #ccc solid;
    color: #696969;
  }
  #setDisplayName{
    max-width: 200px;
    margin-top: 2em;
  }
  #joinRoomForm{
    display: none;
  }

  .hidden {
    display: none !important;
  }
@media only screen and (max-width: 600px) {
  #logo {
    width: 100%;
    text-align: center;
  }
  #logo svg{
    width: 80px;
  }
  #donate{
    position: absolute;
    left: 7%;
    top: 0%;
  }

  #userDetails{ position: fixed; }
  #mode{ display: block; width: 100%;}
  #site{ width: 100%; max-width: 100%; }
  #operator, #level{
    width:50%;
  }
  #board{
    display: inline-grid;
  }
  #questionform{
    display: block;
    margin: 10px auto !important;
    max-width: 96%;
  }
  #correctAnswer, #wrongAnswer{
    max-width: 91%;
    height: 81%;
  }
  #congrats{
    max-width: 91%;
    padding: 1em 1em;
    height: 90%;
  }
    #congrats h2{
      margin: 0;
    }
    #congrats p{ margin: 10px 0 0 0; color: #778899;}
    .star-rating > label{
      width: 30px;
      height: 30px;
      font-size: 30px;
    }
    .star-rating{
      margin: 20px auto;
    }
    #congrats .finishTile {
      width: 120px;
      height: 120px;
    }

  #wrapper{
    width: 100%;
    max-width: 100%;
    display: block;
    grid-template-columns: auto;
    margin: 0 auto;
  }
  .grid-item{
    font-size: 0.98em;
    padding: 0.49em;
  }
  .mode-inner{
    margin: 0;
  }
  #operator, #level{
    width: 100%;
    padding: 10px 10px;
    margin-bottom: 0.5em
  }

  .cardHolder {
    display: flex;
    grid-template-columns: auto 50px auto 50px auto;
    margin: 0.5em;
  }
  .mobile-only{
    display: inline-flex;
  }
  .bigscreen-only{
    display: none;
  }
  .numCard{
    font-size: 30px;
    height: 30px;
    padding: 5px 5px;
  }
  .symbols{
    font-size: 30px;
    height: 60px;
    padding: 5px 5px;
  }
  #answerMobile {
    width: 150px;
    height: 30px;
    font-size: 30px;
  }
  #errorMsg{
    height: 0;
  }
  button {
    padding: 10px;
    font-size: 18px;
    width: 46%;
    margin: 8px 5px;
  }
  #checker{
    width: 100%;
  }

  #multiplayer, #reset, #generator, #leaveRoom{
    width: 47%;
  }
  #createRoom, #createRoom2, #joinRoomBtn, #joinRoomBtn2, #acceptBtn, #ignoreBtn, #reset, #multiplayer{ width: 46% !important ;}

  hr{ margin: 2px; }

  .userForm, #userInput, #userAllSet, #donate {
    width: 340px;
    padding: 2em 1em;
  }
  .userForm h3, .overlayElem h3{
    font-size: 24px;
  }

  #avatars{
    display: grid;
    grid-template-columns: auto auto auto auto;
    padding: 0;
    margin: 0 auto;
  }
  .nametag{
    font-size: 12px;
    padding: 3px 5px;
    border-radius: 3px;
  }
    .nametag:before {
      content: '';
      position: absolute;
      margin: 18px auto 0 auto;
      border-top: 6px solid rgba(255,255,255,0.8);
      border-left: 6px solid transparent;
      border-right: 6px solid transparent;
    }
  .bounce{
    margin-left: 80%;
    bottom: 30em ;
  }
  @-webkit-keyframes bounce {
    0%       { bottom:30em; }
    25%, 75% { bottom:30.2em; }
    50%      { bottom:30.5em; }
    100%     {bottom:30em;}
  }
}
