body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: black;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

#container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#container-code {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../images/bg.jpg);
    background-position: center;
    background-size: cover;
}

#inputContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
    border-radius: 10px;
    width: 95%;
    max-width: 960px;
}

.logo {
    width: min(180px, 40%);
    /* display: block;
    margin: 0 auto 2rem; */
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin: 0.5rem 0;
}

.columns {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 2rem;
}

.column {
    flex: 1;
    padding: clamp(0.5rem, 2vw, 1rem);
}

/* Style the link text with color */
.highlight-text {
    color: #4CAF50;
    font-weight: 600;
}

/* Left-align text in the left column */
.column:first-child {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Center QR code column vertically */
.column:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.divider-line {
    width: 1px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
}

.or-text {
    color: rgba(255, 255, 255, 0.6);
}

.generated-code {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    margin: 1rem 0;
    color: #4CAF50;
}

.start-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: clamp(0.7rem, 2vw, 1rem) clamp(1.2rem, 3vw, 1.8rem);
    border-radius: 5px;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    cursor: pointer;
    margin-top: 15px;
}

/* Make QR code smaller by default */
canvas#qrcode {
    width: 200px;
    height: 200px;
}

@media (max-width: 767px) {
    #container-code {
    background: rgba(0, 0, 0, 0.8);
}
    #inputContainer {
        padding: clamp(1rem, 4vw, 2rem);
    }

    .columns {
        flex-direction: column;
    }

    /* Hide the divider and QR code column on mobile */
    .divider, .column:last-child {
        display: none;
    }
    
    /* Center text on mobile */
    .column:first-child {
        text-align: center;
    }
    
    /* Center logo on mobile */
    .logo-container {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Make code bigger on mobile since we have more space */
    .generated-code {
        font-size: 4rem;
        margin: 1.5rem 0;
    }
}

/* Responsive improvements for larger screens */
@media (min-width: 992px) {
    #inputContainer {
        /* max-width: 1000px; */
        padding: 3rem;
    }
    
    canvas#qrcode {
        width: 350px;
        height: 350px;
    }
    
    .divider-line {
        height: 200px;
    }
    
    .generated-code {
        font-size: 3.5rem;
    }
    
    h3 {
        font-size: 1.8rem;
    }
    
    p {
        font-size: 1.5rem;
    }
}

.media {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

#menuButton {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#menuButton svg {
    display: block;
}

#menuPopup {
    display: none;
    position: fixed;
    top: 80px;
    right: 24px;
    background: rgba(30, 30, 30, 0.98);
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
    z-index: 1200;
    min-width: 180px;
    padding: 10px 0 0 0;
}

#menuPopup button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    color: white;
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#menuPopup button svg {
    margin-left: 12px;
}

/* Fix svg alignment in button */
#menuPopup button span {
    display: flex;
    align-items: center;
}

#systemInfo {
    padding: 15px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.3);
}

#systemInfo p {
    margin: 4px 0;
    font-size: 0.8rem;
}

#systemInfo strong {
    color: rgba(255, 255, 255, 0.9);
}

#loadingContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    display: none;
    width: 80%;
    max-width: 400px;
}

#progressBar {
    width: 100%;
    height: 20px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
}

#progressFill {
    height: 100%;
    background: #4CAF50;
    width: 0%;
    transition: width 0.3s;
}

#progressText {
    margin-top: 10px;
}

#noPlaylistContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    text-align: center;
}

#noPlaylistContainer img {
    width: min(280px, 60vw);
    height: auto;
    opacity: 0.6;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo-text {
    margin-left: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

/* For the no playlist display */
#noPlaylistContainer .logo-container {
    flex-direction: column;
}

#noPlaylistContainer .logo-text {
    margin-left: 0;
    margin-top: 1rem;
    font-size: 1.8rem;
    opacity: 0.8;
}

#noPlaylistContainer svg {
    opacity: 0.6;
}

@media (min-width: 992px) {
    .logo-text {
        font-size: 1.8rem;
    }
}
  

#noPlaylistContainer .logo-text {
    margin-left: 0;
    margin-top: 1rem;
    font-size: 1.8rem;
    opacity: 0.8;
}

#noPlaylistContainer svg {
    opacity: 0.6;
}

@media (min-width: 992px) {
    .logo-text {
        font-size: 1.8rem;
    }
}
