Spaces:
Running
Running
File size: 14,468 Bytes
c5f830b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sam's Birthday - Favorites With Plinko Game Card π</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Inter', sans-serif;
background-color: #f0f4f8; /* Light blue-gray background */
}
.game-title {
color: #3730a3; /* Indigo-800 */
}
.question-card {
background-color: #ffffff;
border-radius: 12px; /* Slightly less rounded */
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* Tailwind shadow-md */
page-break-inside: avoid; /* Avoid breaking cards across printed pages */
}
.question-text-strong {
color: #4338ca; /* Indigo-700 */
}
.answer-label {
color: #3f3f46; /* Zinc-700 */
}
input[type="text"].answer-input {
border: 1px solid #d1d5db; /* Gray-300 */
padding: 0.5rem 0.75rem; /* p-2 px-3 */
border-radius: 0.375rem; /* rounded-md */
width: 100%;
box-sizing: border-box;
}
input[type="text"].answer-input:focus {
outline: none;
border-color: #4f46e5; /* Indigo-600 */
box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3);
}
.correct-answer-section {
background-color: #f0fdf4; /* Green-50 */
border-left: 4px solid #22c55e; /* Green-500 */
padding: 0.5rem 0.75rem;
border-radius: 0.25rem; /* rounded-sm */
}
.correct-answer-text {
color: #15803d; /* Green-700 */
}
.btn-toggle-answers {
background-color: #4f46e5; /* Indigo-600 */
color: white;
transition: background-color 0.3s ease;
}
.btn-toggle-answers:hover {
background-color: #4338ca; /* Indigo-700 */
}
.bonus-prompt-text {
color: #6d28d9; /* Violet-700 */
}
/* Initially hide answer sections */
.correct-answer-container.hidden-answers .correct-answer-section {
display: none;
}
/* Print-specific styles */
@media print {
body {
background-color: #ffffff; /* White background for printing */
-webkit-print-color-adjust: exact; /* Ensures colors print in Chrome/Safari */
print-color-adjust: exact; /* Standard */
}
.btn-toggle-answers, .print-hide {
display: none !important; /* Hide buttons and other non-print elements */
}
.question-card {
box-shadow: none; /* Remove shadow for printing */
border: 1px solid #e5e7eb; /* Light border for cards */
margin-bottom: 1rem; /* Space between cards on print */
}
.correct-answer-section {
display: block !important; /* Always show answers when printing */
background-color: #f9fafb !important; /* Lighter bg for print */
border-left: 2px solid #6b7280 !important; /* Gray border for print */
padding: 0.25rem 0.5rem;
}
.correct-answer-text {
color: #1f2937 !important; /* Darker text for print */
}
input[type="text"].answer-input {
border-bottom: 1px solid #9ca3af; /* Underline style for print */
border-top: none;
border-left: none;
border-right: none;
border-radius: 0;
padding-left: 0;
padding-right: 0;
}
input[type="text"].answer-input::placeholder {
color: transparent; /* Hide placeholder on print */
}
.cards-container-grid {
grid-template-columns: repeat(1, minmax(0, 1fr)) !important; /* Single column for print */
}
.page-container {
padding: 0.5in !important; /* Adjust print margins */
max-width: 100% !important;
}
.game-title, .footer-text {
text-align: center;
}
}
</style>
</head>
<body class="p-4 sm:p-6 md:p-8">
<div id="pageContainer" class="page-container max-w-5xl mx-auto">
<header class="text-center mb-8">
<h1 class="game-title text-3xl sm:text-4xl font-bold">Sam's Birthday - Favorites With Plinko Game Card π</h1>
<p class="text-gray-600 mt-2">How well do you know Sam? Fill in the answers below!</p>
</header>
<div class="text-center mb-8 print-hide">
<button id="toggleAnswersBtn" class="btn-toggle-answers py-2 px-6 rounded-lg font-semibold text-lg">
Reveal Answers
</button>
</div>
<div id="cardsContainer" class="correct-answer-container hidden-answers cards-container-grid grid grid-cols-1 md:grid-cols-2 gap-6">
<!-- Question cards will be injected here by JavaScript -->
</div>
<footer class="mt-12 text-center footer-text">
<p class="text-xs text-gray-500">© 2025 Fun Times</p>
</footer>
</div>
<script>
</script>
</body>
</html>
|