body {
    padding: 0;
    margin: 0;
    overflow: hidden;
}

#intro {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100%;
    z-index: 99;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

#intro #app-version {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px;
    font-size: 14px;
    color: black;
}

#intro #logo {
    width: 130px;
    height: auto;
    position: absolute;
    z-index: 10;
    left: 50%;
    top: 8%;
    transform: translateX(-50%);
}

.back video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: fixed;
}

#bottom-layout {
    position: absolute;
    bottom: 4%;
    left: 0;
    width: 100%;
    /*padding: 20px;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#bottom-layout label {
    color: black;
    margin-bottom: 12px;
    font-size: 14px;
}

#bottom-layout button {
    width: 80%;
    height: 40%;
    padding: 10px 20px;
    border-radius: 10px;
    background-color: #9B9B9B;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

#bottom-layout #chooseCamSel {
    visibility: hidden;
    background: transparent;
    border: .05vh solid white;
    border-radius: max(0.5vw, 0.5vh);
    color: white;
    font-size: max(1.5vw, 1.5vh);
    position: absolute;
    bottom: 80px;
    pointer-events: auto;
}

#unity-container {
    position: fixed;
    width: 100%;
    height: 100%;
}

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

#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 {
    margin-left: auto;
    margin-right: auto;
    width: 141px;
    height: 18px;
    margin-top: 10px;
    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-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 10px;
    display: none
}

#unity-ui {
    z-index: 9999;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

#unity-ui button {
    width: 80px;
    height: 40px;
    padding: 0;
    background-size: contain;
    position: absolute;
    pointer-events: auto;
    border: none;
}

#nupy-logo {
    width: 120px;
    height: 40px;
    background: url("UnityUI/NupyLogo.png") no-repeat center;
    background-size: contain;
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translateX(-50%);
}

#guide-line {
    align-self: center;
    width: 75%;
    height: 75%;
    background: url("UnityUI/Guide-Line.png") no-repeat center;
    background-size: contain;
    object-fit: cover;
    position: absolute;
    pointer-events: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

#guide-line.recognition {
    filter: invert(39%) sepia(92%) saturate(2080%) hue-rotate(68deg) brightness(85%) contrast(97%);
}

#guide-line.play {
    opacity: 0;
}

#record-button {
    background: url("UnityUI/Record-Off.png") no-repeat center;
    left: 10%;
    bottom: 7%;
}

#record-button.reco-on {
    background: url("UnityUI/Record-On.png") no-repeat center;
    background-size: contain;
}


#mute-button {
    background: url("UnityUI/Volume-On.png") no-repeat center;
    right: 10%;
    bottom: 7%;
}

#mute-button.mute-off {
    background: url("UnityUI/Volume-Off.png") no-repeat center;
    background-size: contain;
}


/* 팝업 스타일 */
.popup-wrapper {
    position: fixed;
    display: none; /* 처음엔 숨김 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 반투명 배경 */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup {
    background: white;
    padding: 20px;
    width: 300px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.popup button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.popup button:hover {
    filter: brightness(0.9);
}

.btn-cancel {
    background-color: #f44336;
    color: white;
}

.btn-save {
    background-color: #4CAF50;
    color: white;
}

.btn-share {
    background-color: #008CBA;
    color: white;
}
