html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: white;
    font-family: 'Roboto', sans-serif;
}

#unity-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    position: relative;
    background-color: white;
}

#unity-canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
}

#unity-loading-bar {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-items: center;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    width: 100%;
   // padding: 50px; /* This ensures content respects the margins */
    box-sizing: border-box;
}

#unity-logo {
    width: 20vw; /* Responsive width based on viewport width */
    max-width: 200px; /* Maximum size */
    min-width: 100px; /* Minimum size */
    height: auto; /* Maintain aspect ratio */
    background: url('unity-logo-dark.png') no-repeat center;
    background-size: contain;
    align-items: center;
    margin-bottom: 5vh; /* Responsive margin */
    aspect-ratio: 1 / 1; /* Maintain square aspect ratio */
}

#unity-progress-bar-empty {
    width: 80%; /* Use percentage instead of fixed width */
    max-width: 500px; /* Maximum width */
    min-width: 250px; /* Minimum width for small screens */
    height: 20px;
    background-color: #ddd;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    padding: 5px;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: black;
    transition: width 0.3s ease;
    border-radius: 10px;
}

#unity-warning {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4d4f;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    display: none;
    z-index: 100;
}

#fullscreen-note-container {
    position: fixed;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
}

#fullscreen-note {
    background: rgba(44, 47, 58, 0.95);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.portrait-warning {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    text-align: center;
}

.warning-content {
    color: #fff;
    padding: 20px;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 500;
}

@media screen and (orientation: portrait) {
    .portrait-warning {
        display: flex;
    }

    #unity-container {
        transform: translate(-50%, -50%) rotate(-90deg);
        transform-origin: center;
        width: 100vh;
        height: 100vw;
        position: absolute;
        top: 50%;
        left: 50%;
    }
}

@media (min-width: 480px) {
    #unity-loading-bar {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        margin: 0 auto; /* This centers the bar horizontally */
        //transform: translateY(-50%);
        display: flex;
        justify-items: center;
        flex-direction: column;
        align-items: center;

    }
     
}
