.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;
  color: #f80000;
  line-height: 18px;
  font-size: 15px;
  text-align: center;
  font-family: "__Marvin_5";
  font-weight: 400;
  padding: 20px;
}
.but-rules:hover {
  color: #009245;
  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;
}
@media (max-width: 768px) {
  .but-rules {
    background: url(../img/rules.png) no-repeat center center;
    background-size: contain;
    color: #f80000;
    line-height: 16px;
    font-size: 14px;
    font-family: "__Marvin_5";
    font-weight: 400;
    padding: 15px;
    margin: 10px;
  }
}
@media (max-width: 350px) {
  .but-rules {
    font-size: 13px;
  }
}
