@font-face {
  font-family: myfont2;
  src: url("font.ttf");
}

@keyframes anim228 {
   0% {
     filter: brightness(100%);
   }
   50% {
     filter: brightness(150%);
   }
   100% {
     filter: brightness(100%);
   }
 }

html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: black;
    font-family: myfont2, sans-serif;
	touch-action: none;
	-ms-touch-action: none;
	-webkit-touch-callout: none;
	-webkit-touch-callout: none;
    -webkit-user-select: none;
     -khtml-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

#scoreblock{
  position: absolute;
  left: 50%;
  top: 10%;
  font-size: 5vh;
  color:white;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  text-shadow:2px 2px 4px rgba(0, 0, 0, 0.5);
}

.mobilecontrol{
  position: absolute;
  z-index: 1;
  width: 128px;
  height: 128px;
  opacity: .3;
}

.mobilecontrol:active{
  opacity: .5;
}

#down{
  bottom: 30vh;
  left:1vw;
}

#up{
  bottom: 30vh;
  right: 1vw;
  transform: rotate(180deg);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Полупрозрачный черный цвет */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 500;
    -moz-user-select: -moz-none;
    -o-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.overlay .content {
    text-align: center;
}

.overlay h1 {
    color: white;
    font-size: 5vh;
  	margin: 0;
  	padding:0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.overlay p {
    color: white;
    font-size: 4vh;
  	margin: 0;
  	padding:0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

button {
    background-color: #4fb74c;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    margin-top: 20px;
    cursor: pointer;
    font-size: 2vh;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: 0.2s;
}

button:hover{
  background-color: green;
}

.checkbox{
  display: block;
  font-size: 4vh;
  height: 5vh;
  color:white;
  margin-top:4vh;
  margin-bottom:1vh;
}

.cb_button{
  display: inline-block;
  width: 9vw;
  height: 100%;
  margin-right: 3vw;
  font-size: 2vh;
  border: 1px solid white;
  border-radius: 12px;
  cursor: pointer;
}

.cb_inner2{
  margin-left: 1vw;
  margin-right: 1vw;
  margin-top: 1vh;
}

.checkbox > span{
  position: relative;
  top: -1.5vh;
}

.cb_inner{
  display: inline-block;
  width: 10%;
  background-color: white;
  height: 100%;
}

.cb_align_left{
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  float:left;
}

.cb_align_right{
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  float:right;
}

.advp{
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 20vw;
  font-size: 8;
  padding-left: 2vw;
  padding-right: 2vw;
  padding-top: 1vh;
  padding-bottom: 1vh;
  background-color: #e2ab7f;
  border: 1px solid black;
  border-radius: 10px;
}

.pbar{
  display: block;
  height: 4vh;
  background-color: white;
}

@media (max-width: 650px){
  .cb_button{
    width: 20vw;
  }

  .advp{
    width: 90vw;
  }
}

#timer{
	position: absolute;
	z-index:4;
	top:40vh;
	left:50%;
  transform: translate(-50%, -50%);
}

#timer span{
	font-size: 25vh;
	color:white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game{
  display: inline-block;
  margin-left: 0.25vw;
  margin-right: 0.25vw;
  width: auto;
  height: 16vh;
  cursor: pointer;
}

.game img{
  width: 100%;
  height: 100%;
  border-radius: 5px;
  transition: filter 0.2s;
}

.game img:hover{
  filter: brightness(125%);
}

@media (max-height: 400px){
  button:not(#moregames button){
    margin: 0 !important;
    padding: 0 !important;
  }
}

@media (max-width: 1000px){
  .advp{
    width: 60vw !important;
  }

  .advp button{
    font-size: 4vh !important;
  }
}
