/* ===== 기본 리셋 ===== */ * { margin: 0; padding: 0; box-sizing: border-box; } /* ===== 전체 배경: 은은한 그라디언트 ===== */ body { font-family: 'Roboto', sans-serif; background: linear-gradient(135deg, #f9f9ff, #dceefd); color: #333; line-height: 1.5; } /* ===== 헤더 디자인 ===== */ header { text-align: center; background: linear-gradient(135deg, #575fcf, #2f268f); color: #fff; padding: 2.5rem 1rem; margin-bottom: 2rem; box-shadow: 0 5px 15px rgba(0,0,0,0.1); } /* 헤더 글꼴 커스터마이즈 */ header h1 { font-family: 'Pacifico', cursive; /* 포인트 폰트 */ font-size: 2.5rem; margin-bottom: 0.5rem; } header p { font-size: 1rem; opacity: 0.95; } /* ===== 메인 컨테이너 ===== */ .container { max-width: 750px; margin: 0 auto; padding: 1rem; } /* ===== 화면 전환 (기본 숨김) ===== */ .screen { display: none; } .screen.active { display: block; animation: fadeIn 0.5s ease-in; } /* 페이드 인 애니메이션 */ @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } /* ===== 인트로 박스 ===== */ .intro-box { text-align: center; background: #ffffffc9; border: 1px solid #eee; border-radius: 8px; padding: 2rem; box-shadow: 0 5px 10px rgba(0,0,0,0.05); } .intro-box h2 { font-size: 2rem; margin-bottom: 1rem; color: #575fcf; font-weight: 700; } .intro-box p { margin-bottom: 2rem; line-height: 1.4; color: #444; } /* ===== 질문 화면 ===== */ .questions-area { margin: 1rem 0; } .question-item { background: #fff; border: 1px solid #eee; padding: 1rem; margin-bottom: 1rem; border-radius: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.03); transition: transform 0.2s; } .question-item:hover { transform: scale(1.01); } .question-item label { font-weight: bold; display: block; margin-bottom: 0.7rem; color: #575fcf; } /* ===== 라디오 그룹 ===== */ .radio-group { display: flex; flex-wrap: wrap; gap: 0.5rem; } .radio-label { cursor: pointer; margin-right: 1rem; font-size: 0.95rem; color: #333; } .radio-label input[type="radio"] { margin-right: 0.3rem; transform: scale(1.2); accent-color: #575fcf; /* 크롬계열 브라우저에서 라디오색 */ } /* ===== 버튼 스타일 ===== */ .next-btn, .submit-btn, .restart-btn { background: #575fcf; color: #fff; padding: 0.9rem 1.5rem; border: none; border-radius: 6px; cursor: pointer; font-size: 1rem; font-weight: 600; margin-top: 1rem; transition: background 0.3s, transform 0.2s; } .next-btn:hover, .submit-btn:hover, .restart-btn:hover { background: #6f77e2; } .next-btn:active, .submit-btn:active, .restart-btn:active { transform: scale(0.97); } /* ===== 결과 화면 ===== */ .result-area { background: #ffffffc9; border: 1px solid #eee; border-radius: 8px; padding: 2rem; box-shadow: 0 5px 10px rgba(0,0,0,0.05); } #result-screen h2 { color: #575fcf; text-align: center; margin-bottom: 1rem; } .result-text { white-space: pre-wrap; margin-bottom: 1rem; font-weight: 500; color: #333; line-height: 1.5; } .image-container { text-align: center; margin-top: 1rem; } .image-container img { max-width: 220px; border-radius: 8px; margin-top: 0.5rem; border: 2px solid #575fcf33; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }