@font-face {
    font-family: 'NoonnuBasicGothicRegular';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noon-2410@1.0/NoonnuBasicGothicRegular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'NoonnuBasicGothicRegular', 'Arial', sans-serif;
    margin: 0;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

header .logo h1 {
    margin: 0;
    font-size: 28px;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline-block;
    margin-left: 30px;
}

header nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

#hero {
    background-image: url('images/church.jpg'); /* 배경 이미지 경로 */
    background-size: cover;                     /* 배경을 섹션에 꽉 채움 */
    background-position: center;                /* 배경을 중앙에 위치 */
    background-attachment: fixed;               /* 배경 이미지 고정 */
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

#hero .hero-text h2 {
    font-size: 48px;
    margin: 0;
}

#hero .hero-text p {
    font-size: 24px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

section {
    padding: 50px;
    text-align: center;
}

section h2 {
    font-size: 36px;
    margin-bottom: 30px;
}



.sermon-list, .event-list, .worship-list {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.sermon-item, .event-item, .worship-item {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 5px;
    width: 300px;
}

#map {
    height: 500px;
    background-color: #eee;
    margin-top: 30px;
}

.direction-map {
    width: 100%;
    height: 100%;
    border: 0;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.hamburger {
    display: none;
    /* 기본적으로 숨김 */
}


/* 데스크탑 반응형 스타일 */

@media (min-width: 1024px) {
    #about, #worship-times, #praise, #sermons, #events {
    height: 100vh;
    }
    
}

 @media (max-height: 900px) or (min-width: 800px) {
     #about, #worship-times, #praise, #sermons {
    height: 100vh;
    }
    
} 

/* 모바일 반응형 스타일 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav {
        display: none;
        position: absolute;
        top: 65px;
        /* 헤더 높이에 맞춰 조정 */
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        /* 다른 요소들 위에 오도록 설정 */
    }



    header nav.active {
        display: block;
    }

    header nav ul {
        display: flex;
        justify-content: space-around;      /* 메뉴 아이템들 사이에 균일한 간격 */
            align-items: center;            /* 세로 중앙 정렬 */
            width: 100%;                    /* 너비를 100%로 설정 */
            max-width: 500px;               /* 최대 너비를 제한하여 너무 넓어지지 않게 함 */
            margin: 0 auto;                 /* ul 요소를 수평 중앙에 위치시킴 */
            padding: 10px 0;                /* 위아래 패딩 추가 */
            list-style: none;
    }

    header nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    .hamburger {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        cursor: pointer;
        
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px;
        background-color: #333;

    }

    .sermon-list,
    .event-list,
    .worship-list{
        flex-direction: column;
        align-items: center;
    }

    header .logo {
        margin: 0;
        font-size: 24px;
        text-align: center;
        width: 100%;
    }

    #hero .hero-text h2 {
        font-size: 34px;
        margin: 0;
    }
    #map {
        height: 300px;
    }

  
    #about, #worship-times, #praise, #sermons{
    height: 100vh;
    }
}   