@import '../../../../assets/scss/abstracts/variables';
@import '../../../../assets/scss/abstracts/mixins';

.shg-blocks .shg-game-odds {
    width: calc(var(--vw, 1vw) * 100);
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 99.55vw;

    .container.content {
        padding-left: 20px;
        padding-right: 20px;

        .inner-content {
            .odd-header {
                .odd-title {
                    width: 100%;
                    display: flex;
                    margin-bottom: 1.5rem;
                    scroll-margin-top: 2rem;
                    color: var(--color-game-odd-title-color);

                    @media (max-width: $breakpoint-md) {
                        & {
                            justify-content: center;
                            text-align: center;
                        }
                    }
                }
            }

            .odd-content {
                width: 100%;
                display: flex;
                justify-content: center;
                align-items: center;

                @media (max-width: $breakpoint-sm) {
                    & {
                        flex-direction: column;
                    }
                }

                .odd-body {
                    min-width: 40rem;
                    border-radius: .5rem;
                    padding: 1.5rem 1.3rem;
                    background-color: var(--color-game-odd-inner-bg);
                    box-shadow: 0 0 4px 0 var(--color-game-odd-inner-shadow);

                    @media (max-width: $breakpoint-md) {
                        & {
                            min-width: 37rem;
                            padding: 1.3rem 1rem;
                        }
                    }

                    @media (max-width: 620px) {
                        & {
                            width: 100%;
                            min-width: inherit;
                            padding: 1rem;
                        }
                    }

                    .odd-header {
                        width: 100%;
                        display: flex;
                        justify-content: space-between;
                        padding-left: .5rem;

                        @media (max-width: $breakpoint-md) {
                            & {
                                width: 100%;
                                flex-direction: row;
                                padding-left: .5rem;
                            }
                        }

                        @media (max-width: 620px) {
                            & {
                                flex-direction: column;
                                padding-left: 0;
                            }
                        }

                        .header-date {
                            width: 40%;
                            color: var(--color-game-odd-date);

                            @media (max-width: $breakpoint-md) {
                                & {
                                    width: 40%;
                                    text-align: inherit;
                                }
                            }

                            @media (max-width: 620px) {
                                & {
                                    width: 100%;
                                    text-align: center;
                                }
                            }
                        }

                        .header-labels {
                            width: 60%;
                            display: flex;
                            text-transform: uppercase;
                            text-align: center;
                            white-space: nowrap;
                            color: var(--color-game-odd-labels);

                            @media (max-width: $breakpoint-md) {
                                & {
                                    width: 60%;
                                }
                            }

                            @media (max-width: 620px) {
                                & {
                                    width: 100%;
                                    text-align: center;
                                }
                            }

                            .spread {
                                width: 30%;
                            }

                            .moneyline {
                                width: 32%;
                            }

                            .over-under {
                                width: 38%;
                            }
                        }
                    }

                    .odd-teams {
                        display: flex;
                        flex-direction: column;
                        padding-left: .5rem;
                        gap: .5rem;

                        @media (max-width: $breakpoint-md) {
                            & {
                                padding-left: .5rem;
                            }
                        }

                        @media (max-width: 620px) {
                            & {
                                padding-left: 0;
                            }
                        }

                        .team {
                            display: flex;

                            @media (max-width: $breakpoint-md) {
                                & {
                                    flex-direction: row;
                                }
                            }

                            @media (max-width: 620px) {
                                & {
                                    flex-direction: column;
                                }
                            }

                            .team-name {
                                width: 40%;

                                @media (max-width: $breakpoint-md) {
                                    & {
                                        width: 40%;
                                        text-align: inherit;
                                        background-color: inherit;
                                    }
                                }

                                @media (max-width: 620px) {
                                    & {
                                        width: 100%;
                                        text-align: center;
                                        background-color: var(--color-game-odd-team-name-bg);
                                    }
                                }
                            }

                            .team-stats {
                                width: 60%;
                                display: flex;
                                gap: .5rem;
                                text-align: center;
                                white-space: nowrap;

                                @media (max-width: $breakpoint-md) {
                                    & {
                                        width: 60%;
                                    }
                                }

                                @media (max-width: 620px) {
                                    & {
                                        width: 100%;
                                    }
                                }

                                .spread {
                                    width: 30%;
                                    display: flex;
                                    flex-direction: row;
                                    justify-content: space-between;

                                    :first-child {
                                        margin-right: .5rem;
                                    }
                                }

                                .moneyline {
                                    width: 32%;
                                }

                                .over-under {
                                    width: 38%;
                                    display: flex;
                                    flex-direction: row;

                                    :first-child {
                                        margin-right: .5rem;
                                    }
                                }

                                .spread .stats-multi, .over-under .stats-multi {
                                    width: 50%;
                                    display: flex;
                                    justify-content: center;
                                    padding: 0 .2rem;
                                }

                                .bg-green {
                                    border-radius: .2rem;
                                    background-color: var(--color-game-odd-bg-green);// #d3f3c2;
                                }

                                // .bg-grey {
                                //     border-radius: .2rem;
                                //     background-color: var(--color-game-odd-bg-grey); //#f5f8fd;
                                // }
                            }
                        }
                    }
                }
            }
        }
    }
}

.acf-block-preview {
    .shg-game-odds {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}
