* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

@font-face {
    font-family: "MyCustomFont";
    src: url("/static/fonts/MS.ttf") format("truetype"),
    url("/static/fonts/pixel.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

/* Применяем шрифт к тексту */
body {
    font-family: "MyCustomFont", sans-serif;
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    background: #4f485e;
    background-size: cover;

}


.underline {
    height: 2px;
    background: linear-gradient(to right, yellow, #62cff3);
    margin: 5px 2vw; /* Отступы слева и справа */
}


footer {
    margin-top: auto; /* This pushes the footer to the bottom */
}

.logo-MS img {
    height: 3vh;
}


.chosen {
    background: rgba(113, 106, 106, 0.53);
    color: rgba(225, 201, 123, 0.87)
}

.button-bar-fill-width {
    margin-top: 2vh;
    padding: 0;
    width: 100%;
    display: flex;
}

.action-button {
    display: inline-block;
    background: rgba(192, 192, 192, 0.11);
    border-radius: 5px;
    cursor: pointer;
    font-size: 200%;
    aspect-ratio: 1/1;
}


.action-button:hover {
    background-color: rgba(197, 213, 198, 0.42); /* Затемнение при наведении */
    transform: scale(1.1); /* Легкое увеличение при наведении */
}


.flex-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

}


.panel-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.main-grid-12x12 {
    height: 94vh;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
}

.pointed:hover {
    cursor: help;
    background: rgba(97, 95, 95, 0.42);
    border-radius: 8px;
}

.loading {
    position: relative;
    width: 0;
    padding: 20px; /* если задать в %, то будет рассчитываться от ширины родителя */
    background: linear-gradient(rgba(0, 0, 0, 1) 30%, transparent 30%, transparent 70%, rgba(0, 0, 0, .4) 70%),
    linear-gradient(to left, rgba(0, 0, 0, .2) 30%, transparent 30%, transparent 70%, rgba(0, 0, 0, .8) 70%);
    background-repeat: no-repeat;
    background-size: 10% 100%, 100% 10%;
    background-position: 50% 0%, 0 50%;
    -webkit-animation: loading .7s infinite steps(8);
    animation: loading .7s infinite steps(8);
}

.loading-wrapper {
    display: flex;
    justify-content: center; /* Центрирование по горизонтали */
    align-items: center; /* Центрирование по вертикали */
    height: 20vh;
}

.loading:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, .1) 30%, transparent 30%, transparent 70%, rgba(0, 0, 0, .5) 70%),
    linear-gradient(to left, rgba(0, 0, 0, .3) 30%, transparent 30%, transparent 70%, rgba(0, 0, 0, .9) 70%);
    background-repeat: no-repeat;
    background-size: 10% 100%, 100% 10%;
    background-position: 50% 0%, 0 50%;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

@-webkit-keyframes loading {
    100% {
        -webkit-transform: rotate(1turn);
    }
}

@keyframes loading {
    100% {
        transform: rotate(1turn);
    }
}

@media (width < 900px) {
    .main-grid-12x12 {
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100%;


    }
}


.piping {
    cursor: pointer;
    text-decoration: none;
    animation: spinAndPulse 3s infinite;
}


@keyframes spinAndPulse {
    0% {
        transform: scale(1);
        border-radius: 40px;

    }
    40% {
        transform: scale(0.7);
        background-color: rgba(7, 7, 7, 0.19);
        border-color: rgba(7, 7, 7, 0.19);
        box-shadow: 0 0 15px rgba(7, 7, 7, 0.19);
    }
    80% {
        transform: scale(1.5);
        background-color: rgba(207, 104, 143, 0.7);
        border-radius: 15px;
        color: rgba(207, 104, 131, 0.7);
        border-color: rgba(207, 104, 143, 0.7);
        box-shadow: 0 0 15px rgba(207, 104, 183, 0.7);
    }
    100% {
        transform: scale(1);
        border-radius: 40px;

    }
}
