Spaces:
Runtime error
Runtime error
html { | |
font-family: 'Arial', sans-serif; | |
background: white; /* Clean, white background */ | |
padding: 1rem; | |
} | |
body { | |
max-width: 960px; | |
margin: 0 auto; | |
background: white; | |
padding: 2rem; | |
} | |
/* Navigation Bar */ | |
nav { | |
background: none; | |
display: flex; | |
justify-content: center; | |
padding: 1rem; | |
} | |
nav h1 { | |
flex: auto; | |
margin: 0; | |
font-size: 2.5rem; | |
text-align: center; | |
color: #000; | |
} | |
nav h1 a { | |
text-decoration: none; | |
color: #000; | |
} | |
/* Hero Section with Ice Text */ | |
.hero { | |
text-align: center; | |
margin: 2rem 0; | |
} | |
.title { | |
font-size: 4rem; | |
font-weight: bold; | |
color: #000; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
} | |
.ice-text { | |
font-family: 'Comic Sans MS', sans-serif; | |
color: #0288d1; | |
text-shadow: 2px 2px 0 #b3e5fc; | |
font-size: 5rem; | |
margin-right: 0.5rem; | |
} | |
.ice-text-mini { | |
font-family: 'Comic Sans MS', sans-serif; | |
color: #0288d1; | |
text-shadow: 2px 2px 0 #b3e5fc; | |
font-size: 3rem; | |
margin-right: 0.5rem; | |
} | |
/* Hero Image */ | |
.hero img { | |
max-width: 300px; | |
height: auto; | |
margin-top: 2rem; | |
} | |
/* Content Section */ | |
.content { | |
padding: 2rem; | |
text-align: center; | |
} | |
.content > header { | |
margin-bottom: 2rem; | |
} | |
/* Flash Messages */ | |
.flash { | |
margin: 1em 0; | |
padding: 1em; | |
background: #e1f5fe; | |
border: 1px solid #81d4fa; | |
color: #0277bd; | |
border-radius: 5px; | |
text-align: center; | |
} | |
/* Form Styling */ | |
.content form { | |
margin: 2em 0; | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
} | |
.content label { | |
font-weight: bold; | |
margin-bottom: 0.5em; | |
color: #0288d1; | |
} | |
.content input { | |
margin-bottom: 1em; | |
padding: 0.75rem; | |
border: 2px solid #81d4fa; | |
border-radius: 5px; | |
font-size: 1rem; | |
width: 80%; | |
max-width: 400px; | |
} | |
input[type=submit] { | |
align-self: center; | |
min-width: 10em; | |
background: #0288d1; | |
color: white; | |
border: none; | |
padding: 0.75rem; | |
border-radius: 5px; | |
cursor: pointer; | |
font-size: 1rem; | |
transition: background-color 0.3s ease; | |
} | |
input[type=submit]:hover { | |
background: #0277bd; | |
} | |
input[type=submit]:active { | |
background: #01579b; | |
} | |
/* Quiz Title */ | |
.quiz-title { | |
color: #0288d1; | |
font-size: 2rem; | |
margin-bottom: 30px; | |
text-transform: uppercase; | |
letter-spacing: 2px; | |
} | |
/* Consistent Answer Styling */ | |
.correct-answer { | |
font-size: 1.5rem; | |
color: #d32f2f; | |
font-weight: bold; | |
margin-top: 20px; | |
display: none; /* Initially hidden */ | |
} | |
/* Choices Styling */ | |
.choices { | |
font-size: 1.3rem; | |
color: #333; | |
margin-bottom: 30px; | |
list-style-type: none; | |
padding: 0; | |
line-height: 1.8; | |
} | |
/* Submit button for the next quiz */ | |
.next-button { | |
background-color: #0288d1; | |
color: white; | |
font-size: 1rem; | |
cursor: pointer; | |
border-radius: 5px; | |
padding: 10px 20px; | |
border: none; | |
transition: background-color 0.3s ease; | |
} | |
.next-button:hover { | |
background-color: #0277bd; | |
} | |
.next-button:active { | |
background-color: #01579b; | |
} | |
/* Container for the quiz */ | |
.quiz-container { | |
max-width: 600px; | |
margin: 0 auto; | |
padding: 20px; | |
background-color: #f5f5f5; | |
border-radius: 10px; | |
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); | |
text-align: center; | |
} | |
/* Title styling */ | |
.quiz-title { | |
color: #0288d1; | |
margin-bottom: 20px; | |
} | |
/* Host section aligned right */ | |
.quiz-host-container { | |
text-align: right; | |
margin-bottom: 20px; | |
} | |
.quiz-host { | |
font-weight: bold; | |
color: #333; | |
} | |
.quiz-host-name { | |
color: #2e7d32; | |
} | |
/* Question section aligned left */ | |
.quiz-question-container { | |
text-align: left; | |
margin-bottom: 20px; | |
} | |
.quiz-question { | |
font-weight: bold; | |
color: #003285; | |
font-size: 1.7rem; | |
} | |
/* Choices with proper alignment */ | |
.choices { | |
text-align: left; | |
margin-bottom: 30px; | |
} | |
/* Consistent Answer Styling */ | |
.correct-answer { | |
font-size: 1.5rem; | |
color: #d32f2f; | |
font-weight: bold; | |
margin-top: 20px; | |
display: none; | |
} | |
/* Show Answer button - blue color theme */ | |
.answer-button { | |
background-color: #003285; | |
color: white; | |
padding: 12px 24px; | |
font-size: 1.2rem; | |
border: none; | |
border-radius: 8px; | |
cursor: pointer; | |
font-weight: bold; | |
text-transform: uppercase; | |
transition: background-color 0.3s ease, transform 0.3s ease; | |
margin-bottom: 30px; | |
} | |
.answer-button:hover { | |
background-color: #00286A; | |
transform: scale(1.05); | |
} | |
.answer-button:active { | |
background-color: #00286A; | |
transform: scale(1.05); | |
} | |
/* Submit button for the next quiz */ | |
.next-button { | |
background-color: #0288d1; | |
color: white; | |
font-size: 1rem; | |
cursor: pointer; | |
border-radius: 5px; | |
padding: 10px 20px; | |
border: none; | |
transition: background-color 0.3s ease; | |
} | |
.next-button:hover { | |
background-color: #0277bd; | |
} | |
.next-button:active { | |
background-color: #01579b; | |
} | |
/* Styling for the instruction text */ | |
#instruction { | |
font-size: 1.5rem; | |
margin-bottom: 10px; | |
text-align: center; | |
} | |
#topic { | |
font-size: 2rem; | |
margin-top: 10px; | |
text-align: center; | |
} | |
.character-container { | |
flex-shrink: 0; /* Prevents shrinking of the image container */ | |
text-align: right; /* Align the image to the right */ | |
} | |