* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
}

:root {
    --primary-color: #246a58;
    --light-color: #f4f4e8;
    --dark-color: #143b30;
    --accent-color: #141E46;
}

body {
    font-size: 1rem;
    line-height: 1.2;
    color: #333;
    background-color: var(--light-color);
}

img {
    max-width: 100%;
}

/* Navbar */
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    background-color: var(--primary-color);
    z-index: 1000;
    width: 100%;
    margin: 0px auto;
    padding: 0px 50px;
    position: fixed;
}

#navbar-logo {
    color: var(--light-color);
    cursor: pointer;
    text-decoration: none;
    font-size: 2.5rem;
    font-family: 'Graduate', serif;
    text-shadow: 3px 2px 0px var(--dark-color);
    padding-right: 2rem;
}

.navbar-menu {
    display: flex;
    justify-content: center;
    list-style: none;
}

.navbar-item {
    height: 80px;
    align-items: center;
}

.navbar-link {
    color: var(--light-color);
    text-decoration: none;
    height: 100%;
    padding: 0 1rem;
    display: flex;
    align-items: center;
}

.navbar-link:hover {
    color: var(--accent-color);
    transition: all 0.3s ease;
}

#bars {
    overflow-y: hidden;
}

.navbar-toggle {
    display: none;
}

/* Main */

.main-container {
    display: block;
    margin-top: 5rem;
    padding: 0 3rem 1.5rem;
    letter-spacing: 1px;
}

.main, .main-content {
    width: 100%;
}

.main-heading {
    margin: 0.5rem;
    font-size: 2rem;
    line-height: 1.4;
    font-weight: 600;
}

.main-content > p {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}


/* Default Table Style */
.live-table-container {
    width: 100%; 
    overflow-x:scroll;
}
#live-table {
    border-collapse: collapse;
    border-radius: 5px 5px 0 0;
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.20);
    width: 100%;
    margin-top: 1.5rem;
}

#live-table thead tr {
    background-color: var(--primary-color);
    color: var(--light-color);
    text-transform: uppercase;
    text-align: left;
}
    
#live-table th, #live-table td {
    padding: 0.5rem 0.8rem;
    letter-spacing: 2px;
}
    
#live-table tbody tr {
    border-bottom: 0.5px solid #dddddd;
}
    
#live-table tbody tr:nth-child(odd) {
    background-color: #ededd8;
}

#live-table tbody tr:hover {
    background-color: var(--dark-color);
    color: var(--light-color);
}
    
#live-table tbody tr:last-of-type {
    border-bottom: 2px solid var(--dark-color);
}

.channel-column {
    min-width: 120px;
}

.thumbnail-column {
    min-width: 120px;
}

/* Date separator for last item of each date */
#live-table tbody tr.last-of-date {
    border-bottom: 3px solid var(--primary-color) !important;
}


/* Responsive Styles */

/* Mobile up to 576px */
@media screen and (max-width: 576px) {
    .navbar-container {
        height: 100px;
        padding: 0px 30px 0 10px;
    }

    .navbar-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50px;
        transform: translateY(-50%);
        color: var(--light-color);
        z-index: 10;
        font-size: 1.5rem;
        border: none;
        background: none;
        cursor: pointer;
        padding: 0;
    }

    .navbar-menu {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        position: fixed;
        top: 100px;
        right: -100%;
        width: 100%;
        opacity: 0;
        transition: all 0.3s ease;
        background-color: var(--dark-color);
        z-index: 10;
        margin: 0;
    }

    .navbar-menu.active {
        right: 0;
        opacity: 1;
    }
    #navbar-logo {
        font-size: 1.8rem;
    }

    .navbar-item {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .main-heading {
        font-size: 1.5rem;
        margin-top: 20px;
    }

    .main-container {
        margin-top: 100px;
        padding: 0px 10px;
        overflow-y: hidden;
    }

    #live-table {
        display: block;
        overflow-x:hidden;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.20);
        width: 100%;
        table-layout: fixed;
    }
    #live-table thead {
        display: none;
    }
    #live-table, #live-table tbody, #live-table tr, #live-table td {
        display: block;
    }

    #live-table tbody {
        padding: 0 1rem 0 0;
    }
    #live-table tbody tr {
        margin-bottom: 5px;
    }
    #live-table td {
        text-align: right;
        padding: 0.5rem 1rem 0.5rem 4rem;
        position: relative;
        white-space: normal;
        font-size: 0.8rem;
        max-height: 5rem;
        overflow-y: hidden;
    }

    #live-table img {
        max-height: 4rem;
    }

    #live-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        padding-left: 10px;
        font-weight: 700;
        text-align: left;
        font-size: 0.8rem
    }

    #live-table tbody tr:nth-child(even) {
        background-color: var(--light-color);
        color: #333;
    }

    #live-table tbody tr:nth-child(odd) {
        background-color: #ededd8;;
        color: #333;
    }

    #live-table tbody tr {
        border-bottom: 0.1px solid #cccccc;
    }

    #live-table tr:hover {
        background-color: var(--dark-color);
        color: var(--light-color);
    }

    /* Mobile date separator adjustment */
    #live-table tbody tr.last-of-date {
        border-bottom: 3px solid var(--primary-color) !important;
        margin-bottom: 15px;
    }
}

/* Tablet min width 576px up to max width 1024px */
@media screen and (min-width: 577px) and (max-width: 1024px) {
    .navbar-container {
        height: 100px;
    }

    .navbar-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50px;
        transform: translateY(-50%);
        color: var(--light-color);
        z-index: 10;
        font-size: 1.5rem;
        border: none;
        background: none;
        cursor: pointer;
        padding: 0;
    }

    .navbar-menu {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        position: fixed;
        top: 100px;
        right: -100%;
        width: 100%;
        height: calc(100%-100px);
        opacity: 0;
        transition: all 0.3s ease;
        background-color: var(--dark-color);
        z-index: 10;
        margin: 0;
    }

    .navbar-menu.active {
        right: 0;
        opacity: 1;
    }

    .navbar-item {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .main-container {
        margin-top: 100px;
    } 
}

.beat-bagent-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 150px;
}

.bagent-image {
    border-radius: 20px;
    border: 2pt solid orangered;
    overflow: hidden;
}

.bagent-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;  
}

.bagent-link {
    display: flex;
    justify-content: center;
}

.register {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    color: orangered;
    background-color: black;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    transition: background-colour 0.3s ease, colour 0.3 ease;
}

.register:visited {
    color: orangered;
    background-color: black;
}

.register:hover {
    color: black;
    background-color: orangered;
}