#unity-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    top: auto;
    transform: none;
}

.unity-desktop #unity-container{
    left: auto; 
    top: auto;
    transform: none;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.unity-mobile #unity-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Use full viewport height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#unity-canvas {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    margin: 0 auto;
    background: #231F20;
}

.unity-mobile #unity-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain; /* This ensures the aspect ratio is preserved */
}

#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-dark.png') no-repeat center;
}

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

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

#unity-footer {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 5px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.unity-mobile #unity-footer,
.unity-mobile #unity-logo-title-footer,
.unity-mobile #unity-right-footer,
.unity-mobile #unity-build-title,
.unity-mobile #unity-fullscreen-button {
    display: none !important;
}

#unity-logo-title-footer {
    width: 102px;
    height: 38px;
    background: url('unity-logo-title-footer.png') no-repeat center;
    flex-shrink: 0;
}

#unity-right-footer {
    display: flex;
    align-items: center;
    gap: 10px;
}

#unity-build-title {
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 38px;
    white-space: nowrap;
}

#unity-fullscreen-button {
    cursor: pointer;
    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;
}