/* 기본 스타일 */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* 상단에서 시작 */
    min-height: 100vh;
    padding-top: 50px; /* 위쪽에서 약간 여백 추가 */
    text-align: center;
}

/* 반응형 중앙 배치 */
h1 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

/* 버튼을 담는 컨테이너 중앙 정렬 */
.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 중앙 정렬 */
    gap: 20px; /* 버튼 사이 간격 */
}

/* 개별 버튼 스타일 */
.tool-button {
    display: inline-block;
    padding: 15px 25px;
    text-decoration: none;
    color: white;
    border-radius: 8px;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    text-align: center;
    margin: 10px;
}

/* 각 버튼의 색상 */
.tool-button:nth-child(1) {
    background-color: #4CAF50; /* Green */
}

.tool-button:nth-child(2) {
    background-color: #FF9800; /* Orange */
}

.tool-button:nth-child(3) {
    background-color: #2196F3; /* Blue */
}

.tool-button:nth-child(4) {
    background-color: #9C27B0; /* Purple */
}

.tool-button:nth-child(5) {
    background-color: #FF5722; /* Deep Orange */
}

.tool-button:nth-child(6) {
    background-color: #3F51B5; /* Indigo */
}

.tool-button:nth-child(7) {
    background-color: #009688; /* Teal */
}

.tool-button:nth-child(8) {
    background-color: #795548; /* Brown */
}

/* Hover 효과 */
.tool-button:hover {
    opacity: 0.8;
}

/* 반응형 디자인 적용 */
@media (max-width: 768px) {
    h1 {
        font-size: 2em; /* 작은 화면에서 글자 크기 축소 */
    }

    .tool-button {
        min-width: 150px; /* 작은 화면에서 버튼 크기 축소 */
        padding: 12px 20px;
        font-size: 1em;
    }

    .button-container {
        gap: 15px; /* 버튼 간격 축소 */
    }
}

@media (max-width: 480px) {
    .tool-button {
        min-width: 100%; /* 작은 화면에서 버튼이 전체 너비를 차지하도록 설정 */
    }
}

footer {
    background-color: #f8f9fa; /* 배경 색상 */
    text-align: center; /* 중앙 정렬 */
    padding: 20px 0; /* 패딩 추가 */
    position: relative; /* 하단 고정시킴 */
    bottom: 0;
    width: 100%;
}

.footer-menu {
    margin: 10px 0; /* 상하 여백 */
}

.footer-menu a {
    margin: 0 15px; /* 링크 간 여백 */
    text-decoration: none;
    color: #007bff; /* 링크 색상 */
}

.footer-menu a:hover {
    text-decoration: underline; /* 호버 시 밑줄 */
}

/* 추가된 스타일 */
#open_preferences_center {
    display: block; /* 블록으로 설정하여 중앙 정렬 가능 */
    margin: 10px auto; /* 위 아래 여백 추가 및 자동 좌우 여백으로 중앙 정렬 */
    text-decoration: none; /* 밑줄 제거 */
    color: #007bff; /* 링크 색상 */
}

#open_preferences_center:hover {
    text-decoration: underline; /* 마우스 오버 시 밑줄 */
}