/**
 * 심리테스트 사이트 커스텀 CSS
 */

@font-face {
    font-family: 'omyu_pretty';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2304-01@1.0/omyu_pretty.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard-Regular';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
/* 전체 스타일 */
body {
    background-color: #f8f9fa;
    color: #333;
    font-family: 'Pretendard-Regular', 'omyu_pretty', 'Noto Sans KR', sans-serif;
	font-size: 1.2em; 
}

/* 헤더 스타일 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* 메인 컨텐츠 */
main {
    min-height: calc(100vh - 180px);
}

/* 카드 스타일 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;	
}
.card {
    position: relative;
}

a .card:hover {
	transform: scale(1.01);
}

.card:hover {
    /* transform: translateY(-5px); */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-weight: 600;	
}

button[name="choice"] {
    font-size: 1.2rem; /* 또는 18px, 20px 등 */
}

.card-title.main-title {
	font-size:1.1rem;
}

/* 테스트 시작 버튼 */
.btn-primary {
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.adbox {
	display:flex;
	align-items: center;
    justify-content: center;
	max-width:100%;
	min-height:100px;
	background:#eee;
	margin:20px auto;
	flex-direction: column;
}

.adbox-here {
	margin:20px auto;
}

/* 진행 상태 바 */
.progress {
    height: 24px;
    border-radius: 6px;
    background-color: #f0f0f0;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}
/*
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #66bb6a 100%);
    transition: width 0.6s ease-in-out;
    border-radius: 6px 0 0 6px;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.2);
}
*/

a#kakao-share-btn:hover img {
	transform:scale(1.02);
}

/* 질문 스타일 */
.btn-outline-primary {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
}

/* 결과 페이지 스타일 */
.result-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* 공유 버튼 */
.share-btn {
    transition: all 0.3s ease;
    /* border-radius: 30px; */
}

.share-btn:hover {
    background-color: #f8f9fa;
}

/* 푸터 스타일 */
footer {
    border-top: 1px solid #eee;
}

/* 반응형 조정 */
@media (max-width: 767.98px) {
    .card-title {
        font-size: 1.2rem;
    }
    
    .result-heading {
        font-size: 1.5rem;
    }
}

/* 관리자 페이지 스타일 */
.admin-sidebar {
    background-color: #343a40;
    color: #fff;
    min-height: calc(100vh - 56px);
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 5px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* 관리자 폼 스타일 */
.admin-form {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.admin-form label {
    font-weight: 600;
}

/* 동적 항목 스타일 */
.dynamic-item {
    position: relative;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.delete-field {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #dc3545;
}

.delete-field:hover {
    color: #bd2130;
}

/* 미리보기 이미지 */
.image-preview {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    border-radius: 8px;
    margin-top: 10px;
    display: none;
}

/* 더보기 버튼 */
#load-more {
    margin: 20px auto;
    display: block;
    width: 200px;
}

.pagination .page-link {
    color: #fff;
    background-color: #8d8d8d; /* Bootstrap dark 색상 */
    border-color: #343a40;
}

.pagination .page-item.active .page-link {
    background-color: #212529; /* 더 진한 dark */
    border-color: #212529;
}

.pagination .page-link:hover {
    background-color: #495057;
    border-color: #495057;
}

@keyframes slideInLeftOnce {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInLeftOnce2 {
  from {
    transform: translateX(60px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInLeftOnce3 {
  from {
    transform: translateX(90px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInLeftOnce4 {
  from {
    transform: translateX(120px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.btn_sliding:nth-child(1) {
  animation: slideInLeftOnce 0.6s ease-out;
}

.btn_sliding:nth-child(2) {
  animation: slideInLeftOnce2 0.6s ease-out;
}

.btn_sliding:nth-child(3) {
  animation: slideInLeftOnce3 0.6s ease-out;
}

.btn_sliding:nth-child(4) {
  animation: slideInLeftOnce4 0.6s ease-out;
}