* {
    font-family: 'Rubik', sans-serif;
    overflow: auto;
}

body {
    background-color: #1b1b1b;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: -10px;
    left: -10px;
    width: calc(100vw + 20px);
    height: calc(100vh + 20px);
    background-image: url("../assets/pixel.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    filter: blur(4px);
    z-index: -1;
}

.SongUpload {
    background-color: rgba(20, 20, 20, 0.6);
    width: 40vw;
    height: auto;
    margin: auto;
    padding: 20px;
    text-align: center;
    color: white; /* Text color */
    border-radius: 10px;
    margin-bottom: 20px;
}

a {
    color: orange;
    transition: color 0.2s linear;
}

a:hover {
    color: rgb(214, 139, 0);
}


#BlazinLogo {
    width: 10rem;
}

.SongUpload h1 {
    text-align: center;
    margin-bottom: 20px;
    text-align: center;
}

.SongUpload label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
}

.SongUpload input[type="text"],
.SongUpload input[type="file"] {
    width: 90%;
    text-align: center;
    padding: 10px 0 10px 0;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #2c2c2c;
    color: white;
}

.SongUpload button {
    width: 50%;
    padding: 10px 0 10px 0;
    background-color: #555;
    border: none;
    border-radius: 5px;
    color: white;
    background-color: rgba(221,150,47, 0.9);
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.SongUpload button:hover {
    background-color: rgba(221,150,47, 1);
}

/* Loading screen overlay CSS */
#loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    z-index: 9999; /* Ensure it overlays all content */
    display: flex; /* Keep the layout as flex for centering */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    opacity: 0; /* Initially transparent */
    visibility: hidden; /* Initially hidden */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Smooth transition */
}

/* Make the loading screen visible */
#loadingScreen.show {
    opacity: 1; /* Fully opaque */
    visibility: visible; /* Visible */
}

/* Central loading animation */
.loadingAnimation {
    width: 50px;
    height: 50px;
    border: 6px solid rgba(255, 255, 255, 0.3); /* Light outer border */
    border-top: 6px solid white; /* White top border for spinning effect */
    border-radius: 50%;
    animation: spin 1s linear infinite; /* Continuous rotation */
}

/* Keyframes for spinning animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Keyframes for spinning animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Error Message CSS */
.popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(20, 20, 20, 1);
    color: white;
    padding: 15px;
    border-radius: 10px;
    width: 30vw;
    text-align: center;
    display: none;
    transition: opacity 0.5s ease;
    user-select: none;
}

.countdown {
    height: 5px;
    background-color: #f1c40f;
    width: 100%;
    transition: width 5s linear;
}

#errorMessage {
    margin: 0.5rem 0 1rem 0;
}

#errorTitle {
    font-size: 1.5rem;
    margin: 0 0 0 0;
}

/* Copyable Link Popup CSS */
#copyLinkPopup {
    display: none;
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(20, 20, 20, 1);
    color: white;
    padding: 20px;
    border-radius: 10px;
    width: 35vw;
    text-align: center;
    z-index: 10;
}

#copyableLink {
    width: 80%;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #2c2c2c;
    color: white;
    margin-bottom: 10px;
    text-align: center;
}

#copyLinkPopup button {
    width: 40%;
    padding: 10px;
    background-color: rgba(221,150,47, 0.9);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

#copyLinkPopup button:hover {
    background-color: rgba(221,150,47, 1);
}
