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

}

.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;
}

/* Video Container for all views */
.video-container {
    position: relative;
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
}

video {
    width: 100%; /* Maintain aspect ratio */
    height: 100%;
}

#video-player {
    position: fixed;
    top: 0%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Slightly see-through */
    border: 2px solid #96f7e5; /* Border matching the rest of the design */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 251, 0, 0.746); /* Glowing shadow effect */
    z-index: 2000; /* Ensure it appears above other elements */
    display: block; /* Default state */
    visibility: visible;
    object-fit: cover; /* Ensure the video scales properly */
}

#video-player.hidden {
    display: none; /* Hide the video player when not in use */
    visibility: hidden;
    pointer-events: none; /* Disable interaction */

}

/* Centered Button */
.centered-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 30px;
    font-size: 18px;
    font-family: Comic Sans MS;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #fff;
    border-radius: 5px;
    cursor: pointer;
    z-index: 15;
    margin-bottom: 1%;
}

/* Buttons Overlay (Positioned at the Bottom) */
.controls-overlay {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 30px;
    z-index: 20; /* Ensure overlay is above other elements */
    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: #fff;
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid #ec0bfc;
    border-radius: 5px;
    cursor: pointer;
    width: auto;
    height: 5%;
    font-family: Comic Sans MS;
    animation: shimmer 2s infinite;

}

/* Position LCD Screens */
.lcd-screen-left {
    overflow-y: auto;
    position: absolute;
    width: 30%;
    height: 25%;
    background-color: rgba(0, 0, 0, 0.2);
    color: #96f7e5;
    font-size: 16px;
    font-family: Comic Sans MS;
    display: flex;
    flex-direction: column; /* Arrange items vertically */
    box-sizing: border-box; /* Ensure padding doesn't overflow */
    justify-content: flex-start; /* Align items at the top */
    align-items: center; /* Center align horizontally */
    border: 2px solid #9afef7;
    text-align: center;
    box-shadow: 0 0 15px rgb(151, 254, 228);
    z-index: 20; /* Ensure above other elements */
    opacity: 0;
    visibility: hidden;
    margin-right: 15%; /* Add some space to the right */
    transition: opacity 1s ease-in, visibility 0s linear 0.5s;

}

#lcd-screen-left {
    top: 14%;
    left: 14%;
}
#lcd-screen-right {
    top: 14%;
    right: 14%;
}


/* Style individual album items */
.album-item {
    padding: 10px;
    border: 1px solid rgba(150, 247, 229, 0.3); /* Light border for separation */
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
    color: #96f7e5;
    font-family: Comic Sans MS;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.album-item:hover {
    background-color: rgba(150, 247, 229, 0.1); /* Highlight on hover */
}


/* Shimmer Animation */
@keyframes shimmer {
    0% {
        box-shadow: 0 0 10px rgba(236, 11, 252, 0.2), 0 0 20px rgba(236, 11, 252, 0.4), 0 0 30px rgba(236, 11, 252, 0.6);
    }
    50% {
        box-shadow: 0 0 15px rgba(150, 247, 229, 0.4), 0 0 25px rgba(150, 247, 229, 0.6), 0 0 35px rgba(150, 247, 229, 0.8);
    }
    100% {
        box-shadow: 0 0 10px rgba(236, 11, 252, 0.2), 0 0 20px rgba(236, 11, 252, 0.4), 0 0 30px rgba(236, 11, 252, 0.6);
    }
}

/* 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: Comic Sans MS;
    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: rgba(0, 0, 0, 0.9); /* Match the jukebox theme */
    border: 2px solid #9afef7;
    border-radius: 15px;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(251, 246, 94, 0.8);
    padding: 20px;
    color: #fff;
    text-align: center;
    font-family: Comic Sans MS;
}

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

.modal label {
    display: block;
    margin-top: 10px;
    color: #fff;
    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: Comic Sans MS;
    font-size: 14px;
}

.modal button {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid #ec0bfc;
    border-radius: 8px;
    cursor: pointer;
    animation: shimmer 2s infinite;
    font-family: Comic Sans MS;
}

.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: Comic Sans MS;
    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: Comic Sans MS;
    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: #ff4c76c8; /* 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 */
/* General LCD Screen Styling */
.lcd-screen-right {
    overflow-y: auto; /* Enable scrolling */
    position: absolute;
    width: 30%;
    height: 25%;
    background-color: rgba(0, 0, 0, 0.2);
    color: #96f7e5;
    font-size: 16px;
    font-family: Comic Sans MS;
    display: flex;
    flex-direction: column; /* Adjust to allow header and content to stack properly */
    justify-content: flex-start; /* Align header at the top */
    align-items: center;
    border: 2px solid #9afef7;
    text-align: center;
    box-shadow: 0 0 15px rgb(151, 254, 228);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    margin-left: 15%;
}

/* Right LCD Table Styling */
.lcd-screen-right table {
    width: 100%;
    border-collapse: collapse;
    color: #96f7e5;
    font-family: Comic Sans MS;
    margin: 10px 0; /* Add spacing between header and content */
    font-size: 12px;
}

.lcd-screen-right th, .lcd-screen-right td {
    border: 1px solid #9afef7;
    padding: 8px;
    text-align: center;
    font-size: 12px;
}

.lcd-screen-right th {
    background-color: rgba(150, 247, 229, 0.2);
    font-weight: bold;
}

/* Ensure images align properly */
.lcd-screen-right img {
    display: inline-block;
    margin: 0 5px;
    vertical-align: middle;
    border-radius: 50%;
}


.right-lcd-buttons {
    position: absolute;
    top: 45%; /* Position below the LCD screen */
    left: 70%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;

    gap: 30px; /* Space between buttons */
    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: #fff;
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid #ec0bfc;
    border-radius: 5px;
    cursor: pointer;
    width: 140px;
    height: 50px;
    font-family: Comic Sans MS;
    animation: shimmer 2s infinite;
}

.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: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid #9afef7;
    border-radius: 8px;
    cursor: pointer;
    animation: shimmer 2s infinite;
    font-family: Comic Sans MS;
}

.button-container button:hover {
    background-color: rgba(150, 247, 229, 0.2);
    border-color: #ec0bfc;
}

/* Visible Class */
.lcd-screen-left.visible, .lcd-screen-right.visible, .controls-overlay.visible, .right-lcd-buttons.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: Comic Sans MS;
    font-size: 14px;
    color: #01f9d8cc;
    background-color: rgba(0, 0, 0, 0.6);
    /* border: 1px solid #9afef7; */
    border-radius: 5px;
    border-color: #96f7e500;
    cursor: pointer;
    animation: versionShimmer 2s infinite;

}
.version-switcher:hover {
    color: #01f968cc; /* Change text color to white on hover */
    border-color: #ffff4cc8; /* Change border to white on hover */
    border-radius: 10px;
    border-style: solid;

}

/* shimmer animation */
@keyframes versionShimmer {

    0% {
        box-shadow: 0 0 10px rgba(236, 11, 252, 0.2), 0 0 20px rgba(236, 11, 252, 0.4), 0 0 30px rgba(236, 11, 252, 0.6);
    }
    50% {
        box-shadow: 0 0 15px rgba(150, 247, 229, 0.4), 0 0 25px rgba(150, 247, 229, 0.6), 0 0 35px rgba(150, 247, 229, 0.8);
    }
    100% {
        box-shadow: 0 0 10px rgba(236, 11, 252, 0.2), 0 0 20px rgba(236, 11, 252, 0.4), 0 0 30px rgba(236, 11, 252, 0.6);
    }
}



