:root {
    --width-100: 100%;
    --width-90: 90%;

    --black-color: #000000;
    --gray-color: #595959;
    --translucent-gray-color: hsla(0, 0%, 45%, 0.1);
    --white-color: #ffffff;
    --light-gray-color: #d3d3d3;
    --acid-green-color: #08fdd8;
    --violet-color: #7c62ff;
    --red-color: #c31524;
}

@font-face {
    font-family: "Vanilen";
    src: url("../fonts/vanilen.ttf") format("truetype");
}

body {
    font-family: "Vanilen", sans-serif;
    background-color: var(--black-color);
    margin: 0;
}

span, p, h1, h2, h3 {
    color: var(--light-gray-color);
    user-select: none;
    margin: 8px 0;
}

h1 {
    font-size: 80px;
    margin-bottom: 20px;
    margin-top: 50px;
}

h2 {
    font-size: 25px;
}

p, span {
    font-size: 18px;
    line-height: 1.6;
}

span {
    font-family: "Vanilen", sans-serif;
}

a {
    cursor: pointer;
    z-index: 999;
}

img, table, button, span, p, h1, h2, h3 {
    user-select: none;
    z-index: 999;
}

.banner {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 999;
    background: #0000008c;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    p {
        font-size: 30px;
    }
}

.small-text {
    font-size: 13px;
    margin: 0;
}

.big-text {
    font-size: 23px;
}

.max-width {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 100px;
    margin: 0 auto 100px;
}

.micro-markup {
    display: none;
}

.margit-top-none {
    margin-top: 0
}

.text-left {
    text-align: left;
}

.alight-left {
    align-items: flex-start!important;
}

.max-width-80 {
    max-width: 80%;
}

/*Стили анимаций как фона*/

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/*общие стили для блоков*/

.title {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 80%;
}

.block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: var(--width-100);
    gap: 25px;
}

.forbidden {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 80%;
}

/*гриды с ассортиментом игр*/

.game-list {
    display: grid;
    grid-template-columns: repeat(4, auto);
    row-gap: 20px;
    column-gap: 20px;
    margin-bottom: 20px;
}

.game-icon {
    border-radius: 10px;
    max-width: 100%;
}

/*ховер в кол-вом поддерживаемых геймпадов у игр на боксах для двоих*/

.two-gamepad-block {
    z-index: 999;
    background: url("../img/twogamepad.png") center center no-repeat;
    background-size: cover;
}

.two-gamepad-block .game-icon:hover {
    opacity: 0.5;
}

.one-gamepad-block {
    z-index: 999;
    background: url("../img/onegamepad.png") center center no-repeat;
    background-size: cover;
}

.one-gamepad-block .game-icon:hover {
    opacity: 0.5;
}

.internet-block {
    z-index: 999;
    background: url("../img/internet.png") center center no-repeat;
    background-size: cover;
}

.internet-block .game-icon:hover {
    opacity: 0.5;
}

/*блок лого сайта*/

.logo {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    margin-bottom: 50px;
    margin-top: 70px;
    user-select: none;
}

.logo p {
    margin: 0;
}

.logo-img {
    width: 150px;
    cursor: pointer;
}

/*блок зон клуба*/

.programs {
    display: flex;
    justify-content: space-between;
    width: var(--width-100);
}

.programs-elem {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 30%;
    text-align: center;
}

.programs-image {
    transition: 1s;
    width: 250px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.programs-image:hover {
    width: 350px;
    border-radius: 10%;
}

/*блок описания клуба*/

.background-white {
    background-color: var(--translucent-gray-color);
    border-radius: 10px;
    padding: 40px 10px;
}

.about-us {
    display: grid;
    grid-template-columns: repeat(2, 60% 40%);
    grid-gap: 50px;
}

.about-us-description {
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.about-us-description h2 {
    margin-bottom: 30px;
}

.about-us-description-advantages {
    display: flex;
    flex-direction: column;
}

.about-us-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.about-us-photo img {
    border-radius: 50%;
    width: 250px;
    height: 250px;
}

/*блок таблицы цен*/

.price-table {
    color: var(--light-gray-color);
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 10px;
}

.price-table-line:hover {
    background-color: var(--translucent-gray-color);
}

.price-table-cell-angle {
    border: 1px solid var(--light-gray-color);
    transform: rotate(40deg);
    line-height: 1.5;

    span {
        text-decoration: overline;
    }
}

.price-table-cell {
    padding: 20px;
    font-size: 25px;
    border: 1px solid var(--light-gray-color);
}

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

/*блок адреса*/

.building {
    max-width: 50%;
    border-radius: 10px;
}

/*блок яндекс карты*/

.yandex-map {
    width: var(--width-90);
    height: fit-content;
    border-radius: 10px;
    overflow: hidden;
    filter: invert(85%) grayscale(100%);
    z-index: 999;
}

/*блок связи*/

.connection {
    width: var(--width-90);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.connection-link {
    display: flex;
    justify-content: space-between;
    width: var(--width-100);
}

.connection a {
    text-decoration: none;
}

.connection-elem {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    max-width: 30%;
    text-align: center;
}

.connection-elem-button {
    font-family: "Vanilen", sans-serif;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    max-width: 16%;
    text-align: center;
    cursor: pointer;
    padding: 0;
}

.connection-image {
    height: 80px;
}

.connection-text:hover {
    color: var(--white-color);
}

/*Стили формы*/

.form {
    display: none;
    z-index: 999;
    position: fixed;
    top: calc(50vh - 200px);
    left: calc(50vw - 125px);
    background-color: var(--black-color);
    padding: 20px;
    width: 220px;
    height: fit-content;
    border-radius: 30px;
    box-shadow: 0 0 30px 0 var(--light-gray-color);
}

.form p {
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
}

.form-button-div {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.form-button {
    background: none;
    border: none;
    color: var(--white-color);
    cursor: pointer;
    font-size: 20px;
}

.form-button:hover {
    color: var(--red-color);
}

.consultation__form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.input-form {
    background: var(--black-color);
    color: var(--white-color);
    border: solid 1px var(--gray-color);
    padding: 5px;
    width: 200px;
    height: 30px;
    border-radius: 10px;
}

.input-form:focus {
    border: solid 1px var(--acid-green-color);
    outline: none;
}

.input-form-text {
    height: 50px;
}

.input-button {
    background: var(--black-color);
    color: var(--white-color);
    border: solid 1px var(--gray-color);
    padding: 5px;
    width: 210px;
    height: 30px;
    border-radius: 10px;
    cursor: pointer;
}

.input-button:hover {
    border: solid 1px var(--acid-green-color);
}

/*стили скрытия элементов только для мобильных устройств*/

.desktop-hidden {
    display: none;
}

/*Стили для фото описания клуба (onAnimationScroll())*/

.animation {
    transform: scale(1);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.animation-transition {
    opacity: 1;
    transform: scale(1.5)
}

/*Стили анимации h2 заголовков*/

.glitch {
    font-size: 30px;
    text-shadow: 0.05em 0 0 var(--light-gray-color), -0.03em -0.04em 0 var(--violet-color),
    0.025em 0.04em 0 var(--acid-green-color);
    animation: glitch 725ms infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 var(--light-gray-color), -0.03em -0.04em 0 var(--violet-color),
        0.025em 0.04em 0 var(--acid-green-color);
    }
    15% {
        text-shadow: 0.05em 0 0 var(--light-gray-color), -0.03em -0.04em 0 var(--violet-color),
        0.025em 0.04em 0 var(--acid-green-color);
    }
    16% {
        text-shadow: -0.05em -0.025em 0 var(--light-gray-color), 0.025em 0.035em 0 var(--violet-color),
        -0.05em -0.05em 0 var(--acid-green-color);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 var(--light-gray-color), 0.025em 0.035em 0 var(--violet-color),
        -0.05em -0.05em 0 var(--acid-green-color);
    }
    50% {
        text-shadow: 0.05em 0.035em 0 var(--light-gray-color), 0.03em 0 0 var(--violet-color),
        0 -0.04em 0 var(--acid-green-color);
    }
    99% {
        text-shadow: 0.05em 0.035em 0 var(--light-gray-color), 0.03em 0 0 var(--violet-color),
        0 -0.04em 0 var(--acid-green-color);
    }
    100% {
        text-shadow: -0.05em 0 0 var(--light-gray-color), -0.025em -0.04em 0 var(--violet-color),
        -0.04em -0.025em 0 var(--acid-green-color);
    }
}

/*Стили анимации h1 заголовка*/

h1 {
    animation: glitch1 2.5s infinite;
}

@keyframes glitch1 {
    0% {
        transform: none;
        opacity: 1;
    }
    7% {
        transform: skew(-0.5deg, -0.9deg);
        opacity: 0.9;
    }
    10% {
        transform: none;
        opacity: 1;
    }
    27% {
        transform: none;
        opacity: 1;
    }
    30% {
        transform: skew(0.8deg, -0.1deg);
        opacity: 0.9;
    }
    35% {
        transform: none;
        opacity: 1;
    }
    52% {
        transform: none;
        opacity: 1;
    }
    55% {
        transform: skew(-1deg, 0.2deg);
        opacity: 0.9;
    }
    50% {
        transform: none;
        opacity: 1;
    }
    72% {
        transform: none;
        opacity: 1;
    }
    75% {
        transform: skew(0.4deg, 1deg);
        opacity: 0.9;
    }
    80% {
        transform: none;
        opacity: 1;
    }
    100% {
        transform: none;
        opacity: 1;
    }
}

/*Стили гирлянды*/

.garland {
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    display: flex;
    overflow: hidden;
    position: absolute;
    pointer-events: none;
}

.garland-animation-odd {
    animation-name: blink;
    animation-timing-function: linear;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
}

.garland-animation-even {
    animation-name: blink;
    animation-timing-function: linear;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

@keyframes blink {
    50% {
        opacity: 0.3;
    }
}

.garland-module {
    display: flex;
    position: relative;
}

.garland-item {
    z-index: 9999;
    overflow: visible;
    color: #656565;
}

.garland-item-one {
    margin-top: -5px;
    margin-left: -9px;
    color: #a3a3a3;
}

.garland-item-two {
    margin-top: -3px;
    margin-left: -8px;
    color: #a3a3a3;
}

.garland-item-three {
    margin-top: -8px;
    margin-left: -8px;
    color: #a3a3a3;
}

.garland-item-four {
    margin-top: -6px;
    margin-left: -8px;
    color: #a3a3a3;
}

.garland-item-five {
    margin-top: -7px;
    margin-left: -10px;
    color: #a3a3a3;
}

/*Стили для мобильных устройств*/

@media (max-width: 1000px) {

    /*стили текста*/
    h1 {
        font-size: 56px;
    }

    /*общие стили для блоков*/
    .mobile-hidden {
        display: none;
    }

    .max-width {
        padding: 0 10px;
    }

    .desktop-hidden {
        display: flex;
    }

    /*блок лого сайта*/
    .logo {
        margin-bottom: 40vh;
        margin-top: 30vh;
        text-align: center;
        padding: 0 10px;
    }

    /*блок зон клуба*/
    .programs {
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 30px;
    }

    .programs-elem {
        max-width: var(--width-100);
    }

    .programs-image {
        width: 300px;
        border-radius: 50%;
    }

    .programs-image:hover {
        width: var(--width-100);
        border-radius: 10%;
    }

    /*блок описания клуба*/
    .background-white {
        margin-top: 50px;
    }

    .about-us {
        display: flex;
        flex-direction: column-reverse;
        gap: 80px;
    }

    .about-us-description h2 {
        text-align: center;
    }

    /*блок адреса*/
    .building {
        max-width: var(--width-100);
    }

    /*блок яндекс карты*/

    .yandex-map {
        width: var(--width-100);
    }

    /*блок запретов*/

    .forbidden {
        max-width: var(--width-100);
    }

    /*блок связи*/
    .connection-link {
        justify-content: center;
        align-items: center;
        gap: 30px;
        display: grid;
        grid-template-columns: 40% 40%;
        width: var(--width-100);
    }

    .connection-image {
        height: 70px;
    }

    .connection-elem {
        max-width: var(--width-100);
    }

    .connection-elem-button {
        max-width: var(--width-100);

        span {
            margin: 0;
        }
    }

    /*стили кнопки открытия формы*/
    .margit-bottom-none {
        margin-bottom: 0;
    }
}

/*Стили формы для мобильных устройств в вертикальном режиме*/

@media (max-width: 500px) {

    /*гриды с ассортиментом игр*/

    .game-list {
        grid-template-columns: repeat(2, auto);
        row-gap: 10px;
        column-gap: 10px;
    }

    .form {
        left: 0;
        width: auto;
    }

    .input-form {
        width: 250px;
    }

    .input-button {
        width: 260px;
        margin-bottom: 20px;
    }

    .max-width-80 {
        max-width: 100%;
    }
}

/*Стили формы для мобильных устройств в горизонтальном режиме*/

@media (max-height: 500px) {
    .form {
        left: 0;
        width: auto;
    }

    .input-form {
        width: 250px;
    }

    .input-button {
        width: 260px;
        margin-bottom: 20px;
    }
}
