@charset "utf-8";
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

#topBarElement {
    height: 95px;
    flex-shrink: 0;
}

#footerElement {
    flex-shrink: 0;
}

#bodyContentsElement {
    flex: 1;               /* 남은 높이 전부 */
    display: flex;
}

/* 중앙 정렬 컨테이너 */
.error-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 에러 박스 */
.error-box {
    /*animation: fadeUp 0.4s ease-out;*/
    animation: none;
    text-align: center;
    padding: 40px 32px;
    max-width: 520px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 붉은 느낌의 ! 아이콘 */
.error-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: #e53935;
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    line-height: 72px;
}

/* 메인 타이틀 */
.error-title {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px;
}

/* 설명 문구 */
.error-message {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.error-actions {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/**  공통 버튼 **/
.error-btn {
    padding: 12px 26px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

/* 홈으로 이동 버튼 */
.error-btn.primary  {
    /*background-color: #e53935;   /* 아이콘과 톤 맞춤 */
    /*color: #fff;*/
    /*background-color: #f5f5f5;
    color: #333;*/
    background-color: #f3f6f9;
    color: #2f5fa3;
    border: 1px solid #c7d2e0;
}

.error-btn.primary span::before {
    content: "🏠";
    margin-right: 6px;
}

/** 홈 이동 */
.error-btn.primary:hover {
    /*background-color: #d32f2f;*/
    /*background-color: #eee;*/
    /*box-shadow: 0 6px 16px rgba(229, 57, 53, 0.25);*/
    background-color: #e9eff6;
    box-shadow: 0 6px 16px rgba(47, 95, 163, 0.15);
    transform: translateY(-1px);
}

.error-btn.primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 95, 163, 0.25);
}

/** 뒤로가기 */
.error-btn.secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #c7d2e0;
}

.error-btn.secondary::before {
    content: "← ";
}

/* hover 효과 */
.error-btn.secondary:hover {
    /*background-color: #d32f2f;*/
    background-color: #eee;
    box-shadow: 0 6px 16px rgba(229, 57, 53, 0.25);
    transform: translateY(-1px);
}

/* focus 접근성 */
.error-btn.secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.35);
}

/* active 클릭감 */
.error-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(229, 57, 53, 0.2);
}

@media (max-width: 767px) {
    .error-actions {
        flex-direction: column;
    }
    .error-btn {
        width: 100%;
        text-align: center;
    }
}