/* Reset basic styles */
body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 기본 스타일 */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    background-image: url('../img/tree.jpg'); /* 배경 이미지 경로 설정 */
    background-size: cover; /* 배경 이미지를 전체 화면에 맞게 조정 */
    background-position: center; /* 배경 이미지를 중앙에 위치시킴 */
    background-repeat: no-repeat; /* 이미지 반복을 방지 */
    background-attachment: fixed; /* 배경 이미지를 스크롤할 때 고정 */
}

h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

p {
    line-height: 1.4; /* 가독성을 위한 적절한 행간 설정 */
    margin: 0 0 10px; /*마지막 0px 수치 생각해보기 24-10-07*/
    text-align: center;
    font-size: 0.8em;
}

/* 기본 슬라이더 레이아웃 */
.slider-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh; /* 화면 높이의 80%를 사용 */
    width: 100%;
    margin-top: 100px; /* 불필요한 여백 제거 */
    margin-left: auto;
    margin-right: auto;
}

.content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    height: 70vh; /* 화면 높이에 맞게 비율 조정 */
    margin-top: 0; /* 불필요한 여백 제거 */
    overflow: hidden; /* 슬라이더 콘텐츠가 컨테이너를 넘지 않도록 */
}

.menu {
    flex: 0.3;
    background-color: #f4f4f4;
    padding: 20px;
    opacity: 0.8;
}

/* 슬라이더 메뉴 스타일 */
.menu ul {
    list-style: none;
    padding: 0;
}

.menu ul li {
    padding: 10px 0;
    cursor: pointer;
    font-size: 18px;
}

.menu ul li:hover {
    background-color: #ddd;
}

/* 페이지 네비게이션 (슬라이드 넘기기 위한 dot) */
.pagination {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.active {
    background-color: #717171;
}

/* text-content 안에 이미지와 텍스트 스타일 */
#text-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
}

#text-content img {
    width: 100%; /* 이미지가 부모 컨테이너 너비에 맞게 조정 */
    height: auto; /* 이미지의 비율을 유지 */
    opacity: 0.93;
}

#text-content video {
    width: 100%;
    height: auto;
}

/* 이미지 위에 텍스트를 오버레이하는 스타일 */
#text-content .overlay-text {
    position: absolute;
    top: 50%; /* 텍스트를 이미지의 중앙에 배치 */
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* 텍스트 가독성을 위한 그림자 */
    padding: 10px;
    opacity: 1; /* 기본적으로 텍스트가 보이도록 설정 */
    transition: background-color 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
/* 버튼 컨테이너 */
.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 5px;
}

/* 후원하기 버튼 스타일 */
.support-button, .demo-button {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    font-size: 18px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-decoration: none;
}

/* 버튼 호버 효과 */
.support-button:hover, .demo-button:hover {
    background-color: #2980b9;
}

.slide-2 p.custom-p {
    font-size: 15px;
    color: white;
    text-align: left;
}

/* ul 스타일 */
.overlay-text ul {
    list-style-type: disc;
    margin: 20px 0;
    padding-left: 20px;
}

/* li 스타일 */
.overlay-text ul li {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 10px;
    text-align: left;
}
