.container {
  display: grid;
  grid-template-columns: 1fr;
  height: 100%;
  align-items: center;
  justify-content: space-around;
  position: relative;
}

.but-rules {
  background: url(../img/rules.png) no-repeat center center;
  background-size: contain;
  text-shadow: 0px 0px 3px #0026ff, 0px 0px 3px #0026ff,
    0px 2px 4px rgba(0, 38, 255, 0.5);
  color: #ffffff;
  line-height: 18px;
  font-size: 15px;
  text-align: center;
  font-family: "__Marvin_5";
  font-weight: 400;
  padding: 20px;
}
.but-rules:hover {
  text-shadow: 0px 0px 3px #ffffff, 0px 0px 3px #ffffff,
    0px 2px 4px rgba(0, 38, 255, 0.5);
  color: #de2879;
  cursor: pointer;
}
.block {
  position: fixed;
  bottom: 0px;
  top: 0;
  left: 0;
  right: 0;
  background: #22222298;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0);
  transition: all 0.5s;
}
.open {
  transform: scale(1);
  transition: all 0.5s;
}
.content {
  width: 95%;
  max-width: 760px;
  height: 80%;
  background: #ffffff;
  overflow-y: auto;
  position: relative;
  border: 2px solid #f80000;
  border-radius: 10px;
  padding: 10px;
}
.but-close {
  width: 40px;
  height: 40px;
  position: absolute;
  right: 10px;
  top: 10px;
  background: url(../img/krest.png) no-repeat center center;
  background-size: contain;
  z-index: 999;
}
.but-close:hover {
  background: url(../img/krest-hover.png) no-repeat center center;
  background-size: contain;
}

@media (max-width: 768px) {
  .but-rules {
    line-height: 16px;
    font-size: 14px;
    padding: 15px;
    margin: 10px;
  }
}
@media (max-width: 350px) {
  .but-rules {
    font-size: 13px;
  }
}
