body,
button,
input {
  font-family: "PT Sans Caption", sans-serif;
}

body {
  background: #e7fff4;
}

html,
body,
canvas {
  margin: 0;
  border: 0;
  padding: 0;
  display: block;
  overflow: hidden;
}

#view,
#ui,
#substrate,
#overlay {
  position: absolute;
  width: 100%;
  height: 100%;
}

#view {
  z-index: 1;
}

#substrate {
  z-index: 2;
  pointer-events: none;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

#ui {
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  /*align-items: center;*/
}

#ui.hide {
  display: none;
}

#overlay {
  z-index: 9;
  background: #000;
  display: none;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeout {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.fadein {
  animation: fadein 2s;
}

.fadeout {
  animation: fadeout 2s;
}

.openedSelect {
  margin-top: 65px;
}

.openedSmSelect {
  margin-top: 123px;
}

.hidden {
  display: none !important;
}

#ads {
  display: flex;
  height: 250px;
  width: 100%;
  flex-shrink: 0;
  justify-content: center;
  /*align-items: center;*/
}

#ads {
  margin-top: 20px;
}

.uibox {
  pointer-events: auto;
  width: 500px;
  max-width: 500px;
  /*
    margin: 14px auto 0 auto;
    padding: 8px 10px 30px 10px;
    */
  /*
    flex: 0 1 content;
    */
  flex: 0 1 auto;
  /*order: 2;*/
  /*background-color: rgba(255, 0, 0, 0.3);*/
  /*flex-grow: 1;*/
  overflow: hidden;
}

.holder {
  height: 550px;
}
/*
.uibox .logo {
    text-align: center;
    height: 100px;
    position: relative;
    overflow: hidden;
    padding-top: 10px;
}

.logo {
    background: url('assets/images/logo.png') no-repeat;
    background-size: contain;
    background-position: center;
}
*/

/*.logo img {
    /*width: 100%;*/
/*
    position: absolute;
    top: 50%;
    -ms-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
*/
/*}*/

.logo {
  text-align: center;
}

.logo img {
  max-width: 100%;
  height: auto;
  max-height: 100%;
}

.resultbox {
  position: relative;
}

.result_cont {
  position: absolute;
  width: 100%;
  height: 100%;
}

.resultsimg {
  width: 50%;
  margin: auto;
  /*
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    */
}

.resultbox {
}

.resultsimg img {
  width: 100%;
}

@media screen and (max-height: 800px) {
  .resultsimg {
    width: 25%;
  }
}

.results {
  display: flex;
  justify-content: center;
  font-size: 18px;
  text-shadow: 0px 0px 2px #000000;
  white-space: nowrap;
  color: #fff;
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.results .left {
  text-align: right;
  margin-right: 10px;
}

.newScore {
  color: #8fa;
}

.nav {
  margin: 10px /*10%*/;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.uibox .play {
  margin: 0 5px;
  display: flex;
  justify-content: center;
}

.uibox .tips {
  height: 50px;
  display: flex;
  margin: 0 10px;
}

.uibox .tip {
  color: white;
  text-align: center;
  font-size: 18px;
  animation: fadein 2s;
  padding: 10px 10%;
  align-self: flex-end;
  width: 100%;
}

.flag-select {
  position: relative;
  background: #ededd1;
  border: 0;
  margin: 5px 10px;
  font-size: 25px;
  color: #666;
}

.flag-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: 6px solid #a1a18d;
  height: 40px;
}

.country-label {
  display: flex;
  align-items: center;
  padding: 5px;
  overflow: hidden;
}

.country-label span {
  padding-left: 5px;
  white-space: nowrap;
}

.country-label img {
  padding-left: 10px;
  width: 1.3em;
  height: 1.3em;
}

.flag-select .arrow-down {
  color: #4d4d4d;
  padding: 3px;
}

.flag-options {
  /*position: absolute;*/
  cursor: pointer;
  z-index: 999999;
  background: #ededd1;
  /*border-bottom: 6px solid #a1a18d;*/
  width: 100%;
  max-height: 200px;
  overflow: auto;
  top: 48px;
}

.flag-options::-webkit-scrollbar {
  width: 20px;
  background: #ededd1;
}

.flag-options::-webkit-scrollbar-thumb {
  background: #a1a18d;
  border-radius: 3px;
}

.flag-options .flag-option:hover {
  background: #a1a18d;
}

#nick {
  background: #ededd1;
  border: 0;
  border-bottom: 6px solid #a1a18d;
  padding: 5px;
  margin: 5px;
  font-size: 25px;
  text-indent: 10px;
  color: #666;
  outline: none;
  width: 100%;
  flex: 1 1 auto;
  height: 30px;
}

#nick::placeholder {
  color: #a1a18d;
  opacity: 1; /* Firefox */
}

#again,
#menu,
#play {
  flex: 1 1 auto;
}

button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-bottom: 6px solid;
  font-size: 30px;
  letter-spacing: 1px;
  padding: 0px 15px;
  margin: 5px;
  height: 46px;
  cursor: pointer;
}

button:active {
  border-bottom: none;
  border-top: 6px solid;
}

button:focus {
  outline: none;
}

button.yellow {
  background: #eaec4b;
  border-color: #a1a130;
  color: #888a34;
}

button.green {
  background: #7fed4c;
  border-color: #56a130;
  color: #56a130;
}

button.orange {
  background: #ff972f;
  border-color: #ae4e0d;
  color: #422100;
}

button.purple {
  background: #741dad;
  border-color: #560f85;
  color: #1f0c2b;
}

button.disabled {
  background: #ebebeb;
  border-bottom: 6px solid #9c9c9c;
  color: #9c9c9c;
  cursor: default;
}

button.yellow:hover,
button.yellow:focus {
  background: #fafc5b;
}

button.green:hover,
button.green:focus {
  background: #8efc5b;
}

button.orange:hover,
button.orange:focus {
  background: #ffb76f;
}

button.purple:hover,
button.purple:focus {
  background: #8330b8;
}

button.disabled:hover,
button.disabled:focus {
  background: #ebebeb;
}

button.disabled:active {
  border-top: none;
  border-bottom: 6px solid;
}

button.stretched {
  flex: 1 1 auto;
}

.uibox p.notsupported {
  color: rgb(177, 55, 55);
  font-size: 18px;
  text-align: center;
  padding: 0 10%;
}

#paper-io-com_336x280 {
  position: absolute;
  text-align: center;
  /*top: 310px;*/
  top: 350px;
  width: 100%;
  z-index: 3;
}

#paper-io-com_336x280.down {
  top: 550px;
}

.feedback {
  margin: 10px;
  color: yellow;
  display: block;
  pointer-events: auto;
}

.feedback:hover {
  color: #ffe478;
}

.feedback:visited {
  color: yellow;
}

#aipstreamContainer {
  display: none;
  width: 100% !important;
  height: 100% !important;
}

/*
@media screen and (max-width: 940px) {
    #ui {
        justify-content: center;
    }

    #left_side,
    #right_side {
        display: none;
    }
}

@media screen and (max-width: 800px) {
    #ui {
        flex-wrap: wrap-reverse;
        justify-content: center;
        align-items: flex-end;
    }
}
*/

@media screen and (max-width: 1000px) {
  #yandex_rtb {
    /*
        width: 300px;
        height: 250px;
        */
  }
}

#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 .text {
  position: absolute;
  top: 120px;
  left: 50%;
  width: 800px;
  max-width: calc(90% - 40px);
  transform: translate(-50%, 0%);
  background: #eaec4b;
  border: 2px solid #a1a130;
  border-radius: 20px;
  padding: 30px 30px 20px 30px;
  z-index: 4;
}

#first_about .close {
  cursor: pointer;
  position: absolute;
  right: 5px;
  top: 5px;
  border-radius: 15px;
  width: 20px;
  height: 20px;
  background: #eaec4b;
  border: 2px solid #a1a130;
  text-align: center;
  font-size: 26px;
  line-height: 19px;
  text-align: center;
}

#first_about .close:hover {
  background: #fafc5b;
}

.hide {
  display: none;
}
.show {
  display: block;
}

#bottom {
  background: #fff;
  padding: 4px;
  border-top-left-radius: 8px;
  /*
    position: absolute;
    text-align: center;
    display: none;
    bottom: 0px;
    right: 0px;
    color: #202020;
    z-index: 5;
    background-color: white;
    padding: 4px;
    border-top-left-radius: 8px;
*/
}

#bottom a,
a:visited {
  color: #202020;
  text-decoration: none;
}

#footer {
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
  z-index: 4;

  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

#lng {
  list-style-type: none;
  margin: 0;
  border: 0;
  padding: 4px 6px 4px 0;
  border-top-right-radius: 8px;
  background: #fff;
  display: inline;
}

#lng li {
  display: inline;
  padding: 4px 4px;
  background: #fff;
  cursor: pointer;
}

#lng li.active {
  background: #88f;
}

#adbanner {
  /*max-width: 550px;*/
  height: 300px;
}

.own_banner {
  padding: 10px;
  text-align: right;
}

.own_banner img {
  border-radius: 5px;
}

/*
.skinbox {
}

.skins-container {
    display: flex;
    flex-direction: row;
    flex: 1;
    align-items: center;
    justify-content: center;
}
.skins-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
}

.skin {
    margin: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    padding: 5px;
    background: #dad53f;
    width: 130px;
    height: 130px;
}

.noPadding {
    padding: 0 5px;
}

button img {
    display: block;
    margin-top: 1px;
    margin-left: auto;
    margin-right: auto;
}

.skin-view {
    background: #fcfdc4;
    flex-grow: 1;
}

.skin-view img {
    display: block;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
}

.skin-view h3 {
    margin: 0;
    text-align: center;
}

.skin-radio {
    margin-top: 5px;
    align-self: center;
}
*/
.skinbox {
  /*background: #eaec4b;*/
  /*height: 100%;*/
  /*
    display: flex;
    flex: 1;
    min-height: 0px;

    overflow: auto;
    */
}

.skins-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  flex: 1;
  align-items: center;
  justify-content: center;
}
.skins-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
}

.skin {
  margin: 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  /*text-align: center;*/
  padding: 5px;
  background: #dad53f;
  width: 130px;
  height: 150px;
  position: relative;
}

.skin.selected {
  background: #8efc5b;
}

.skin.earned {
  cursor: pointer;
}

.skin.selected .skin-view {
  background: #8efc5b;
}

.skin-description {
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  min-height: 40px;
  background-color: #ffffff;
  padding-bottom: 0px;
  border-radius: 5px;

  margin: 5px 0 0 0;
  font-size: 14px;
  border-bottom: 4px solid #d4cfcf;
}

.skin .earnedImg {
  display: inline;
  position: absolute;
  top: 34px;
  left: 48px;
  /*width: 22px;
    height: 33px;*/
}

.skin .grayscale {
  filter: grayscale(1);
}

.skin .floor {
  width: 80px;
  height: 80px;
}

.skin-view {
  background: #fcfdc4;
  flex-grow: 1;
}

.skin-view img {
  display: block;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
}

.skin-view h3 {
  margin: 0;
  text-align: center;
}

.skin-radio {
  margin-top: 5px;
  align-self: center;
}

@keyframes kf_slider {
  from {
    opacity: 0;
    pointer-events: none;
    /*font-size: 150%;*/
  }
  to {
    opacity: 1;
    pointer-events: auto;
    /*font-size: 100%;*/
  }
}

.slider-1 {
  animation: kf_slider 2s 0s both;
}

.slider-2 {
  animation: kf_slider 2s 1s both;
}

.slider-3 {
  animation: kf_slider 2s 2s both;
}

.slider-4 {
  animation: kf_slider 2s 3s both;
}

.slider-5 {
  animation: kf_slider 2s 4s both;
}

.liderboard {
  padding: 10px;
  margin: 0 0 10px 0;
  color: white;
}

.liderboard h3 {
  color: #00d095;
  font-size: 22px;
  text-align: center;
  padding: 0;
  margin: 0 0 10px 0;
  /*line-height: 26px;
    margin: 0;
    padding: 0;*/
}

.liderboard ul {
  flex-grow: 1;
  margin: 0 5px 0 5px;
  padding: 0;
  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 {
  /*height: 16px;*/
}

.liderboard li .title {
  color: gray;
  padding: 0 10px 0 5px;
}

.liderboard li .player {
  color: white;
}

.liderboard li .top {
  padding: 0;
  min-width: 20px;
  /*width: 20px;*/
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 3px;

  border-bottom: 3px solid #8e8a8a;
  background: #aaaaaa;

  margin: 2px 5px 0 0;
  font-size: 10px;
  color: black;
}

.liderboard li .top1 {
  border-bottom: 3px solid #cfb85d;
  background: #edd77b;
}

.liderboard li .top2 {
  border-bottom: 3px solid #9bb2cd;
  background: #c3d1e1;
}

.liderboard li .top3 {
  border-bottom: 3px solid #9d7667;
  background: #bf9481;
}

.liderboard li .extra {
  padding: 0 4px;
  width: auto;
}

.liderboard li .empty {
  padding: 0;
  min-width: 20px;
  width: 20px;
  height: 18px;
  line-height: 18px;
  margin: 2px 5px 0 0;
}

.liderboard li.extra_margin {
  margin-top: 18px;
}

.lb_column {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.no_rewarded_message {
  text-align: center;
  color: white;
  padding: 0px 10px;
}

.announcement {
  margin: 15px;
  color: white;
}

.ya_logo {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='64' height='64' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='32' cy='32' r='32' fill='%23FC3F1D'/%3E%3Cpath d='M37.02 52h6.977V12H33.842c-10.213 0-15.57 5.228-15.57 12.951 0 6.667 3.473 10.426 9.625 14.509l3.738 2.467-4.798-4.024L17.33 52h7.564L35.05 36.846l-3.532-2.35c-4.268-2.878-6.358-5.11-6.358-9.956 0-4.258 3.003-7.136 8.712-7.136h3.12V52h.03z' fill='%23fff'/%3E%3C/svg%3E");
  margin: 0 auto;
  width: 64px;
  height: 64px;
}

#Y_yandex_rtb_wrap {
}

#extra img {
  height: 80%;
  margin-bottom: 5px;
  margin-top: 5px;
  padding-right: 5px;
}

#promoElem a {
  text-decoration: none;
}

#promoElem .promoText {
  margin: 0;
  background-color: white;
  background-color: #00000094;
  height: 35px;
  left: 35px;
  font-size: 13px;
  color: black;
  color: white;
  display: flex;
  align-items: center;
  padding-right: 5px;
}

#promoElem .promoIcon {
  background-color: white;
  width: 35px;
  height: 35px;
  margin-right: 10px;
}

#promoElem {
  cursor: pointer;
  margin: 15px;
  margin-top: 10px;
  margin-bottom: 0px;
}

@media screen and (max-width: 1000px) and (orientation: landscape) {
  #ads {
    margin-right: 10px;
  }

  #ui {
    /*flex-wrap: nowrap;*/
  }

  #nick {
    /*font-size: 17px;*/
  }
  .uibox {
    width: auto;
  }

  .uibox {
    /*margin: 0;*/
    flex-wrap: wrap;
  }

  .nav {
    margin: 10px 0;
    flex-wrap: wrap;
  }

  button {
    /*font-size: 25px;*/
  }

  .resultsimg {
    width: 30%;
  }

  #bottom {
    display: none;
  }

  #promoElem {
    margin: 5px;
    margin-top: 10px;
    margin-bottom: 0px;
  }
}

@media screen and (max-width: 500px) {
  .uibox .play {
    /*margin: 0;*/
    flex-wrap: wrap;
  }

  .nav {
    margin: 10px 0;
    flex-wrap: wrap;
  }

  button {
    /*font-size: 25px;*/
  }

  .resultsimg {
    width: 30%;
  }

  #bottom {
    display: none;
  }

  .skin-view h3 {
    padding-top: 5px;
    padding-bottom: 10px;
  }

  #promoElem {
    margin: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 500px) {
  .skin-description {
    font-size: 10px;
    min-height: 30px;
  }
  h3 {
    font-size: 14px;
  }
  .skin-view img {
    display: block;
    margin-top: 3px;
    margin-left: auto;
    margin-right: auto;
  }
  .skin .earnedImg {
    display: inline;
    position: absolute;
    top: 22px;
    left: 48px;
  }
  .skin {
    margin: 3px;
    height: 133px;
  }
}

@media screen and (max-height: 730px) {
  button {
    min-width: 50%;
    font-size: 20px;
  }

  .play button {
    min-width: 8%;
    padding: 5px;
  }

  .play #play {
    min-width: 25%;
    font-size: 25px;
  }

  .nav button {
    max-height: 38px;
    margin: 3px;
  }

  .uibox .tip {
    font-size: 16px;
  }

  .logo img {
    max-width: 70%;
    height: auto;
    max-height: 100%;
  }

  .skinbox button {
    min-width: 5%;
  }

  .results {
    font-size: 16px;
    top: 39%;
  }
}

@media screen and (max-height: 580px) {
  .logo img {
    max-width: 250px;
  }

  button {
    min-width: 40%;
    font-size: 19px;
  }

  .uibox .tip {
    font-size: 15px;
  }

  .nav {
    margin: 2px 0;
    flex-wrap: wrap;
  }

  .nav button {
    max-height: 38px;
    margin: 2px;
  }

  .results {
    font-size: 14px;
    top: 31%;
  }

  .play #play {
    min-width: 15%;
    font-size: 18px;
    padding: 3px;
    margin-right: 3px;
  }

  .play button {
    min-width: 5%;
    padding: 5px;
  }

  #nick {
    width: 31%;
    font-size: 18px;
    text-indent: 0px;
    margin-right: 3px;
  }

  #skins {
    margin-right: 3px;
    padding: 3px;
  }

  .flag-select {
    font-size: 20px;
  }
}
