@import url('./root.css');
@import url('./animation.css');
@import url('./menu.css');
@import url('./countdown.css');
@import url('./board-menu.css');
@import url('./form.css');

body {
    background: url(../images/bg.webp);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    min-height: 100dvh;
}

#app {
    min-height: 100dvh;
    width: 100%;
    max-width: 1400px;
    margin: auto;
    overflow-x: hidden;
}

.lpa-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 5vh;
    /* gap: 20px; */
    width: 50vw;
    margin: auto;
}

.lpa-header__logo {
    width: 40%;
    height: auto;
    display: block;
}

.lpa-header__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 10px;
    width: 100%;
}

.lpa-header__title span {
    font-size: 3vw;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
}

.lpa-header_youtube {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 9%;
}

.lpa-header_youtube img {
    width: 100%;
    height: auto;
}

.lpa-header_slogan {
    width: 60%;
    transform: translate(5%, 3%);
}

.lpa-header_slogan img {
    width: 100%;
    height: auto;
}

.lpa-header_date {
    width: 75%;
    position: relative;
    transform: translateY(5%);
}

.lpa-header_date span {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    font-size: 1.7vw;
    font-weight: 700;
    color: white;
    text-align: center;
}

.lpa-header_button {
    margin-top: 20px;
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: unset !important;
    cursor: pointer;
    margin-top: 32dvh;
    width: 40%;
    animation: pulse .5s linear infinite;
}



@property --tw-scroll-snap-strictness {
    syntax: "*";
    inherits: false;
    initial-value: proximity;
}

.lpa-event {
    margin-top: 15vh;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5vw;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x var(--tw-scroll-snap-strictness);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lpa-event::-webkit-scrollbar {
    display: none;
}

.lpa-event_box {
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(107.16deg, #FFE000 9.85%, #FF0000 42.8%, #00DAF4 69.9%, #0066FF 96.59%);
    position: relative;
    scroll-snap-align: center;
}

.lpa-event_box:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -5vw;
    width: 2.5vw;
    height: 2.5vw;
    transform: translate(-50%, -50%);
    background: url('../images/arrow-right.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

.lpa-event_body {
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(360deg, #131A3A 0%, #3B51B1 100%);
    border-radius: 20px;
    text-align: center;
}

.lpa-event_body.active {
    background: linear-gradient(360deg, #000E4A 0%, #002FF8 100%);
}

.lpa-event_title {
    font-size: 2vw;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    padding: 24px 20px 5px;
}

.lpa-event_date {
    font-size: 1.2vw;
    font-weight: 400;
    color: white;
    padding: 0 20px 21px;
}

.lpa-event_footer {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    font-weight: bold;
    color: white;
    font-size: 1.5vw;
    text-transform: capitalize;
}

.lpa-event_body .lpa-event_footer .lpa-event_val {
    display: -webkit-inline-box;
    color: white;
    font-size: 1.8vw;
    font-weight: 900;
    text-transform: uppercase;
    padding-left: 10px;
}

.lpa-event_body.active .lpa-event_footer .lpa-event_val {
    color: transparent;
    background: linear-gradient(177.45deg, #FBFF86 17.67%, #F9AB25 97.19%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lpa-reward_container {
    margin-top: 40px;
}

.lpa-reward_title {
    font-size: 1.5rem;
    font-weight: 700;
    color: transparent;
    text-transform: uppercase;
    margin-bottom: 16px;
    background-image: linear-gradient(to bottom, #FBFF86 17.67%, #F9AB25 97.19%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

}

.lpa-reward_list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.lpa-reward_item {
    border-radius: 13px;
    padding: 2px;
    background: linear-gradient(107.16deg, #FFE000 9.85%, #FF0000 42.8%, #00DAF4 69.9%, #0066FF 96.59%);
    position: relative;
}

.lpa-reward_box {
    position: relative;
    background: linear-gradient(360deg, #000E4A 0%, #002FF8 100%);
    border-radius: 13px;
    overflow: hidden;
    height: 100%;
    text-align: center;
}

.lpa-reward_blur {
    max-width: 80%;
    margin: auto;
    display: inline-block;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.lpa-reward_token {
    position: absolute;
    bottom: 10px;
    left: -5px;
}

.lpa-reward_content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    gap: 5px;
}

.lpa-reward_top {
    width: 80%;

}

.lpa-reward_label {
    max-width: 90%;
}

.lpa-reward_footer {
    width: 100%;
    padding: 5px;
    background: linear-gradient(90deg, rgba(125, 8, 8, 0) 0%, #7D0808 50%, rgba(125, 8, 8, 0) 100%);
    backdrop-filter: blur(8.5px);
    border-radius: 0px 0px 14px 14px;

}

.lpa-reward_footer span {
    display: block;
    background-image: linear-gradient(to bottom, #FBFF86 17.67%, #F9AB25 97.19%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
}

.lpa-match {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 8px;
    gap: 16px;
    background: #08142F;
    border: 1px solid #000D2B;
    border-radius: 24px;
}

.lpa-match_title {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    padding-bottom: 16px;
    padding-left: 8px;
    padding-right: 8px;
    border-bottom: 1px solid #012672;
}

.lpa-match_list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
    /* scrollbar-width: thin;
    scrollbar-color: #1a3a8f #0a1628; */
    padding-left: 8px;
    padding-right: 8px;
}

.lpa-match_list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 100px;
}

.lpa-match_item {
    display: grid;
    grid-template-columns: 2fr 1fr;
}

.lpa-match_data,
.lpa-match_prediction {
    background-color: #0C1B3E;
    border-radius: 16px;
}

.lpa-match_data {
    border-right: 2px dashed #08142F;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 12px 12px;
}

.lpa-match_time {
    background-image: url('../images/match_live.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    color: #fff;
    min-height: 22px;
    aspect-ratio: 92/22;
    white-space: nowrap;
    transform: translateY(-2px);
}

.lpa-match_item.is-live .lpa-match_time span::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: #fff;
    border-radius: 50%;
    margin-right: 4px;
}

.lpa-match_item.is-live .lpa-match_time span {
    text-transform: uppercase;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}


.lpa-match_item:not(.is-live) .lpa-match_time {
    background-image: url('../images/match_notstart.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.lpa-match_item:not(.is-live) .lpa-match_time span {
    display: inline-block;
    padding: 0 4px;
}

.lpa-match_item:not(.is-live) .lpa-match_time span:not(:last-child) {
    border-right: 1px solid rgba(34, 163, 116, 0.3);
}

.lpa-match_teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
}

.lpa-match_team {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    color: #fff;
    width: 150px;
}

.lpa-match_teamname {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.lpa-match_team:first-child {
    justify-content: end;
}

.lpa-match_team:last-child {
    justify-content: start;
}

.lpa-match_logo {
    display: block;
    width: 40px;
    min-width: 40px;
}

.lpa-match_score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    flex-grow: 1;
}

/* .score-space {
    flex-grow: 1;
} */
.home-score,
.away-score {
    width: calc(100% / 2 - 30px);
    max-width: calc(100% / 2 - 30px);
    background-image: url('../images/team-1.svg');
    background-position: 50%;
    background-size: contain;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 4px 0;
}

.home-score.is-win,
.away-score.is-win {
    background-image: url('../images/team-2.svg');
    color: #FF8D28;
}

.home-score {
    justify-content: end;
}

.home-score::after {
    background-position: top right;
}

.away-score::before {
    background-position: top left;
}

.home-score::after,
.away-score::before {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    background-image: url('../images/ball.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.lpa-match_odd {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.lpa-match_oddrow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.lpa-match_odd_item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 10px;
    background-color: #0D1F49;
    border-radius: 8px;
    gap: 8px;
    font-weight: 600;
}

.lpa-match_odd_item span:first-child {
    color: #66A1D5;
    font-weight: bold;
}

.lpa-match_odd_item .up {
    color: #289350
}

.lpa-match_odd_item .down {
    color: #F71B26
}

.lpa-match_prediction {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    gap: 8px;
    padding: 0 12px 12px 12px;
}

.lpa-match_prediction_title {
    background-image: url('../images/match_predition.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    color: #fff;
    width: 90%;
    text-align: center;
    height: 22px;
    aspect-ratio: 92/22;
    font-size: .7rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.lpa-match_prediction_group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 4px;
    width: 100%;
}

.lpa-match_prediction_score>.lpa-match_prediction_btn {
    display: none;
}

.lpa-match_prediction_radio {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 12px;
    gap: 8px;
    background: #0D1F49;
    border: 1px solid #003B72;
    border-radius: 8px;
    color: #fff;
    font-size: .75rem;
    cursor: pointer;
}

.lpa-match_prediction_radio .is-radio {
    width: 12px;
    min-width: 12px;
    height: 12px;
    min-height: 12px;
    border: 1px solid #E3E3E3;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px;
}

.lpa-match_prediction_radio.is-disabled {
    cursor: not-allowed;
}

.lpa-match_prediction_radio .is-radio.is-active {
    border-color: #00C531;
}

.lpa-match_prediction_radio .is-radio.is-active::before {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #00C531;
}

.lpa-match_prediction_score {
    display: grid;
    grid-template-columns: 1fr 20px 1fr;
    width: 100%;
    align-items: center;
    text-align: center;
    color: #fff;
}

.lpa-match_prediction_score .is-score {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 12px;
    gap: 8px;
    background: #0D1F49;
    border: 1px solid #003B72;
    border-radius: 8px;
    color: #fff;
    font-size: .75rem;
}

.lpa-match_item.is-live .lpa-match_prediction_score .is-score span {
    color: #00C531;
    font-weight: 700;
}

.lpa-match_prediction_score .is-score .is-score-logo {
    max-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lpa-match_prediction_score span {
    color: #fff;
}

.lpa-match_prediction_btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 16px;
    gap: 10px;
    width: 100%;
    background: #FF0000 !important;
    box-shadow: inset 0px 2px 1px rgba(255, 219, 187, 0.5) !important;
    border-radius: 8px;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    outline: unset !important;
    border: unset !important;
    cursor: pointer;
}

.lpa-match_prediction_btn:is(:hover, :focus, :active):not(.is_disabled) {
    filter: brightness(90%)
}

.lpa-match_prediction_btn.is_disabled {
    filter: brightness(50%);
    cursor: not-allowed;
}

.lpa-match_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 1rem;
    text-align: center;
    color: #fff;
}

.lpa-board_table {
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #fff;
    font-size: 1rem;
}

.board-table_item {
    display: flex;
    align-items: center;
    justify-content: start;
}

.board-table_item:not(:nth-child(2)) {
    text-align: center;
    justify-content: center;
}

.board-table_thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.board-table_thead .board-table_row {
    background-color: #0C1B3E;
}

.board-table_thead .board-table_item {
    display: block;
    padding: 16px 0;
}

.board-table_tbody {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.board-table_row {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
}

.board-table_tbody .board-table_row:nth-child(odd) {
    background-color: #07102561;
}

.board-user {
    gap: 8px;
}

.board-table_rank_img {
    max-width: 60px;
}

.board-table_tbody .board-table_item {
    height: 60px;
}

.board-user_avatar {
    min-width: 32px;
    width: 32px;
    height: 32px;
    overflow: hidden;
    border-radius: 32px;
    background-color: rgba(225, 225, 225, 0.1);
}

.board-user_point {
    font-weight: 700;
    color: #00C531;
}

.board-table-empty {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.board-table-empty img {
    height: 6rem;
}

.user-board {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    background-color: #08142F;
    border: 1px solid #1499ff80;
    border-radius: 24px;
}

.user-board_icon {
    align-items: center;
    background: #38373780;
    border-radius: 9999px;
    display: flex;
    height: 106px;
    width: 106px;
    justify-content: center;
    padding: 6.5px;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    /* box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.1); */

}

.user-board_icon svg {
    position: relative;
    z-index: 10;
    width: 70%;
}

.user-board_icon::before {
    background: #38373780;
    border-radius: 50%;
    content: "";
    top: 6.5px;
    right: 6.5px;
    bottom: 6.5px;
    left: 6.5px;
    position: absolute;
    /* height: 98px;
    width: 98px; */
}

.user-board_btn {
    background-image: linear-gradient(50.3deg, #f6c958 2.75%, #b29039 0, #ffe090 8.78%, #d8b862 26.42%, #e7cc7b 46.13%, #f7bf5b 59.69%, #eccd91 72.81%, #f4cb65 82.87%, #dfaf37 90.58%);
    border-radius: .5rem;
    font-size: 1rem;
    height: 36px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    cursor: pointer;
    pointer-events: all;
    background-color: transparent !important;
    outline: unset !important;
    box-shadow: unset !important;
    border: unset !important;
}

.user-panel__guest-text {
    text-align: center;
    color: #fff;
    font-size: 1.3rem;
}

.user-panel__guest-line {
    font-size: 1rem;
}

.user-panel__guest-line--bold {
    text-transform: uppercase;
    font-weight: 700;
}

.lpa-standing,
.lpa-board-mobile {
    display: none;
}

@media (width <=900px) {
    body {
        background-color: #0d1e2d;
        background-image: url("../images/bg_mb_bottom.webp"), url("../images/bg_mb.webp");
        background-size: cover, contain;
        background-position: bottom center, top center;
        background-repeat: no-repeat, no-repeat;
    }

    #app {
        max-width: 450px;
        width: 100%;
    }

    .lpa-header {
        width: 100%;
        padding-top: 10vh;
    }

    .lpa-header__logo {
        width: 50%;
    }

    .lpa-header__title {
        padding-top: 0;
        margin-bottom: 10px;
    }

    .lpa-header__title span {
        font-size: 2.3rem;
    }

    .lpa-header_slogan {
        width: 80%;
        transform: translate(2%, -10%);
    }

    .lpa-header_date {
        width: 95%;
        transform: translateY(0%);
    }

    .lpa-header_date span {
        font-size: 1.3rem;
    }

    .lpa-header_button {
        width: 60%;
        /* margin-top: 38dvh; */
        margin-top: 65%;
    }

    .lpa-event {
        margin-top: 5vh;
        padding: 0 20px;
        gap: 50px;
    }

    .lpa-event_box {
        min-width: 55vw;
    }

    .lpa-event_title {
        font-size: 2rem;
    }

    .lpa-event_date {
        font-size: 1.2rem;
    }

    .lpa-event_footer {
        font-size: 1.2rem;
    }

    .lpa-event_body .lpa-event_footer .lpa-event_val {
        font-size: 1.5rem;
    }

    .lpa-event_box:not(:last-child)::after {
        width: 30px;
        height: 30px;
        right: -55px;
    }

    .lpa-reward_container {
        margin-top: 20px;
        padding: 0 20px;
    }

    .lpa-reward_blur {
        width: 100%;
    }

    .lpa-reward_list {
        grid-template-columns: repeat(2, 1fr);
    }

    .lpa-reward_item:last-child .lpa-reward_label {
        max-width: 70%;
    }

    .lpa-reward_footer span {
        font-size: 1.5rem;
    }

    .lpa-match_list {
        display: flex;
        flex-direction: column;
    }

    .lpa-match_item {
        display: flex;
        flex-direction: column;
    }

    .lpa-match_data {
        border-right: 0;
        border-bottom: 2px dashed #08142F;
    }

    .lpa-match_prediction_score {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .lpa-match_prediction_score>span {
        display: none;
    }

    .lpa-match_prediction_score>.lpa-match_prediction_btn {
        display: block;
        height: 100%;
    }

    .lpa-match_prediction>.lpa-match_prediction_btn {
        display: none;
    }

    .lpa-standing,
    .lpa-board-mobile {
        display: flex;
        flex-direction: column;
        padding: 0 8px;
        margin-top: 20px;
    }

    .lpa-board-mobile {
        margin-bottom: 20px;
    }

    .lpa-board {
        display: none;
    }

    .lpa-board_menu_item {
        height: 40px;
        font-size: .8rem;
    }

    .lpa-board_menu_item img {
        max-height: 30px;
    }

    .lpa-standing .lpa-board_menu_item {
        width: 70%;
        justify-content: start;
    }

    .lpa-board-mobile .lpa-board_menu_item {
        width: 50%;
        justify-content: start;
    }

    .board-table_row {
        grid-template-columns: 100px 1fr 100px;
    }

    .board-table_row .board-table_item:first-child img {
        max-height: 30px;
    }

    .lpa-board_content {
        max-height: 300px;
    }

    .lpa-match {
        margin: 20px 16px 0;
    }

    .lpa-reward_token {
        max-width: 25%;
    }

    .user-board {
        margin-top: 20px;
        padding: 20px 8px;
        border-radius: 16px;
        border: 1px solid #000D2B;
        background-image: linear-gradient(160deg, #0091ff79 0%, transparent 22%, #0C1B3E 66%, #0091ff7b 100%);
    }

    .user-board .user-board_icon {
        display: none;
    }
}

@media (width <=400px) {
    .lpa-reward_footer span {
        font-size: 1.2rem;
    }

    .lpa-header__title span {
        font-size: 2rem;
    }

    .lpa-match_title {
        font-size: 1.2rem;
    }

    .lpa-board_menu_item {
        font-size: .7rem;
    }

    .lpa-board_table {
        font-size: .75rem;
    }

    .lpa-match_prediction_score>.lpa-match_prediction_btn {
        font-size: .75rem;
        padding: 8px
    }

    .lpa-countdown_fifa {
        min-width: 75px;
    }

    .lpa-event_footer {
        font-size: 1.2rem;
    }

    .lpa-event_body .lpa-event_footer .lpa-event_val {
        font-size: 2rem;
        padding-left: 3px;
    }
}

@media (height <=400px) {
    .lpa-event_box {
        min-width: 35vw;
    }
}