@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,400;0,500;0,600;0,800;1,200;1,400;1,600&display=swap');

* {
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
    font-family: 'Montserrat', sans-serif;
}
  
body {
    margin: 0px;
    font-size: 14px;
}

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

h1 {
    font-size: 40px;
    font-weight: 600;
    margin: 15px 0;
}
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.input {
    all: unset;
    padding: 15px;
    border-radius: 15px;
}

.underline-text-href {
    text-decoration: underline;
}


.main-page {
    flex-direction: column;
    display: flex;
    background: url('../src/grid\ 2.png');
    background-color: #31333C;
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 10px;
}

.main-page--title {
    position: relative;
    width: 100%;
    padding: 20px 0;
    text-align: center;
}

.main-page--title > svg {
    position: absolute;
    left: 20px;

}

.main-page--title > span {
    color: #FDFDFD;
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 21.488px;
    letter-spacing: -0.13px;
    text-transform: uppercase;
}

.main-page-selector {
    padding: 5px;
    background: #292B30;
    border-radius: 16px;
    width: 100%;
    clip-path: 
        polygon(
        0% 15px,     /* верхняя левая */
        15px 0%,     /* верхняя левая */
        calc(100% - 15px) 0%,    /* верхняя правая */
        100% 15px,   /* верхняя правая */
        100% calc(100% - 15px),  /* нижняя правая */
        calc(100% - 15px) 100%,  /* нижняя правая */
        15px 100%,   /* нижняя левая */
        0 calc(100% - 15px)      /* нижняя левая */
    );
}

.main-page-selector--filters{
    width: 100%;
    display: flex;
    padding: 8px;


}

.main-page-selector--filters--pice {
    width: 33%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.main-page-selector--filters--pice > span:not(.active-filter-icn) {
    opacity: 0.6;
    padding-left: 12px;
    padding: 8px 0;
    color: #FFF;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: 21.488px; /* 195.344% */
    letter-spacing: 0.165px;
    text-transform: uppercase;

}
.main-page-selector--filters--pice > svg {
    margin-left: 7px;
}
.active-filter-icn {
    visibility: hidden;
    color: #61BEFB;
    font-size: 20px;
    opacity: 1;
    font-weight: 500;
    margin-left: 3px;
}
.main-page-selector--filters--pice.active > span:not(.active-filter-icn) {
    opacity: 1 !important;
}
.main-page-selector--filters--pice.active .active-filter-icn {
    visibility: visible;
}

.main-page-selector-block {
    width: 100%;
    display: flex;
    flex-direction: column;

}

.main-page-selector--game {
    display: flex;
    border-radius: 4px;
    background: #1C1E21;
    align-items: center;
    justify-content: center;

}

.main-page-selector--game  > span {
    padding: 14px 24px;
    color: #FFF;
    text-align: center;
    font-size: 15px;
    font-style: normal;
    font-weight: 900;
    line-height: 21.488px; /* 143.252% */
    letter-spacing: -0.075px;

}

.main-page-selector--grid {
    transition: none;
    margin-bottom: -10px;
}

.main-page-selector--grid--str {
    align-items: center;
    padding: 10px 0;
    padding-left: 14px;
    display: flex;
    border-radius: 4px;
}

.main-page-selector--grid--str:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.20);    
}

.main-page-selector--grid--str--time {
    color: #FFF;
    text-align: center;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 21.488px; /* 165.291% */
    letter-spacing: 0.65px;

}

.main-page-selector--grid--str--vs {
    display: flex;
    align-items: center;
    justify-content: center;    
    margin-left: 15px;
}

.main-page-selector--grid--str--vs--first {
    padding: 4px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    clip-path: 
    polygon(
    0% 7px,     /* верхняя левая */
    7px 0%,     /* верхняя левая */
    calc(100% - 7px) 0%,    /* верхняя правая */
    100% 7px,   /* верхняя правая */
    100% calc(100% - 7px),  /* нижняя правая */
    calc(100% - 7px) 100%,  /* нижняя правая */
    7px 100%,   /* нижняя левая */
    0 calc(100% - 7px)      /* нижняя левая */
    );
    font-size: 15px;
    font-weight: 700;
    min-width: 70px;
    text-transform: uppercase;
}

.main-page-selector--grid--str--vs > svg {
    margin: 0 10px;
}

.main-page-selector--grid--str--vs--second {
    padding: 4px 8px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    clip-path: 
    polygon(
    0% 7px,     /* верхняя левая */
    7px 0%,     /* верхняя левая */
    calc(100% - 7px) 0%,    /* верхняя правая */
    100% 7px,   /* верхняя правая */
    100% calc(100% - 7px),  /* нижняя правая */
    calc(100% - 7px) 100%,  /* нижняя правая */
    7px 100%,   /* нижняя левая */
    0 calc(100% - 7px)      /* нижняя левая */
    );
    font-size: 15px;
    font-weight: 700;
    min-width: 70px;
    text-transform: uppercase;
}

.main-page-selector--game.section-close > svg {
    rotate: 180deg;
}

.back-icn {
    position: absolute;
    left: 0;
}

.main-page-selector--type-sport-cont {
    margin-bottom: 10px;
}


/* ----- попап ----- */
.filter-popup-cont {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
}
.filter-popup-cont-hide {
    display: none;
    transition: none;
}
.filter-popup {
    width: 90vw;
    max-height: 95vh;
    overflow-y: scroll;
    background-color: #1C1E21;
    clip-path: 
    polygon(
    0% 14px,     /* верхняя левая */
    14px 0%,     /* верхняя левая */
    calc(100% - 14px) 0%,    /* верхняя правая */
    100% 14px,   /* верхняя правая */
    100% calc(100% - 14px),  /* нижняя правая */
    calc(100% - 14px) 100%,  /* нижняя правая */
    14px 100%,   /* нижняя левая */
    0 calc(100% - 14px)      /* нижняя левая */
    );
    padding: 20px;
    position: relative;
}
.filter-popup--title {
    color: #fff;
    opacity: 0.4;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.filter-popup--cross {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    width: 25px;
    height: 25px;
    opacity: 0.4;
}
.filter-popup--cross:hover {
    opacity: 1;
}
.filter-popup--list {
    display: flex;
    flex-direction: column;
    margin: 10px 0;
}
.filter-popup--list--item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    padding-right: 2px;
}
.filter-popup--list--item:not(:last-child) {
    border-bottom: 2px solid rgba(85, 87, 94, 0.20);
}
.filter-popup--list--item > span {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.5;
    color: #fff;
    letter-spacing: 0.6px;
}
.filter-popup--list--item--check {
    width: 20px;
    height: 20px;
    visibility: hidden;
}
.filter-popup--list--item.checked > span {
    opacity: 1;
}
.filter-popup--list--item.checked > .filter-popup--list--item--check {
    visibility: visible;
}
.filter-popup--apply-bt {
    width: 100%;
    border-radius: 4px;
    background: linear-gradient(103deg, #38FEFF 8.33%, #7A95F8 91.7%), #292B30;
    box-shadow: 0px 10px 15px -10px rgba(0, 0, 0, 0.25);
    padding: 10px 0 ;
    display: flex;
    justify-content: center;
    align-items: center;
}
.filter-popup--apply-bt > span {
    color: #31333C;
    font-size: 16px;
    font-weight: 900;
}
.uusi-ver {
    background-color: #fff;
    color: #ff0000;
}