body {
    margin: 0;
    overflow: hidden;
    background-color: rgb(0, 0, 0);
}

h1 {
    color: white; /* Set H1 text color to white */
    font-size: 2em; /* Increase font size */
    text-align: center; /* Center align text */
  }
  
  p2 {
    font-size: x-small; /* Increase font size */
    text-align: center; /* Center align text */
  }

#video-container {
    margin: 0;
    overflow: hidden; /* Hide videos outside of screen */
    position: relative;
    width: 100vw;
    height: calc(100vh - 50px);
    overflow: hidden;
    z-index: 900;
}

#video_0, #video_1, #video_2{
    margin: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 50%;
    top: 50%;
    z-index: 900;
    transform: translateX(-50%) translateY(-50%);
}

#video_0 {
    transform: translateX(-50%) translateY(-150%); /* Initially outside the screen (top) */
}

#video_1 {
    transform: translateX(-50%) translateY(-50%); /* Position in the center */
}

#video_2 {
    transform: translateX(-50%) translateY(150%); /* Initially outside the screen (bottom) */
}

#menu-bar {
    z-index: 996;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgb(0, 0, 0);
    color: white;
    padding: 5px;
    display: flex;
    justify-content: space-around; /* Set equal spacing between items */
    align-items: center;
    height: 34px;
}

#menu-bar a {
    display: flex; /* Enable flexbox */
    flex-direction: column; /* Arrange elements in vertical direction */
    align-items: center; /* Align center */
    text-decoration: none; /* Remove text underline */
    color: white; /* Set text color to white */
    font-size: small;
}

#menu-bar img {
    height: 20px;
    width: auto;
    margin-bottom: 3px; /* Set margin between image and text */
}

#info-menu-bar {
    z-index: 996; /* Ensure element is above most other elements */
    position: fixed; /* Fix the position relative to the viewport */
    top: 30px; /* Set the top position of the element */
    left: 20px; /* Set the left position of the element */
    width: 30px; /* Define the width of the element */
    height: 20px; /* Define the height of the element */
    padding: 5px; /* Add padding inside the element */
    background-color: transparent; /* Make background fully transparent */
    color: white; /* Set text color to white */
    display: flex; /* Use flexbox for layout */
    justify-content: space-around; /* Distribute space evenly around items */
    align-items: center; /* Align items vertically in the center */
}

#info-menu-bar a {
    display: flex; /* Enable flexbox display */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally in their container */
    text-decoration: none; /* Remove underline from links */
    color: white; /* Set link text color to white */
    font-size: small; /* Set font size to small */
}

#info-menu-bar img {
    height: 20px; /* Set image height */
    width: auto; /* Keep image width proportional */
    margin-bottom: 3px; /* Add space below images */
}

#background-panel {
    z-index: 1001;
    position: fixed;
    top: 0;
    left: 0;
    width: 60%; /* Occupies 80% of the screen width */
    height: 100%;
    background-color: white; /* Sets the background color to white */
    color: black; /* Sets the text color to black */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Aligns items to the top */
    align-items: flex-start; /* Aligns items to the left */
    padding: 80px 20px 20px 20px; /* Adds more padding at the top to avoid overlap */
    visibility: visible; /* Initially set to visible for testing */
    opacity: 1; /* Sets opacity to 100% */
}

#background-panel a {
    font-size: 24px; /* Adjusts the font size of the links */
    text-decoration: none;
    color: black; /* Sets link text color to black */
    margin-bottom: 10px; /* Adds a bottom margin between links */
    display: block; /* Ensures links are full-width for easier alignment */
}

#background-panel.hidden {
    display: none; /* Completely hides the element, not occupying space */
}

#background-panel.visible {
    display: flex; /* Makes the element visible and part of the layout again */
}



/* Style to center align the content of the page */
.content-container {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Set the minimum height of the container to the height of the screen */
    background-color: rgba(0, 0, 0, 0.6);
}

h1 {
    margin-bottom: 20px; /* Set space between the title and the form */
}

@media (max-width: 600px) {
    /* Styles for smartphones */
}

/* Style the form */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* padding: 0 10px; Add padding on both sides */
    max-width: 600px; /* Set the maximum width of the form */
    margin: 0 auto; /* Set the left and right margin to auto to center align */
    width: 100%; /* Set the width to 100% of the parent element */
}

/* Style the input field and submit button */
input[type="url"], button.submit-icon {
    width: calc(30%); /* Width considering padding */
    padding: 5px; /* Padding for the text */
    margin-bottom: 5%; /* Margin between elements */
    box-sizing: border-box; /* Include padding and border in the width and height */
}

/* Style the submit button */
button.submit-icon {
    padding: 10px 15px; /* Set appropriate padding */
    /* Keep other styles as is */
}

/* Style to center align the content of the page */
.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Set the minimum height of the container to the height of the screen */
    width: 100%; /* Set the width of the container to the width of the screen */
    /* padding: 20px; Add padding to create space between the content and the edges */
    /* background-color: #f0f0f0; */
    background-color: rgba(0, 0, 0, 0.6);
}

h1 {
    margin-bottom: 20px; /* Set space between the title and the form */
    text-align: center; /* Center align the title */
}

form {
    display: flex;
    flex-direction: column;
    width: 100%; /* Set the width of the form to the width of the screen */
}

/* ... Existing styles ... */

input[type="url"] {
    width: 90%; /* Set the width of the input field to the width of the screen */
    padding: 10px; /* Set padding to properly position the text */
    margin-bottom: 10px; /* Set space between the input field and the submit button */
    box-sizing: border-box; /* Include padding and border in the width and height */
    border-radius: 4px;
}


input[type="submit"] {
    width: 100%; /* Set the width of the input field to the width of the screen */
    padding: 10px; /* Set padding to properly position the text */
    margin-bottom: 5px; /* Set space between the button and the explanatory text */
    box-sizing: border-box; /* Include padding and border in the width and height */
}

.form-hint {
    font-size: 0.8rem; /* Small font size */
    text-align: center; /* Center align */
    color: #fff; /* Sets the hyperlink text color to white */
    margin-top: 5px; /* Set space between the button and the hint */
}

.form-hint a { /* Applies styles specifically to hyperlinks within elements with class 'form-hint' */
    color: #fff; /* Sets the hyperlink text color to white */
    text-decoration: none; /* Optional: removes underline from hyperlinks */
}


/* Style the submit icon button */
.submit-icon {
    background-color: #4CAF50; /* Background color of the icon */
    color: white; /* Color of the icon */
    padding: 10px; /* Padding */
    border: none; /* Remove border */
    cursor: pointer; /* Change cursor to a hand */
    font-size: 1rem; /* Size of the icon */
    border-radius: 5px; /* Round the corners */
}

.submit-icon i {
    margin-right: 5px; /* Space between the icon and the text */
}

.submit-icon:hover {
    background-color: #45a049; /* Background color on hover */
}
#video-menu {
    z-index: 1100; /* Set a high value to display in front of other elements */
    width: 32px;
    height: 100px;
    position: absolute;
    right: 6%;
    top: 55%;
}

#favorite-button img, #thumbs-down-button img{
    width: 100%;
    margin-bottom: 70%;
    z-index: 1100;
}

/* #AddPlayList-button img, #report-button img {
    padding: 10%;
} */

#info_menu img {
    width: 95%; /* Adjust the width to 95% of its container */
    margin-bottom: 70%; /* Add a large bottom margin */
    z-index: 1100; /* Ensure it is stacked above other elements */
    transform: translateX(1px) translateY(-4px); /* Move the image slightly left and up */
}

#report-button img {
    width: 95%; /* Adjust the width to 95% of its container */
    margin-bottom: 70%; /* Add a large bottom margin */
    z-index: 1100; /* Ensure it is stacked above other elements */
    transform: translateX(1px) translateY(-4px); /* Move the image slightly left and up */
}

#AddPlayList-button img {
    width: 100%;
    margin-bottom: 70%;
    z-index: 1100;
    transform: translateX(3px) ; /* Move the image slightly left and up */
}


.icon-faded {
    opacity: 0.2;
}


/* Style to display when clicked */
#favorite-feedback.active {
    opacity: 1;
}


/* Initial style for feedback element */
#favorite-feedback {
    width: 50px;
    height: 50px;
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    opacity: 0; /* Transparent by default */
    transition: opacity 1s ease; /* Fade out animation */
    z-index: 997;
    display: none; /* Hidden by default */
}

#favorite-feedback img{
    width: 50px;
    height: 50px;
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
}

.favorite-button-loading {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}


/* Elements with the hidden class are not displayed */
.hidden {
    display: none;
}



#checkmark {
    transition: opacity 1s ease-out; /* Fade out effect */
    opacity: 1; /* Initial opacity */
    font-size: 40px; /* Icon size */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: green; /* Set checkmark color to green */
    /* Other style settings */
}

#error-message {
    transition: opacity 1s ease-out; /* Fade out over 1 second */
    opacity: 1; /* Initial opacity */
    /* Other style settings */
}

textarea {
    width: 90%; /* Set textarea width to 90% of screen width */
    padding: 10px; /* Set padding inside text to properly position the text */
    margin-bottom: 10px; /* Set margin between textarea and submit button */
    box-sizing: border-box; /* Include padding and border in the width and height */
}
video {
    -webkit-user-select: none; /* Safari 3.1+, Chrome 5+ */
    -moz-user-select: none; /* Firefox 2+ */
    -ms-user-select: none; /* IE 10+ */
    user-select: none; /* Standard syntax */
}


#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 998;
}

#dialog1, #dialog2 {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    text-align: center;
    width: 60%;
    border-radius: 10px; /* Add roundness */
}

#dialog1 h2, #dialog2 h2 {
    margin-top: 0;
}

#dialog1 button, #dialog2 button {
    margin: 10px;
    padding: 10px;
    cursor: pointer;
    width: 34%;
}


.playlist-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    z-index: 995; /* Adjust as necessary */
    background-color: transparent; /* Set background color as necessary */
}

.playlist-item {
    margin: 0 10px;
    color: white;
    font-family: 'Nunito', Arial, Tahoma, 'PingFang SC', sans-serif;
    position: relative;
    display: inline-block;
    text-decoration: none;
    margin: 10px;
}   

.playlist-item.active::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px; /* Thickness of the underline */
    background-color: white; /* Color of the underline */
    bottom: -2px; /* Distance from the text */
    left: 0;
}


.PlayListOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1100; /* Overlay below the buttons */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute space between elements */
    padding-top: 20px; /* Space for the add button */
    padding-bottom: 60px; /* Space for the menu bar */
    margin-bottom: 60px; /* Space for the menu bar */
    overflow-y: auto; /* Enable vertical scrolling */
}

#list-container {
    padding-top: 0px; /* Set padding on top equal to the height of the add button */
    padding-bottom: 60px; /* Set padding at the bottom equal to the height of the menu bar */
    overflow-y: auto; /* Enable scrolling if content overflows */
    height: calc(100vh - 230px); /* Viewport height minus the height of the menu bar and add button */
    z-index: 994;
    margin-right: 35px;
    margin-bottom: 70px;
    overflow-y: auto; /* Enable vertical scrolling */
}

.PlayListOverlay ul {
    /* width: 100%; */ /* Full width */
    /* padding: 0px; */ /* Remove padding */
    /* margin: auto; Centering the list */
    display: list-item;
    flex-direction: column;
    align-items: center;
}


.PlayListOverlay ul li {
    background-color: #FFF; /* Light background for contrast */
    color: black; /* Black text */
    margin: 8px; /* Vertical spacing */
    padding: 8px; /* Padding for content */
    border-radius: 5px; /* Optional: rounded corners */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Optional: shadow for depth */
    cursor: pointer; /* Indicate items are clickable */
}

div.button-container {
    position: fixed;
    bottom: 80px; /* Adjust this value to fit the menu bar's height */
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1050; /* Above the overlay */
}


#okButton {
    background-color: #007bff;
    border-radius: 5px; /* Optional: rounded corners */
    color: white;
    padding: 4%; /* Padding for content */
    width: 30%;
    z-index: 996;
    margin: 0 10px;
    font-family: 'Nunito', Arial, Tahoma, 'PingFang SC', sans-serif;
    position: relative;
    display: inline-block;
    text-decoration: none;
    border: none; /* Remove borders */
    box-shadow: none; /* Remove shadows */
}


#cancelButton {
    background-color: grey;
    border-radius: 5px; /* Optional: rounded corners */
    color: white;
    padding: 4%; /* Padding for content */
    width: 30%;
    z-index: 996;
    margin: 0 10px;
    font-family: 'Nunito', Arial, Tahoma, 'PingFang SC', sans-serif;
    position: relative;
    display: inline-block;
    text-decoration: none;
    border: none; /* Remove borders */
    box-shadow: none; /* Remove shadows */
}


.playlist-item {
    /* Existing styles */
    cursor: pointer;
}

#PlayListOverlay .playlist-item.selected {
    background-color: blue;
    color: white;
}

#message {
    display: none; /* Initially hidden for control by JavaScript */
    position: fixed; /* Fixed to the top of the screen */
    top: 20px; /* Distance from the top edge */
    left: 50%; /* Position at 50% from the left edge */
    transform: translateX(-50%); /* Translate -50% on the X-axis to center */
    z-index: 1000; /* Display in front of other elements */
    background-color: #f8d7da; /* Background color (e.g., pale red for error messages) */
    color: #721c24; /* Text color */
    padding: 15px 30px; /* Padding inside */
    margin: 0 auto; /* Center align with auto margin */
    border-radius: 5px; /* Rounded corners */
    border: 1px solid #f5c6cb; /* Border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow */
    font-size: 16px; /* Font size */
    text-align: center; /* Center align text */
    max-width: 80%; /* Set maximum width */
}

#message.success {
    background-color: #d4edda; /* Green background */
    color: #155724; /* Green text */
    border-color: #c3e6cb;
    z-index: 1000; /* Display in front of other elements */
    width: 60%;
}

#message.error {
    background-color: #f8d7da; /* Red background */
    color: #721c24; /* Red text */
    border-color: #f5c6cb;
    z-index: 1000; /* Display in front of other elements */
    width: 60%;
}

#add-playlist-btn {
    font-weight: bold; /* Make the text bold */
    padding-left: 20px; /* Increase padding, adjust as needed */
    background-color: #007bff; /* Set the background color */
    color: white; /* Set the text color to white for better contrast */
    /* margin: 10px 5%; */ /* Consistent with other items, adjust as needed */
    border-radius: 8px; /* Optional: adds rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: adds shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover effects */
    display: inline-block; /* Adjust display if necessary */
    width: auto; /* Adjust width as necessary */
    text-align: center; /* Center the text */
    cursor: pointer; /* Change cursor to pointer to indicate it's clickable */
    padding-right: 20px;
}

#add-playlist-btn:hover {
    background-color: #0056b3; /* Darker shade on hover for visual feedback */
    transform: translateY(-3px); /* Slightly raise the button on hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.add-playlist-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgb(0 0 0 / 85%);
    padding: 20px;
    box-sizing: border-box;
    z-index: 1100; /* Increased z-index value */
}


.Add-playlist-button {
    background-color: #007bff;
    border-radius: 5px; /* Optional: rounded corners */
    color: white;
    padding: 4%; /* Padding for content */
    /* width: 30%; */
    z-index: 996;
    margin: 10px;
    font-family: 'Nunito', Arial, Tahoma, 'PingFang SC', sans-serif;
    display: inline-block;
    text-decoration: none;
    border: none; /* Remove borders */
    box-shadow: none; /* Remove shadows */
    position: relative;
}

.cancel-button {
    background-color: grey;
    border-radius: 5px; /* Optional: rounded corners */
    color: white;
    padding: 4%; /* Padding for content */
    /* width: 30%; */
    z-index: 996;
    margin: 10px;
    font-family: 'Nunito', Arial, Tahoma, 'PingFang SC', sans-serif;
    position: relative;
    display: inline-block;
    text-decoration: none;
    border: none; /* Remove borders */
    box-shadow: none; /* Remove shadows */
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}


.playlist-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Adjust the width as needed */
    max-width: 600px; /* Or any maximum width you prefer */
}

.input-group {
    width: 100%; /* Full width of the form */
    margin-bottom: 20px; /* Space between input groups */
    margin-top: 70%;
}

.input-group label,
.input-group input,
button {
    width: 100%; /* Ensure full width within the form */
    margin: 8px 0; /* Adjust spacing as needed */
    padding: 10px;
}


#status-display {
    position: absolute;
    top: 50%;
    left: 38%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: left; /* Align left */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent gray */
    padding: 20px;
    border-radius: 10px;
    white-space: pre-wrap; /* Preserve line breaks */
    display: none; /* Hidden by default */
    width: 55%;
    z-index: 900;
}
.report-item {
    cursor: pointer;
}

#ReportOverlay .report-item.selected {
    background-color: blue;
    color: white;
}

.report-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: calc(100vh - 48px);
    background-color: rgba(0, 0, 0, 0.85);
    padding: 20px;
    box-sizing: border-box;
    z-index: 1100;
}

.report-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

select, textarea, .report-button, .cancel-button {
    width: 100%;
    padding: 10px 20px; /* Fixed padding value */
    margin: 10px;
    border-radius: 4px;
    font-size: 16px;
}

select {
    height: 40px; /* Adjusted height for better alignment with other inputs */
    cursor: pointer;
}

textarea {
    height: auto; /* Auto height adjustment based on content */
    resize: none; /* Disable resizing */
}

.report-button {  
    background-color: #007bff;
    color: white;
    border: none;
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
    border-radius: 5px;
    width: 100%;
    font-size: small;
    font-family: 'Nunito', Arial, Tahoma, 'PingFang SC', sans-serif;
}

.cancel-report-button {  
    background-color: grey;
    font-family: 'Nunito', Arial, Tahoma, 'PingFang SC', sans-serif;
    color: white;
    border: none;
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
    border-radius: 5px;
    width: 100%;
    font-size: small;
}

.report-button:hover, .cancel-report-button:hover {  
    background-color: #0056b3;
    transform: translateY(-3px);  /* Slightly raise the button on hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);  /* Enhanced shadow on hover */
}

textarea[name="urls"] {
    font-family: 'Nunito', Arial, Tahoma, 'PingFang SC', sans-serif;
}


.specific-ad {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex; /* Display flex is enough, no need for display block on img */
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    border-radius: 10px; /* Adds rounded corners */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Softer and wider shadow */
    padding: 10px; /* Added padding for aesthetics */
    background: #fff; /* Light background for better readability */
}

.specific-ad img {
    max-width: 100%; /* Image fills the container */
    height: auto;
}

.ad-indicator {
    font-size: 10px; /* Small font size for subtlety */
    color: #666; /* Grey color for less visual impact */
    margin-top: 5px; /* Space between the image and the indicator */
    text-align: center; /* Centered text */
    opacity: 0.5; /* Slightly transparent for a lighter touch */
    font-family: Arial, sans-serif; /* Simple and clean font choice */
    margin-bottom: -5px; /* Adjusts spacing between the image and the indicator */
}

.ad-container.specific-ad {
    z-index: 1030; /* Ensure higher than other content if needed */
    top: 50%;
    left: 50%;
}
