/* HTML과 Body는 전체 높이를 차지 */
html {
    height: 100%;
    margin: 0;
}

/* Flex 레이아웃 설정 */
body {
    display: flex;
    height: 100%;
    margin: 0;
    padding-top: 5px;
    flex-direction: column;
    justify-content: space-between; /* 푸터를 항상 하단에 고정 */
    background: url('../image/background.png') no-repeat center center fixed;
    background-size: cover;
    color: #000; /* 글자 색 설정 */
}

/* 메인 컨테이너 중앙 정렬 */
#mainContainer {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("../asset/background.gif");
    background-size: cover;
    flex: 1; /* 남은 공간을 모두 차지 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 세로 중앙 정렬 */
    align-items: center; /* 가로 중앙 정렬 */
    padding: 20px;
    text-align: center;
}

/* 푸터 관련 스타일 */
#footerContainer {
    font-size: 13px;
    background-color: #333; /* 푸터 배경색 */
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%; /* 전체 너비 차지 */
}

/* 서비스 상태 제목 스타일 */
h2.text-center {
    font-size: 2.5rem; /* 제목 글자 크기 증가 */
    font-weight: bold; /* 굵게 설정 */
    margin-top: 70px; /* 네비게이션 바 높이(60px) + 추가 여백(10px) */
    margin-bottom: 20px; /* 아래 여백 설정 */
    text-align: center; /* 중앙 정렬 */
}

/* 네비게이션 바 관련 */
.navbar-brand {
    margin: 0 auto; /* 네비게이션 아이템을 중앙 정렬 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-brand img {
    padding-left: 2px; /* 왼쪽 여백 조정 */
    padding-right: 5px; /* 오른쪽 여백 추가 */
    height: 35px;
    width: 35px;
    border-radius: 50%;
    object-fit: cover;
}

/* 네비게이션 바 고정 */
.navbar {
    position: fixed; /* 스크롤해도 화면 상단에 고정 */
    top: 0; /* 화면 상단에 위치 */
    left: 0; /* 화면 왼쪽에 위치 */
    width: 100%; /* 전체 너비 차지 */
    z-index: 1000; /* 다른 콘텐츠보다 위에 표시되도록 설정 */
    color: white;
}

/* 네비게이션 바 관련 */
.navbar-nav {
    display: flex; /* 메뉴 항목들을 가로로 나열 */
    align-items: center; /* 항목들을 수직 중앙 정렬 */
    padding-left: 0;
}

/* 카드 컨테이너 중앙 정렬 */
.status-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 가로 중앙 정렬 */
    gap: 20px;
}

/* 카드 스타일 */
.status-card {
    background-color: #2c2f33;
    font-size: 1.5rem;
    color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 250px;
}

.status-card h5 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

/* 상태 색상 스타일 */
.status-indicator {
    font-weight: bold;
    font-size: 1.1rem;
}

.status-indicator.online {
    color: #43b581;
}

.status-indicator.offline {
    color: #f04747;
}

.status-indicator.maintenance {
    color: #faa61a;
}

@media (max-width: 768px) {
    .navbar {
        justify-content: flex-start;
    }

    .navbar-brand {
        justify-content: flex-start;
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {

    .footer {
        font-size: 0.875rem;
    }

    .footer-content {
        padding: 15px;
    }
}

/* 기본 스타일에서 목차 박스를 숨기도록 설정 */
@media (max-width: 768px) {
    .navbar {
        display: flex;
        justify-content: flex-start; /* 로고와 메뉴를 왼쪽 정렬 */
        align-items: center;
    }

    .navbar-brand {
        display: flex;
        align-items: center;
        justify-content: flex-start; /* 로고를 왼쪽 정렬 */
        margin-left: 0.01rem;
        font-size: 1.25rem;
    }

    .navbar-brand img {
        height: 35px;
        width: 35px;
        border-radius: 50%;
        object-fit: cover;
    }

    /* 네비게이션 메뉴 왼쪽 정렬 */
    .navbar-nav {
        display: flex;
        justify-content: flex-start; /* 메뉴 항목들을 왼쪽 정렬 */
        align-items: center;
        width: auto;
    }

    .nav-item {
        text-align: left;
        margin-right: auto;
    }

    /* 메뉴 버튼은 그대로 중앙으로 두기 */
    .navbar-toggler {
        margin-left: auto; /* 메뉴 버튼을 오른쪽 끝에 위치시킴 */
    }
}

/* 모바일에서 아이콘 크기 조정 */
@media (max-width: 576px) {
    .footer {
        font-size: 0; /* 모바일에서 폰트 크기 줄임 */
    }

    .footer-content {
        padding: 15px; /* 모바일에서 패딩 줄임 */
    }
}