a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
}

body {
    margin: 0;
    padding: 0;
    background-color: #181818;
}

.selector-for-some-widget {
    box-sizing: content-box;
}

.lucas-top {
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: whitesmoke;
    background-color: #212529;
}

.lucas-title {
    width: 100%;
    height: 28px;
    z-index: 888;
    text-align: center;
}

#three-canvas-parent {
    position: fixed;
    inset: 0; /* left/top/right/bottom: 0 */
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#three-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.section {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-footer {
    width: 100%;
    margin-top: 10px;
    background-color: #212529;
}

.space-lucas {
    margin-top: 200px;
}

.hr-lucas {
    background-color: #888888;
    height: 3px;
}

.info-lucas {
    font-size: 0.8rem;
    text-align: center;
    color: #585858;
}

.company-lucas {
    font-size: 1.2rem;
    text-align: center;
    color: #383838;
}

.ovTopDiv {
    pointer-events: none;
    position: absolute;
    z-index: 2;
    width: calc(100vw - 0px);
    height: calc(100vh - 0px);
    border: 0px hotpink solid;
    padding: 4px;
    left: 0px;
    top: 0px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.ovBottomDiv {
    pointer-events: none;
    position: absolute;
    z-index: 1;
    width: calc(100vw - 0px);
    height: calc(100vh - 30px);
    border: 0px hotpink solid;
    padding: 4px;
    left: 0px;
    top: 0px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

#loading-screen {
    position: fixed; /* 화면 전체에 고정 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000; /* 배경색 */
    color: #fff;
    display: flex; /* 내용을 중앙에 배치 */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Three.js 캔버스 위에 표시되도록 가장 높은 z-index 설정 */
    transition: opacity 0.5s; /* 부드러운 전환 효과 */
}

#loading-text {
    size: 5rem;
}
.loading-screen-hidden {
    opacity: 0;
    pointer-events: none; /* 클릭 이벤트 무시 */
}
#scene-fader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000; /* 검은색 페이드 */
    pointer-events: none; /* 마우스 이벤트 방해 안 함 */
    opacity: 0;
    transition: opacity 1s ease; /* 부드러운 페이드 */
    z-index: 9999;
}
#scene-fader.active {
    opacity: 1;
}

.ui-overlay-L {
    position: absolute;
    top: 40px;
    left: 20px;
    z-index: 10;
    opacity: 0.5;
    display: flex !important; /* 반드시 필요 */
    flex-direction: column !important; /* 세로 정렬 */
    gap: 10px !important; /* 버튼 간격 */
}

.ui-overlay-R {
    position: absolute;
    /* top: 50%;
    transform: translateY(-50%);  요소 높이의 절반만큼 위로 이동시켜 중앙 정렬
     */
    top: 20px;
    right: 20px;
    z-index: 10;
    opacity: 0.5;
    display: flex !important; /* 반드시 필요 */
    flex-direction: column !important; /* 세로 정렬 */
    gap: 20px !important; /* 버튼 간격 */
}

#statsInfo {
    position: absolute;
    visibility: hidden;
    z-index: 1;
    right: 10px;
    top: 10px;
    display: flex !important; /* 반드시 필요 */
    flex-direction: column !important; /* 세로 정렬 */
    gap: 10px !important; /* 버튼 간격 */
}

#watermark {
    pointer-events: none;
    padding-bottom: 0px;
    font-family: Courier;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px black;
    color: white;
}

/* 모바일 화면 전용 */
@media (max-width: 768px) {
    #watermark {
        padding-bottom: 10px; /* 모바일에서 더 크게 */
    }
}

/* From Uiverse.io by adamgiebl */
button {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    padding: 0.1em 1em;
    border: 3px solid #0072ff;
    border-radius: 1px;
    position: relative;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.16), 0 6px 6px rgba(0, 0, 0, 0.1);
    color: #0072ff;
    text-decoration: none;
    transition: 0.3s ease all;
    z-index: 1;
}

button:before {
    transition: 0.5s all ease;
    position: absolute;
    top: 0;
    left: 50%;
    right: 50%;
    bottom: 0;
    opacity: 0;
    content: "";
    background-color: #0072ff;
    z-index: -1;
}

button:hover,
button:focus {
    color: white;
}

button:hover:before,
button:focus:before {
    transition: 0.5s all ease;
    left: 0;
    right: 0;
    opacity: 1;
}

button:active {
    transform: scale(0.9);
}

.button-small {
    font-size: 0.7rem;
    opacity: 0.3 !important;
}

#ui-slider {
    position: absolute;
    bottom: 60px;
    right: 50px;
    z-index: 10; /* 여기서만 의미 있음 */
}
#video {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
    /* 또는 display: none; 도 가능하지만, VideoTexture가 제대로 작동하려면 display: none;은 피하는 게 안전 */
}
