#unity-container.unity-desktop {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
}

#unity-canvas {
    background: #231F20;
    width: 100%;
    height: 100%;
}

#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
    background: rgba(35, 47, 62, 0.95);
    padding: 2rem;
    border-radius: 8px;
    width: 300px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#unity-progress-bar-empty {
    width: 100%;
    height: 8px;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: var(--amazon-orange);
    transition: width 0.3s ease;
    position: relative;
}

.unity-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.unity-button {
    background: var(--amazon-orange);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.unity-button:hover {
    background: #e88a00;
}

#unity-loading-text {
    color: white;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

#unity-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 0.5rem;
    background: rgba(35, 47, 62, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#unity-build-title {
    color: white;
    font-size: 0.9rem;
    opacity: 0.9;
}

#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: #FFF4E3;
    color: #232F3E;
    padding: 1rem;
    border-radius: 4px;
    display: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

/* Style for hidden Unity container */
.unity-app-container-hidden {
    display: none;
}

@media (max-width: 768px) {
    #unity-container {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        box-sizing: border-box;
        padding: 0 1rem; /* Add 1rem padding on left and right */
    }

    .unity-controls {
        top: 0.5rem;
        right: 0.5rem;
    }

    .unity-button {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}
