@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
  margin: 0;
  text-align: center;
  font-family: 'Press Start 2P', cursive;
  user-select: none;
  overflow: hidden;
}
header {
  margin: 0 auto;
  width: 431px;
}
h1 {
  background: url("/tensor/sabynews/interactivity/flappy/img/main.png") 10% 340px;
  padding: 1.2rem 0;
  margin: 0;
}
.score-container {
  display: flex;
  justify-content: space-between;
  padding: 8px 6px;
  background: #67ceff;
}


* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
.t-width.t-width_100 {
  position: relative;
}
/* .body2 {
  height: 100vh;
  display: flex;
  background: #fff;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
} */

.picknick_image{
  /* opacity: 0; */
  display: none;
  max-height: 100vh;
  max-width: 100vw;
}
.finish {
  position: absolute;
  width: 290px;
  height: 110px;
  max-width: 31%;
  max-height: 15%;
  background: red;
  bottom: 0;
  border-radius: 0 100% 0 0;
}
.memory-game {
  width: auto;
  height: auto;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  perspective: 1000px;
}
/* .memory-game .mite {
  position: absolute;
} */
.memory-card {
  width: calc(25% - 10px);
  height: calc(33.333% - 10px);
  margin: 5px;
  position: relative;
  transform: scale(1);
  transform-style: preserve-3d;
  transition: transform .5s;
  -webkit-transform: scale(1);
  -webkit-transform-style: preserve-3d;
  -webkit-transition: transform .5s;
  box-shadow: 2px 2px rgba(0, 0, 0, .3);
  border-radius: 5px;
}

.memory-card:active {
  transform: scale(0.97);
  transition: transform .2s;
  -webkit-transform: scale(0.97);
  -webkit-transition: transform .2s;
}

.memory-card.flip {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.front-face,
.back-face {
  width: 100%;
  height: 100%;
  padding: 0px;
  position: absolute;
  border-radius: 5px;
  border-color: transparent;
  background: #76d7d7;
  backface-visibility: hidden;
}

.front-face {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.memory-game-over {
  object-fit: contain;
  transform: rotateY(90deg);
  -webkit-transform: rotateY(90deg);
  margin: 0px -10px;
  position: absolute;
  z-index: 15;
  background-image: url('/tensor/sabynews/interactivity/flappy/img/final_modal.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  display: none;
  width: 700px;
  height: 530px;
  max-width: 100vw;
  max-height: 60vh;
  top: calc(50% - 265px);
  left: calc(50% - 350px);
}
.memory-game-end{
  /* object-fit: contain; */
  margin: 0px -10px;
  position: absolute;
  z-index: 16;
  background-image: url('/tensor/sabynews/interactivity/flappy/img/died.png');
  width: 70%;
  height: 48%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  max-width: 414px;
  max-height: 293px;
  display: none;
}

#play-button-span {
  cursor: pointer;
}

.memory-game-end p {
  position: absolute;
  width: 161px;
  height: 60px;
  top: calc(50% - 20px);
  left: calc(50% - 40px);
  color: #3A3A3A;
}
.memory-game-end #play-button-span {
  color: #0c94ff;
}
.memory-game-end .play-button {
  position: absolute;
  bottom: 5%;
  right: 0;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 23px;
  justify-content: space-between;
}
.game-over-revert {
  z-index: 10;
  transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
  transition: transform 1.5s;
  -webkit-transition: transform 1.5s;
}

.result-text {
  width: 41%;
  font-size: 32px;
  font-weight: 400;
  left: 25px;
  position: absolute;
  top: 230px;
}

.result-text-raiting {
  width: 41%;
  height: 57px;
  font-size: 32px;
  font-weight: 400;
  left: 38px;
  position: absolute;
  top: calc(50% + 90px);
}

.result-seconds {
  padding: 10px;
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  border-radius:5px;
  color: white;
  position: absolute;
  top: 27.7%;
  right: 3.5%;
}

.result-card-block {
  position: absolute;
  font-size: 16px;
  font-weight: 400;
}

.rating-block {
  display: flex;
  flex-direction: row;
  position: absolute;
  top: 63%;
  width: 100%;
  padding: 0 28px;
}

.rating-column {
  display: flex;
  flex-direction: column;
  width: 50%;
  padding: 10px 28px;
  font-size: 14px;
}

.rating-row {
  text-align: start;
  display: flex;
  flex-direction: row;
  padding: 12px 0px;
  justify-content: space-between;
}

.rating-row span {
  height: 13px;
}

.nickname {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}

.rating-result {
  width: 55px;
  min-width: 55px;
  text-align: right;
}

.play-again-text {
  margin-right: 30px;
  bottom: 19px;
  position: absolute;
  right: 0;
}

.half-opacity {
  /* opacity: 0.5; */
}

.full-opacity {
  opacity: 1 !important;
}

.d-none {
  display: none !important;
}

.bold-text {
  font-weight: bold;
}

.input-nickname-block {
  z-index: 15;
  height: 100%;
  max-height: 768px;
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.input-nickname-card {
  width: 70%;
  height: 48%;
  border-radius: 5px;
  border-color: transparent;
  background-color: transparent;
  background-image: url('/tensor/sabynews/interactivity/flappy/img/start_modal.png');
background-repeat: no-repeat;
  background-size: 100% 100%;
  max-width: 414px;
  max-height: 293px;
  opacity: 1 !important;
  border-radius: 10px;
  position: relative;
}

.input-nickname-card input {
  width: 100%;
  height: 25px;
  margin-top: 10px;
  margin-bottom: 10px;
  border-color: transparent;
  font-family: 'Press Start 2P';
  border-radius: 3px;
  background: #3a3a3a;
}
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #3a3a3a inset;
  transition: background-color 5000s ease-in-out 0s;
}
.input-nickname-card input:focus-visible {
  outline: none;
}

.nickname-text {
  display: flex;
  flex-direction: column;
  width: calc(50% - 27px);
  position: absolute;
  top: 58%;
  left: 45%;
}

.nickname-text span{
  font-size: 16px;
  font-weight: 400;
  user-select: none;
}

.warning-text {
  font-size: 12px !important;
  text-align: center;
  margin-bottom: 5px;
}

.play-button {
  width: 100%;
  text-align: right;
}

.play-button span:hover {
  cursor: pointer;
  color: rgb(69, 68, 68);
}



/*--таймер-*/
/* Устанавливаем высоту и ширину контейнера */
.base-timer {
  position: relative;
  height: 131px;
  width: 131px;
}

.base-timer__svg {
  transform: scaleX(-1);
}

.base-timer__circle {
  fill: none;
  stroke: none;
}

.base-timer__path-elapsed {
  stroke-width: 7px;
  stroke: #CECECE;
}

.base-timer__path-remaining {
  stroke-width: 7px;
  stroke-linecap: round;
  transform: rotate(90deg);
  transform-origin: center;
  transition: 1s linear all;
  fill-rule: nonzero;
  stroke: currentColor;
}

.base-timer__path-remaining.green {
  color: #708B00;
}

.base-timer__path-remaining.orange {
  color: #FFA500;
}

.base-timer__path-remaining.red {
  color: #FF6A6A;
}

.base-timer__label {
  position: absolute;
  width: 130px;
  height: 130px;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 600;
  color: #838383;
}
#timerBlock {
  position: absolute;
  right: 0;
  background: #fff;
  border-radius: 65px;
}


@media(max-width: 650px) {
  .memory-game-over{
      height: 100%;
      background-image: url('/tensor/sabynews/interactivity/flappy/img/final_modal_modile.png');
  }
  .rating-block {
      top: 55%;
      width: 100%;
      flex-direction: column;
  }
  .nickname-text span {
      font-size: 13px;
  }
  .nickname-text {
      top: 41%;
  }
  .result-text {
      font-size: 22px;
  }
  .result-text-raiting {
      height: 57px;
      font-size: 22px;
  }

  .rating-row {
      padding: 10px 0px;
  }
  .rating-row span {
      font-size: 13px;
      height: 15px;
  }
  .rating-column {
      width: 100%;
      padding: 0 10px 0 10px;
  }

}

@media(max-width: 460px) {
  .input-nickname-card {
      height: 34%;
  }
  .memory-game .bee,
  .memory-game .mite {
      height: 30px;
  }
  .memory-game-end, 
  .memory-game-end-bee{
      width: 90%;
      height: 42%;
  }
  .memory-game-end p {
      font-size: 14px;
  }
  .base-timer {
      height: 110px;
      width: 110px;
  }
  .base-timer__label {
      width: 110px;
      height: 110px;
      font-size: 36px;
  }
  .nickname-text span {
      font-size: 10px;
      width: 110%;
  }
  .nickname-text {
      top: 41%;
  }
  .input-nickname-card input {
      margin-top: 5px;
      margin-bottom: 5px;
      width: 114%;
      font-size: 11px;
      height: 20px;
  }
  .warning-text {
      font-size: 10px !important;
  }
  .result-text {
      font-size: 18px;
  }
  .result-text-raiting {
      font-size: 18px;
  }
  .result-seconds {
      padding: 7px;
      font-size: 20px;
  }
  .rating-block {
      top: 60%;
      font-size: 12px;
  }
  .rating-row {
      padding: 7px 0px;
  }
  .rating-column {
      padding: 0 0 0 10px;
  }
  .play-again-text {
      margin-right: 13px;
      bottom: 9px;
      font-size: 12px;
  }
  .rating-row span {
      font-size: 10px;
      height: 12px;
  }
  .rating-result {
      width: 95px; 
  /*width: -webkit-fill-available;*/
  min-width: unset;
  
  }

}

@media screen and (max-width: 320px) {
  .nickname-text span {
      font-size: 8px;
      width: 120%;
  }
  .nickname-text {
      top: 41%;
      left: 53%;
  }
  .input-nickname-card input {
      margin-top: 5px;
      margin-bottom: 5px;
      font-size: 8px;
      height: 12px;
  }
  .warning-text {
      font-size: 8px !important;
      margin-bottom: 0px;
      margin-top: -3px;
  }
  .result-text {
      font-size: 12px;
  }
  .result-text-raiting {
      font-size: 12px;
      top: 52%;
  }
  .result-seconds {
      padding: 7px;
      font-size: 12px;
  }
  .rating-block {
      top: 58%;
      font-size: 8px;
  }
  .rating-row {
      padding: 3px 0px;
  }
  .rating-column {
      padding: 10px 0px 10px 10px;
  }
  .play-again-text {
      margin-right: 7px;
      bottom: 6px;
      font-size: 8px;
  }
  .rating-row span {
      width: auto;
      font-size: 8px;
      height: 10px;
  }
  .rating-result {
      width: 85px;
  }

}

