html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('TemplateData/my-background.png') center center no-repeat;
    background-size: cover;
    background-color: #000;
    z-index: -1;
}

#unity-container {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* 배경은 body 에서 처리 */
    z-index: 5;
}

#unity-canvas {
    background: transparent;
    display: block;
    z-index: 5;
}

#unity-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('TemplateData/title_01.png') center center no-repeat;
    background-size: contain; /* or cover, depending on preference */
    z-index: 2;
    pointer-events: none; /* 클릭 막지 않도록 */
}

#unity-loading-bar {
    position: absolute;
    left: 50%;
    bottom: 5%;
    transform: translateX(-50%);
    display: block;
    text-align: center;
    z-index: 3;
}

#unity-loading-text {
    color: white;
    font-family: Arial, sans-serif;
    margin-bottom: 10px;
    font-size: 16px;
}

#unity-progress-bar-empty {
    width: 300px;
    height: 30px;
    background: url('TemplateData/loading-bar-bg.png') center center no-repeat;
    background-size: cover;
    position: relative;
    /* border-radius: 15px;  */  /* 모서리를 둥글게 만든다 */
    /* overflow: hidden;  */  /*부모 영역을 벗어난 부분을 자름, 이미지 바깥 파란 테두리 잘려 나감*/
    overflow: visible;      /* 기본값으로 되돌림 */
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: url('TemplateData/loading-bar-full.png') center center no-repeat;
    background-size: cover;
    transition: width 0.3s;
}

#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%, 0);
    background: white;
    padding: 10px;
    display: none;
}
