/* Reset and Base Styles */
body {
    font-family: sans-serif;
    background-color: #18191e;
    color: #aeb3b6;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

#maincontain {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background-color: #0f1115;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 70px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav a {
    color: #aeb3b6;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #282a31;
}

nav ul li.active a {
    background-color: #282a31;
    color: #fff;
}

/* Main Content Area */
main {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Now Playing Section */
#nowplaying {
    background-color: #0f1115;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.now-playing-container {
    display: flex;
    align-items: center;
    padding: 10px;
}

.now-playing-image img {
    max-width: 150px;
    height: 150px;
    object-fit: cover;
    margin-right: 20px;
}

/* Upcoming, Top Song, We've Just Played Sections */
.sections {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 20px;
}

.section {
    background-color: #0f1115;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.section img {
    max-width: 100%;
    height: 160px;
    object-fit: cover;
    margin-bottom: 10px;
}

.section p {
    margin-top: 10px;
    font-weight: 400;
}

.section h3 {
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Footer */
footer {
    background-color: #0f1115;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

/* Responsive Design */
@media (min-width: 768px) {
    main {
        flex-direction: row;
    }

    #nowplaying, .sections {
        width: 100%;
    }

    .section {
        width: calc(33.33% - 20px);
        margin-right: 20px;
    }

    .section:last-child {
        margin-right: 0;
    }
}

@media (min-width: 1024px) {
    .section {
        width: calc(25% - 20px);
    }
}

/* Image Quality Improvement */
.section img, .now-playing-image img {
    image-rendering: optimizeSpeed; /* Standard property */
    -webkit-image-rendering: -webkit-optimize-contrast; /* Vendor prefix */
}

.scrolling-text {
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: scrollText 10s linear infinite;
}

@keyframes scrollText {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}
/* requests.php Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #282a31; /* Dark border */
    padding: 10px;
    text-align: left;
    white-space: nowrap; /* Prevent text wrapping */
        vertical-align: middle; /* Align content vertically in the middle */
}

th {
    background-color: #0f1115; /* Header background */
    color: #aeb3b6;
}

/* Add these lines here */
th:nth-child(1), td:nth-child(1) { /* Album Art */
    width: 80px; /* Adjust as needed */
    text-align: center;
}

th:nth-child(2), td:nth-child(2) { /* Artist */
    width: 20%; /* Adjust as needed */
}

th:nth-child(3), td:nth-child(3) { /* Title */
    width: 40%; /* Adjust as needed */
}

th:nth-child(4), td:nth-child(4) { /* Time */
    width: 15%; /* Adjust as needed */
    text-align: center;
}

th:nth-child(5), td:nth-child(5) { /* Request Button */
    width: 15%; /* Adjust as needed */
    text-align: center;
}

td img {
    max-width: 60px; /* Adjust album art size */
    max-height: 60px;
    vertical-align: middle;
}

td button {
    padding: 6px 10px; /* Adjust button padding */
}

/* Request Button Styles */
.request-button {
    background-color: #007bff;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.request-button:hover {
    background-color: #0056b3;
}

/* Responsive Table (Example) */
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr { border: 1px solid #ccc; }

    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }

    td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
        font-weight: bold;
    }
}

/* Modal Styles */
.rdjmodal {
    display: none;
    position: fixed;
    z-index: 1;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    max-width: 100%;
    height: 400px;
    max-height: 100%;
    overflow: auto;
    background-color: #161c20;
    background-image: url(../img/rdj-req.png);
}

.rdjmodal-content {
    background-color: #fefefe;
    margin: 70px auto 15% auto;
    border: 1px solid #888;
    width: 60%;
}

.rdjclose {
    position: absolute;
    right: 25px;
    top: 0;
    color: #680101;
    font-size: 35px;
    font-weight: bold;
    max-height: 70px;
}

.rdjclose:hover, .rdjclose:focus {
    color: red;
    cursor: pointer;
}

.animate {
    -webkit-animation: animatezoom 0.6s;
    animation: animatezoom 0.6s;
}

@-webkit-keyframes animatezoom {
    from { -webkit-transform: scale(0); }
    to { -webkit-transform: scale(1); }
}

@keyframes animatezoom {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* Responsive Modal */
@media screen and (max-width: 300px) {
    span.psw {
        display: block;
        float: none;
    }
    .cancelbtn {
        width: 100%;
    }
}


.upcoming-artist, .upcoming-title {
    word-wrap: break-word; /* Allow long words to wrap */
    margin: 0; /* Remove default margins */
    font-size: 14px; /* Adjust font size as needed */
    line-height: 1.2; /* Adjust line height as needed */
}

.upcoming-artist{
    font-weight: bold;
}

.upcoming-title{
    font-size:12px;
}

.media-body{
    overflow: hidden; /*prevents content from overflowing container*/
}

/* requests.php List Styles */
ul.reqil {
    list-style: none; /* Remove bullet points */
    padding: 0;
    margin: 0;
    display: flex; /* Use flexbox for horizontal layout */
    align-items: center; /* Vertically align items */
    width: 100%; /* Ensure the list takes full width */
    flex-wrap: nowrap; /* Prevent wrapping */
}

ul.reqil li {
    display: inline-block;
    vertical-align: middle;
    padding: 8px;
    box-sizing: border-box; /* Include padding in width */
    white-space: nowrap; /* Prevent text wrapping */
}

ul.reqil li:nth-child(1) { /* Album Art */
    width: 10%;
    text-align: center;
}

ul.reqil li:nth-child(2) { /* Artist */
    width: 34%;
}

ul.reqil li:nth-child(3) { /* Title */
    width: 32%;
}

ul.reqil li:nth-child(4) { /* Time */
    width: 6%;
    text-align: center;
}

ul.reqil li:nth-child(5) { /* Request Button */
    width: 15%;
    text-align: center;
}

ul.reqil li img {
    max-width: 60px;
    max-height: 60px;
    vertical-align: middle;
}

ul.reqil li button {
    padding: 6px 10px;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
