body, html { height: 100%; }
body, button, input { font-family: "PT Sans Caption", sans-serif; }
body { background: rgb(231, 255, 244); }
html, body, canvas { margin: 0px; border: 0px; padding: 0px; display: block; overflow: hidden; }
#view, #ui, #ui_overlay { position: absolute; width: 100%; }
#view { z-index: 1; height: 100%; }
#ui { z-index: 4; display: flex; justify-content: space-between; align-items: flex-start; }
#ui_overlay { z-index: 2; pointer-events: none; height: 100%; background-color: rgba(0, 0, 0, 0.8); }
#ui.hide { display: none; }
.fadein { animation: 2s ease 0s 1 normal none running fadein; }
.fadeout { animation: 2s ease 0s 1 normal none running fadeout; }
.liderboard { padding: 10px; margin: 0px 0px 10px; color: white; }
.liderboard h3 { color: rgb(0, 208, 149); font-size: 22px; text-align: center; padding: 0px; margin: 0px 0px 10px; }
.liderboard ul { margin: 0px; padding: 0px; list-style-type: none; }
.liderboard li { display: flex; align-items: center; justify-content: space-between; }
.liderboard li .lb_item_left { display: flex; align-items: center; }
.liderboard li .lb_item_left img { }
.liderboard li .title { color: gray; padding: 0px 10px 0px 5px; }
.liderboard li .player { color: white; }
.liderboard li .top { padding: 0px; min-width: 20px; width: 20px; height: 18px; line-height: 18px; text-align: center; border-radius: 3px; border-bottom: 3px solid rgb(142, 138, 138); background: rgb(170, 170, 170); margin: 2px 5px 0px 0px; font-size: 10px; color: black; }
.liderboard li .top1 { border-bottom: 3px solid rgb(207, 184, 93); background: rgb(237, 215, 123); }
.liderboard li .top2 { border-bottom: 3px solid rgb(155, 178, 205); background: rgb(195, 209, 225); }
.liderboard li .top3 { border-bottom: 3px solid rgb(157, 118, 103); background: rgb(191, 148, 129); }
.liderboard li .extra { padding: 0px 4px; width: auto; }
.liderboard li .empty { padding: 0px; min-width: 20px; width: 20px; height: 18px; line-height: 18px; margin: 2px 5px 0px 0px; }
.liderboard li.extra_margin { margin-top: 18px; }
.uibox { pointer-events: auto; width: 500px; max-width: 500px; order: 2; }
#left_side { order: 1; }
#right_side { order: 3; }
.uibox .logo { text-align: center; height: 100px; position: relative; overflow: hidden; padding-top: 10px; }
.logo img { width: 350px; }
.resultsimg { width: 50%; margin: auto; }
.resultsimg img { width: 100%; }
.results { display: flex; justify-content: center; font-size: 18px; text-shadow: rgb(0, 0, 0) 0px 0px 2px; white-space: nowrap; color: rgb(255, 255, 255); }
.results .left { text-align: right; margin-right: 10px; }
.newScore { color: rgb(136, 255, 170); }
.nav { margin: 10px; display: flex; justify-content: center; flex-wrap: wrap; }
.uibox form.play { margin: 0px 5px; display: flex; justify-content: center; }
.uibox .tips { height: 50px; display: flex; margin: 0px 10px; }
.uibox .tip { color: white; text-align: center; font-size: 18px; animation: 2s ease 0s 1 normal none running fadein; padding: 10px 10%; align-self: flex-end; width: 100%; }
@keyframes fadein { 
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes fadeout { 
  0% { opacity: 1; }
  100% { opacity: 0; }
}
.flag-select { position: relative; background: rgb(237, 237, 209); border-width: 0px 0px 6px; border-style: none none solid; border-color: currentcolor currentcolor rgb(161, 161, 141); border-image: none; margin: 5px 10px; font-size: 25px; color: rgb(102, 102, 102); }
.flag-selected { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.country-label { display: flex; align-items: center; padding: 5px; }
.country-label span { padding-left: 5px; }
.country-label img { padding-left: 10px; width: 1.3em; height: 1.3em; }
.flag-select .arrow-down { color: rgb(77, 77, 77); padding: 3px; }
.flag-options { position: absolute; cursor: pointer; z-index: 999999; background: rgb(237, 237, 209); min-width: 100%; max-height: 200px; overflow: auto; }
.flag-options::-webkit-scrollbar { width: 20px; background: rgb(237, 237, 209); }
.flag-options::-webkit-scrollbar-thumb { background: rgb(161, 161, 141); border-radius: 3px; }
.flag-options .flag-option:hover { background: rgb(161, 161, 141); }
#nick { background: rgb(237, 237, 209); border-width: 0px 0px 6px; border-style: none none solid; border-color: currentcolor currentcolor rgb(161, 161, 141); border-image: none; padding: 5px; margin: 5px; font-size: 25px; text-indent: 10px; color: rgb(102, 102, 102); outline: none; width: 100%; flex: 1 1 auto; }
#nick::placeholder { color: rgb(161, 161, 141); opacity: 1; }
#play { flex: 0 0 130px; }
#again, #menu { flex: 1 1 auto; }
button { border-width: medium medium 6px; border-style: none none solid; border-color: currentcolor; border-image: none; font-size: 35px; letter-spacing: 1px; padding: 0px 15px; margin: 5px; cursor: pointer; }
button:active { border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; border-top: 6px solid; }
button:focus { outline: none; }
button.yellow { background: rgb(234, 236, 75); border-color: rgb(161, 161, 48); color: rgb(136, 138, 52); }
button.green { background: rgb(127, 237, 76); border-color: rgb(86, 161, 48); color: rgb(86, 161, 48); }
#first_about button.enter { background: rgb(255, 255, 255); border-color: rgb(86, 161, 48); color: rgb(6, 8, 5); }
button.disabled { background: rgb(235, 235, 235); border-bottom: 6px solid rgb(156, 156, 156); color: rgb(156, 156, 156); cursor: default; }
button.yellow:hover, button.yellow:focus { background: rgb(250, 252, 91); }
button.green:hover, button.green:focus { background: rgb(142, 252, 91); }
button.disabled:hover, button.disabled:focus { background: rgb(235, 235, 235); }
button.disabled:active { border-top-width: medium; border-top-style: none; border-top-color: currentcolor; border-bottom: 6px solid; }
.uibox p.notsupported { color: rgb(177, 55, 55); font-size: 18px; text-align: center; padding: 0px 10%; }
#paperio-site_multisize { position: absolute; text-align: center; top: 350px; width: 100%; z-index: 3; }
#paperio-site_multisize.down { top: 550px; }
.feedback { margin: 10px; color: yellow; display: block; pointer-events: auto; }
.feedback:hover { color: rgb(255, 228, 120); }
.feedback:visited { color: yellow; }
#aipstreamContainer { display: none; width: 100% !important; height: 100% !important; }
@media screen and (max-width: 800px) {
  #ui { flex-wrap: wrap-reverse; justify-content: center; align-items: flex-end; }
  .uibox { order: 3; }
  #left_side { order: 1; }
  #right_side { order: 2; }
}
@media screen and (max-width: 500px) {
  .uibox form.play { flex-wrap: wrap; }
  .nav { margin: 10px 0px; flex-wrap: wrap; }
  button { font-size: 25px; }
  .resultsimg { width: 75%; }
  #left_side, #right_side { display: none; }
}
#about { position: absolute; display: none; height: 100%; width: 100%; background-color: rgba(0, 0, 0, 0.8); z-index: 20; }
#about .text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 32px; border-radius: 10px; width: 60%; background-color: white; }
#first_about { position: absolute; display: none; height: 100%; width: 100%; background-color: rgba(0, 0, 0, 0.8); z-index: 20; }
#first_about p { text-align: center; font-size: 25px; }
#first_about h1 { text-align: center; }
#first_about .text { position: absolute; top: 120px; left: 50%; width: 800px; max-width: calc(90% - 40px); transform: translate(-50%, 0%); background: rgb(234, 236, 75); padding: 30px 30px 20px; z-index: 4; }
#first_about .close { cursor: pointer; position: absolute; right: 5px; top: 5px; width: 20px; height: 20px; background: rgb(234, 236, 75); border: 2px solid rgb(161, 161, 48); font-size: 26px; line-height: 19px; text-align: center; }
#first_about .close:hover { background: rgb(250, 252, 91); }
.hide { display: none; }
.show { display: block; }
#bottom { position: absolute; text-align: center; display: none; bottom: 0px; right: 0px; color: rgb(32, 32, 32); z-index: 5; background-color: white; padding: 4px; border-top-left-radius: 8px; }
@media (min-height: 800px) {
  #bottom { display: block; }
}
#bottom a, a:visited { color: rgb(32, 32, 32); text-decoration: none; }
#overlay { width: 100%; height: 100%; position: absolute; top: 0px; left: 0px; background: rgb(0, 0, 0); z-index: 9; display: none; }
#lng { position: absolute; bottom: 0px; left: 0px; z-index: 4; background: rgb(255, 255, 255); list-style-type: none; margin: 0px; border: 0px; padding: 4px 6px 4px 0px; border-top-right-radius: 8px; display: inline; }
#lng li { display: inline; padding: 4px; background: rgb(255, 255, 255); cursor: pointer; }
#lng li.active { background: rgb(136, 136, 255); }
