body {
  background: #e7fff4;
}

html,
body,
canvas {
  margin: 0;
  border: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  height: 100%;
}

#view,
#ui {
  position: absolute;
  width: 100%;
  height: 100%;
  /*z-index: 1;*/
  /*width: 100%;
    height: 100%;

    top: 50%;
    left: 50%;
    -moz-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    */
}

#expaBar {
  margin: 10px 10%;
  justify-content: center;
  height: 30px;
}

#fullExpBar {
  width: 50%;
  height: 30px;
  top: -30px;
  background-color: #dad53f;
}

#emptyExpBar {
  width: 100%;
  height: 30px;
  background-color: #59570d;
}

.lvlInfoText {
  text-align: center;
  font-size: 20px;
  color: aliceblue;
  margin: 10px;
}

#view {
  z-index: 1;
}

#ui {
  z-index: 2;
}

.fadein {
  animation: fadein 2s;
}

.fadeout {
  animation: fadeout 2s;
}

#ui {
  z-index: 4;
  /*pointer-events: none;*/
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: rgba(0, 0, 0, 0.8);
}
#ui.hide {
  display: none;
}

body,
button,
input {
  font-family: "PT Sans Caption", sans-serif;
}

input,
textarea {
  width: 100%;
  display: block;
}

.uibox {
  /*background: #422;*/
  max-width: 550px;
  margin: 14px auto 0 auto;
  padding: 8px 10px 30px 10px;
  order: 2;
  width: 100%;
  min-width: 350px;
}

.uibox .logo {
  text-align: center;
  height: 95px;
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  padding-bottom: 5px;
}

.logo img {
  width: 345px;
  /*
    position: absolute;
    top: 50%;
    -ms-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
*/
}

@keyframes pulse {
  0% {
    transform: scale(1, 1);
  }

  50% {
    transform: scale(1.1, 1.1);
  }

  100% {
    transform: scale(1, 1);
  }
}

.newIconShop {
  animation: pulse 1s linear infinite;
}

#newIconInShop {
  position: absolute;
  top: 170px;
  margin-top: -30px;
}

#newIconMenuShop {
  position: relative;
  top: -105px;
  left: 83px;
  margin: 0px;
}

.shopBtn {
  max-height: 115px;
}

/*
.resultbox {
    position: relative;
}
*/

.resultsimg {
  width: 50%;
  margin: auto;
}

.resultsimg img {
  width: 100%;
}

.progress {
  transition: 1s ease;
  transition-delay: 0.1s;
  transition-property: width;
}

.imgIconProgress {
  position: relative;
  width: 45px;
  left: -45px;
  top: -80px;
}

.imgIconFinal {
  position: relative;
  width: 45px;
  left: 45px;
  top: -70px;
  float: right;
}

#left_side {
  order: 1;
}

#right_side {
  order: 3;
}

#left_side,
#right_side {
  width: 260px;
}

.results {
  display: flex;
  justify-content: center;
  font-size: 18px;
  text-shadow: 0px 0px 2px #000000;
  white-space: nowrap;
  color: #fff;
  /*position: absolute;
    top: 50%;
    left: 50%;
    -moz-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
*/
}

.popUpBack {
  background-color: #403f3b;
  max-width: 600px;
  width: 600px;
  justify-content: center;
  display: flex;
}

.popUp .skin {
  justify-content: center !important;
  width: inherit;
  max-width: 300px;
}

.popUp .yellow {
  width: -moz-available; /* WebKit-based browsers will ignore this. */
  width: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */
  width: fill-available;
}

.namePopUp {
  text-align: center;
  font-size: 23px;
  margin-bottom: 0px;
  padding-bottom: 0px;
  color: #eaec4b;
  margin-top: 20px;
}

#resultsPopUp {
  position: absolute;
  display: none;
  justify-content: center;

  width: 100%;
  top: 140px;

  height: fit-content;
  border-radius: 10px;
}

.results .left {
  text-align: right;
  margin-right: 10px;
}

.newScore {
  color: #8fa;
}

.nav {
  margin: 10px 10%;
  display: flex;
  justify-content: center;
}

.uibox .play {
  margin: 0 12%;
  display: flex;
  justify-content: center;
}

.uibox .tips {
  height: 60px;
  display: flex;
}

.uibox .tip {
  color: white;
  text-align: center;
  font-size: 19px;
  animation: fadein 2s;
  padding: 10px 10%;
  align-self: flex-end;
  width: 100%;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeout {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

#nick {
  background: #ffffff;
  padding: 5px;
  font-size: 25px;
  text-indent: 10px;
  color: #666;
  outline: none;
  flex: 1 1 auto;
  margin-bottom: 0px;
  width: 95%;
  border: 3px solid;
  border-radius: 12px;
}

#nick::placeholder {
  color: #a1a18d;
  opacity: 1; /* Firefox */
}

#play {
  flex: 0 0 130px;
  width: 100%;
  margin: 0px;
  margin-top: 5px;
}

#again,
#menu {
  flex: 1 1 auto;
}

#inputWrap {
  width: 100%;
}

.lowerPlayLine {
  margin-right: 5px;
  overflow: hidden;
}

button {
  border: 3px solid;
  border-radius: 12px;
  font-size: 35px;
  letter-spacing: 1px;
  padding: 0px 15px;
  margin: 10px;
  cursor: pointer;
}

button:active {
  border-bottom: none;
  border-top: 6px solid;
}

button:focus {
  outline: none;
}

button.yellow {
  background: #000000;
  border-color: #ffffff;
  color: #ffffff;
}

button.green {
  background: #000000;
  border-color: #ffffff;
  color: #ffffff;
}

button.unavail {
  background: #eaec4b;
  border-color: #a1a130;
  color: #888a34;
}

button.orange {
  background: #ffffff;
  border-color: #000000;
  color: #000000;
}

button.disabled {
  background: #ebebeb;
  border-bottom: 6px solid #9c9c9c;
  color: #9c9c9c;
  cursor: default;
}

button.yellow:hover,
button.yellow:focus {
  background: #4b0000;
}

button.green:hover,
button.green:focus {
  background: #4b0000;
}

button.disabled:hover,
button.disabled:focus {
  background: #ebebeb;
}

button.disabled:active {
  border-top: none;
  border-bottom: 6px solid;
}

.uibox p.notsupported {
  color: rgb(177, 55, 55);
  font-size: 18px;
  text-align: center;
  padding: 0 10%;
}

@media screen and (max-width: 500px) {
  .uibox .play {
    margin: 0 5%;
  }

  .nav {
    margin: 10px 0;
    flex-wrap: wrap;
  }

  .resultsimg {
    width: 75%;
  }
}

@media screen and (max-width: 400px) {
  #nick {
    width: 92%;
  }
}

/* About ------------------------------- */

#about {
  display: none;
  z-index: 7;
  position: absolute;
  box-sizing: border-box;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 90%;
  overflow-y: auto;
  padding: 10px;
  border-radius: 10px;
  background-color: rgb(0, 0, 0);
  border: 3px solid white;
}

#about h1 {
  color: #ffffff;
  font-size: 23px;
  margin: 5px;
}
#about h2 {
  color: #ffffff;
  font-size: 21px;
  margin: 5px;
}

#about p {
  color: #ffffff;
  font-size: 16px;
  margin: 5px;
}

#about a {
  color: #ffbc95;
  font-size: 19px;
}

#about ul {
  color: #ffffff;
  font-size: 16px;
  margin: 5px;
}

.modal_box {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100%;
  padding: 32px;
}

.modal_scroll {
  flex-grow: 1;
  overflow-y: auto;
}

@media screen and (max-width: 550px) {
  #about {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transform: none;
    padding: 0;
    border-radius: 0px;
  }

  .logo img {
    width: 350px;
  }

  .uibox .logo {
    height: 95px;
  }

  .modal_box {
    padding: 16px;
  }
}

@media screen and (max-height: 500px) {
    .paper-page-gameOver .logo {
        display: none;
    }    
}

/* ------------------------------- */

.hide {
  display: none;
}
.show {
  display: block;
}

#paperio-site_multisize {
  position: absolute;
  text-align: center;
  top: 310px;
  width: 100%;
  z-index: 3;
}

#bottom {
  position: absolute;
  text-align: center;
  bottom: 0px;
  right: 0px;
  color: #202020;
  z-index: 5;
  background-color: white;
  padding: 4px;
  border-top-left-radius: 8px;
}

/*@media screen and (max-width: 700px) {*/
/*@media (min-height: 800px) {
    #bottom {
        display: none;
    }
}
*/

@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 {
    /*margin: 0;*/
    flex-wrap: wrap;
  }

  .nav {
    margin: 10px 0;
    flex-wrap: wrap;
  }

  .resultsimg {
    width: 75%;
  }

  #left_side,
  #right_side {
    display: none;
  }
}

.leaderboard {
  padding: 10px;
  margin: 0 0 10px 0;
  color: white;
}

.leaderboard h3 {
  color: #f4a836;
  font-size: 20px;
  text-align: center;
  padding: 0;
  margin: 0 0 10px 0;
  /*line-height: 26px;
    margin: 0;
    padding: 0;*/
}

.leaderboard ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.leaderboard li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.leaderboard li .lb_item_left {
  display: flex;
  align-items: center;
}

.leaderboard li .lb_item_left img {
  /*height: 16px;*/
}

.leaderboard li .title {
  color: gray;
  padding: 0 10px 0 5px;
}

.leaderboard li .player {
  color: white;
}

.leaderboard 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;
}

.leaderboard li .top1 {
  border-bottom: 3px solid #cfb85d;
  background: #edd77b;
}

.leaderboard li .top2 {
  border-bottom: 3px solid #9bb2cd;
  background: #c3d1e1;
}

.leaderboard li .top3 {
  border-bottom: 3px solid #9d7667;
  background: #bf9481;
}

.leaderboard li .extra {
  padding: 0 4px;
  width: auto;
}

.leaderboard li .empty {
  padding: 0;
  min-width: 20px;
  width: 20px;
  height: 18px;
  line-height: 18px;
  margin: 2px 5px 0 0;
}

.leaderboard li.extra_margin {
  margin-top: 18px;
}

#bottom a,
a:visited {
  color: #202020;
  text-decoration: none;
}

#overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: #000;
  z-index: 9;
  display: none;
}

#rotateOverlay {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgb(255, 255, 255);
  z-index: 10;
  display: none;
  flex-wrap: wrap;
  align-content: space-around;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

#lng {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 4;
  background: #fff;
  list-style-type: none;
  margin: 0;
  border: 0;
  padding: 4px 6px 4px 0;
  border-top-right-radius: 8px;
  display: inline;
}

#lng li {
  display: inline;
  padding: 4px 4px;
  background: #fff;
  cursor: pointer;
}

#lng li.active {
  background: #88f;
}

.noPadding {
  padding: 0 5px;
}

button img {
  display: block;
  margin-top: 1px;
  margin-left: auto;
  margin-right: auto;
}

.skins-container {
  display: flex;
  flex-direction: row;
  /*flex-wrap: nowrap;*/
  flex: 1;
  align-items: center;
  justify-content: center;
  user-select: none;
  height: 250px;
}

#skins {
  margin: 0px;
  box-shadow: 2px 2px 1px #333333;
}

#leaderboard {
  position: absolute;
  top: 20px;
  right: 0px;
  width: 230px;
  text-align: center;
  background-color: #fff;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  z-index: 999;
}

.leaderboardHeading {
  color: #000000;
  background-color: #959595;
  border-top-left-radius: 5px;
}

#scoreBoard {
  color: #404040;
  width: 100%;
  font-size: 16px;
}

.skin-descr {
  margin: 0px;
  background-color: azure;
  width: 100%;
  margin-top: 16px;
  height: fit-content;
  min-height: 30px;
  max-height: 70px;
  text-align: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.partSkinInfo {
  width: 50%;
  font-size: 13px;
}

.skin-nav {
  margin-top: 5px;
}

.detailsSkinInfo {
  display: flex;
  flex: auto;
}

.imgIconSkin {
  height: 35px;
}

.skin {
  margin: 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  padding: 5px;
  background: #4f4f4f;
  width: 100%;
  user-select: none;
  max-width: 200px;
  height: 200px;
}

@media (max-width: 420px),
  (max-height: 740px) and (max-width: 600px),
  (max-height: 320px) {
  #logo {
    height: 75px;
  }

  .logo img {
    width: 265px;
  }

  .uibox .logo {
    height: 75px;
  }

  @media (min-height: 360px) {
  }

  button {
    font-size: 22px;
  }

  .nav button {
    width: 100%;
    margin-left: 0px;
  }

  #menu {
    margin-left: 20px;
    margin-right: 20px;
  }

  .skins-container {
    margin-left: 5px;
    margin-right: 5px;
  }

  .skin-nav button {
    margin-left: 20px;
    margin-right: 20px;
  }

  #play {
    font-size: 35px;
  }
  #nick {
    font-size: 19px;
    line-height: 1.73;
    padding-left: 5px;
  }
  .results {
    font-size: 14px;
  }

  .uibox .tips {
    height: 50px;
  }
  .uibox .tip {
    font-size: 14px;
  }

  .skin-nav button {
    font-size: 18px;
  }

  .lvlInfoText {
    font-size: 13px;
  }

  button #menu {
    margin-bottom: 1px;
  }

  #expaBar {
    margin-bottom: 0px;
    transform: scale(0.7);
  }

  #progressSkillTypeIcon {
    width: 25px;
    height: 25px;
  }

  .lvlInfoText {
    margin-top: 0px;
  }

  .nav {
    margin-bottom: 0px;
  }

  .uibox .play {
    margin-bottom: 0px;
  }
}

#progressSkillTypeIcon {
  position: relative;
  margin: 0px;
  margin-bottom: -10px;
}

.skinIcon {
  height: 35px;
  position: relative;
  bottom: 10px;
  left: 10px;
  margin: 0px !important;
}
.skin-view {
  background: #d9e2e0;
  flex-grow: 1;
  min-height: 160px;
}

.skin-view img {
  display: block;
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
}

.skin-view h3 {
  margin: 0;
  text-align: center;
}

.partSkinInfo {
  text-align: center;
}

.partSkinInfo.good {
  background-color: #7fed4c;
}

.partSkinInfo.bad {
  background-color: #e74545;
}

#gddisplayad {
  height: 280px;
  width: 336px;
}

#adsBanner {
  margin-top: 20px;
  height: 280px;
  display: none;
  align-content: center;
  align-self: center;
  align-items: center;
  flex-direction: column-reverse;
  position: absolute;
  width: 100%;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  z-index: 100;
  overflow: auto;
}

#adsBannerSm {
  background-color: #4b0000;

  margin-top: 30px;
  display: flex;
  align-content: center;
  align-self: center;
  align-items: center;
  flex-direction: column-reverse;
  position: absolute;
  width: 100%;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  z-index: 100;
  overflow: auto;
}

#rightbanner {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 220px;
  height: 200px;
  z-index: 3;
  padding-top: 12px;
  padding-right: 12px;
  text-align: right;
  display: none;
}

#leftSideUI {
  position: absolute;
  left: 0px;
  top: 0px;
  padding: 10px;
  z-index: 6;
}

.feedback {
  top: 0;
  right: 0;
  padding-right: 10px;
  z-index: 2;
  color: #ff9b22;
  cursor: pointer;
}

.feedback:visited {
  color: #ff9b22;
}

#socialBtns {
  margin-bottom: 5px;
}

#socialBtns img {
  width: 97.7px;
}

a.shareBtn {
  background-color: #b92c13;
  display: inline-block;
  cursor: pointer;
  color: #000;
  font-size: 21px;
  padding: 6px 18px;
  text-decoration: none;
  margin-bottom: 10px;
  border: 3px solid;
  border-radius: 12px;
}

.shareBtn:hover {
  background-color: rgb(241, 80, 80);
}

#shareInvite {
  z-index: 4;
  position: fixed;
  box-sizing: border-box;
  left: 12px;
  top: 24px;
  width: 280px;
  padding-top: 5px;
  background-color: #fff;
  color: #000;
  left: 10px;
  top: 10px;
  padding-bottom: 6px;
  border-radius: 10px;
}

#shareInvite p {
  margin: 5px;
}

.shareInvite-text {
  text-align: center;
}

.inviteTitle {
  font-weight: 700;
  font-size: 22px;
  display: block;
  padding: 4px 4px 6px;
}

#shareLinkInput {
  width: 265px;
  height: 30px;
  font-size: 15px;
}

#shareInvite a {
  color: #000;
  background-color: #dadada;
  border-color: #a29e9e;
  display: block;
  padding: 2px;
  text-decoration: none;
  margin: 10px 10px 6px;
}

#shareInvite button {
  font-size: 24px;
  background-color: #f7f169;
  border-color: #c38c36;
}

#shareInvite .medCloseBtn {
  font-size: 20px;
}

.switchLeadBtn {
  font-size: 15px;
  background-color: #dadada;
  border-color: #a29e9e;
  text-align: center;
  width: 100%;
  margin: 0px;
}

#aipBranding {
  display: none !important;
}

@keyframes kf_slider {
  from {
    opacity: 0;
    pointer-events: none;
  }
  to {
    opacity: 1;
    pointer-events: auto;
  }
}
.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;
}

/* paper */

:root {
    --paper: #fff;
    --paperhl: #ddd;
    --ink: #a1a18d;
  }
  
  html,
  body,
  canvas {
    color: #fff;
  }
  
  .lowerPlayLine {
    max-width: 300px;
    margin-top: 5px;
  }
  
  .uibox {
    max-width: 1200px;
    width: 96%;
    text-align: center;
    position: relative;
  }
  
  label {
    min-width: 150px;
    padding: 3px;
  }
  
  .gameModes {
    margin: auto;
    margin-top: 1rem;
    width: 350px;
    max-width: 95vw;
  }
  
  .gameModesTabs {
    display: flex;
    flex: row auto;
    justify-content: stretch;
    width: 100%;
    opacity: 0.7;
    max-width: 95vw;
  }
  
  .gameModesTabs > * {
    background: var(--paper);
    border: 1px solid var(--ink);
    color: #666;
    padding: 5px;
    flex-grow: 1;
    cursor: pointer;
    min-width: 100px;
    text-align: center;
  }
  
  .gameModesTabs > .selected {
    border-bottom: 1px solid var(--paper);
  }
  
  .gameModePanel {
    background: var(--paper);
    border: 1px solid var(--ink);
    border-top: 1px solid var(--paper);
    color: #666;
    min-height: 130px;
    display: flex;
    flex: row;
    justify-content: center;
    padding: 10px;
    opacity: 0.7;
  }
  
  .gameModePanel > div {
    text-align: left;
  }
  
  .pvpTab > * {
    margin: 0;
  }
  
  .pvpTab > input,
  select {
    border: solid 1px var(--ink);
    padding: 3px;
    /*border-bottom: 6px solid var(--ink);*/
    width: 200px;
    box-sizing: content-box;
  }
  
  .pvpTab > h3 {
    font-size: smaller;
    padding: 0;
    margin-bottom: 0;
  }
  
  .soloTab :hover {
    background: rgba(0, 0, 0, 0.1);
  }
  
  .soloTab > div {
    cursor: pointer;
    padding: 3px;
    border: solid 1px var(--ink);
  }
  
  .soloTab > .selected {
    background: var(--ink);
    color: var(--paper);
  }
  
  .soloTab {
    width: 100%;
  }
  
  .currentMode {
    text-decoration: underline;
  }
  
  .sound-button {
    cursor: pointer;
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 1rem;
    height: 1rem;
    border-radius: 1rem;
    /*background: #fff;*/
    border: solid #fff 0.1rem;
    padding: 0.4rem;
    padding-top: 0.5rem;
  }
  
  /*.sound-button.off {
    filter: opacity(50%);
  }*/
  
  .testContext {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100px;
    height: 100px;
    display: none;
  }
  
  .lock,
  .newSkin {
    font-size: 20px;
    position: relative;
    height: 0;
    width: 0;
    right: 0;
    -webkit-text-stroke: 1px #000;
  }
  
  .newSkin {
    font-size: 70%;
    text-shadow: 0px 0px 2px #000000;
    text-align: center;
    width: 100%;
  }
  
  .paper-view {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .paperSkins {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #4f4f4f;
    border-radius: 1rem;
    padding: 0.5rem;
    /** Место для левого блока рекламы и ссылок */
    /*margin-left: 220px;*/
    margin: 1rem;
    margin-bottom: 3rem;
  }
  
  .paperSkins button {
    margin: 2px;
  }
  
  .paperSkinsButtons > * {
    padding: 5px;
    color: white;
    text-shadow: 0px 0px 3px gray;
  }
  
  .paperSkinsButtons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #d9e2e0;
    border-radius: 1rem;
    padding: 0.5rem;
  }
  
  .videoIcon {
    height: 0.8em;
    margin-right: 0.5em;
  }
  
  .respawnButton {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    margin: 0;
  }
  
  .debrief-buttons button {
    font-size: 180%;
  }
  
  img.resultsimgimg {
    height: 100px;
    width: auto;
    margin-left: 1rem;
  }
  
  .uibox .logo {
    height: auto;
  }
  
  .closeMark {
    position: relative;
    width: 100%;
    text-align: right;
    height: 0;
  }
  
  .skinsPage {
    max-height: 100vh;
    margin: 0 auto;
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  .skinsHeader {
    font-size: 2rem;
    font-weight: 900;
    align-content: center;
    /*-webkit-text-stroke: 2px;
    -webkit-text-stroke-color: #000;*/
  }
  
  .gameOverReason {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    font-size: 200%;
    text-shadow: 0px 0px 2px #000000;  
  }
  
  #exitSkins {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    margin: 0;
    padding: 0rem 0.5rem;
    text-align: center;
    font-size: 2rem;
  }
  
  .inviteLink {
    position: fixed;
    top: 0;
    right: 0;
    text-align: right;
    padding: 10px;
    z-index: 4;
  }
  
  .inviteLink input {
    width: 100%;
    margin-top: 10px;
    padding-left: 5px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  
  #leaderboardsButton {
    font-size: 14px;
  }
  
  .darken {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
  }
  
  .leaderboardPage {
    max-width: 700px;
    margin: 0 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
  }
  
  .leaderboardPage button {
    font-size: 20px;
    height: 36px;
  }
  
  .leaderboardPage .buttons {
    display: flex;
    justify-content: center;
  }
  
  .leaderboardsSidebySide {
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: flex-start;
  }
  
  .leaderboard {
    margin: 10px;
  }
  
  .leaderboard th {
    text-align: center;
    padding-bottom: 5px;
    color: #00d095;
    font-size: 22px;
  }
  
  .leaderboard td {
    border-collapse: collapse;
  }
  
  .leaderboard .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;
  }
  
  .leaderboard .top1 {
    border-bottom: 3px solid #cfb85d;
    background: #edd77b;
  }
  
  .leaderboard .top2 {
    border-bottom: 3px solid #9bb2cd;
    background: #c3d1e1;
  }
  
  .leaderboard .top3 {
    border-bottom: 3px solid #9d7667;
    background: #bf9481;
  }
  
  .leaderboard .record {
    color: gray;
    padding: 0 10px 0 5px;
    text-align: left;
  }
  
  .leaderboard .own-record {
    color: #fff;
    padding: 0 10px 0 5px;
    text-align: left;
  }
  
  label {
    display: inline-block;
  }
  
  input {
    width: auto;
    display: inline-block;
  }
  
  .game-notification {
    border: 5px solid;
    position: absolute;
    left: 25%;
    width: 50%;
    top: 1em;
    margin: 1em;
    border: none;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.75);
    text-align: center;
    z-index: 10;
    display: none;
    border-radius: 0.5rem;
  }
  
  .game-notification table {
    width: 100%;
  }
  
  .game-notification td {
    text-align: center;
  }
  
  .game-notification .game-notification-title {
    width: 100%;
  }
  
  .game-notification-left {
    max-width: 200px;
  }
  
  .game-notification-compact {
    position: absolute;
    bottom: 1em;
    color: #fff;
    text-align: center;
    z-index: 20;
    display: none;
  }
  
  .game-notification-compact span {
    text-shadow: 2px 2px 2px #000000;
  }
  
  .game-notification-compact-main {
    display: flex;
    align-content: center;
  }
  
  .game-notification-compact-main span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0rem 1rem;
  }
  
  .game-notification-compact img,
  .game-notification-compact canvas {
  }
  
  @keyframes game-notification-fade {
    0%,
    100% {
      opacity: 0;
      transform: translateY(-5rem);
    }
    15%,
    85% {
      opacity: 1;
      transform: translateY(0rem);
    }
  }
  
  @keyframes game-notification-scroll {
    0% {
      opacity: 0;
      transform: translateX(90vw);
    }
    10%,
    90% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      transform: translateX(-90vw);
    }
  }
  
  #footer {
    position: fixed;
    bottom: 0;
    left: 0;
    color: #000;
  }
  
  #game {
    z-index: 1;
  }
  
  .stars {
    font-size: 1.5rem;
  }
  
  .achievements {
    position: relative;
    display: grid;
    grid-gap: 3px;
    overflow-y: hidden;
    overflow-x: hidden;
    width: 100%;
    margin-top: 3px;
  }
  
  .achievementDescription {
    cursor: default;
    font-size: small;
    text-align: center;
    color: black;
    padding: 5px;
    height: 3rem;
    background-color: var(--paper);
    border-radius: 0.5rem;
    /*border-bottom: 6px solid var(--ink);*/
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
  }
  
  .achievementDescriptionImage > img {
    height: 2rem;
    width: auto;
  }
  
  .achievementDescriptionImage {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .achievementDescriptionIcon img {
    max-height: 2.5rem;
  }
  
  .achievementDescriptionIcon {
    display: inline;
  }
  
  .achievementDescriptionText {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    width: 100%;
  }
  
  .play {
    flex-direction: row;
    flex-wrap: nowrap;
  }
  
  .skinButton {
    padding: 5px;
  }
  
  @media screen and (max-width: 800px) {
    .paperSkins {
      margin-left: auto;
    }
  }
  
  .popupBackground {
    position: absolute;
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10;
  }
  
  .popup {
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border-radius: 1rem;
    border: solid 2px black;
    background: #fff;
    color: #000;
    padding: 0.5rem;
    text-align: center;
  }
  
  .popup button {
    font-size: 1rem;
    padding: 0.5rem;
    width: 15rem;
  }
  
  .popup .text {
    padding: 1rem;
  }

/* cyrillic-ext */
@font-face {
  font-family: 'PT Sans Caption';
  font-style: normal;
  font-weight: 700;
  src: url(cext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'PT Sans Caption';
  font-style: normal;
  font-weight: 700;
  src: url(c.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'PT Sans Caption';
  font-style: normal;
  font-weight: 700;
  src: url(lext.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'PT Sans Caption';
  font-style: normal;
  font-weight: 700;
  src: url(l.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}  