Spaces:
Sleeping
Sleeping
/* Base styles with mobile-first approach */ | |
body { | |
margin: 0; | |
padding: 15px; | |
background: linear-gradient(135deg, #1a4855 0%, #243b55 100%); | |
min-height: 100vh; | |
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; | |
color: #333; | |
line-height: 1.6; | |
font-size: 16px; /* Prevent zoom on iOS */ | |
} | |
.header { | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
padding: 15px 20px; | |
width: 100%; | |
box-sizing: border-box; | |
position: sticky; | |
top: 0; | |
left: 0; | |
background: rgba(26, 72, 85, 0.95); | |
backdrop-filter: blur(10px); | |
z-index: 100; | |
border-radius: 0 0 15px 15px; | |
margin-bottom: 20px; | |
} | |
.logo { | |
font-size: 1.6em; | |
font-weight: 700; | |
color: white; | |
text-decoration: none; | |
text-shadow: 0 2px 4px rgba(0,0,0,0.3); | |
} | |
.nav-links { | |
display: flex; | |
gap: 20px; | |
align-items: center; | |
} | |
.home-link { | |
color: white; | |
text-decoration: none; | |
font-size: 1em; | |
font-weight: 500; | |
transition: all 0.3s ease; | |
padding: 8px 12px; | |
border-radius: 8px; | |
background: rgba(255, 255, 255, 0.1); | |
display: flex; | |
align-items: center; | |
gap: 6px; | |
} | |
.home-link:hover { | |
background: rgba(255, 255, 255, 0.2); | |
} | |
.quiz-container { | |
max-width: 800px; | |
margin: 60px auto 40px; | |
padding: 30px; | |
background: rgba(255, 255, 255, 0.95); | |
border-radius: 20px; | |
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); | |
} | |
.quiz-title { | |
text-align: center; | |
color: #2c3e50; | |
margin-bottom: 40px; | |
padding-bottom: 20px; | |
border-bottom: 3px solid #e8e8e8; | |
position: relative; | |
} | |
.quiz-title::after { | |
font-size: 2em; | |
position: absolute; | |
bottom: -15px; | |
left: 50%; | |
transform: translateX(-50%); | |
background: white; | |
padding: 0 20px; | |
} | |
.quiz-title h1 { | |
font-size: 2.5em; | |
margin-bottom: 10px; | |
line-height: 1.2; | |
} | |
.quiz-title p { | |
font-size: 1.1em; | |
color: #666; | |
max-width: 600px; | |
margin: 0 auto; | |
line-height: 1.6; | |
} | |
.question-container { | |
background-color: white; | |
padding: 30px; | |
margin-bottom: 30px; | |
border-radius: 15px; | |
box-shadow: 0 4px 15px rgba(0,0,0,0.1); | |
text-align: center; | |
display: none; | |
border: 1px solid #eaeaea; | |
transition: all 0.3s ease; | |
} | |
.question-container.active { | |
display: block; | |
} | |
.question-container:hover { | |
transform: translateY(-2px); | |
box-shadow: 0 6px 20px rgba(0,0,0,0.15); | |
} | |
.question { | |
font-size: 1.2em; | |
font-weight: 600; | |
margin-bottom: 25px; | |
color: #2c3e50; | |
line-height: 1.4; | |
text-align: left; | |
} | |
.choices { | |
display: flex; | |
flex-direction: column; | |
align-items: stretch; | |
gap: 12px; | |
margin-bottom: 20px; | |
} | |
.choice-label { | |
display: flex; | |
align-items: flex-start; | |
justify-content: flex-start; | |
text-align: left; | |
padding: 16px 20px; | |
width: 100%; | |
background: linear-gradient(145deg, #ffffff, #f0f0f0); | |
border: 2px solid #e0e0e0; | |
border-radius: 12px; | |
cursor: pointer; | |
transition: all 0.3s ease; | |
position: relative; | |
overflow: hidden; | |
min-height: 44px; | |
box-sizing: border-box; | |
} | |
.choice-label:hover { | |
background: linear-gradient(145deg, #f0f0f0, #e8e8e8); | |
border-color: #3498db; | |
transform: translateY(-1px); | |
box-shadow: 0 4px 12px rgba(0,0,0,0.1); | |
} | |
.choice-label input[type="radio"] { | |
margin-right: 15px; | |
margin-top: 2px; | |
flex-shrink: 0; | |
transform: scale(1.2); | |
} | |
.choice-label span { | |
text-align: left; | |
flex: 1; | |
word-wrap: break-word; | |
line-height: 1.4; | |
} | |
.submit-answer-btn { | |
background: linear-gradient(145deg, #2c3e50, #34495e); | |
padding: 14px 32px; | |
border-radius: 25px; | |
box-shadow: 0 4px 15px rgba(0,0,0,0.1); | |
font-weight: 600; | |
letter-spacing: 0.5px; | |
color: white; | |
border: none; | |
cursor: pointer; | |
transition: all 0.3s ease; | |
margin: 15px auto; | |
min-height: 44px; | |
font-size: 1em; | |
} | |
.submit-answer-btn:hover { | |
background: linear-gradient(145deg, #34495e, #2c3e50); | |
transform: translateY(-2px); | |
box-shadow: 0 6px 20px rgba(0,0,0,0.15); | |
} | |
.submit-answer-btn:disabled { | |
background-color: #95a5a6; | |
cursor: not-allowed; | |
} | |
.feedback { | |
margin-top: 25px; | |
padding: 20px; | |
border-radius: 12px; | |
text-align: center; | |
display: none; | |
animation: fadeIn 0.5s ease; | |
} | |
.correct { | |
background-color: #d4edda; | |
color: #155724; | |
border: 1px solid #c3e6cb; | |
} | |
.incorrect { | |
background-color: #f8d7da; | |
color: #721c24; | |
border: 1px solid #f5c6cb; | |
} | |
.justification { | |
margin-top: 15px; | |
font-style: italic; | |
color: #666; | |
line-height: 1.5; | |
padding: 0 20px; | |
} | |
#score { | |
text-align: center; | |
font-size: 1.4em; | |
font-weight: bold; | |
margin: 30px 0; | |
padding: 20px; | |
background-color: white; | |
border-radius: 8px; | |
box-shadow: 0 2px 8px rgba(0,0,0,0.1); | |
} | |
.progress-bars { | |
background: linear-gradient(145deg, #ffffff, #f8f8f8); | |
border: 1px solid #eaeaea; | |
padding: 20px; | |
margin: 20px 0; | |
border-radius: 12px; | |
box-shadow: 0 2px 8px rgba(0,0,0,0.1); | |
} | |
.progress-bar { | |
height: 12px; | |
border-radius: 6px; | |
background: #f0f0f0; | |
box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); | |
position: relative; | |
margin-bottom: 15px; | |
} | |
.progress-fill { | |
position: absolute; | |
left: 0; | |
top: 0; | |
height: 100%; | |
border-radius: 6px; | |
transition: width 0.5s ease; | |
} | |
.progress-correct { | |
background: linear-gradient(90deg, #28a745, #20c997); | |
} | |
.progress-incorrect { | |
background: linear-gradient(90deg, #dc3545, #e74c3c); | |
} | |
.progress-label { | |
font-size: 0.9em; | |
color: #666; | |
margin-bottom: 5px; | |
font-weight: 500; | |
} | |
.concept-content { | |
text-align: left; | |
line-height: 1.6; | |
color: #2c3e50; | |
margin-bottom: 25px; | |
padding: 25px; | |
background: linear-gradient(145deg, #ffffff, #f8f8f8); | |
border-radius: 15px; | |
border: 1px solid #eaeaea; | |
} | |
.concept-content p { | |
margin-bottom: 15px; | |
} | |
.concept-content h2 { | |
font-size: 1.6em; | |
color: #2c3e50; | |
margin-bottom: 20px; | |
position: relative; | |
padding-bottom: 10px; | |
} | |
.concept-content h2::after { | |
content: ''; | |
position: absolute; | |
bottom: 0; | |
left: 50%; | |
transform: translateX(-50%); | |
width: 60px; | |
height: 3px; | |
background: linear-gradient(90deg, #2c3e50, #34495e); | |
border-radius: 2px; | |
} | |
/* Quiz Selection Grid Styles */ | |
.quiz-selection-container { | |
max-width: 1200px; | |
margin: 80px auto 40px; | |
padding: 30px; | |
} | |
.quizzes-grid { | |
display: grid; | |
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); | |
gap: 25px; | |
margin-top: 30px; | |
} | |
.quiz-card { | |
background: rgba(255, 255, 255, 0.95); | |
border-radius: 20px; | |
padding: 25px; | |
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); | |
transition: all 0.3s ease; | |
display: flex; | |
flex-direction: column; | |
min-height: 280px; | |
position: relative; | |
overflow: hidden; | |
} | |
.quiz-card:hover { | |
transform: translateY(-8px); | |
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); | |
background: rgba(255, 255, 255, 1); | |
} | |
.quiz-card-header { | |
margin-bottom: 15px; | |
} | |
.quiz-title-row { | |
display: flex; | |
align-items: center; | |
gap: 10px; | |
margin-bottom: 10px; | |
} | |
.quiz-title-row i { | |
color: #e74c3c; | |
font-size: 1.2em; | |
} | |
.quiz-title-row h3 { | |
font-size: 1.4em; | |
color: #2c3e50; | |
margin: 0; | |
line-height: 1.3; | |
flex: 1; | |
} | |
.quiz-card-meta { | |
display: flex; | |
gap: 10px; | |
flex-wrap: wrap; | |
margin-bottom: 10px; | |
align-items: center; | |
} | |
.progress-badge { | |
padding: 4px 10px; | |
border-radius: 12px; | |
font-size: 0.75em; | |
font-weight: 600; | |
text-transform: uppercase; | |
letter-spacing: 0.5px; | |
} | |
.progress-badge.completed { | |
background: linear-gradient(145deg, #27ae60, #2ecc71); | |
color: white; | |
} | |
.progress-badge.in-progress { | |
background: linear-gradient(145deg, #f39c12, #e67e22); | |
color: white; | |
} | |
.progress-badge.not-started { | |
background: linear-gradient(145deg, #95a5a6, #7f8c8d); | |
color: white; | |
} | |
.difficulty { | |
padding: 4px 12px; | |
border-radius: 15px; | |
font-size: 0.8em; | |
font-weight: 600; | |
text-transform: uppercase; | |
letter-spacing: 0.5px; | |
} | |
.difficulty-beginner { | |
background: linear-gradient(145deg, #27ae60, #2ecc71); | |
color: white; | |
} | |
.difficulty-intermediate { | |
background: linear-gradient(145deg, #f39c12, #e67e22); | |
color: white; | |
} | |
.difficulty-advanced { | |
background: linear-gradient(145deg, #e74c3c, #c0392b); | |
color: white; | |
} | |
.question-count { | |
padding: 4px 12px; | |
background: linear-gradient(145deg, #3498db, #2980b9); | |
color: white; | |
border-radius: 15px; | |
font-size: 0.8em; | |
font-weight: 500; | |
} | |
.quiz-card-description { | |
color: #666; | |
font-size: 0.95em; | |
line-height: 1.5; | |
margin-bottom: 15px; | |
flex-grow: 1; | |
} | |
.quiz-card-tags { | |
display: flex; | |
flex-wrap: wrap; | |
gap: 6px; | |
margin-bottom: 20px; | |
} | |
.tag { | |
background: linear-gradient(145deg, #ecf0f1, #bdc3c7); | |
color: #2c3e50; | |
padding: 3px 8px; | |
border-radius: 10px; | |
font-size: 0.75em; | |
font-weight: 500; | |
} | |
.quiz-card-footer { | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
margin-top: auto; | |
padding-top: 15px; | |
border-top: 1px solid #eee; | |
} | |
.created-date { | |
font-size: 0.8em; | |
color: #888; | |
} | |
.start-quiz-btn { | |
background: linear-gradient(145deg, #2c3e50, #34495e); | |
color: white; | |
border: none; | |
padding: 12px 20px; | |
border-radius: 25px; | |
cursor: pointer; | |
font-weight: 600; | |
font-size: 0.9em; | |
transition: all 0.3s ease; | |
display: flex; | |
align-items: center; | |
gap: 8px; | |
min-height: 44px; | |
} | |
.start-quiz-btn:hover { | |
background: linear-gradient(145deg, #34495e, #2c3e50); | |
transform: translateY(-2px); | |
box-shadow: 0 4px 12px rgba(0,0,0,0.2); | |
} | |
.start-quiz-btn i { | |
font-size: 0.8em; | |
transition: transform 0.3s ease; | |
} | |
.start-quiz-btn:hover i { | |
transform: translateX(3px); | |
} | |
/* Delete Quiz Button */ | |
.delete-quiz-btn { | |
background: transparent; | |
border: none; | |
color: #e74c3c; | |
font-size: 1.1em; | |
cursor: pointer; | |
padding: 8px; | |
border-radius: 6px; | |
transition: all 0.3s ease; | |
opacity: 0.7; | |
flex-shrink: 0; | |
} | |
.delete-quiz-btn:hover { | |
background: rgba(231, 76, 60, 0.1); | |
opacity: 1; | |
transform: scale(1.1); | |
} | |
.delete-quiz-btn:active { | |
transform: scale(0.95); | |
} | |
.quiz-card .delete-quiz-btn { | |
opacity: 0; | |
visibility: hidden; | |
transition: all 0.3s ease; | |
} | |
.quiz-card:hover .delete-quiz-btn { | |
opacity: 0.7; | |
visibility: visible; | |
} | |
.quiz-card .delete-quiz-btn:hover { | |
opacity: 1; | |
} | |
/* Back Button Styles */ | |
.quiz-header { | |
padding: 0 40px 20px; | |
margin-top: 20px; | |
} | |
.back-btn { | |
background: linear-gradient(145deg, #95a5a6, #7f8c8d); | |
color: white; | |
border: none; | |
padding: 12px 20px; | |
border-radius: 25px; | |
cursor: pointer; | |
font-weight: 600; | |
font-size: 0.9em; | |
transition: all 0.3s ease; | |
display: flex; | |
align-items: center; | |
gap: 8px; | |
min-height: 44px; | |
} | |
.back-btn:hover { | |
background: linear-gradient(145deg, #7f8c8d, #95a5a6); | |
transform: translateY(-2px); | |
box-shadow: 0 4px 12px rgba(0,0,0,0.2); | |
} | |
.back-btn i { | |
font-size: 0.8em; | |
transition: transform 0.3s ease; | |
} | |
.back-btn:hover i { | |
transform: translateX(-3px); | |
} | |
/* Quiz Generator Styles */ | |
.quiz-generator { | |
background: rgba(255, 255, 255, 0.95); | |
border-radius: 15px; | |
padding: 30px; | |
margin: 0 20px 30px; | |
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); | |
transition: all 0.3s ease; | |
} | |
.quiz-generator:hover { | |
transform: translateY(-2px); | |
box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15); | |
} | |
.generator-input { | |
display: flex; | |
gap: 15px; | |
align-items: center; | |
max-width: 600px; | |
margin: 0 auto; | |
} | |
#topic-input { | |
flex: 1; | |
padding: 15px 20px; | |
border: 2px solid rgba(255, 255, 255, 0.3); | |
border-radius: 25px; | |
background: rgba(255, 255, 255, 0.9); | |
font-size: 1.1em; | |
color: #2c3e50; | |
outline: none; | |
transition: all 0.3s ease; | |
min-height: 44px; | |
box-sizing: border-box; | |
} | |
#topic-input:focus { | |
border-color: #3498db; | |
background: rgba(255, 255, 255, 1); | |
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2); | |
} | |
#topic-input::placeholder { | |
color: #7f8c8d; | |
font-style: italic; | |
} | |
#generate-quiz-btn { | |
padding: 15px 25px; | |
background: linear-gradient(145deg, #3498db, #2980b9); | |
color: white; | |
border: none; | |
border-radius: 25px; | |
font-size: 1.1em; | |
font-weight: 600; | |
cursor: pointer; | |
transition: all 0.3s ease; | |
white-space: nowrap; | |
display: flex; | |
align-items: center; | |
gap: 8px; | |
min-height: 44px; | |
} | |
#generate-quiz-btn:hover:not(:disabled) { | |
background: linear-gradient(145deg, #2980b9, #3498db); | |
transform: translateY(-2px); | |
box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3); | |
} | |
#generate-quiz-btn:disabled { | |
background: linear-gradient(145deg, #95a5a6, #7f8c8d); | |
cursor: not-allowed; | |
transform: none; | |
box-shadow: none; | |
} | |
.generation-status { | |
text-align: center; | |
margin-top: 15px; | |
padding: 15px; | |
background: rgba(52, 152, 219, 0.1); | |
border: 1px solid rgba(52, 152, 219, 0.3); | |
border-radius: 10px; | |
color: #3498db; | |
font-weight: 500; | |
} | |
.generation-status i { | |
margin-right: 10px; | |
} | |
/* PDF Upload Section */ | |
.pdf-upload-section { | |
margin-bottom: 30px; | |
padding: 0 20px; | |
} | |
.upload-box { | |
background: rgba(255, 255, 255, 0.95); | |
border-radius: 15px; | |
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); | |
overflow: hidden; | |
transition: all 0.3s ease; | |
position: relative; | |
border: 2px dashed transparent; | |
} | |
.upload-box:hover { | |
transform: translateY(-2px); | |
box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15); | |
} | |
.upload-box.drag-over { | |
border: 2px dashed #e74c3c; | |
background: rgba(231, 76, 60, 0.05); | |
transform: translateY(-2px); | |
box-shadow: 0 6px 25px rgba(231, 76, 60, 0.2); | |
} | |
.upload-content { | |
text-align: center; | |
padding: 40px 30px; | |
position: relative; | |
} | |
.drag-overlay { | |
position: absolute; | |
top: 0; | |
left: 0; | |
right: 0; | |
bottom: 0; | |
background: rgba(231, 76, 60, 0.95); | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
z-index: 10; | |
border-radius: 15px; | |
animation: dragPulse 1s ease-in-out infinite alternate; | |
} | |
.drag-content { | |
text-align: center; | |
color: white; | |
} | |
.drag-icon { | |
font-size: 4em; | |
margin-bottom: 15px; | |
display: block; | |
animation: bounce 1s ease-in-out infinite alternate; | |
} | |
.drag-content p { | |
font-size: 1.2em; | |
font-weight: 600; | |
margin: 0; | |
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); | |
} | |
@keyframes dragPulse { | |
0% { opacity: 0.9; } | |
100% { opacity: 1; } | |
} | |
@keyframes bounce { | |
0% { transform: translateY(0); } | |
100% { transform: translateY(-10px); } | |
} | |
.upload-icon { | |
font-size: 3em; | |
color: #e74c3c; | |
margin-bottom: 20px; | |
display: block; | |
} | |
.upload-content h3 { | |
color: #2c3e50; | |
font-size: 1.5em; | |
margin-bottom: 10px; | |
font-weight: 600; | |
} | |
.upload-content p { | |
color: #666; | |
margin-bottom: 25px; | |
font-size: 1em; | |
} | |
.upload-btn { | |
background: linear-gradient(145deg, #e74c3c, #c0392b); | |
color: white; | |
border: none; | |
padding: 12px 30px; | |
border-radius: 25px; | |
font-size: 1em; | |
font-weight: 600; | |
cursor: pointer; | |
transition: all 0.3s ease; | |
box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3); | |
min-height: 44px; | |
display: inline-flex; | |
align-items: center; | |
justify-content: center; | |
} | |
.upload-btn:hover:not(:disabled) { | |
background: linear-gradient(145deg, #c0392b, #a93226); | |
transform: translateY(-2px); | |
box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4); | |
} | |
.upload-btn:disabled { | |
background: #95a5a6; | |
cursor: not-allowed; | |
transform: none; | |
box-shadow: none; | |
} | |
.upload-btn i { | |
margin-right: 8px; | |
} | |
.upload-status { | |
margin-top: 15px; | |
color: #e74c3c; | |
font-weight: 500; | |
} | |
.upload-status i { | |
margin-right: 8px; | |
} | |
/* PDF Info Section */ | |
.pdf-info-section { | |
background: rgba(52, 152, 219, 0.1); | |
border: 1px solid rgba(52, 152, 219, 0.2); | |
border-radius: 10px; | |
padding: 15px; | |
margin: 20px 0; | |
} | |
.pdf-info { | |
display: flex; | |
align-items: center; | |
gap: 10px; | |
margin-bottom: 10px; | |
} | |
.pdf-info i { | |
color: #e74c3c; | |
font-size: 1.2em; | |
} | |
.pdf-info span { | |
color: #2c3e50; | |
font-weight: 500; | |
} | |
.remaining-tokens { | |
display: flex; | |
align-items: center; | |
gap: 10px; | |
color: #f39c12; | |
font-size: 0.9em; | |
} | |
.remaining-tokens i { | |
color: #f39c12; | |
} | |
/* Generate More Section */ | |
.generate-more-section { | |
text-align: center; | |
margin: 30px 0; | |
padding: 20px; | |
background: rgba(46, 204, 113, 0.05); | |
border: 1px dashed rgba(46, 204, 113, 0.3); | |
border-radius: 10px; | |
} | |
.generate-more-buttons { | |
display: flex; | |
gap: 15px; | |
justify-content: center; | |
align-items: center; | |
flex-wrap: wrap; | |
} | |
.generate-more-btn { | |
background: linear-gradient(145deg, #2ecc71, #27ae60); | |
color: white; | |
border: none; | |
padding: 12px 30px; | |
border-radius: 25px; | |
font-size: 1em; | |
font-weight: 600; | |
cursor: pointer; | |
transition: all 0.3s ease; | |
box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3); | |
min-height: 44px; | |
display: flex; | |
align-items: center; | |
gap: 8px; | |
} | |
.generate-more-btn:hover:not(:disabled) { | |
background: linear-gradient(145deg, #27ae60, #229954); | |
transform: translateY(-2px); | |
box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4); | |
} | |
.generate-more-btn:disabled { | |
background: #95a5a6; | |
cursor: not-allowed; | |
transform: none; | |
box-shadow: none; | |
} | |
.generate-more-btn i { | |
margin-right: 8px; | |
} | |
.back-to-selection-btn { | |
background: linear-gradient(145deg, #95a5a6, #7f8c8d); | |
color: white; | |
border: none; | |
padding: 12px 25px; | |
border-radius: 25px; | |
font-size: 1em; | |
font-weight: 600; | |
cursor: pointer; | |
transition: all 0.3s ease; | |
box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3); | |
min-height: 44px; | |
display: flex; | |
align-items: center; | |
gap: 8px; | |
} | |
.back-to-selection-btn:hover { | |
background: linear-gradient(145deg, #7f8c8d, #6c757d); | |
transform: translateY(-2px); | |
box-shadow: 0 6px 20px rgba(149, 165, 166, 0.4); | |
} | |
.back-to-selection-btn i { | |
margin-right: 8px; | |
} | |
#submit-button { | |
background: linear-gradient(145deg, #3498db, #2980b9); | |
color: white; | |
border: none; | |
padding: 15px 40px; | |
border-radius: 25px; | |
font-size: 1.1em; | |
font-weight: 600; | |
cursor: pointer; | |
transition: all 0.3s ease; | |
box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3); | |
margin: 20px auto; | |
display: block; | |
min-height: 44px; | |
} | |
#submit-button:hover { | |
background: linear-gradient(145deg, #2980b9, #21618c); | |
transform: translateY(-2px); | |
box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4); | |
} | |
@keyframes fadeIn { | |
from { opacity: 0; transform: translateY(10px); } | |
to { opacity: 1; transform: translateY(0); } | |
} | |
/* Enhanced Mobile Responsiveness */ | |
@media (max-width: 768px) { | |
body { | |
padding: 10px; | |
font-size: 16px; | |
} | |
.header { | |
padding: 12px 15px; | |
margin-bottom: 15px; | |
border-radius: 0 0 12px 12px; | |
} | |
.logo { | |
font-size: 1.4em; | |
} | |
.logo i { | |
margin-right: 6px; | |
} | |
.home-link { | |
font-size: 0.9em; | |
padding: 6px 10px; | |
} | |
.quiz-selection-container { | |
padding: 15px 10px; | |
margin: 15px auto 20px; | |
} | |
.quiz-generator { | |
padding: 20px 15px; | |
margin: 0 5px 20px; | |
border-radius: 12px; | |
} | |
.generator-input { | |
flex-direction: column; | |
gap: 12px; | |
max-width: none; | |
} | |
#topic-input { | |
width: 100%; | |
font-size: 16px; | |
padding: 16px 20px; | |
border-radius: 12px; | |
} | |
#generate-quiz-btn { | |
width: 100%; | |
justify-content: center; | |
padding: 16px 24px; | |
font-size: 1.05em; | |
border-radius: 12px; | |
} | |
.pdf-upload-section { | |
padding: 0 5px; | |
margin-bottom: 20px; | |
} | |
.upload-content { | |
padding: 25px 15px; | |
} | |
.upload-content h3 { | |
font-size: 1.3em; | |
margin-bottom: 8px; | |
} | |
.upload-content p { | |
font-size: 0.95em; | |
margin-bottom: 20px; | |
} | |
.upload-btn { | |
padding: 14px 24px; | |
font-size: 0.95em; | |
width: 100%; | |
max-width: 280px; | |
border-radius: 12px; | |
} | |
.upload-icon { | |
font-size: 2.5em; | |
margin-bottom: 15px; | |
} | |
.quizzes-grid { | |
grid-template-columns: 1fr; | |
gap: 15px; | |
padding: 0 5px; | |
margin-top: 20px; | |
} | |
.quiz-card { | |
padding: 18px; | |
min-height: 240px; | |
margin: 0; | |
border-radius: 15px; | |
} | |
.quiz-title-row h3 { | |
font-size: 1.2em; | |
line-height: 1.4; | |
} | |
.quiz-card-footer { | |
flex-direction: column; | |
gap: 12px; | |
align-items: stretch; | |
} | |
.start-quiz-btn { | |
width: 100%; | |
padding: 14px 20px; | |
font-size: 1em; | |
justify-content: center; | |
border-radius: 12px; | |
} | |
.delete-quiz-btn { | |
opacity: 1; | |
visibility: visible; | |
position: static; | |
margin-left: auto; | |
} | |
.quiz-container { | |
margin: 20px auto; | |
padding: 20px 15px; | |
border-radius: 15px; | |
} | |
.quiz-header { | |
padding: 0 0 15px; | |
margin-bottom: 15px; | |
} | |
.back-btn { | |
width: 100%; | |
justify-content: center; | |
padding: 14px 20px; | |
font-size: 1em; | |
border-radius: 12px; | |
} | |
.quiz-title h1 { | |
font-size: 1.8em; | |
margin-bottom: 8px; | |
line-height: 1.3; | |
} | |
.quiz-title p { | |
font-size: 1em; | |
line-height: 1.5; | |
} | |
.question-container { | |
padding: 20px 15px; | |
margin-bottom: 20px; | |
border-radius: 12px; | |
} | |
.question { | |
font-size: 1.1em; | |
margin-bottom: 18px; | |
line-height: 1.4; | |
} | |
.choices { | |
gap: 10px; | |
margin-bottom: 18px; | |
} | |
.choice-label { | |
padding: 14px 16px; | |
border-radius: 10px; | |
min-height: 48px; | |
} | |
.choice-label span { | |
font-size: 0.95em; | |
line-height: 1.4; | |
} | |
.submit-answer-btn { | |
width: 100%; | |
padding: 16px 32px; | |
font-size: 1.05em; | |
border-radius: 12px; | |
} | |
.progress-bars { | |
padding: 16px; | |
margin: 16px 0; | |
border-radius: 10px; | |
} | |
.progress-label { | |
font-size: 0.85em; | |
margin-bottom: 4px; | |
} | |
.progress-label:first-child { | |
font-size: 1em; | |
margin-bottom: 12px; | |
text-align: center; | |
} | |
.progress-bar { | |
height: 10px; | |
margin-bottom: 12px; | |
} | |
.generate-more-section { | |
padding: 18px 15px; | |
margin: 20px 0; | |
border-radius: 10px; | |
} | |
.generate-more-buttons { | |
flex-direction: column; | |
gap: 12px; | |
width: 100%; | |
} | |
.generate-more-btn, .back-to-selection-btn { | |
width: 100%; | |
justify-content: center; | |
padding: 16px 28px; | |
font-size: 1.05em; | |
border-radius: 12px; | |
} | |
#submit-button { | |
width: 100%; | |
padding: 18px 40px; | |
font-size: 1.1em; | |
margin: 20px auto; | |
border-radius: 12px; | |
} | |
.concept-content { | |
padding: 20px 18px; | |
margin-bottom: 20px; | |
border-radius: 12px; | |
} | |
.concept-content h2 { | |
font-size: 1.3em; | |
margin-bottom: 16px; | |
line-height: 1.4; | |
} | |
.concept-content p { | |
margin-bottom: 12px; | |
line-height: 1.5; | |
font-size: 0.95em; | |
} | |
.pdf-info-section { | |
padding: 14px; | |
margin: 16px 0; | |
border-radius: 10px; | |
} | |
.pdf-info { | |
flex-direction: column; | |
align-items: flex-start; | |
gap: 8px; | |
margin-bottom: 8px; | |
} | |
.pdf-info span { | |
font-size: 0.9em; | |
line-height: 1.4; | |
} | |
.remaining-tokens { | |
font-size: 0.85em; | |
flex-direction: column; | |
align-items: flex-start; | |
gap: 4px; | |
} | |
} | |
@media (max-width: 480px) { | |
body { | |
padding: 8px; | |
} | |
.header { | |
padding: 10px 12px; | |
} | |
.logo { | |
font-size: 1.3em; | |
} | |
.home-link span { | |
display: none; | |
} | |
.quiz-card { | |
padding: 15px; | |
} | |
.quiz-title-row h3 { | |
font-size: 1.1em; | |
} | |
.upload-content { | |
padding: 20px 12px; | |
} | |
.quiz-container { | |
padding: 15px 12px; | |
} | |
.question-container { | |
padding: 15px 12px; | |
} | |
.choice-label { | |
padding: 12px 14px; | |
} | |
} | |
/* Responsive grid improvements */ | |
@media (max-width: 1200px) { | |
.quizzes-grid { | |
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); | |
gap: 20px; | |
} | |
} | |
/* Touch-friendly improvements */ | |
button, .choice-label, input[type="file"] + label { | |
min-height: 44px; | |
min-width: 44px; | |
} | |
/* Smooth scrolling */ | |
html { | |
scroll-behavior: smooth; | |
} | |
/* Better focus states for accessibility */ | |
button:focus, input:focus, .choice-label:focus-within { | |
outline: 2px solid #3498db; | |
outline-offset: 2px; | |
} | |
/* Prevent horizontal scrolling */ | |
body, html { | |
overflow-x: hidden; | |
} | |
* { | |
box-sizing: border-box; | |
} |