button {
  border: 0;
  background: 0;
  padding: 0;
  cursor: pointer;
}

body,
section,
div {
  box-sizing: border-box;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

li {
  box-sizing: border-box;
}

body {
  padding: 0;
  background: var(--background);
  margin: 0;
}

body {
  background: var(--background);
}

html {
  /*---Colors---*/
  --white: #ffffff;
  --black-1: #000;
  --black: #2d2d2d;
  --gray: #f5f8fa;
  --gray-1: #585858;
  --lightgray: #777777;
  --lightgray-1: #a0a0a0;
  --lightgray-2: #e0e1e2;
  --background: #f4f5f9;
  --red: #2E2D2C;
  --blue: #2a7fff;
  /*---Fonts---*/
  --h1: 700 72px/75px "Roboto";
  --h2: 700 24px/28px "Roboto";
  --button: 700 18px/normal "Roboto";
  --h3: 700 18px/normal "Roboto";
  --p: 400 16px/24.9px "Roboto";
  --header-text: 500 20px/20px "Roboto";
  --footer-text: 400 16px/30px "Roboto";
}

h1,
h2,
p,
a,
li {
  padding: 0;
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--black);
}

h1 {
  font: var(--h1);
  letter-spacing: 0.8px;
}

h2,
.h2 {
  font: var(--h2);
  letter-spacing: 0.6px;
}

h3 {
  font: var(--h3);
  letter-spacing: 0.6px;
}

p {
  font: var(--p);
  color: var(--black);
  text-align: justify;
}

a {
  color: var(--white);
  text-decoration: none;
  display: inline-block;
}

.footer-text {
  font: var(--footer-text);
  color: var(--white);
}

@media screen and (max-width: 1359px) {
  html {
    --h1: 600 54px/56px "Roboto";
    --h2: 600 22px/23px "Roboto";
  }
}

@media screen and (max-width: 650px) {
  html {
    --h1: 600 28px/30px "Roboto";
    --h2: 600 18px/20px "Roboto";
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.scroll-lock {
  overflow: hidden;
}

.wrapper {
  max-width: 1330px;
  padding: 0 15px;
  margin: 0 auto;
}

.container {
  padding: 15px;
  background: var(--white);
  border-radius: 8px;
  margin-bottom: 50px;
  box-shadow:0 0 1px 0 rgba(25,27,35,.16),0 1px 2px 0 rgba(25,27,35,.12);
}

.container>p>img,
.container>img {
  width: 100%;
  height: auto;
}

header {
  background: #121212;
  padding: 30px 0;
}

header .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo img {
  height: auto;
  width: auto;
  display: block;
}

.header__nav {
  display: flex;
}

.header__nav a {
  color: #fff;
  padding: 10px 19px;
  margin-left: 5px;
  font: var(--header-text);
  border-radius: 5px;
  font-size: 22px;
}

.header__burger {
  display: none;
}

.header__nav a:hover {
  background-color:#fe5a3f;
  color: var(--white);
}

.ads {
  padding: 16px 15px;
  display: flex;
  background: var(--white);
}

.ads__adplace {
  width: 970px;
  height: 250px;
  margin: 0 auto;
}

main {
  margin-top: 50px;
}

.chart-container {
  padding-top: 80px;
  padding-bottom: 80px;
  background: #2E2D2C;
}

.chart__wrapper {
  height: 350px;
  margin-top: 100px;
}

.chart__title {
  font-size: 60px;
  line-height: 60px;
  color: var(--white);
  text-align: center;
  margin-bottom: 15px;
}

.chart__subtitle {
  text-align: center;
  color: var(--white);
  font-size: 26px;
  letter-spacing: 1.5px;
}

.splitted-content {
  display: grid;
  grid-template-columns: 1fr 330px;
  column-gap: 30px;
}

.faq-grid {
    display: grid;
    padding-top: 60px;
    padding-bottom: 90px;
    background: white;
    padding-right: 40px;
    padding-left: 40px;
    box-shadow: 0 0 1px 0 rgba(25,27,35,.16), 0 1px 2px 0 rgba(25,27,35,.12);
    margin: 40px 0;
}

.faq-card h2 {
  margin-bottom: 30px;
}

.game__title {
  text-align: center;
  margin-top: 28px;
  margin-bottom: 15px;
  font-weight: 900;
}

.game__subtitle {
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: 4px;
}

.game__counters {
  display: grid;
}

.game__counters {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr 1fr;
}

.counters__group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 40px;
  margin: 0 auto;
}

.counters__counter {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.counters__counter p:first-of-type {
  width: 100px;
  height: 100px;
  border: 1px solid var(--lightgray);
  font-size: 45px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 7px;
  font-weight: 700;
}

.counters__seconds-counter {
  position: relative;
  width: fit-content;
  justify-self: center;
  margin-right: 38px;
}

.counters__seconds-counter p:first-of-type {
  border: 0;
}

.counters__seconds-counter svg {
  position: absolute;
  left: -5px;
  top: -5px;
}

.game__text-container {
  position: relative;
  max-width: 820px;
  height: 100px;
  margin: 0 auto;
  margin-top: 90px;
  margin-bottom: 90px;
}

.game__text-holder {
  width: 100%;
  height: 100%;
  font-weight: 400;
  font-size: 30px;
  position: relative;
  display: flex;
  border: 0 solid #d4d4d7;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.12), 0 9px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  border-radius: 6px;
  padding:60px;
}

#inputZone {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

#typedText,
#needToTypeText {
  white-space: nowrap;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
}

#typedText {
  text-align: right;
  right: 59%;
}

#needToTypeText {
  text-align: left;
  left: calc(40.5% + 5px);
}

.printed {
  color: var(--lightgray-1);
}

.isPrinting {
  color: var(--blue);
}

#typeCoursor {
  position: absolute;
  left: 41%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 50px;
  width: 1px;
  background-color: black;
}

#typeCoursor.blink {
  animation: blink-animation 1.3s steps(2, start) infinite;
}

#typeCoursor.deactivate {
  display: none;
}

.endgame-popup {
  position: fixed;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  left: 0;
  top: 0;
  z-index: 2;
  opacity: 0;
  overflow: scroll;
  visibility: hidden;
  pointer-events: none;
  padding: 100px 15px;
  overflow: auto;
}

.endgame-popup::after {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.endgame-popup.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.endgame-popup__wrapper {
  z-index: 2;
  max-width: 890px;
  width: 100%;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: fit-content;
}

.endgame-popup__main-container {
  display: grid;
  background: var(--white);
  padding: 75px;
  grid-template-columns: min-content 1fr;
  grid-template-rows: min-content 1fr;
  background-color: #ffffff;
  column-gap: 20px;
  max-width: 1200px;
  margin: auto;
}
.endgame-popup__main-container.share {
  max-height: auto;
}

.endgame-popup__image {
  grid-column: 1/2;
  grid-row: 1/3;
}

.endgame-popup__uptitle {
  background: var(--red);
  border: 10px;
  padding: 10px;
  color: var(--white);
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  display: block;
  width: fit-content;
  border-radius: 10px;
  margin-bottom: 30px;
}

.endgame-popup__title {
  margin-bottom: 15px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.01px;
}

.endgame-popup__title span {
  font-size: 42px;
  font-weight: 900;
}

.main-container__content {
  width: 100%;
}

.endgame-popup__scores {
  margin: 20px 0 30px 0;
  padding: 30px 10px;
  display: flex;
  justify-content: space-between;
  border: 2px solid var(--lightgray-2);
  border-left: 0;
  border-right: 0;
}

.scores__score {
  display: flex;
  flex-direction: column;
}

.scores__score p {
  font-weight: 700;
}

.scores__score p:first-of-type {
  line-height: 1;
  color: var(--gray-1);
  margin-bottom: 15px;
  font-size: 18px;
}

.scores__score p:last-of-type {
  font-size: 20px;
}

.scores__score span {
  font-size: 38px;
  padding-right: 7px;
}

.endgame-popup__share {
  display: flex;
  column-gap: 20px;
  width: fit-content;
  align-items: center;
}

.endgame-popup__share a {
  display: block;
  width: fit-content;
  align-items: center;
}

.endgame-popup__share a:hover {
  opacity: 0.7;
}

.endgame-popup__share a:focus {
  opacity: 0.3;
}

.share__title {
  font-size: 24px;
  white-space: nowrap;
  padding: 15px 30px;
  font-weight: 700;
  background: white;
  border-radius: 7px;
  border: 1px solid var(--lightgray-2);
  display: none;
}

.share__title.active {
  display: block;
}

.share__title:hover {
  font-size: 24px;
  white-space: nowrap;
  padding: 15px 30px;
  font-weight: 700;
  background: #fe5a3f;
  border-radius: 7px;
  color: var(--white);
 
  
}


#endgame-popup__close {
  position: absolute;
  top: 20px;
  right: 20px;
}

#endgame-popup__close:hover {
  opacity: 0.8;
}

#endgame-popup__close:focus {
  opacity: 0.5;
}

.endgame-popup__footer {
  padding: 50px;
  max-width: 1200px;
  margin: auto;
}

.endgame-popup__main-container {
  position: relative;
}

.endgame-popup__main-logo {
  position: absolute;
  bottom: 20px;
  right: 30px;
}

.endgame-popup__footer.btns {
  background: #fff;
  margin-top: 30px;
  border-radius: 15px;
  margin-bottom: 40px;
}

.at-image-sharing-tool.addthis-animated {
  display: none;
}


.button {
  background: var(--black);
  border: 10px;
  padding: 13px 45px;
  color: var(--white);
  font-size: 20px;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

.button:hover {
  opacity: 0.8;
}

.button:focus {
  opacity: 0.5;
}

#startTypingIndicator {
  position: absolute;
  left: 41%;
  top: -15px;
  transform: translateX(-50%);
  background-color: var(--red);
  border-radius: 5px;
  padding: 2px 19px;
  animation: pulse 1.2s infinite ease-out;
  display: none;
  color: var(--white);
}

#startTypingIndicator:after {
  position: absolute;
  content: "";
  border-style: solid;
  border-width: 7px 5px 0;
  border-color: var(--red) transparent transparent;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}

#startTypingIndicator.active {
  display: block;
}

#capsLockAlert {
  position: absolute;
  right: 15px;
  top: -30px;
  display: flex;
  align-items: center;
  gap: 5px;
  display: none;
}

#capsLockAlert p {
  color: var(--red);
}

#capsLockAlert.active {
  display: flex;
}

.addthis_toolbox {
  display: flex;
}

.at-share-btn {
  margin: 0 !important;
  border: 2px solid black !important;
  background-color: #fff !important;
  border-radius: 100% !important;
  height: 60px !important;
  width: 60px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-right: 10px !important;
  padding: 0 !important;
}

.at-icon-wrapper {
  height: 48px !important;
  width: 48px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  background-color: transparent !important;
  border-radius: 100% !important;
}

.at-icon {
  width: 40px !important;
  height: 40px !important;
  fill: #000 !important;
}

.at-share-btn-elements {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 20px;
}

@keyframes pulse {
  0% {
    transform: translateY(0) translateX(-50%);
  }

  50% {
    transform: translateY(-1rem) translateX(-50%);
  }

  100% {
    transform: translateY(0) translateX(-50%);
  }
}

@keyframes blink-animation {
  to {
    visibility: hidden;
  }
}

footer {
  position: relative;
  background-color:#424242;
  padding: 30px 0;
  margin: 40px 0 0 0;
}

footer .wrapper {
  display: flex;
  justify-content: space-between;
}

.footer__links {
  display: flex;
  margin-left: 30px;
}

.footer__links a {
  padding: 0 15px;
  position: relative;
}

.footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 15px;
  width: 2px;
  background-color: var(--white);
}

.footer__links a:hover {
  color: var(--white);
}

.footer__links li:first-child a:after {
  display: none;
}

.banner-v {
  aspect-ratio: 600/300;
  width: 100%;
  height: auto;
}



@keyframes rotate {
  0% {
    transform: scale(0.5) rotate(179deg);
  }

  75% {
    transform: scale(1.1) rotate(0deg);
  }

  100% {
    transform: scale(1);
  }
}

@media screen and (max-width: 1599px) {
  .wrapper {
    max-width: 1310px;
    /* 1280 + 30 padding px */
  }
}

@media screen and (max-width: 1359px) {
  .wrapper {
    max-width: 1260px;
    /* 1230 + 30 padding px */
  }
}

@media screen and (max-width: 1024px) {
  .scroll-lock {
    overflow: hidden;
  }

  body {
    padding-top: 82px;
  }

  .wrapper {
    padding: 0 30px;
  }

  header {
    padding: 25px 0;
  }

  .header__logo img {
    width: 300px;
    height: auto;
  }

  header .wrapper {
    flex-direction: column;
  }

  header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 3;
  }

  .header__burger {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    width: 23px;
    height: 23px;
    cursor: pointer;
    display: flex;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
  }

  .header__burger span {
    position: relative;
    width: 100%;
    height: 3px;
    background: var(--red);
    transition: 0.25s linear;
  }

  .header__burger span::after,
  .header__burger span::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 7px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--red);
    transition: 0.25s linear;
  }

  .header__burger span::before {
    top: -7px;
  }

  .header__burger.active span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .header__burger.active span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .header__burger.active span {
    background: transparent;
  }

  header nav {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s linear;
  }

  header nav.active {
    opacity: 1;
    visibility: visible;
  }

  .header__nav {
    max-width: 270px;
    width: 100%;
    height: calc(100% - 82px);
    flex-direction: column;
    background-color: var(--blue);
    overflow: auto;
    position: relative;
    transform: translate(-100%, 0);
    transition: 0.25s linear;
    padding: 30px;
  }

  .header__nav a {
    color: var(--white);
  }

  .adblock {
    display: none;
  }




  nav.active .header__nav {
    transform: translate(0, 0);
  }

  .header__nav a {
    padding: 15px 15px;
    margin-left: 17px;
  }

  .splitted-content {
    display: flex;
    flex-direction: column;
  }

  .chart__title {
    font-size: 40px;
    line-height: 40px;
    margin-bottom: 5px;
  }

  .chart__subtitle {
    font-size: 20px;
  }

 

  footer .wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__links {
    margin-top: 20px;
  }

  footer>.wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
  }

  .footer__intro {
    margin-bottom: 50px;
  }

  .footer__navigation {
    max-width: 530px;
    width: 100%;
  }

  .footer__navigation h2 {
    text-align: center;
  }

  .footer__intro {
    text-align: center;
  }

  .navigation__container ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .navigation__container li {
    width: fit-content;
  }

  footer {
    margin-top: 0;
  }

  .ads {
    display: none;
  }

  .footer__links a::after {
    display: none;
  }

  .footer__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-left: 0;
  }

  .footer__links a {
    padding: 0;
    width: 100%;
  }

  .endgame-popup__wrapper {
    max-width: 700px;
  }

  .footer__links li:nth-child(2n) a {
    text-align: right;
  }

  .endgame-popup__title {
    text-align: center;
  }

  .endgame-popup__share {
    padding-left: 0;
    text-align: center;
  }

  .endgame-popup__share {
    margin: 0 auto;
  }

  .endgame-popup__uptitle {
    margin-left: auto;
    margin-right: auto;
  }

  .main-container__content {
    padding: 0;
  }

  .share__title {
    text-align: center;
  }

  .endgame-popup__main-container {
    grid-template-columns: 1fr;
    padding: 90px 30px 30px 30px;
  }

  .endgame-popup__image {
    grid-column: 1/2;
    grid-row: 2/3;
    margin: 0 auto;
    margin-bottom: 20px;
    max-width: 330px;
    width: 100%;
    height: auto;
  }

  .endgame-popup__footer {
    padding: 20px;
  }

  .game__subtitle {
    letter-spacing: 1px;
  }

  .endgame-popup__main-logo {
    bottom: 14px;
    width: 140px;
    height: auto;
  }
}

@media screen and (max-width: 650px) {

  h1,
  h2,
  h3 {
    text-align: center;
  }

  body {
    padding-top: 67px;
  }

  .wrapper {
    padding: 0 15px;
  }

  .header {
    padding: 20px 0;
  }

  .header__logo img {
    width: 300px;
    height: 48px;
  }

  .container {
    margin-bottom: 15px;
  }

  .chart__title {
    font-size: 28px;
    line-height: 30px;
    margin-bottom: 5px;
  }

  .chart__subtitle {
    font-size: 18px;
    letter-spacing: 1px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .game__counters {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
  }

  .counters__group {
    column-gap: 15px;
  }

  .counters__seconds-counter {
    margin-right: 0;
    margin-top: 28px;
  }

  .counters__counter:not(.counters__seconds-counter) p:first-of-type {
    width: 70px;
    height: 70px;
    font-size: 32px;
  }

  .counters__counter:not(.counters__seconds-counter) p {
    white-space: nowrap;
  }

  #typedText,
  #needToTypeText {
    font-size: 20px;
  }

  #typeCoursor {
    height: 25px;
  }

  .game__text-container {
    height: 80px;
    margin-top: 50px;
  }

  #needToTypeText {
    left: calc(40.5% + 2px);
  }

  footer p {
    text-align: center;
  }

  .endgame-popup__title {
    font-size: 32px;
    line-height: 1.1;
  }

  .button {
    padding: 10px 22px;
    font-size: 20px;
    line-height: 25px;
  }

  .endgame-popup__share img {
    width: 50px;
    height: auto;
  }

  .endgame-popup__main-container {
    padding: 50px 30px 20px 30px;
  }

  #endgame-popup__close {
    top: 10px;
    right: 10px;
  }

  #endgame-popup__close img {
    width: 40px;
    height: auto;
  }

  .endgame-popup__share {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 20px;
    justify-items: center;
  }

  .endgame-popup__share p:first-child {
    grid-column: 1/4;
  }

  .endgame-popup__scores {
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .scores__score {
    margin: 20px 20px;
  }

  .scores__score p {
    text-align: center;
  }

  .chart__wrapper {
    margin-top: 50px;
  }

  .endgame-popup {
    padding-bottom: 0;
  }

  .addthis_inline_share_toolbox {
    grid-column: 1/4;
  }

  .endgame-popup__main-container {
    justify-content: center;
  }

  .endgame-popup__share {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .addthis_toolbox {
    flex-wrap: wrap;
    justify-content: center;
  }
}

