* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Courier;
}

/* Body styles (background) */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image: url('../images/r-tss.png');
    background-size: cover;
    background-position: center top; /* Centers the image */
    background-repeat: repeat; /* Prevents repeating */
    background-attachment: fixed; /* Keeps the background fixed while scrolling */
}


/* Navigation Bar Styles */

.navbar {
    background: rgba(255, 255, 255, 0.9);
    height: 70px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
}

#navbar-logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 2rem;
    color: grey;
}

.icon-logo {
    background-image: url("./resources/images/sleepycloudTEMPLATE.png");   
    background-repeat: no-repeat;    
    background-size: 25px;    
    background-position: center;
    margin-top: 0.5rem;
}

.icon-logo img {
    height: 40px;
    width: auto;
}

.navbar-menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
}

.navbar-item {
    height: 80px;
}

.navbar-links {
    color: grey;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%;
}

.navbar-links:hover {
    color: rgba(184,242,189,255);
    transition: all 0.3s ease;
}

@media screen and (max-width: 960px) {
    .navbar-container {
        display: flex;
        justify-content: space-between;
        height: 80px;
        z-index: 1;
        width: 100%;
        max-width: 1300px;
        padding: 0;
    }

    .navbar-menu {
        display: grid;
        grid-template-columns: auto;
        margin: 0;
        width: 100%;
        position: absolute;
        top: -1000px;
        opacity: 0;
        transition: all 0.5s ease;
        height: 50vh;
        z-index: -1;
    }

    .navbar-menu.active {
        background: #f1f1f1;
        top: 100%;
        opacity: 1;
        transition: all 0.5s ease;
        z-index: 99;
        height: 50vh;
        font-size: 1.6rem;
    }

    #navbar-logo {
        padding-left: 25px;
    }

    .navbar-toggle .bar {
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background: grey;
    }

    .navbar-item {
        width: 100%;
    }

    .navbar-links {
        text-align: center;
        padding: 2rem;
        width: 100%;
        display: table;
    }

    #mobile-menu {
        position: absolute;
        top: 20%;
        right: 5%;
        transform: translate(5%, 20%);
    }

    .navbar-toggle .bar {
        display: block;
        cursor: pointer;
    }

    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}


/* Main Content Container */

.main-content {
    flex: 1; /* Allow content to expand and fill available space */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    padding-top: 70px; /* Space for header */
}

/* Content Section Styles */
.content-section {
    max-width: 800px; /* Set a max-width for larger screens */ 
    width: 100%; /* Ensure it fits within the screen on mobile */ 
    margin: 0 auto; /* Center the content horizontally */ 
    padding: 10px; /* Optional padding for spacing */ 
    box-sizing: border-box; /* Include padding in width calculation */
    background-color: rgba(255, 255, 255, 0.7);
    color: grey;
    margin-top: 25px; /* Space below the header */
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.content-section * { 
    max-width: 100%; /* Ensure no child elements exceed the parent width */ 
    box-sizing: border-box; /* Include padding in width calculation */ 
}

.content-section img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

#icon {
    position: relative;
    height: auto;
    width: 75px;
    border-radius: 0px;
    display: flex;
    object-fit: cover;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
}

#home-content {
    display: flex;                  /* Enable flexbox */
    justify-content: center;        /* Center items horizontally */
    align-items: center;            /* Center items vertically */
    flex-direction: column;         /* Stack items vertically (optional) */
    width: 100%;                    /* Full width of the section */
    height: auto;                  /* Adjust height as needed */
    text-align: center;           /* Center text inside the content section */
    margin-bottom: 2.5px;
}

.content-section h2 {
    margin-top: 25px;
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: center;
}

.content-section h3 {
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
}


.content-section a {
    color: gray;
}

.content-section:hover a {
    color: rgba(184,242,189,255);
    transition: all 0.3s ease;
}

/* Responsive Design Adjustments */

@media (max-width: 768px) { 
    .content-section { 
        max-width: 95%; /* Make the content narrower on mobile screens */ 
        padding: 5px; /* Adjust padding for smaller screens */ 
    } 
}

@media (max-width: 480px) {
    body {
        background-size: contain; /* Adjusts the image size for mobile */
        background-position: top; /* Positions the image towards the top */
    }
}

@media (max-width: 480px) {
    .content-section {
        width: 80%; /* Adjust width for smaller screens */
        margin-top: 60px; /* Adjust space below header for mobile if needed */
    }
}

@media (max-width: 480px) {
    .content-section {
        width: 80%; /* Further adjust width for very small screens */
        margin-top: 50px; /* Adjust space below header for very small screens if needed */
    }
}

/* **** Radio **** */

#radio-container {
    text-align: center;
    margin: auto;
}

#radio-player {
    width: 100%; /* Make the player full-width within the content section */
    margin-top: 2.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255 0.3);
}

/* Radio frequency spectrum */
#radio-frequency {
    width: 100%;
    height: 100px;
    align-items: center;
    margin-bottom: 2.5px;
    background-color: rgba(255, 255, 255 0.3);
    border-radius: 5px;
}

/* **** Mix **** */

/* Container for grid layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
    max-width: 860px; /* Max 4 columns of 200px + gaps */
    margin: auto;
}
  
.album {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
  
.album:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.7);
}
  
.album .image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
}
  
.album img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    display: block;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
  
.album:hover img {
    opacity: 0.4;
}
  
.album-title {
    padding: 0.5rem;
    text-align: center;
    font-weight: normal;
    font-size: 0.95rem;
    line-height: 1.2;
    max-height: 5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    border-color: transparent;
}

.player-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1rem;
    text-align: center;
}

audio {
    width: 100%;
    margin-top: 1.5rem;
}
  

/* Container for the album cover and controls */
.album-container {
    position: relative;
    width: 300px;                  /* Set the size of the album cover */
    height: 300px;
    margin: 0 auto;                /* Center the container horizontally */
    overflow: hidden;              /* Ensure controls are confined within the container */
    border-radius: 8px;            /* Optional: Rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Optional: Add a shadow for depth */
    margin-bottom: 2.5px;
}
  
/* Style for the album cover */
.album-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
}

/* Controls container */
.controls {
    position: absolute;
    top: 50%;                      /* Center the controls vertically */
    left: 50%;                     /* Center the controls horizontally */
    transform: translate(-50%, -50%); /* Offset to center properly */
    width: 100%;                   /* Full width for better control alignment */
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(246,171,164,0.75); /* Semi-transparent black background when hovered */
    opacity: 0;                    /* Hidden by default */
    transition: opacity 0.3s ease; /* Smooth transition when showing controls */
    pointer-events: none;          /* Disable clicking on the hidden area */
}
  
/* Show controls when hovering over the album cover */
.album-container:hover .controls {
    opacity: 1;                    /* Make the controls visible on hover */
    pointer-events: all;           /* Enable clicking on the controls */
}
  
/* Style for the audio player */
#audio-player {
    background: transparent;        /* Transparent background to show the cover */
    width: 100%;                     /* Set a width for the controls */
    border: none;                   /* Remove default borders */
    outline: none;                  /* Remove outline */
    color: white;                   /* White controls for better visibility */
}
  
/* Hide the default audio player UI except for play/pause controls */
#audio-player::-webkit-media-controls-enclosure {
    background: transparent;
}


/* Play button styling */
#play-button {
    font-size: 48px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    transition: transform 0.2s ease;
}

/* Add a hover effect for the play button */
#play-button:hover {
    transform: scale(1.1);          /* Slightly enlarge the button on hover */
}

/* Make the layout responsive with media queries */
@media (max-width: 768px) {
    .album-container {
        width: 250px;
        height: 250px;
}

#play-button {
    font-size: 36px; /* Slightly smaller button for mobile */
}
}
  
@media (max-width: 480px) {
.album-container {
    width: 200px;
    height: 200px;
}
    
    #play-button {
        font-size: 30px; /* Even smaller for small mobile screens */
    }
}

#song-title {
    font-size: medium;
}

.scrolling-text-wrapper {
    width: 100%;
    overflow: hidden;
}

.scrolling-text {
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: scrolling-text 10s linear infinite;
}

.scrolling-text p {
    margin: 0 0 0 0;
    display: inline-block;
    font-size: medium;
    color: grey; /* Set the color of the text */
}

/* Keyframes for Scrolling Animation */
@keyframes scrolling-text {
    0% {
        transform: translate(100%);
    }
    100% {
        transform: translate(-100%);
    }
}

#tab-icon {
    width: 100%;
    height: auto;
}

/* Styling for the home page navigation menu */
#menu {
    width: 100%;                 /* Full width of the menu */
    padding: 20px;               /* Padding around the menu */
    text-align: left;          /* Center the menu content */
}

/* Menu item container for image and button */
.menu-item {
    display: flex;               /* Use flexbox for horizontal alignment */
    justify-content: left;     /* Center the image and button horizontally */
    align-items: left;         /* Align items vertically in the center */
    gap: 10px;                   /* Space between the image and button */
    margin: 10px 0;              /* Optional: Margin for spacing between menu items */
    vertical-align: middle;
}
  
/* Button styling */
.menu-button {
    padding: 10px 20px;          /* Padding inside the button */
    font-size: 1.25em;              /* Button text size */
    color: gray;                 /* Button text color */
    border: gray;
    border-radius: 5px;          /* Rounded corners for the button */
    cursor: pointer;             /* Show pointer on hover */
    transition: background-color 0.3s ease;  /* Smooth hover effect */
    display: flex;
    justify-content: center;     /* Center the image and button horizontally */
    align-items: center;         /* Align items vertically in the center */
    white-space: nowrap;
    gap: 50px;   
    width: 100%;
    background-color: rgba(255, 255, 255, 0.5);
}
  
.menu-button:hover {
    /* background-color: rgba(246,171,164,0.75); */
    background-color: gray;
    color: white;
    transition: all 0.3s ease;
}

/* Link styling */
.menu-link {
    text-decoration: none;       /* Remove underline from links */
  }