*,
*::before,
*::after {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Urbanist';
    src: url('../fonts/Urbanist-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* Basic styling */

html, body {
    margin: 0;
    height: 100%;
}

body {
    font-family: Urbanist, sans-serif;
    line-height: 1.6;
    padding: 0;
    color: #333;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100%;
}

header {
    background: #333;
    color: #fff;
    /* min-height: 70px; */
    border-bottom: #000 4px solid;
}
.header-container {
    width: 100%;
    margin: auto;
    overflow: hidden;
    display: flex;
    flex-direction: row; /* Make the container a flex column */
    height: 100%;
}
header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}
header ul {
    padding: 0;
    list-style: none;
}
header li {
    display: inline;
}
header #branding {
    float: left;
}
header #branding img {
    margin: 0;
}
header nav {
    float: right;
    margin-top: auto;
    margin-left: auto;
}

.inactive a {
    color: white;
}
.nav-link {
    color: rgb(214, 214, 214);
    transition: background-color 0.3s ease;
}

.active:hover a {
    background-color: #004a9a;
}

.inactive:hover {
    color: white;
    background-color: #ffffff;
}

.banner img {
    height: 150px;
    float: left;
}
.container {
    display: flex;
    flex-grow: 1;
    width: 100%;
    margin: 0;
    overflow: visible;
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}
.sidebar {
    width: 300px; 
    background-color: #212121;
    color: #fff;
    padding: 20px;
    border-right: #000 1px solid;

}
.content {
    flex: 1; 
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
h1 {
    font-size: 24px;
    margin-bottom: 20px;
}
.sidebar p, .sidebar a {
    margin: 10px 0;
}
.sidebar a {
    display: block;
    color: #007bff;
    text-decoration: none;
}
.sidebar a:hover {
    text-decoration: underline;
}
.highlight, header .current a {
    color: #e8491d;
    font-weight: bold;
}
.played { color: green; }
.unplayed { color: rgb(255, 166, 0); }

.submitform {
    text-align: center;
}

/* footer styling */

footer {
    background: #333;
    color: #fff;
    border-top: #000 1px solid;
    padding: 10px;
    padding-left: 20px;
    margin-top: auto;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 18px;
    text-align: left;
}

table th, table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f2f2f2;
    color: #333;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f1f1f1;
}

table tr.played {
    text-decoration: line-through;
    color: green;
    background-color: rgb(206, 255, 206);
}

table tr.unplayed {
    color: rgb(31, 31, 31)(0, 51, 255);
}

table td.played {
    text-decoration: line-through;
    color: green;
}

table td.played2 {
    color: green;
}

table td.unplayed {
    color: rgb(31, 31, 31)(0, 51, 255);
}

/* Flash Messages Styling */
.flash-messages {
    width: 80%;
    margin-bottom: 20px auto;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.alert-warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc;
}

.alert-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

/* Button Styling */
.btn {
    background-color: #007bff; 
    color: #ffffff; 
    border: none;
    border-radius: 20px; 
    padding: 10px 20px;
    margin-top: 5px;;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: Montserrat, sans-serif;
}

.btn:hover {
    background-color: hsl(211, 100%, 29%); 
}

.btn-danger {
    background-color: #dc3545;
    color:#fff;
    text-align: center;
}

.btn-danger:hover {
    background-color: #9b1b28;
}

.btn-success {
    background-color: #28a745;
    color: #fff;
    text-align: center;
}

.btn-success:hover {
    background-color: #218838; 
}

.btn-warning {
    background-color: #ffc107; /* Yellow background */
    color: #212529; /* Dark text */
    text-align: center;
}

.btn-warning:hover {
    background-color: #e0a800; /* Darker yellow on hover */
}

.upvote-button {
    background-color: green; 
    color: white;
}

.upvote-button:hover {
    background-color: darkgreen;
    color: white;
}

.past-playlist {
    margin-top: 0;
}

.playlist-times {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0px;
}

.playlist-starttime {
    text-align: left;
    margin: 0;
}

.playlist-endtime {
    text-align: right;
    margin: 0;
}

h2 {
    text-align: center;
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        font-family: Urbanist, sans-serif;
    }

    .header-container {
        width: 100%;
        max-width: 1200px;
        flex-direction: column;
    }

    .container {
        flex-direction: column; /* Stack sidebar and content vertically */
        width: 100%;
        height: auto;
    }

    .sidebar {
        width: 100%; /* Make sidebar full width */
        text-align: center;
    }

    .sidebar h1 {
        margin-top: 0px;
        margin-bottom: 20px;
    }

    .content {
        width: 100%; /* Make content full width */
        align-items: normal;
        padding: 0;
        padding-top: 15px;
    }

    button {
        font-family: Montserrat, sans-serif;
    }

    nav {
        float: none;
        margin: 0;
        background: #333;
        color: #fff;
        text-align: center;
        display: flex;
        flex-direction: row;
        margin-left: auto;
        margin-right: auto;
    }

    nav a {
        text-decoration: none;
        text-transform: uppercase;
        color: #fff;
    }

    nav ul {
        display: flex;
        flex-direction: row; /* Stack nav items vertically */
        align-items: center; /* Center nav items */
        padding: 0;
    }

    nav ul li {
        padding: 10px 0; /* Add space between nav items */
        list-style: none;
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    table {
        width: 100%;
        min-width: 600px; /* Adjust based on your table's content */
    }

    .banner img {
        width: 100%;
        height: auto;
    }
    footer {
        background: #333;
        color: #fff;
        border-top: #000 1px solid;
        padding: 0px;
        padding-left: 0px;
        padding-top: 10px;
        text-align: center;
    }


}