body {
    padding: 0;
    margin: 0
}

#unity-container {
    position: absolute;
    background: linear-gradient(180deg, #ffffff, #e7e7e7);
}

#unity-container.unity-desktop {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%)
}

#unity-container.unity-mobile {
    width: 100%;
    height: 100%
}

#unity-canvas {
    background: #231F20
}

.unity-mobile #unity-canvas {
    width: 100%;
    height: 100%
}

#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none
}

#unity-logo {
    width: 154px;
    height: 130px;
    background: url('unity-logo-light.png') no-repeat center
}

#unity-progress-bar-empty {
    width: 141px;
    height: 18px;
    margin-top: 10px;
    margin-left: 6.5px;
    background: url('progress-bar-empty-light.png') no-repeat center
}

#unity-progress-bar-full {
    width: 0%;
    height: 18px;
    margin-top: 10px;
    background: url('progress-bar-full-light.png') no-repeat center
}

#unity-footer {
    position: relative
}

.unity-mobile #unity-footer {
    display: none
}

#unity-webgl-logo {
    float: left;
    width: 204px;
    height: 38px;
    background: url('webgl-logo.png') no-repeat center
}

#unity-build-title {
    float: right;
    margin-right: 10px;
    line-height: 38px;
    font-family: arial;
    font-size: 18px
}

#unity-fullscreen-button {
    float: right;
    width: 38px;
    height: 38px;
    background: url('fullscreen-button.png') no-repeat center
}

#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 10px;
    display: none
}

.logo-container {
    margin-bottom: 60px;
}

.brand-logo {
    margin-bottom: 0px;
}

.logo-image {
    width: 240px;
    height: auto;
}

.main-message {
    text-align: center;
    margin-bottom: 30px;
    max-width: 70vw;
}

.main-message .title {
    font-size: 1.5rem;
    margin: 0 0 30px;
    color: #C41331;
    font-weight: 600;
}

.main-message .description {
    font-size: 1rem;
    color: #727272;
    line-height: 1.5;
    margin: 0;
}

.camera-select-wrapper {
    margin: 20px 0;
    text-align: center;
}

.select-label {
    display: block;
    font-size: 0.9rem;
    color: #727272;
    ;
    margin-bottom: 8px;
}

.camera-select {
    padding: 10px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #111;
    color: white;
    font-size: 1rem;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.start-button {
    background: linear-gradient(135deg, #e73452, #C41331);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(196, 19, 49, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.start-button:active {
    transform: scale(0.9);
}

.loading-indicator {
    margin-top: 20px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #00f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loading-text {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 10px;
}

.progress-text {
    font-family: 'Arial', sans-serif;
    padding-bottom: 0.75rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #C41331, #E73452);
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: pulse 1.5s infinite alternate;
}

.progress-percent {
    font-family: 'Arial', sans-serif;
    font-size: 0.8rem;
    color: #727272;
    margin-top: 5px;
    text-align: right;
    width: 100%;
    padding-right: 10px;
}

.screenshot-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    flex-direction: column;
}

.screenshot-container {
    position: relative;
    background: white;
    padding: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    border-radius: 12px;
    box-sizing: border-box;
}

.screenshot-image {
    width: 100%;
    height: calc(90vh - 20px);
    object-fit: contain; 
    border-radius: 8px;
    display: block;
    box-sizing: border-box;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #C41331;
    border: 2px solid white;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 10;
}


.close-btn:hover {
    background: #ff3742;
    transform: scale(1.1);
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    justify-content: center;
}

.download-button-wrapper {
    margin-top: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.download-btn {
    background: linear-gradient(135deg, #E73452,#C41331);
    color: white;
    border: 2px solid white;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(196, 19, 49, 0.4);
    transition: all 0.2s ease;
    min-width: 180px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 19, 49, 0.6);
}

.download-btn:active {
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }
}
