/* --------------------------------------------- */
/* 1) Body styling  					         */
/* --------------------------------------------- */

html, body {
	height: 100%;
	margin: 0;
	padding: 0;
}
body {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 100vh;
	padding-top: 90px;
	padding-bottom: 20px;
	background: #e0e0e0;
	font-family: Arial, sans-serif;
}
/* --------------------------------------------- */
/* 2) Menu styling                               */
/* --------------------------------------------- */

header {
	background: #ddd;
	border-bottom: 1px solid #999;
	position: fixed;
	top: 0; left: 0;
	width: 100%;
	z-index: 1000;
}
.nav-container {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	gap: 10px;
	padding: 10px 0;
}
.nav-container a {
	text-decoration: none;
	color: #333;
	padding: 8px 16px;
	border: 1px solid transparent;
	border-radius: 4px;
	font-weight: bold;
}
.nav-container a:hover {
	background: #ccc;
	border-color: #999;
}
.dropdown {
	display: inline-block;
	position: relative;
}
.dropbtn {
	background: none;
	border: none;
	font: inherit;
	cursor: pointer;
	padding: 8px 16px;
	color: #333;
	font-weight: bold;
}
.dropdown-content {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #ddd;
	border: 1px solid #999;
	border-radius: 4px;
	min-width: 160px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
	z-index: 1001;
}
.dropdown-content a {
	display: block;
	padding: 8px 12px;
	text-decoration: none;
	color: #333;
	white-space: nowrap;
}
.dropdown-content a:hover {
	background: #ccc;
	border-color: #999;
}
.dropdown:hover .dropdown-content {
	display: block;
}
/* --------------------------------------------- */
/* 3) Main Content Styling 					     */
/* --------------------------------------------- */

.content {
	flex: 1 0 auto;
	width: 100%;
	max-width: 800px;
	margin: 2rem auto;
	padding: 2rem 20px;
	background: #f9f9f9;
	border-radius: 16px;
	position: relative;
}
.content::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: rgba(255,255,255,0.2);
	filter: blur(15px);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: -1;
}
.content:hover {
	box-shadow:
		0 8px 20px rgba(0,0,0,0.1),
		0 0 30px rgba(0,150,255,0.15);
}
.content:hover::before {
	opacity: 1;
}
.content section {
	margin-bottom: 2em;
}
/* --------------------------------------------- */
/* 4) Content H1,2,3,4 and UL Stlying		     */
/* --------------------------------------------- */

.content h1 {
	display: table;
	margin: 0.5em auto 1em;
	padding: 0.3em 0.8em;
	font-size: 2.5em;
	text-align: center;
	background: rgba(255,255,255,0.4);
	backdrop-filter: blur(8px);
	border-radius: 12px;
	box-shadow:
		0 2px 8px rgba(0,0,0,0.05),
		0 4px 20px rgba(0,0,0,0.08);
	color: #111;
}
.content h2 {
	font-size: 1.75em;
	margin: .2em 0 0.5em;
	border-bottom: 2px solid #ccc;
	padding-bottom: 0.25em;
}
.content h3 {
	font-size: 1.3em;
	margin: .2em 0 0.3em;
}
.content h4 {
	font-size: 1.1em;
	margin: .2em 0 0.2em;
}
body,
.content p,
.content ul,
.content li {
	font-size: 1em;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.content ul {
	list-style: none;
	margin: 0 0 0.5em;
	padding: 0 0 0 1em;
}
.content ul li {
	position: relative;
	padding-left: 1.4em;
	margin-bottom: 0.4em;
	transition: color 0.2s ease;
}
.content ul li::before {
	content: "";
	position: absolute;
	top: 0.8em; left: 0;
	width: 6px; height: 6px;
	background: #a0a9b2;
	border-radius: 50%;
	transition: transform 0.2s ease, background 0.2s ease;
}
.content ul li:hover::before {
	transform: scale(1.3);
	background: #999;
}
.content img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}
.box {
	display: inline-block;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
	margin: 0.5em auto 1em;
	padding: 1em 1em;
	font-size: 1em;
	background: rgba(255,255,255,0.4);
	backdrop-filter: blur(8px);
	border-radius: 12px;
	box-shadow:
		0 2px 8px rgba(0,0,0,0.05),
		0 4px 20px rgba(0,0,0,0.08);
	color: #111;
}
/* --------------------------------------------- */
/* 5) Flashcard & category styling 	             */
/* --------------------------------------------- */

.flashcard-row {
	width: 100%;
	max-width: 800px;
	min-height: 300px;
	margin-bottom: 40px;
	display: none;
	justify-content: center;
	position: static !important;
}
.flashcard {
	position: relative;
	width: 100%;
	min-height: 300px;
	border: 1px solid #ccc;
	border-radius: 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.flashcard.front {
	background: #f3f3f3;
}
.flashcard.back {
	background: #B3CEE5 !important;
}
.flashcard .card-content {
	line-height: 1.4;
}
.card-content {
	font-size: 2.2em;
	width: 100%;
	height: 100%;
	display: block;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 20px;
	box-sizing: border-box;
	white-space: pre-wrap;
	position: relative;
}
.card-content > ul:only-child {
	display: inline-block;
	text-align: left;
	margin: 0.8em 0;
	padding-left: 1.2em;
}
.flashcard .card-content > ul {
	display: inline-block;
	margin: 0.8em auto;
	text-align: left;
	list-style: disc outside;
	margin: 0.2em auto;
	padding-left: 1em;
}
.flashcard .card-content ul li {
	margin: 0.1em 0; 
	padding-left: 0;
}
.flashcard .card-content ul li::before {
	content: none !important;
}
.card-content p {
	margin: 0.1em auto;
	text-align: center;
	width: 100%;
}
.category-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-top: 30px;
}
.category-section label {
	font-size: 2em;
	cursor: pointer;
}
.category-section input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0; height: 0;
}
.category-section label.selected {
	background-color: #AEAEAE;
	border-radius: 4px;
	padding: 0.2em 0.5em;
}
.button-group {
	display: flex;
	gap: 1rem;
	margin-top: 1rem;
}
.button-group button {
	font-size: 1.2em;
	padding: 0.6em 1.2em;
	border: 1px solid transparent;
	border-radius: 4px;
	background: #a0a9b2;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}
.button-group button:hover {
	background: #ccc;
	border-color: #999;
}
.click-zone {
	position: absolute;
	top: 0; bottom: 0;
	height: 100%;
	z-index: 3;
}
.click-zone.left { 
	left: 0;
	width: 33.33%;
}
.click-zone.right {
	right: 0;
	width: 66.66%;
}
.progress-controls {
	margin-top: 0.5rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}
#progressIndicator,
button.remove-card {
	display: inline-block;
	font-size: 0.9em;
}
button.remove-card {
	padding: 0.2em 0.6em;
	cursor: pointer;
}
#flashcardRow button {
	font-size: 1.2rem;
	padding: 0.6rem 1.2rem;
	border-radius: 6px;
}
.flashcard,
.flashcard .card-content {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.flashcard .card-category {
	font-size: 0.6em;
	color: rgba(0,0,0,0.6);
	margin-bottom: 0.5em;
}
/* --------------------------------------------- */
/* 6) Footer Styling 					         */
/* --------------------------------------------- */

#footer-placeholder {
	align-self: stretch;
	width: 100%;
	margin-top: auto;
	padding: 0;
}
footer {
	margin-top: auto;
	width: 100%;
	background: #ddd;
	border-top: 1px solid #999;
	padding: 15px 0;
	box-sizing: border-box;
}
.footer-container {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 20px;
	text-align: center;
}
.footer-container p {
	margin: 0;
	font-size: 0.9em;
}
 .donate-link a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 16px;
    text-decoration: none;
    background-color: #ffdd00;
    color: #000;
    border-radius: 8px;
    transition: background-color 0.3s;
  }
  .donate-link a:hover {
    background-color: #ffc107;
  }
/* --------------------------------------------- */
/* 7) Responsive tweaks for small screens        */
/* --------------------------------------------- */

.hamburger {
	display: none;
	background: none;
	border: none;
	font-size: 1.8rem;
	cursor: pointer;
	padding: 0.5rem;
}
.nav-container {
	display: flex !important;
}
@media (max-width: 900px) {
	.nav-container {
		flex-direction: column;
		background: #ddd;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		align-items: stretch;
		z-index: 1001;
	}
	.nav-container.active {
		display: flex !important;
	}
}
@media { 
	.flashcard {
		transform: translateZ(0);
		will-change: transform;
		-webkit-font-smoothing: antialiased;
		transition: none !important;
  }
}
@media (hover: none) {
	.content,
	.content::before {
		transition: none !important;
		filter: none !important;
		box-shadow: none !important;
	}
}
/* --------------------------------------------- */
/* 8) Day to Day CSS					         */
/* --------------------------------------------- */
.qa-list {
	list-style: none;
	padding-left: 0;
	counter-reset: qa;
}
.qa-list li {
	counter-increment: qa;
	position: relative;
	margin-bottom: 0em;
	padding-left: 1.5em;
    font-size: 18px;
}
.qa-list li::before {
	content: counter(qa) ".";
	position: absolute;
	left: 0; top: 0;
	font-weight: bold;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}
.qa-list li p {
	display: inline;
	margin: 0;
}
.qa-list li .answer {
	display: inline;
	margin-left: 0.5em;
	font-style: italic;
	color: #7b1500;
}
.qa-list li .answer.hidden {
	display: none;
}
.qa-list li strong {
	cursor: pointer;
}

/* --------------------------------------------- */
/* 9) Questions CSS						         */
/* --------------------------------------------- */
.q-list {
	list-style: none;
	padding-left: 0;
}
.q-list li {
	position: relative;
	margin-bottom: 0em;
	padding-left: 1.5em;
    font-size: 18px;
}
.q-list li::before {
	position: absolute;
	left: 0; top: 0;
	font-weight: bold;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}
.q-list li p {
	display: inline;
	margin: 0;
}
.q-list li .answer {
	display: inline;
	margin-left: 0.5em;
	font-style: italic;
	color: #7b1500;
}
.q-list li .answer.hidden {
	display: none;
}
.q-list li strong {
	cursor: pointer;
}
