* {
    outline: none;
    text-decoration: none;
    font-family: 'Titillium Web', sans-serif;
    box-sizing: border-box;
}
body {
    background-color: var(--plt-10);
    margin: 0;
}
.modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    transform: scale(1.1);
    transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
    z-index: 20;
    padding: 10px;
    overflow: hidden;
    .modal-content {
        align-self: center;
        background-color: var(--plt-2);
        width: 100%;
        max-width: 450px;
        border-radius: 0.5rem;
        overflow: hidden;
        .btn-close {
            float: right;
            width: 2.5rem;
            height: 2.5rem;
            border-bottom-left-radius: 6px;
            font-size: 2rem; 
            display: flex;
            justify-content: center;
            align-items: center;
            background: var(--btn-2);
            background-color: #2dabf9;
            cursor: pointer;
            color: #ffffff;
            border: none;
            text-decoration: none;
            &:hover {
                background: var(--btn-2-hover);
            }
        }
        h3 {
            margin: 0;
            padding: 8px 10px;
            color: #fff;
            background-color: var(--plt-3);
        }
        .wrap-modal {
            padding: 10px;
            display: grid;
            width: 100%;
            grid-template-columns: 1fr 1fr;
            .left {
                img {
                    width: 100%;
                }
            }
            .right {
                margin-left: 10px;
                .pattern-container {
                    .jackpot-time {
                        p {
                            margin: 0;
                            padding: 5px;
                            text-align: center;
                            color: #fff;
                            font-weight: bold;
                        }
                        .title-jackpot {
                            background-color: var(--plt-3);
                        }
                        .jamgacorRange {
                            background-color: var(--plt-4);
                        }
                    }
                    .table-pattern {
                        margin-top: 10px;
                        .pattern-title {
                            background-color: var(--plt-3);
                            p {
                                text-align: center;
                                padding: 5px;
                                margin: 0;
                                color: #fff;
                            }
                        }
                        .pattern {
                            p {
                                margin: 0;
                                color: #fff;
                                padding: 5px;
                                text-align: center;
                                &:nth-child(odd) {
                                    background-color: var(--plt-4);
                                }
                                &:nth-child(even) {
                                    background-color: var(--plt-5);
                                }
                            }
                        }
                    }
                }
            }
        }
        .modal-button {
            display: grid;
            grid-template-columns: 1fr 1fr;
            text-align: center;
            color: #fff;
            a {
                text-transform: uppercase;
                padding: 9px;
                color: #fff;
                &:first-child {
                    justify-content: center;
                    align-items: center;
                    background: var(--btn-1);
                    background-color: #2dabf9;
                    display: flex;
                    cursor: pointer;
                    border: none;
                    text-decoration: none;
                    &:hover {
                        background:var(--btn-1-hover);
                        background-color:#0688fa;
                    }
                }
                &:last-child {
                    background: var(--btn-2);
                    
                    &:hover {
                        background: var(--btn-2-hover);
                    }
                }
            }
        }
    }
}
.show-modal {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
}
.wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 0 10px;
}
header {
    .top-header {
        background-color: var(--plt-9);
        border-bottom: var(--border-width) solid var(--primary-color);
        .wrapper {
            display: grid;
            grid-template-columns: 1fr 1fr;
            padding: 15px 10px;
            > div {
                display: flex;
                align-items: center;
            }
            .logo {
                a {
                    display: flex;
                   img {
                    width: 100%;
                    max-width: 240px;
                   } 
                }
            }
            .date {
                justify-content: flex-end;
                .date-wrap {
                    background-color: var(--ply-8);
                    padding: 8px 10px;
                    display: flex;
                    align-items: center;
                    border: var(--border-width) solid var(--plt-7);
                     > p {
                        margin: 0;
                        &:first-child {
                            margin-right: 5px;
                            background-color: var(--plt-7);
                            padding: 5px 10px;
                            color: var(--text-color-1);
                            border: var(--border-width) solid var(--plt-6);
                        }
                        &:last-child {
                            color: var(--text-color-2);
                        }
                     }
                }
            }
            @media screen and (max-width: 500px) {
                // grid-template-columns: 1fr;
                .logo {
                    // justify-content: center;
                }
                .date {
                    // margin-top: 10px;
                    // justify-content: center;
                    p {
                        font-size: 13px;
                    }
                }
            }
        }
    }
    .banner {
        .wrapper {
            padding: 15px 10px;
            display: flex;
            img {
                overflow: hidden;
                border-radius: 10px;
                width: 100%;
            }
        }
        @media screen and (max-width: 550px) {
            .wrapper {
                padding: 0;
                img{
                    border-radius: 0;
                }
            }
        }
    }
    .bottom-header {
        .wrapper {
            display: flex;
            .broadcast {
                background-color: var(--plt-9);
                border: var(--border-width) solid var(--plt-8);
                display: flex;
                border-radius: 5px;
                padding: 5px;
                width: 100%;
                marquee {
                    border-radius: 5px;
                    border: var(--border-width) solid var(--plt-7);
                    background-color: var(--plt-10);
                    color: var(--text-color-2);
                    padding: 5px;
                }
            }
            .button {
                width: 240px;
                display: grid;
                grid-template-columns: 1fr 1fr;
                margin-left: 10px;
                a {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    color: #fff;
                    text-transform: uppercase;
                    border-radius: 5px;
                    &:first-child {
                        background: var(--btn-1);
                        margin-right: 5px;
                        &:hover {
                            background: var(--btn-1-hover);
                        }
                    }
                    &:last-child {
                        margin-left: 5px;
                        background: var(--btn-2);
                        &:hover {
                            background: var(--btn-2-hover);
                        }
                    }
                }
            }
            @media screen and (max-width: 550px) {
                padding: 0;
                flex-direction: column;
                .broadcast {
                    border-radius: 0;
                }
                .button {
                    width: 100%;
                    margin-left: 0;
                    a {
                        padding: 8px;
                        border-radius: 0;
                        &:first-child {
                            margin-right: 0;
                        }
                        &:last-child {
                            margin-left: 0;
                        }              
                    }
                }
            }
        }
    }
}
main {
    margin-top: 10px;
    .wrapper {
        display: flex;
        .sidebar {
            min-width: 180px;
            ul {
                padding: 0;
                margin: 0;
                list-style: none;
                li {
                    background-color: var(--plt-9);
                    margin-bottom: 10px;
                    border-radius: 5px;
                    border: var(--border-width) solid var(--plt-8);
                    padding: 5px;
                    a {
                        background-color: var(--plt-10);
                        border: var(--border-width) solid var(--plt-8);
                        display: flex;
                        padding: 10px 15px;
                        border-radius: 5px;
                        min-width: 150px;
                        max-height: 150px;
                        justify-content: center;
                        img {
                            max-width: 125px;
                            width: 100%;
                        }
                    }
                    &:hover {
                        a {
                            background-color: var(--plt-5);
                        }
                    }
                    &:last-child {
                        margin-bottom: 0;
                    }
                }
            }
        }
        .container {
            margin-left: 10px;
            padding: 10px;
            background-color: var(--plt-9);
            width: 100%;
            border: var(--border-width) solid var(--plt-8);
            border-radius: 5px;
            .container-content {
                .container-title {
                    background-color: var(--plt-8);
                    border:var(--border-width) solid var(--plt-7);
                    border-radius: 5px;
                    h1 {
                        color: var(--text-color-1);
                        text-align: center;
                        margin: 0;

                    }
                }
                .container-search {
                    padding: 15px 0;
                    width: 100%;
                    input {
                        display: block;
                        margin-left: auto;
                        background-color: var(--plt-10);
                        border: var(--border-width) solid var(--plt-7);
                        padding: 5px 8px;
                        color: var(--text-color-2);
                        &:focus {
                            border-color: var(--primary-color);
                        }
                    }
                }
                .container-games {
                    display: grid;
                    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
                    .games-box {
                        padding: 5px;
                        .games-box-content {
                            background-color: var(--plt-8);
                            border: var(--border-width) solid var(--plt-7);
                            border-radius: 5px;
                            overflow: hidden;
                            .games-header {
                                display: flex;
                                position: relative;
                                img {
                                    width: 100%;
                                }
                                .percent {
                                    position: absolute;
                                    bottom: 0;
                                    left: 0;
                                    width: 100%;
                                    background-color: rgba(0,0,0,.7);
                                    display: flex;
                                    justify-content: space-between;
                                    padding: 5px;
                                    align-items: center;
                                    color: #fff;
                                    p {
                                        margin: 0;
                                    }
                                    .percent-container {
                                        margin: 0 5px;
                                        background-color: #fff;
                                        height: 10px;
                                        width: 100%;
                                        flex-grow: 1;
                                        border-radius: 50px;
                                        border: 1px solid #ddd;
                                        position: relative;
                                        gap: 3px;
                                        display: flex;
                                        align-items: center;
                                        .percent-bar {
                                            position: absolute;
                                            left: 0;
                                            bottom: 0;
                                            border-radius: 50px;
                                            height: 100%;
                                            height: 100%;
                                        }
                                        .green {
                                            background: linear-gradient(to right,#31a13b,#62c88d);
                                        }
                                        .red {
                                            background: linear-gradient(to right,#a13131,#c86262);
                                        }
                                        .yellow {
                                            background: linear-gradient(to right,#a16b31,#c89d62);
                                        }
                                    }
                                }
                            }
                            .games-footer {
                                button {
                                    border: none;
                                    color: #fff;
                                    text-transform: uppercase;
                                    padding: 6px;
                                    width: 100%;
                                    background: var(--btn-2);
                                    &:hover {
                                        background: var(--btn-2-hover);
                                    }
                                }
                            }
                        }
                    }
                    @media screen and (max-width: 1000px) {
                        grid-template-columns: 1fr 1fr 1fr 1fr;
                    }
                    @media screen and (max-width: 500px) {
                        grid-template-columns: 1fr 1fr 1fr;
                    }
                }
            }
            @media screen and (max-width: 500px) {
                .container-title {
                    font-size: 3vw;
                }
                .container-games {
                    .games-box {
                        .games-box-content {
                            .games-header {
                                .percent {
                                    .percent-txt {
                                        font-size: 13px;
                                    }
                                }
                            }
                        }
                    }   
                }
            }
        }
        @media screen and (max-width: 800px) {
            flex-direction: column;
            padding: 0;
            .sidebar {
                ul {
                    overflow-x: scroll;
                    display: flex;
                    &::-webkit-scrollbar {
                        background-color: var(--plt-10);
                        height: 9px;
                    }
                    &::-webkit-scrollbar-thumb {
                        background-color: #58585a;
                        border-radius: 15px;
                    }
                    li {
                        margin-bottom: 0;
                        border-radius: 0;
                        border-left: 0;
                        border-right: 0;
                        a {
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            min-width: 150px;
                            min-height: 85px;
                        }
                    }
                }
            }
            .container {
                padding: 0;
                padding-bottom: 5px;
                margin-left: 0;
                min-height: 100vh;
                .container-content {
                    .container-title {
                        padding: 10px;
                        margin: 10px;
                    }
                    .container-search {
                        @media screen and (max-width: 550px) {
                            padding: 4px  10px;
                        }
                    }
                }
            }
        }
    }
    @media screen and (max-width: 550px) {
        margin-top: 0;
    }
}
footer {
    .wrapper {
        .image {
            padding-top: 35px;
            padding-bottom: 10px;
            img {
                display: block;
                max-width: 650px;
                margin: auto;
                width: 100%;
            }
        }
        .copyright {
            padding-bottom: 10px;
            text-align: center;
            color: var(--text-color-1);
            a {
                color: var(--primary-color);
            }
        }
    }
}