@font-face {
    font-family: 'Intro';
    src: url('/static/intro.otf') format('opentype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #3d07a8 0%, #0e8534 100%);
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 20px;
    height: 100vh;
    position: relative;
}

.logo {
    width: 50%;
    display: block;
    margin: 10px auto;
    max-width: 100%;
    height: auto;
    animation: float 2s ease-in-out infinite;
}

.coefficient {
    font-family: 'Intro', sans-serif;
    font-size: 50px;
    color: #ffffff;
    text-align: center;
    margin: 20px auto;
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.6s ease;
}

.coefficient.show {
    opacity: 1;
    animation: pulse 0.6s ease forwards;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.placeholder {
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    flex-direction: column;
    width: 100%;
}

.question-mark {
    font-size: 100px;
    color: white;
    text-align: center;
    display: block;
    margin: 0 auto;
    animation: spin-scale 3s infinite ease-in-out;
}

.footballer {
    width: 30%;
    height: auto;
    max-width: 150px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.footballer.show {
    opacity: 1;
    transform: scale(1);
}

@keyframes spin-scale {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.5;
    }

    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

.button {
    margin: 20px auto;
    padding: 15px 30px;
    background-color: #ffcc00;
    color: #333;
    font-family: 'Intro', sans-serif;
    font-size: 20px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #ff9900;
    box-shadow: 0px 12px 20px rgba(0, 0, 0, 0.5);
}

.button:active {
    transform: translateY(4px);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.2);
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: move 10s linear infinite;
}

@keyframes move {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100vh);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 600px) {
    .logo {
        width: 70%;
    }

    .coefficient {
        font-size: 40px;
    }

    .placeholder {
        height: 200px;
    }

    .footballer {
        width: 100%;
        max-width: 180px;
    }
}

header {
    position: fixed;
    top: 0;
    z-index: 10;
    width: 100%;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    display: flex;
    align-items: center;
    font-family: 'Intro', Arial, sans-serif;
    box-sizing: border-box;
    font-size: 24px;
}

header img {
    height: 30px;
    width: 30px;
    margin-right: 10px;
    border-radius: 50%;
}

.tab {
    position: fixed;
    bottom: 0;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    border-radius: 50px;
    height: 70px;
    /* Фиксированная высота для десктопа */
} 

.tab button {
    margin: 20px auto;
    padding: 15px 30px;
    background-color: #da1414;
    color: #333;
    font-family: 'Intro', sans-serif;
    font-size: 20px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}


.tab button:hover {
  background-color: #ff0000;
    box-shadow: 0px 12px 20px rgba(0, 0, 0, 0.5);
}



/* Медиазапросы для адаптации на мобильных устройствах */
@media (max-width: 768px) {
    .tab {
        height: 78px;
        /* Фиксированная высота для планшетов */
    }

    .tab button {
        margin: 0 5px;
        padding: 10px 15px;
        font-size: 20px;
    }

}



@media (max-height: 632px) {
    .counter-container {
        width: 100%;
        margin-top: -22%;
    }

    .counter {
        height: 10px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .goal-container {
        grid-row-gap: 3px;
        column-gap: 2px;
    }
}

/* Убираем синий эффект выделения при нажатии на мобильных устройствах */
button,
select,
input,
textarea,
a {
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
    outline: none;
}

* {
    -webkit-tap-highlight-color: transparent;
    /* Убирает подсветку при нажатии на любом элементе */
    -webkit-touch-callout: none;
    /* Отключает вызов меню на долгий тап */
}