/* /static/css/dark_mode.css */

body {
	font-family: Arial, sans-serif;
	background-color: #101010;
	color: #f0f0f0;
	margin: 0;
	padding: 10px;
	display: flex;
	flex-direction: column;
	justify-content: top;
	align-items: center;
}

div {
	width: 100%;
}

img {
	width: 100%;
}

h1 {
	color: #4CAF50;
	text-align: center;
	margin-bottom: 20px;
}

p {
	color: #f0f0f0;
	font-size: 1.2em;
	text-align: left;
	line-height: 1.5;
}

a {
	color: #e0e0ff;
	font-size: 1.2em;
	text-align: center;
	line-height: 1.5;
}

input {
	background-color: #010101;
	color: #fffffa;
	padding: 3px;
	margin: 3px;
	border: 1px solid #555;
	border-radius: 4px;
	width: 100%;
}

textarea {
	background-color: #010101;
	color: #fffffa;
	padding: 3px;
	margin: 3px;
	border: 1px solid #555;
	border-radius: 4px;
	width: 100%;
}

select {
	background-color: #010101;
	color: #fffffa;
	padding: 3px;
	margin: 3px;
	border: 1px solid #555;
	border-radius: 4px;
	width: 100%;
}

form {
    padding: 0px;
}



.flex-container {
	display: flex;
	align-items: left;
	gap: 3px;
}

.userstatus-container {
	background-color: #0a0a10;
	justify-content: right;
	text-align: right;
	margin: 0px;
	padding: 3px;
	border-radius: 8px;
	width: 100%;
	max-width: 800px;
}

.sitetitle-container {
	background-color: #101010;
	margin: 0px;
	padding: 0px;
	border-radius: 8px;
	width: 100%;
	max-width: 800px;
}

.sitetitle-container img {
	border-radius: 8px;
	width: 100%;
	max-width: 800px;
}

.container {
	background-color: #333;
	margin: 5px;
	padding: 10px;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
	max-width: 800px;
	width: 100%;
	box-sizing: border-box; /* Include padding in width calculation */
}

.iframe-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border: 0px;
}

.iframe-container iframe {
  justify-content: center;
  align-items: center;
  width: 780px;
  max-width: 100%;
  max-height: 100%;
}

footer {
	margin-top: 20px;
	font-size: 0.9em;
	color: #bbb;
}

footer p {
	color: #f0f0f0;
	font-size: 1.2em;
	text-align: center;
	line-height: 1.5;
}

/* ---------- */
/* Image Grid */

.image-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	padding: 20px;
	background-color: #1a1a1a;
	border-radius: 8px;
	box-sizing: border-box;
}

.grid-item {
	border: 3px solid #445;
	border-radius: 8px;
	overflow: hidden;
	background-color: #151515;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.grid-item img {
	width: 100%;
	/* fixed height */
	height: 200px;
	object-fit: cover; /* Ensures images cover the area without distortion */
	display: block;
}


.grid-price-div {
	display: flex;
	justify-content: space-between; /* This is the key property! */
	align-items: center; /* Vertically align items in the middle */
	padding: 8px;
	box-sizing: border-box;
}

.grid-item h2 {
	display: inline-block;
	text-align: left;
	margin-top: 5px;
	margin-bottom: 5px;
	color: #4CAF50;
}

.grid-item-info {
	padding: 10px;
	text-align: center;
	word-wrap: break-word;		/* For older browsers */
	overflow-wrap: break-word;	/* Standard property */
	box-sizing: border-box;
	height: 100%;
}

.grid-item-info h3 {
	margin-top: 0;
	margin-bottom: 10px;
	color: #4CAF50;
}

.grid-item-info p {
	font-size: 0.9em;
	color: #f0f0f0;
	// line-height: 1.4;
}

@media (max-width: 768px) {
	.image-grid {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		gap: 15px;
	}
}

@media (max-width: 480px) {
	.image-grid {
		grid-template-columns: 1fr; /* Single column on very small screens */
		gap: 10px;
	}
}

/* ------------- */
/* Shopping Cart */

.cart-layout {
	gap: 20px;
	justify-content: flex-start;
	padding: 10px;
	margin: 0px;
	width: 100%;
	box-sizing: border-box;
}

.cart-item {
	display: flex;
	align-items: center; /* Vertically centers the items within the cart-item div */
	justify-content: space-between; /* Distributes space between the image, info, and price divs */
	flex: 1 1 200px; /* Adjust the 200px base width as needed for your design */
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 10px;
	margin: 10px;
	background-color: #202040;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	box-sizing: border-box;
}

.cart-item > div {
    padding: 0 10px;
}

.cart-item img {
	max-width: 100px;
	height: 100px;
}

.cart-item h2 {
	margin: 3px;
	color: #f0f0f0;
	font-size: 1.5em;
}

.cart-item h3 {
	margin: 0 0 5px 0; /* Adjust heading margin */
	color: #f0f0f0;
}

.cart-item p {
	margin: 0; /* Remove default paragraph margin */
	color: #f0f0f0;
	font-size: 0.9em;
}


/* ------ */
/* button */

.button {
	display: inline-block;
	background-color: #113;
	color: #f0f0f0;
	border: 2px solid #445;
	padding: 10px 14px;
	margin: 3px;
	border-radius: 8px; /* 8px rounded corners */
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.2s ease;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Subtle shadow */
	box-sizing: border-box;
}

.button:hover {
	background-color: #555; /* Lighter background on hover */
	transform: translateY(-2px); /* Slight lift effect on hover */
}

.button:active {
	background-color: #222; /* Even darker on click */
	transform: translateY(0); /* Reset lift on active */
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Deeper shadow on click */
}

/* donate */

.donate-button {
	background-color: #282;
	color: #101010;
	border: 2px solid #454;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.2s ease;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Subtle shadow */
}

.donate-button:hover {
	background-color: #020; /* Lighter background on hover */
	color: #f0f0f0;
	transform: translateY(-2px); /* Slight lift effect on hover */
}

.donate-button:active {
	background-color: #252; /* Even darker on click */
	transform: translateY(0); /* Reset lift on active */
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Deeper shadow on click */
}


/* ------------ */
/* Form Layout  */

.form-layout {
	display: flex;
	align-items: center;
	/* Aligns items vertically in the center */
	margin-bottom: 15px;
}

.form-layout label {
	flex: 0 0 100px;
	/* Gives label a fixed width, adjust as needed */
	margin-right: 10px;
	/* Space between label and input */
	text-align: right;
	/* Aligns label text to the right */
}

.form-layout input[type="text"],
.form-layout input[type="email"],
.form-layout input[type="password"] {
	flex: 1;
	/* Allows input to take up remaining space */
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.form-layout textarea {
	flex: 1;
	/* Allows input to take up remaining space */
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
}


/* ------ */
/* Table  */

table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	font-family: Arial, sans-serif;
}
th, td {
	border: 1px solid #ddd;
	padding: 8px;
	text-align: left;
}
th {
	background-color: #f2f2f2;
	color: #333;
}


/* ------ */
/* Store  */

.store-menu {
	background-color: #020204;
	color: #f0f0f0;
	border: 1px solid #226;
	padding: 10px 14px;
	margin-bottom: 20px;
	border-radius: 8px;
	font-size: 14px;
	box-sizing: border-box;
}

.store-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	padding: 10px;
	border-radius: 8px;
	box-sizing: border-box;
}

.store-pagenav {
	background-color: #020204;
	color: #f0f0f0;
	border: 1px solid #226;
	padding: 10px 14px;
	margin-top: 20px;
	border-radius: 8px;
	font-size: 14px;
	text-align: center;
	box-sizing: border-box;
}

.cart-buttons {
	background-color: #020204;
	color: #f0f0f0;
	justify-content: right;
	text-align: right;
	border: 1px solid #226;
	padding: 10px;
	border-radius: 8px;
	box-sizing: border-box;
}

.cart-total {
	color: #f0f0f0;
	justify-content: right;
	text-align: right;
	padding: 10px;
	box-sizing: border-box;
}

/* --------------- */
/* Article Styling */

article {
	background-color: #202030;
	margin-bottom: 30px;
	padding: 10px;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
	border-left: 4px solid #4CAF50;
}

/* Pre and Code wrapping */
article pre {
	white-space: pre-wrap;       /* CSS3 */
	white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
	white-space: -pre-wrap;      /* Opera 4-6 */
	white-space: -o-pre-wrap;    /* Opera 7 */
	word-wrap: break-word;       /* Internet Explorer 5.5+ */
	background-color: #0a0a0a;
	padding: 10px;
	border-radius: 4px;
	overflow-x: auto;
	max-width: 100%;
}

article code {
	white-space: pre-wrap;
	word-wrap: break-word;
	background-color: #0a0a0a;
	padding: 2px 4px;
	border-radius: 3px;
	font-family: 'Courier New', monospace;
}

