/* thisway8.css - Disway 테마 스타일 개선 */

@charset 'utf-8';

/* 기본 폰트 및 리셋 */
@font-face {
  font-family: 'Monoton';
  font-style: normal;
  font-weight: 400;
  src: local('Monoton'), local('Monoton-Regular'), url(https://themes.googleusercontent.com/static/fonts/monoton/v3/AKI-lyzyNHXByGHeOcds_w.woff) format('woff');
}

/* 기본 스타일 */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

body {
    height: 100%; /* 화면 전체 높이를 기준으로 100% 설정 */
    margin: 0;    /* 기본 마진 제거 */
    padding: 0;   /* 기본 패딩 제거 */
    line-height: 1;
    overflow: hidden;
    background-color: #000;
    font-family: 'PT Sans', sans-serif;
    color: #999;
}

#body-wrapper { /* HTML 코드에서 배경과 콘텐츠를 감싸고 있는 wrapper도 확인 */
    position: relative; /* 또는 absolute, fixed 등 레이아웃에 따라 조정 */
    width: 100%;
    height: 100%; /* 이 요소도 높이가 100%인지 확인 */

/* 배경 영역 */
#bgImage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#bgImageWrapper {
    position: absolute; /* 부모 요소 기준 절대 위치 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* 넘치는 영상 부분은 숨김 */
    /* 비디오가 삽입될 때까지 검은색 배경 */
    background-color: #000;
}

#bgImageWrapper iframe,
#bgImageWrapper video {
    position: absolute; /* wrapper 내에서 절대 위치 */
    top: 50%;    /* 세로 중앙 */
    left: 50%;   /* 가로 중앙 */
    transform: translate(-50%, -50%); /* 자신의 크기 기준으로 중앙 정렬 */
    min-width: 100%; /* 최소 너비를 100%로 설정 */
    min-height: 100%; /* 최소 높이를 100%로 설정 */
    width: auto; /* 자동 너비 (비율 유지) */
    height: auto; /* 자동 높이 (비율 유지) */
    z-index: -1; /* 배경 요소이므로 z-index를 낮게 설정 */
}

#bgImages li {
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

#bgImages li:last-child {
    margin-bottom: 0;
}

#bgImages li.active img.thumb {
    opacity: 1;
}

#bgImages li:hover img.thumb {
    opacity: 0.9;
    border-color: #555;
}

/* 4️⃣ 제목, 설명: 기본 숨김 + hover 시 표시 (선택) */
#bgImages li h3,
#bgImages li p {
    display: none;
    position: absolute;
    left: 330px; /* 썸네일 옆에 표시 */
    top: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px;
    color: #fff;
    border-radius: 4px;
    width: 200px;
    z-index: 1000;
    text-shadow: 1px 1px 1px #000;
}

#bgImages li h3,
#bgImages li p {
    display: none;
    position: absolute;
    left: -220px;
    width: 200px;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px;
    color: #fff;
    border-radius: 3px;
    font-family: 'Oswald', sans-serif;
    text-shadow: 1px 1px 1px #000;
}

#bgImages li h3 {
    top: 0;
    font-size: 16px;
    color: #ffcc00;
}

#bgImages li p {
    top: 40px;
    font-size: 12px;
    color: #ddd;
}

#bgImages li:hover h3,
#bgImages li:hover p {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 컨트롤 패널 */
#bgControl {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 30px;
}

#bgControl a {
    color: #fff;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

#bgControl a:hover {
}

/* 푸터 텍스트 */
#footertext {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

#footertext h4 {
    font-family: 'Oswald', sans-serif;
    color: #fff;
    font-size: 14px;
    text-shadow: 1px 1px 1px #000;
}

/* 로딩 화면 */
#contentLoading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    z-index: 9999;
    font-family: 'Oswald', sans-serif;
}

/* 배경 텍스트 */
#bgText {
    position: fixed;
    right: 180px;
    top: 50px;
    text-align: right;
    z-index: 100;
}

#bgText h3 {
    font-size: 60px;
    color: #fff;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8);
    font-family: 'Monoton', sans-serif;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#bgText h3:hover {
    opacity: 1;
}

#bgText .subText {
    float: right;
    margin-top: -10px;
    width: 400px;
    font-size: 14px;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    font-family: 'Oswald', sans-serif;
}

/* 5️⃣ 반응형: 모바일 대응 */
@media (max-width: 768px) {
    #bgImages {
        width: 90%;
        left: 5%;
        top: 120px;
    }

    #bgImages img.thumb {
        width: 100%;
        height: auto;
    }

    #bgImages li h3,
    #bgImages li p {
        left: 0;
        width: 100%;
        top: auto;
    }
}
/* 아이프레임 테두리 */
iframe {
	background: url(./pattern.png)repeat;  
}