YoonJ-C
Add padding between subtitle and results section
0c5e389
raw
history blame
11.1 kB
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: #F5F5F5;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 10px;
}
.container {
background: white;
border-radius: 16px;
padding: 20px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
max-width: 700px;
width: 100%;
animation: slideIn 0.4s ease;
max-height: 95vh;
overflow-y: auto;
}
/* Mobile Responsive */
@media (max-width: 768px) {
.container {
padding: 15px;
border-radius: 12px;
margin: 5px;
}
}
@keyframes slideIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
h1 {
color: #3D3D3D;
font-size: 28px;
margin-bottom: 8px;
text-align: center;
font-weight: 800;
}
/* Mobile Responsive */
@media (max-width: 768px) {
h1 {
font-size: 24px;
}
}
h3 {
text-align: center;
color: #3D3D3D;
}
p {
color: #6B7280;
text-align: center;
margin-bottom: 30px;
font-size: 16px;
}
.subtitle {
color: #9CA3AF;
font-size: 15px;
text-align: center;
margin-bottom: 25px;
line-height: 1.6;
}
/* Mobile Responsive */
@media (max-width: 768px) {
p {
font-size: 18px;
}
.subtitle {
font-size: 16px;
}
}
/* Form Inputs */
input[type="text"], input[type="password"] {
width: 100%;
padding: 14px 18px;
font-size: 16px;
border: none;
background: #F5F5F5;
border-radius: 10px;
transition: all 0.2s;
outline: none;
}
/* Mobile Responsive */
@media (max-width: 768px) {
input[type="text"], input[type="password"] {
padding: 16px 20px;
font-size: 18px;
}
}
input:focus {
background: #EBEBEB;
box-shadow: 0 0 0 2px #E5E5E5;
}
/* Buttons - Consolidated styles */
button, .btn, .nav-btn, .submit-btn {
padding: 14px 28px;
font-size: 16px;
background: #3D3D3D;
color: white;
border: none;
border-radius: 10px;
cursor: pointer;
transition: all 0.2s;
font-weight: 600;
text-decoration: none;
display: inline-block;
}
/* Mobile Responsive */
@media (max-width: 768px) {
button, .btn, .nav-btn, .submit-btn {
padding: 16px 32px;
font-size: 18px;
}
}
button:hover, .btn:hover, .nav-btn:hover, .submit-btn:hover {
background: #1A1A1A;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
button:active, .btn:active {
transform: translateY(0);
}
button:disabled {
background: #E5E5E5;
color: #999;
cursor: not-allowed;
transform: none;
}
.nav-btn:disabled {
opacity: 0.3;
cursor: not-allowed;
transform: none;
}
/* Secondary Buttons - Consolidated */
.logout-btn, .reset-btn {
background: #6B7280;
padding: 8px 16px;
font-size: 13px;
margin-top: 15px;
}
.logout-btn:hover, .reset-btn:hover {
background: #4B5563;
box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}
/* Submit Button */
.submit-btn {
width: 100%;
padding: 16px;
font-size: 16px;
margin-top: 10px;
}
/* Auth Form */
.auth-form input {
width: 100%;
margin-bottom: 15px;
}
.auth-form button {
width: 100%;
}
.switch-link {
color: #3D3D3D;
text-decoration: none;
cursor: pointer;
font-weight: 600;
margin-top: 15px;
display: inline-block;
transition: color 0.2s;
}
.switch-link:hover {
color: #1A1A1A;
text-decoration: underline;
}
/* Question Blocks */
.question-block {
background: #FAFAFA;
padding: 25px;
border-radius: 12px;
margin-bottom: 20px;
border: none;
display: none;
min-height: 400px;
}
/* Mobile Responsive */
@media (max-width: 768px) {
.question-block {
padding: 20px;
min-height: 350px;
}
}
.question-block.active {
display: block;
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateX(20px); }
to { opacity: 1; transform: translateX(0); }
}
.question-block h4 {
color: #3D3D3D;
margin-bottom: 25px;
font-weight: 700;
font-size: 20px;
line-height: 1.6;
}
/* Mobile Responsive */
@media (max-width: 768px) {
.question-block h4 {
font-size: 22px;
}
}
.question-number {
display: inline-block;
background: #3D3D3D;
color: #fff;
width: 32px;
height: 32px;
border-radius: 50%;
text-align: center;
line-height: 32px;
margin-right: 12px;
font-size: 16px;
}
/* Options */
.option {
display: block;
padding: 18px 22px;
margin-bottom: 14px;
background: white;
border: none;
border-radius: 10px;
cursor: pointer;
transition: all 0.2s;
font-size: 16px;
color: #3D3D3D;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
/* Mobile Responsive */
@media (max-width: 768px) {
.option {
padding: 20px 24px;
margin-bottom: 16px;
font-size: 18px;
}
}
.option:hover {
background: #F5F5F5;
transform: translateX(5px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.option input[type="radio"] {
margin-right: 14px;
cursor: pointer;
width: 20px;
height: 20px;
}
/* Mobile Responsive */
@media (max-width: 768px) {
.option input[type="radio"] {
width: 22px;
height: 22px;
margin-right: 16px;
}
}
.option input[type="radio"]:disabled {
cursor: not-allowed;
opacity: 0.5;
}
.option:has(input[type="radio"]:disabled) {
opacity: 0.4;
cursor: not-allowed;
}
.option:has(input[type="radio"]:disabled):hover {
background: white;
transform: none;
}
/* Question Counter & Progress */
.question-counter {
text-align: center;
color: #999;
font-size: 16px;
margin-bottom: 15px;
font-weight: 600;
}
/* Mobile Responsive */
@media (max-width: 768px) {
.question-counter {
font-size: 18px;
}
}
.progress-bar {
background: #F5F5F5;
height: 8px;
border-radius: 4px;
overflow: hidden;
margin-bottom: 20px;
}
.progress-fill {
background: #3D3D3D;
height: 100%;
transition: width 0.3s;
}
/* Navigation */
.nav-buttons {
display: flex;
gap: 12px;
justify-content: flex-start;
margin-top: 20px;
}
.buttons-row {
display: flex;
gap: 10px;
justify-content: center;
margin-top: 20px;
}
/* Results */
.result-card {
padding: 25px;
border-radius: 12px;
margin-bottom: 20px;
border: none;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.result-card.rank-1 {
background: #FFFACD;
}
.result-card.rank-2 {
background: #B4C7E7;
}
.result-card.rank-3 {
background: #90EE90;
}
.result-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 15px;
}
.result-rank {
color: #fff;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
font-weight: 800;
background: #3D3D3D;
}
.result-title {
flex: 1;
margin-left: 15px;
}
.result-title h3 {
font-size: 22px;
margin-bottom: 5px;
color: #3D3D3D;
}
.result-percentage {
font-size: 24px;
font-weight: 800;
color: #3D3D3D;
}
.result-description {
color: #666;
line-height: 1.6;
margin-bottom: 12px;
font-size: 14px;
}
.result-details {
background: rgba(255, 255, 255, 0.6);
border: none;
padding: 15px;
border-radius: 8px;
margin-top: 15px;
}
.result-details h5 {
color: #3D3D3D;
font-size: 13px;
margin-bottom: 8px;
font-weight: 700;
}
.result-details p {
color: #666;
font-size: 13px;
margin-bottom: 10px;
text-align: left;
}
/* Icons & Messages */
.icon {
font-size: 24px;
margin-right: 8px;
}
.success-msg {
color: #3D3D3D;
font-weight: 600;
}
.error-msg {
color: #666;
font-weight: 600;
text-align: center;
padding: 10px;
}
/* Chat Interface */
.chat-toggle-btn {
background: rgba(255, 255, 255, 0.8);
color: #3D3D3D;
border: none;
padding: 10px 20px;
border-radius: 8px;
cursor: pointer;
font-size: 14px;
font-weight: 600;
margin-top: 15px;
width: 100%;
transition: background 0.2s, color 0.2s;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.chat-toggle-btn:hover {
background: #3D3D3D;
color: #fff;
}
.chat-window {
display: none;
background: rgba(255, 255, 255, 0.9);
border: none;
border-radius: 10px;
margin-top: 15px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.chat-window.open {
display: block;
animation: slideDown 0.3s ease;
}
@keyframes slideDown {
from { opacity: 0; max-height: 0; }
to { opacity: 1; max-height: 500px; }
}
.chat-messages {
height: 250px;
overflow-y: auto;
padding: 15px;
background: transparent;
}
.chat-message {
margin-bottom: 12px;
padding: 10px 14px;
border-radius: 8px;
max-width: 85%;
line-height: 1.5;
font-size: 14px;
}
.chat-message.user {
background: #3D3D3D;
color: #fff;
margin-left: auto;
text-align: right;
}
.chat-message.bot {
background: white;
color: #3D3D3D;
border: none;
text-align: left;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.chat-message.bot ul {
margin: 8px 0 0 0;
padding-left: 20px;
}
.chat-message.bot li {
margin-bottom: 6px;
line-height: 1.6;
}
.chat-input-area {
display: flex;
gap: 8px;
padding: 12px;
background: transparent;
border-top: none;
}
.chat-input {
flex: 1;
padding: 10px 14px;
border: none;
background: white;
border-radius: 8px;
font-size: 14px;
outline: none;
color: #3D3D3D;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.chat-input:focus {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.chat-send-btn {
padding: 10px 20px;
background: #3D3D3D;
color: #fff;
border: none;
border-radius: 8px;
cursor: pointer;
font-weight: 600;
font-size: 14px;
transition: background 0.2s;
}
.chat-send-btn:hover {
background: #1A1A1A;
color: #fff;
}
.chat-send-btn:disabled {
background: #F5F5F5;
color: #999;
cursor: not-allowed;
}
.chat-typing {
color: #999;
font-style: italic;
font-size: 13px;
padding: 10px 14px;
}
/* Navigation Header */
.nav-header {
padding: 0 0 20px 0;
margin-bottom: 20px;
border-bottom: 1px solid #e9ecef;
}
.back-link {
color: #667eea;
text-decoration: none;
font-weight: 600;
font-size: 14px;
transition: all 0.3s ease;
display: inline-flex;
align-items: center;
gap: 4px;
}
.back-link:hover {
color: #5a6fd8;
transform: translateX(-3px);
}
/* Results description max-width */
.subtitle {
max-width: 500px;
margin: 0 auto;
}
.results-spacing {
margin-top: 40px;
}