.main {
    position: absolute;
    z-index: 1;
}

#unity-logo {
    display: none;
}

.buttons {
    display: none;
    margin-top: 10px;
    flex-direction: column;
    align-items: left;
    gap: 10px;
}

.screenshot-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.screenshot-box {
    position: relative;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.screenshot-box img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 5px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-btn {
    margin-top: 10px;
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s ease;
}

.download-btn svg {
    width: 18px;
    height: 18px;
}

.download-btn:hover {
    background: #0056b3;
}

/* --- Loading Container --- */
#unity-loading-bar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    padding: 25px 20px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(13, 110, 253, 0.35),
        inset 0 0 15px rgba(255, 255, 255, 0.4);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

/* --- Progress Empty --- */
#unity-progress-bar-empty {
    width: 320px;
    height: 28px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        inset 0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 0 12px rgba(255, 255, 255, 0.4);
}

/* --- Progress Fill --- */
#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    position: absolute;
    top: -38%;
    border-radius: 14px;
    background: linear-gradient(90deg, #0d6efd, #33cfff, #0d6efd);
    background-size: 200% 100%;
    animation: barMove 2s linear infinite, glowPulse 1.8s ease-in-out infinite;
    transition: width 0.4s ease-in-out;
    box-shadow:
        0 0 15px rgba(0, 162, 255, 0.7),
        0 0 25px rgba(0, 140, 255, 0.4);
}

/* --- Text --- */
#unity-progress-text {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(13, 110, 253, 0.7);
    letter-spacing: 1.2px;
}

/* --- Animation Keyframes --- */
@keyframes barMove {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 8px rgba(0, 162, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 18px rgba(0, 162, 255, 0.8);
    }

    100% {
        box-shadow: 0 0 8px rgba(0, 162, 255, 0.4);
    }
}


#capture-button,
#start,
#stop,
#downloadRecord-button {
    cursor: pointer;
    float: right;
    width: 38px;
    height: 38px;
    background: url('fullscreen-button.png') no-repeat center
}
