@keyframes rainbow-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.rainbow-button {
    background: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet);
    background-size: 400% 400%;
    animation: rainbow-flow 3s infinite linear;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 알림창 배경 스타일 */
.install-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.3s, opacity 0.3s ease-in-out;
}

.install-overlay.show {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

/* 알림창 스타일 */
.install-alert {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    min-width: 320px;
    text-align: left;
    opacity: 0;
    transform: translateY(-20px);
    animation: slideFadeIn 0.4s forwards ease-in-out;
    position: relative;
    font-size: 16px;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 애니메이션: 부드러운 페이드 인 + 슬라이드 효과 */
@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 알림창 내 버튼 스타일 */
.install-alert button {
    background: linear-gradient(45deg, #00aaff, #0066ff);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    width: 80%;
    margin-top: 15px;
    text-align: center;
}

.install-alert button:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 15px rgba(0, 102, 255, 0.3);
    background: linear-gradient(45deg, #0066ff, #00aaff);
}

.install-alert button:active {
    transform: scale(0.98);
    box-shadow: none;
}

/* 알림창 닫기 버튼 (X 아이콘) */
.close-alert {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #777;
    transition: color 0.3s ease-in-out;
}

.close-alert:hover {
    color: #333;
}


.custom-image {
    width: 90%; /* 원본 크기의 80%로 조정 */
    height: auto;
}

.text-center .btn-primary {
    width: 50%;
    max-width: 300px;
    font-size: 18px;
    font-weight: bold;
}

.text-center .btn-primary:active {
    transform: scale(0.98);
    transition: transform 0.1s;
}

/* 푸터 차분한 그라디언트 효과 */
.gradient-footer {
    background: linear-gradient(45deg, #2c3e50, #4a6274);
    padding: 15px 0;
    transition: transform 0.3s ease-in-out;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* 메뉴 글자색 조정 */
.menu-text {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease-in-out;
}

.menu-text:hover {
    color: rgba(255, 255, 255, 1);
}

/* 카피라이트 색상 조정 */
.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* 전체 페이지 배경 */
html, body {
    margin: 0;
    padding: 0;
    background: linear-gradient(45deg, #2c3e50, #4a6274);
    background-size: cover;
    overflow-x: hidden;
}

/* 전체 페이지를 감싸는 컨테이너 */
.full-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px); /* 푸터 높이 고려 */
    width: 100%;
    padding-bottom: 80px; /* 푸터와 겹치지 않도록 여백 추가 */
}

/* 이미지 스타일 */
.custom-image {
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 90%;
}

/* 내용 영역을 세로 중앙 정렬 */
.content-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* 텍스트 입력창 스타일 */
.custom-textarea {
    width: 80% !important;
    max-width: 80%;
    min-height: 150px;
    border-radius: 10px;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.custom-textarea:focus {
    border-color: #00aaff;
    box-shadow: 0px 0px 15px rgba(0, 170, 255, 0.5);
    outline: none;
}

/* 버튼 스타일 */
.stylish-button {
    background: linear-gradient(45deg, #00aaff, #0066ff);
    color: white;
    padding: 14px 30px; /* 패딩을 증가하여 버튼이 커지도록 조정 */
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    border: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.stylish-button:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 15px rgba(0, 102, 255, 0.3);
    background: linear-gradient(45deg, #0066ff, #00aaff);
}

.stylish-button:active {
    transform: scale(0.98);
    box-shadow: none;
}

/* 버튼을 더 넓게 설정 */
.wide-button {
    width: 60%; /* 버튼 가로 크기 증가 */
    max-width: 400px;
}

/* 안내 문구 */
.description-box {
    width: 80%;
    font-size: 14px;
    text-align: left;
}

/* 응답 결과 스타일 */
#bibleResult {
    border-radius: 10px;
    padding: 20px;
    background: #f8f9fa;
    color: #333;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
}

/* 기본 메뉴 스타일 */
.menu-item {
    text-decoration: none; /* 기본 밑줄 제거 */
    font-size: 16px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    position: relative;
    transition: color 0.3s ease-in-out;
}

/* 마우스 호버 시 색상 변화 */
.menu-item:hover {
    color: rgba(255, 255, 255, 1);
}

/* 밑줄 애니메이션 효과 */
.menu-item::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

/* 호버 시 밑줄 확장 */
.menu-item:hover::after {
    width: 100%;
}
