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


a {
    text-decoration: none;
    color: inherit;
}

html, body {

    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
body {

    background: #0B0410 url("images/background-fest.png") top / contain no-repeat; background-size: 101% auto;
    min-height: 100vh;
    padding-top: 30px;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    margin: 0 auto;
    max-width: 1920px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    margin-bottom: 150px;
}

.header-text {
    font-family: "BBH Sans Hegarty", sans-serif;
    font-weight: 200;
    font-style: normal;
    color: white;
    text-transform: uppercase;
    text-align: center;
    line-height: 0.9;
}

.capture-text {
    font-family: sans-serif;
    color: white;
    font-weight: 400;
    font-size: 20px;
    line-height: 25px;
}

.underlined {
    text-decoration: underline;
    white-space: nowrap;
}

.title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 150px;
}

.title-text {
    font-size: 116px;
    margin: 11px 0 11px 0;
    line-height: 0.85
}

.title-date {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    font-size: 37px;
}

.line {
    width: 58px;
    height: 4px;
    background-color: white;
}

.banner {
    background-color: rgba(94, 49, 90, 1);
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-self: center;
    gap: 45px;
    position: relative;
    padding: 30px 45px 40px 45px;
    margin-top: 80px;
}

.banner .header-text {
    font-size: 46px;
}

.overlay {
    position: absolute;
    inset: 0;
    background: url("images/banner-bg.png") center/cover no-repeat;
    opacity: 0.03;
    z-index: 1;
}

.info,
.frames-container {
    z-index: 2;
}

.frames-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.frame {
    padding: 16px 20px 25px 20px;
    border: 2px solid white;
}

.frame:first-child {
    width: 471px;
}

.frame:first-child br {
    display: none;
}

.frame:last-child {
    width: 375px;
}

.info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info .header-text {
    text-align: start;
}

.games .button {
    display: none;
}

.games .section-title {
    margin: 65px 0;
}

.grid-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 1400px;
    padding: 0 41px;
}

.grid-2-row-4-col {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(4, 1fr);
    gap: 12px
}

.grid-2-row-4-col a img {
    border-radius: 10px;
}
.grid-2-row-5-col a img {
    border-radius: 10px;
}
.grid-2-row-5-col {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(5, 1fr);
    gap: 12px
}

.grid-2-row-6-col {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(6, 1fr);
    gap: 12px
}

.grid-2-row-7-col {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(7, 1fr);
    gap: 12px
}

.grid-1-row-8-col {
    display: grid;
    grid-template-rows: repeat(1, 1fr);
    grid-template-columns: repeat(8, 1fr);
    gap: 12px
}

.grid-6-row-9-col {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    grid-template-columns: repeat(9, 1fr);
    gap: 5px;
}
.diff_div {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    gap: 12px;
}

.grid-2-row-4-col img,
.grid-2-row-5-col img,
.grid-2-row-6-col img,
.grid-2-row-7-col img,
.grid-1-row-8-col img,
.grid-6-row-9-col img,
.diff_div img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.pop-up {
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.pop-up.active {
    display: flex;
}

.pop-up-close-button {
    background-color: rgba(249, 49, 104, 1);
    width: 48px;
    height: 41px;
    position: absolute;
    top: -27px;
    right: -7px;
    padding: 11px 16px 13px 16px;
    z-index: 100;
}

.pop-up-content {
    position: relative;
    background-color: rgba(29, 29, 29, 1);
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 10px;
    padding: 5%;
    margin: 35px 15px 25px 15px;
    z-index: 10;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pop-up-content::-webkit-scrollbar {
    display: none;
}

.pop-up-content img {
    width: 100%;
    object-fit: contain;
    max-width: 100%;
    display: block;
}

.contacts {
    position: relative;
    width: 100%;
    max-width: 1400px;
    min-height: 896px;
    padding: 0 41px;
    margin-top: 306px;
    display: flex;
}

.footer-image {
    position: absolute;
    right: -15px;
    top: -200px;
    max-width: 888px;
}

.section-title {
    font-size: 50px;
}

.contacts .section-title {
    text-align: start;
    margin-bottom: 10px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: start;
    align-self: start;
    justify-content: space-between;
    gap:40px;
    min-height: 300px;
    z-index: 2;
    text-align: start;
}

.links-info {
    max-width: 550px;
}

.links-info .capture-text {
    font-size: 25px;
    margin-top: 10px;
}

.links {
    display: flex;
    gap: 30px;
    margin-top: 12px;
    font-size: 28px;
    letter-spacing: 1px;
    flex-wrap: wrap;
}

.socials-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.socials {
    max-width: 365px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    text-align: start;
    font-size: 14px;
}

.button {
    background-color: rgba(249, 49, 104, 1);
    padding: 20px 36px;
    display: flex;
    align-self: center;
    justify-self: center;
    font-size: 26px;
    letter-spacing: 2px;
}

.header-text-menu{
    font-size: 26px;
}
.header-text-menu a {
    margin-left: 10px;
}
.footer-image-mini {
    width: 0;
}

.tg-link {
    font-family: "BBH Sans Hegarty", sans-serif;
    font-weight: 100;
    font-style: normal;
    color: white;
    text-transform: uppercase;
    text-align: center;
    line-height: 1;
    font-size: 16px;
    letter-spacing: 1px;
}

.vote-main-title{
    margin-top: 40px;
    line-height: 0.75
}
.gradient-text {
    background: linear-gradient(0deg, #A3642D 23.33%, #F0D57F 86.67%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gradient-text2 {
    background: linear-gradient(183.09deg, #F69843 17.53%, #FEE903 129.92%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-desc {
    font-family: "Microsoft Sans Serif", sans-serif;
    font-size: 32px;
    color: white;
    font-weight: 400;
    text-align: center;
}

.vote-header-container{
    font-size: 75px;
    text-align: center;
    font-family:  "Abhaya Libre", sans-serif;
    font-weight: 800;
    margin-bottom: 30px;
}
.vote-header {
    display: flex;
    font-size: 114px;
    gap: 40px
}

.vote-header-image {
    transform: translateY(-20px);
}

.vote-header-image2 {

}

.category-fake-container {
    background-color: #170D1D;
    border-top: #BCA05F solid 1px;
    border-bottom: #BCA05F solid 1px;
    margin-bottom: 30px;
}
.nomination-block {
    color: #989898;
    font-size: 21px;
    font-family: "Roboto", sans-serif;
    text-align: center;
    line-height: 0.9;
    margin-top: 20px;
    margin-bottom: 10px;
}

.nomination-text {
    font-family: "Abhaya Libre", sans-serif;
    font-size: 75px;
}

.category-container {
    width: 100vw;
    font-size: 21px;
    color: white;
    font-family: Roboto, sans-serif;
    font-weight: 400;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 20px 21% 30px 21%;
}
.category-item {
    white-space: nowrap;
    cursor: pointer;
    text-transform: uppercase;
    padding: 0 15px
}
.category-item-selected {
    color: white;
    text-decoration: underline;
}

.category-item-voted {
    color: #BFA361;
}

.vote-part-container {
    font-size: 75px;
    text-align: center;
    font-family:  "Abhaya Libre", sans-serif;
    font-weight: 800;
    align-items: center;
    justify-content: center;
    justify-items: center;
    align-content: center;
    margin-bottom: 25px;
}
.game-title-container {
    max-width: 500px;
    margin-bottom: 5px;
    margin-top: 5px;
    font-size: 76px;
}

.game-title-container-text {
    font-size: 38px;
}

.title-vote-part-date {
    font-size: 58px;
    color: #F59944;
}
.vote-part-header {
    display: flex;
    font-size: 114px;
    align-items: flex-end;
}

.vote-part-text-container {
    line-height: 0.75;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 250px;
    position: relative;
}
.ellipse {
    position: absolute;
    width: 760px;
    height: 121px;
    left: -150px;
    top: 30px;
    background: rgba(248, 186, 41, 0.38);
    filter: blur(96px);
    border-radius: 50%; /* превращает прямоугольник в эллипс */
    pointer-events: none; /* чтобы не мешал кликам, если нужно */
}

.vote-game-list {
    width: 100%;
    padding: 20px 5%;
    display: flex;
    box-sizing: border-box;
    flex-wrap: wrap;
    row-gap: 40px;
    margin-bottom: 30px;
    align-items: center;
    justify-items: center;
    justify-content: center;
    gap: 20px;
}

.game-vote-item{
    width: 420px;
    height: 196px;
    position: relative;
    overflow: visible;
    border-radius: 10px;
    margin-bottom: 10px;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
    border-radius: 10px;
}
.game-overlay-result {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    cursor: default;
    background: linear-gradient(90deg, #000000 -5.59%, rgba(0, 0, 0, 0.26) 102.09%);


    /*border: 2px solid white;*/
    border-radius: 10px;
}

.game-overlay-result-selected {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    cursor: default;
    background: linear-gradient(90deg, #000000 -5.59%, rgba(0, 0, 0, 0.26) 102.09%);


    border: 5px solid #F0D57F;
    box-shadow: 0 0 20px 0 #F0D57F;
    border-radius: 10px;
}
.game-overlay-result-text-selected{
    color: white;
    font-size: 32px;
    font-family: "BBH Sans Hegarty", sans-serif;
    padding-bottom: 10px;
}

.votes-number {
    font-size: 42px;
}
.game-overlay-result-text{
    color: white;
    font-size: 27px;
    font-family: "BBH Sans Hegarty", sans-serif;
    padding-bottom: 10px;
}

.game-overlay button {
    width: 0;
    height: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-vote-item:hover .game-overlay {
    background: rgba(0,0,0,0.5);
    border: #F0D57F solid 5px;
    box-shadow: 0 0 20px 0 #F0D57F;
}

.game-vote-item:hover .game-overlay button {
    opacity: 1;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 26px;
    width: 70%;
    min-height: 50px;
    color: white;
    font-family: "BBH Sans Hegarty", sans-serif;
    background: linear-gradient(63.79deg, #66482A -16.51%, #EFD47E 145.31%);
}

.timer-container{
    font-family: sans-serif;
    font-size: 21px;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.timer-text-container {
    display: flex;
    text-align: center;
    justify-content: center;
}

.timer-number{
    font-family: "BBH Sans Hegarty", sans-serif;
    font-size: 46px;
    font-weight: 400;
}
.timer-text {
    font-family: "BBH Sans Hegarty", sans-serif;
    font-size: 14px;
    color: #F2C569;
    margin-top: 8px;
    margin-left: 2px
}

.partners {
    text-align: center;
    font-size: 50px;
    font-family: "BBH Sans Hegarty", sans-serif;
    color: white;
    margin-top: 30px;
    width: 100%;
}

.partners-list {
    display: flex;
    width: 100%;
    padding: 20px 5%;
    box-sizing: border-box;
    flex-wrap: wrap;
    align-items: center;
    justify-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.block-vote-item {
    background: rgba(0,0,0,0.5);
    filter: brightness(50%);
    pointer-events: none;
}

.block-vote-item button {
    cursor: not-allowed;
    filter: brightness(50%);
}

.partners-desc {
    font-family: sans-serif;
    font-size: 21px;
}
