ui / style.css
Sangwon78's picture
Update style.css
213b81c verified
Raw History Blame Contribute Delete
3.41 kB
/* ===== ๊ธฐ๋ณธ ๋ฆฌ์…‹ ===== */
* {
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);
}