* {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    background-color: #1d1d1d;
}

body p, h1 {
    color: white;
}

.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

#xButton {
    width: 8%;
    display: none;
    margin-bottom: 15px;
}

.navBar {
    border-bottom: solid 1px #1B1212;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    height: 70px;
    justify-content: center;
    place-items: center;
    margin-bottom: 25px;
    background-color: rgb(240, 136, 117);
}

.imgText {
    margin-left: 50px;
    width: 30%;
}

.imgLogo {
    width: 17%;
}

.navElement a {
    text-decoration: none;
    color: black;
    font-size: 20px;
    align-items: right;
    font-weight: bolder;
    transition: color 0.5s ease-out;
}

.navElement a:hover {
    color: white;
}

.navElement a:nth-child(2) {
    margin-right: 70px;
}

.btnWrapper {
    display: flex;  /* Enables Flexbox */
    justify-content: flex-end;  /* Aligns the buttons to the right */
    width: 100%;  /* Ensures full width container */
    gap: 3px;
}

.btnWrapper p {
    font-size: 18px;
}

.btnWrapper img {
    width: 27px;
    transition: 0.3s ease-in-out;
}

.btnWrapper img:hover {
    opacity: 70%;
}

.matches-wrapper *{
    display: flex;
    flex-direction: row;
}

.catName {
    text-decoration: underline;
}

#sportsCategory {
    overflow: hidden;
}

#sportsCategory div {
    display: flex;
    flex-direction: column;
    margin: 20px 0px 20px 25px;
    transition: transform 0.4s ease-in-out;
    cursor: pointer;
}

#sportsCategory div h1 {
    color: black;
}

#sportsCategory div:hover {
    transform: translateY(-10px)
}

#sportsCategory h1 {
    max-width: 150px;
    min-width: 100px;
    min-height: 50px;
    max-height: 50px;
    justify-content: center;
    align-items: center;
    background-color: rgb(207, 207, 207);
    font-size: 18px;
    border-radius: 5px;
    padding: 40px;
}

#popular_Live, #popular_Today, #popular_All, #popular_Fb, #popular_Basketball, #popular_Af, #popular_Cricket, #popular_Baseball{
    overflow: hidden;
    white-space: normal;
    margin-left: 25px;
}

#popular_Live div, #popular_Today div, #popular_All div, #popular_Fb div, #popular_Basketball div, #popular_Af div, #popular_Cricket div, #popular_Baseball div{
    min-width: 300px;
    max-width: 300px;
    margin: 10px 2px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.4s ease-in-out;
    flex-wrap: wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#popular_Live div:hover, #popular_Today div:hover, #popular_All div:hover, #popular_Fb div:hover, #popular_Basketball div:hover, #popular_Af div:hover, #popular_Cricket div, #popular_Baseball div:hover{
    transform: translateY(-10px)
}

.matchImage {
    width: 250px;
    height: auto;
    border-radius: 5px;
}

.message {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

.streamLinks{display:flex;justify-content:space-between;align-items:center;background-color:#e23e57;height:60px; flex-wrap: wrap;}

.streamLinks a {text-decoration: none; color:white;}


/* Tablets & iPads (between 769px - 1024px) */
@media screen and (max-width: 1024px) {

    .streamLinks span {
        display: inline-block;
        font-size: 12px;
    }

    .navBar {
        grid-template-columns: 1fr 1fr 1fr;
        height: 70px;
    }

    .imgText {
        width: 70%;
    }

    .imgLogo {
        width: 40%;
    }

    #xButton {
        display: block;
    }

    .navElement {
        position: fixed;
        background: rgb(240, 136, 117);
        border-left: solid 3px #e23e57;
        top: 0;
        right: -550px;
        width: 40%;
        height: 100vh;
        padding: 10px;
        flex-direction: column;
        text-align: center;
        justify-content: center;
        align-items: center;
        z-index: 999;
        transition: 0.3s ease;
    }

    .navElement a {
        display: block;
        margin: 0 !important;
        padding: 10px;
        border-bottom: 1px solid #ddd;
        font-size: 18px;
    }

    .hamburger {
        display: block;
    }

    .navElement.active {
        right: 0;
    }

    .btnWrapper {
        justify-content: right;
        flex-wrap: wrap;
    }

    #sportsCategory {
        margin-left: 5px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    #sportsCategory::-webkit-scrollbar {
        display: none;
    }

    #sportsCategory div {
        margin: 15px;
        scroll-snap-align: start;
    }

    #popular_Live, 
    #popular_Today,
    #popular_All,
    #popular_Fb,
    #popular_Basketball,
    #popular_Af,
    #popular_Cricket,
    #popular_Baseball {
        margin-left: 5px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    #popular_Live::-webkit-scrollbar, 
    #popular_Today::-webkit-scrollbar,
    #popular_All::-webkit-scrollbar,
    #popular_Fb::-webkit-scrollbar,
    #popular_Basketball::-webkit-scrollbar,
    #popular_Af::-webkit-scrollbar,
    #popular_Cricket::-webkit-scrollbar,
    #popular_Baseball::-webkit-scrollbar {
        display: none;
    }

    #popular_Live div, 
    #popular_Today div,
    #popular_All div,
    #popular_Fb div,
    #popular_Basketball div,
    #popular_Af div,
    #popular_Cricket div,
    #popular_Baseball div {
        min-width: 50%;
        max-width: 50%;
        scroll-snap-align: start;
    }

    .btnWrapper {
        display: none;
    }

    .matchImage {
        width: 90%;
    }
}


@media screen and (max-width: 768px) {

    .streamLinks {
        border-top: #1B1212 solid 1px;
    }

    .streamLinks span {
        font-size: 10px;
    }

    .imgText, .imgLogo {
        width: 60%; /* Adjust logo size */
        margin: 0 auto;
    }

    #sportsCategory div {
        margin: 10px;
    }

    #sportsCategory h1 {
        max-width: 100%;
        padding: 20px;
        font-size: 16px;
    }

    .catName {
        font-size: 25px;
    }
}