body {
    margin: 0;
    padding: 0;
    background-color: #cfcfcf; /* Fallback background color */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    overflow: hidden;
    background-image: url('main-bg.webp');
    background-size: cover; /* Ensure the image covers the entire background */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent the image from repeating */
    background-attachment: fixed; /* Optional: Keeps the image fixed while scrolling */
    backdrop-filter: blur(25px);
}

#offcanvasExample .offcanvas-body {
    background-image: url('main-bg.webp');
    background-size: cover; /* Ensure the image covers the entire background */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent the image from repeating */
    background-attachment: fixed; /* Optional: Keeps the image fixed while scrolling */
    backdrop-filter: blur(25px);

}

.container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    z-index: 1;
    padding: 20px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25x);

}

.sound-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    filter: grayscale(1);
}


.sound-control img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.sound-control label {
    color: #fff;
    margin-bottom: 10px;
}

.slider {
    width: 100%;
}

.emoji {
    font-size: 2rem; /* Adjust size as needed */
    display: block;
    margin-bottom: 10px; /* Add some space between the emoji and the label */
}

#header {
    padding: 20px;
    text-align: center;
}

#logo {
    width: -webkit-fill-available;
    max-width: 500px;
}
#videoForm {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

#videoForm label, 
#videoForm input, 
#videoForm button {
    margin: 5px 0;
}

#videoPlayer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}


#videoUrl {
    width: 25%;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: white;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#videoUrl::placeholder {
    /* color: transparent; */
}

#videoUrl:focus::placeholder {
    color: rgba(8, 8, 8, 0.445);
}

#videoUrl:focus + label,
#videoUrl:not(:placeholder-shown) + label {
    top: -10px;
    left: 5px;
    font-size: 12px;
    color: #a0ffab;
}

#videoUrl:focus {
    border-color: #a0ffab;
}

#videoUrl:hover {
    border-color: #a0ffab;
}

.submit-button {
    margin-top: 20px;
    padding: 12px 20px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: white;
    background: rgba(96, 147, 243, 0.658);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.submit-button:hover {
    background: rgba(137, 241, 149, 0.637);
    border-color: #a0ffab;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.submit-button:active {
    background: rgba(160, 255, 171, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submit-button:focus {
    border-color: #a0ffab;
}

#offcanvasExample2 .offcanvas-body {
    background-color: #c7c7c7;
}

#offcanvasExampleLabel {
    margin-right: 20px !important;
}


.ambient-btn {
    background-color: steelblue;
    border: none;
}

.play-button {
    font-size: 40px;
    color: #fff;
}

.play-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.play-button i {
    pointer-events: none;
}

.videoItem {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 10px;
    padding: 5px;
}

.videoItem img {
    max-width: 120px;
    height: 60px;
}

[data-swapy-highlighted] {
    border: 2px dashed #007bff;
    background-color: rgba(0, 123, 255, 0.1);
    cursor: grabbing;
}

.handle .ph-dots-six-vertical{
    font-size: 20px;

}

.handle:hover {
    cursor: grab;
}

.handle:active {
    cursor: grabbing;
}

/* Add this CSS to highlight the active video */
.active-video {
    background-color: rgba(255, 0, 0, 0.1); /* Light red background */
    opacity: 1;
}

.videoItem {
    position: relative;
    /* opacity: 0.7; Default state for non-active videos */
    transition: opacity 0.3s ease;
}

.videoItem img {
    transition: transform 0.3s ease;
}

.videoItem:hover {
    cursor: pointer;
}

.active-video img {
    border: 2px solid #ff0000; /* Red border to highlight active video */
    transform: scale(1.05); /* Slightly enlarge the thumbnail */
}

.playIcon {
    position: absolute;
    display: none;
    padding: 0px;
    margin: 0px;
    left: 10px;
    font-size: 20px;
    color: red;
    z-index: 1;
}

/* Show the play icon only if the video item has the active class */
.active-video .playIcon {
    display: block;
}

/* Spinner container */
.spinner {
    border: 8px solid #f3f3f3; /* Light gray */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto; /* Center horizontally */
    display: none; /* Initially hidden */
}

/* Keyframe animation to spin the loader */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* You can also center it within a parent container like this */
#loadingSpinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.863); /* Dark semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-animation {
    color: white;
    font-size: 1.5rem;
    text-align: center;
}

.loading-animation p {
    margin: 0.5rem 0;
}

/* Spinner Example (Optional) */
@keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spinner 1s linear infinite;
    margin: 10px auto;
}
