/* General Body Style */
body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: black;
    overflow: hidden;
    font-size: calc(14px + 0.2vw); /* Scale font size based on viewport */
    font-family: Arial, sans-serif;
    color: white;
}

html {
    background-color: black;
}

.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Avoid interaction */
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

#enter-controls {
    bottom: 20px;
    top: auto;
    width: auto; /* Reset width for enter controls button */
}

#back-to-controls {
    position: absolute;
    top: 75%; /* Moved from 65% to 75% to position it lower */
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    margin-top: 20px; /* Add some space between player and button */
    z-index: 100; /* Same z-index as player to ensure visibility */
}

/* Main Container */
.video-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: black;
}

/* Remove video player styles */
#video-player {
    display: none;
}

/* Centered Button */
.centered-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 30px;
    font-size: 18px;
    font-family: Arial, sans-serif;
    color: white;
    background-color: black;
    border: 2px solid white;
    border-radius: 5px;
    cursor: pointer;
    z-index: 15;
    width: 300px; /* Make button wider */
    text-align: center;
    transition: all 0.3s ease;
}

.centered-button:hover {
    background-color: white;
    color: black;
}

/* Buttons Overlay (Positioned at the Bottom) */
.controls-overlay {
    position: absolute;
    top: 65%;
    left: 28%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 30px;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in, visibility 0s linear 0.5s;
}

/* Individual Buttons */
.controls-overlay button {
    padding: 12px;
    font-size: 12px;
    color: white;
    background-color: black;
    border: 2px solid white;
    border-radius: 5px;
    cursor: pointer;
    width: 140px;
    height: 50px;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
}

.controls-overlay button:hover {
    background-color: white;
    color: black;
}

/* Position LCD Screens */
.lcd-screen-left, .lcd-screen-right {
    overflow-y: auto;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: clamp(14px, 1.5vw, 18px);
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    justify-content: flex-start;
    align-items: center;
    border: 2px solid white;
    text-align: center;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 10px;
    width: 27.5%;
    height: 27.8%;
}

#lcd-screen-left {
    top: 29.3%;
    left: 14.75%;
}

#lcd-screen-right {
    top: 29.3%;
    right: 14.5%;
}

/* Style individual album items */
.album-item {
    width: 95%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid white;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    background-color: black;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 16px;
    transition: background-color 0.3s ease;
    white-space: normal;
    overflow: visible;
    line-height: 1.4;
}

.album-item:hover {
    background-color: white;
    color: black;
}

/* Remove shimmer animation */
@keyframes shimmer {
    0%, 50%, 100% {
        box-shadow: none;
    }
}

/* Wallet Display */
.wallet-display {
    position: absolute;
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0);
    padding: 10px 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #01f9d8cc;
    z-index: 25;
}

.wallet-display img {
    width: 16px;
    height: 16px;
    margin: 0 5px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%; /* Adjust the size as needed */
    background-color: black;
    border: 2px solid white;
    border-radius: 15px;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(251, 246, 94, 0.8);
    padding: 20px;
    color: white;
    text-align: center;
    font-family: Arial, sans-serif;
}

.modal h2 {
    font-size: 24px;
    color: #96f7e5;
    margin-bottom: 15px;
}

.modal label {
    display: block;
    margin-top: 10px;
    color: white;
    text-align: left;
    font-size: 14px;
}

.modal input {
    width: 90%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 2px solid #9afef7;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #96f7e5;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.modal button {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: black;
    border: 2px solid white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
}

.modal button:hover {
    background-color: white;
    color: black;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
    color: #9afef7;
}

.scrollable-container {
    overflow-y: auto;
    width: 100%;
    padding: 10px;
    font-family: Arial, sans-serif;
    color: #96f7e5;
}

/* Contract Display Styles */
#contract-display {
    position: absolute;
    bottom: 1%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0);
    padding: 2px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #01f9d8cc;
    z-index: 25;
    border-radius: 10px;
    margin-top: 1%;
}

#contract-display a {
    text-decoration: none; /* Remove underline */
    color: #01f9d8cc; 
    padding: 5px 10px; 
    display: inline-block; 
    background-color: rgba(0, 0, 0, 0.5); 
    transition: all 0.3s ease-in-out; 
    border-radius: 10px;
}

/* Hover Effect for the Contract Link */
#contract-display a:hover {
    color: #01f968cc; /* Change text color to white on hover */
    border-color: #ff4c4cc8; /* Change border to white on hover */
    border-radius: 10px;
    border-style: solid;
}

/* Align with wallet display styling */
#contract-display img {
    height: 14px; /* Match the size of the favicons */
    vertical-align: middle; /* Align with text */
    margin: 0 2px; /* Add space between icons */
}

.error-message {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Right LCD Table Styling */
.lcd-screen-right table {
    width: 95%;
    border-collapse: collapse;
    color: white;
    font-family: Arial, sans-serif;
    margin: 10px auto;
    font-size: 14px;
    table-layout: fixed;
    border-color: white;
}

/* Column width adjustments */
.lcd-screen-right table th:first-child,
.lcd-screen-right table td:first-child {
    width: 25%;  /* Smaller width for the # column */
}

.lcd-screen-right table th:last-child,
.lcd-screen-right table td:last-child {
    width: 75%;  /* Wider width for the Track Name column */
}

.lcd-screen-right th, .lcd-screen-right td {
    border: 1px solid white;
    padding: 10px 8px;
    text-align: left;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.lcd-screen-right th {
    background-color: rgba(150, 247, 229, 0.2);
    font-weight: bold;
    text-align: center;
    padding: 12px 8px;
}

.lcd-screen-right tr {
    transition: background-color 0.2s ease;
}

.lcd-screen-right tr:hover {
    background-color: white;
    color: black;
}

.lcd-screen-right img {
    display: inline-block;
    margin: 0 5px;
    vertical-align: middle;
    border-radius: 50%;
    width: 20px;
    height: 20px;
}

.right-lcd-buttons {
    position: absolute;
    top: 65%;
    left: 70%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 2s ease-in, visibility 0s linear 2.1s;
}

.right-lcd-buttons button {
    padding: 12px;
    font-size: 12px;
    color: white;
    background-color: black;
    border: 2px solid white;
    border-radius: 5px;
    cursor: pointer;
    width: 140px;
    height: 50px;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
}

.button-container {
    position: absolute;
    top: 70%; /* Adjust the position to place it below the right LCD */
    right: 14%; /* Align with the right LCD screen */
    width: 500px; /* Same width as the right LCD */
    display: flex;
    justify-content: center;
    gap: 20px; /* Add spacing between buttons */
    z-index: 20;
}

.button-container button {
    padding: 10px 20px;
    font-size: 14px;
    color: white;
    background-color: black;
    border: 2px solid white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
}

.button-container button:hover {
    background-color: white;
    color: black;
}

/* Visible Class */
.lcd-screen-left.visible, .lcd-screen-right.visible, .controls-overlay.visible, .right-lcd-buttons.visible, .lcd-header.visible {
    opacity: 1;
    visibility: visible;
    z-index: 50;
}

@keyframes spin {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.spin-icon {
    animation: spin 2s linear infinite; /* 2 seconds for a full rotation, continuously */
    display: inline-block; /* Ensures the animation applies properly */

}

.version-switcher {
    margin: 10px;
    padding: 5px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: white;
    background-color: black;
    border: 2px solid white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.version-switcher:hover {
    background-color: white;
    color: black;
}

/* Remove version shimmer animation */
@keyframes versionShimmer {
    0%, 50%, 100% {
        box-shadow: none;
    }
}

/* Remove responsive adjustments for LCD screens */
@media (max-width: 1200px) {
    /* Other responsive styles can stay */
}

@media (max-width: 768px) {
    /* Keep only the font size adjustment */
    .lcd-screen-left, .lcd-screen-right {
        font-size: clamp(12px, 1.2vw, 16px);
    }
}

.title-container {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 15;
}

.main-title {
    font-family: 'Audiowide', cursive;
    font-size: 4.5rem;
    color: white;
    margin: 0;
    letter-spacing: 8px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

.sub-header-container {
    margin-top: 10px;
    font-size: 1.2rem;
    letter-spacing: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.sub-header-prefix {
    color: white;
    opacity: 0.8;
    font-family: Arial, sans-serif;
}

.sub-header-link {
    color: #00bfff; /* Deep sky blue - good contrast on black */
    font-family: Arial, sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sub-header-link:hover {
    color: #40e0ff; /* Lighter blue on hover */
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
    transform: scale(1.05);
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                     0 0 30px rgba(255, 255, 255, 0.3);
    }
}

/* Adjust the Connect Wallet button position */
#connect-wallet {
    top: 60%;
}

/* Jukebox Header */
.jukebox-header {
    position: absolute;
    top: 20px;
    left: 100px;
    z-index: 25;
}

.jukebox-title {
    font-family: 'Audiowide', cursive;
    font-size: 2rem;
    color: white;
    margin: 0;
    letter-spacing: 4px;
}

.jukebox-subheader {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-top: 5px;
}

.subheader-prefix {
    color: white;
    opacity: 0.8;
    font-family: Arial, sans-serif;
}

.subheader-link {
    color: #00bfff;
    font-family: Arial, sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
}

.subheader-link:hover {
    color: #40e0ff;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

/* LCD Headers */
.lcd-header {
    position: absolute;
    font-family: 'Audiowide', cursive;
    color: white;
    font-size: 1.2rem;
    letter-spacing: 2px;
    z-index: 25;
}

.lcd-header.left {
    top: 24%;
    left: 14.75%;
}

.lcd-header.right {
    top: 24%;
    left: 58.2%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lcd-header.right.visible {
    opacity: 1;
    visibility: visible;
}

/* Position LCD Screens */
#lcd-screen-left {
    top: 29.3%;
    left: 14.75%;
}

#lcd-screen-right {
    top: 29.3%;
    right: 14.5%;
}

/* Custom Player Styles */
.custom-player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    background-color: black;
    border: 2px solid white;
    border-radius: 10px;
    padding: 20px;
    color: white;
    font-family: Arial, sans-serif;
    z-index: 100; /* Increased z-index to appear above LCD screens */
}

.player-info {
    text-align: center;
    margin-bottom: 20px;
}

.track-title {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 5px;
}

.track-name {
    font-size: 18px;
    font-weight: bold;
}

.player-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-container {
    width: 100%;
    height: 40px; /* Increased height for wave effect */
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.2) 100%
    );
    border-radius: 2px;
    width: 0;
    position: relative;
    transition: width 0.1s linear;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    animation: wave 20s linear infinite;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    animation: wave 15s linear infinite;
}

@keyframes wave {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* Adjust time display position for new progress bar height */
.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    opacity: 0.7;
    margin-top: 5px;
}

/* Add hover effect */
.progress-container:hover .progress-bar::before,
.progress-container:hover .progress-bar::after {
    opacity: 0.8;
    animation-duration: 10s;
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 10px 0;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.control-btn:hover {
    transform: scale(1.1);
}

.control-btn svg {
    width: 24px;
    height: 24px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-slider {
    flex: 1;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.volume-progress {
    height: 100%;
    background-color: white;
    border-radius: 2px;
    width: 100%;
    transition: width 0.1s linear;
}

/* Hide the default audio player */
#audio-player {
    display: none;
}



