body { padding: 0; margin: 0 }
#unity-container { position: absolute }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile { width: 100%; height: 100% }
#unity-canvas { 
    margin: 0;
    height: 100vh;
    background-image: url('../images/lobby_bg.jpg');
    background-size: cover;
}
.unity-mobile #unity-canvas { width: 100%; height: 100% }
#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 }


#webview-container {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    position: absolute;
    display: none;
    /* Ẩn WebView theo mặc định */
    z-index: 1000;
    /* Đảm bảo WebView nằm trên các phần tử khác */
    background: white;
    /* Thêm nền trắng để WebView nổi bật hơn */
    border: 1px solid #ccc;
    /* Thêm viền cho WebView */
}

#webview {
    width: 100%;
    height: 100%;
    border: none;
}

#close-button {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    /* Kích thước nút */
    height: 30px;
    /* Kích thước nút */
    background-image: url('../images/close.png');
    /* Hình ảnh nền của nút */
    background-size: cover;
    /* Đảm bảo hình ảnh bao phủ toàn bộ nút */
    background-repeat: no-repeat;
    /* Ngăn không cho hình ảnh lặp lại */
    background-position: center;
    /* Đặt hình ảnh ở giữa nút */
    border: none;
    cursor: pointer;
    z-index: 1001;
    /* Đảm bảo nút nằm trên WebView */
    outline: none;
    /* Xóa đường viền khi nhấn nút */
}

/* Kiểu cho văn bản thông báo "ĐANG GIẢI NÉN" */
#loading-text,
#loading-progress-text
{
    font-size: clamp(20px, 2vw, 30px); /* co giãn từ 14px -> 28px, responsive theo width */
    color: white;
    margin-top: 1vh;
}

/* NEW LINE*/
#loading-cover {
    position: absolute;
    top: 20%;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#unity-loading-bar {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#unity-logo {
    text-align: center;
}
#unity-logo img {
    max-width: 30vw; /* logo chiếm tối đa 30% chiều rộng màn hình */
    height: auto;
    margin-bottom: 2vh;
}
#unity-progress-bar-empty {
    position: relative;
    width: 80%;
    max-width: 800px;
    height: 24px;
    margin: 10px 20px 20px 10px;
    text-align: left;

    /* thay vì border và màu, dùng ảnh nền */
    background: url("../images/loading_bar.png") no-repeat center center;
    background-size: 100% 100%; /* cho ảnh căng full theo div */
    border: none;
    padding: 0;
}

#unity-progress-bar-container {
    position: absolute;
    top: 25%;
    left: 8px;
    right: 8px;
    height: 50%;
    border-radius: 10px;
    background-color: transparent;
}

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


