/* Apply box-sizing globally to prevent issues with padding and width calculations */
*, *:before, *:after {
    box-sizing: border-box;
}

html, body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    width: 100%; /* Ensure the body spans the full width */
}

body {
	margin: 0 auto;
	max-width: 1000px;
	min-height: 100vh;
	background: linear-gradient(to bottom, Indigo, MidnightBlue);
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: cover;
	font-family: 'Courier New', monospace;
	font-size: 1.20em;
	color: Orange;
}

body.page-portfolio {
	background: linear-gradient(to bottom, MediumPurple, SlateBlue);
}

body.page-services {
	background: linear-gradient(to bottom, MediumSlateBlue, DarkSlateBlue);
}

body.page-contact {
	background: linear-gradient(to bottom, RoyalBlue, DarkSlateBlue);
}

a {
	color: CornflowerBlue;
	font-weight: bold;
	text-decoration: underline;
}
a:hover {
  color: DeepSkyBlue;
}

b {
	color: white;
}

h1, h2 {
	text-align: center;
	margin: 20px 0 10px 0;
	text-transform: uppercase;
	color: White;
}

h1 {
	font-size: 1.5em;
}

h2::before {
    content: "➡";
    display: inline-block;
    margin-right: 10px;
    font-size: 1.2em;
    vertical-align: middle;
    color: white;
    font-weight: bold;
}
h2 {
    text-align: left;
    font-size: 1.1em;
}

p {
	display: inline-block;
	margin: 0 0 10px 0;
	padding: 7px;
	line-height: 1.4;
	background-color: rgba(0, 0, 0, 0.25);
	border-radius: 3px;
	font-size: 0.9em;
	clear: both;
}

ul, ol {
	display: inline-block;
	margin: 0 0 10px 0;
	padding: 4px;
	line-height: 1.4;
	background-color: rgba(0, 0, 0, 0.25);
	border-radius: 3px;
	font-size: 0.9em;
	padding-left: 10px;
	list-style: none;
}

ol {
	list-style: decimal;
	padding-left: 40px;
}

ol li {
	margin-bottom: 10px;
}

ul li::before {
	content: "•";
	margin-right: 10px;
	vertical-align: middle;
}

ol li::before {
	margin-right: 10px;
	vertical-align: middle;
}

nav ul {
	margin: 0 0 25px 0;
	padding: 0;
	background-color: DarkSlateBlue;
	float: right;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	border-radius: 0px;
}

nav ul li {
	display: inline-block;
	padding: 0 15px;
	height: 45px;
	line-height: 50px;
	list-style: none;
	text-align: center;
	font-size: 1.2em;
	color: DarkOrange;
	font-weight: 100;
	text-transform: uppercase;
}
nav ul li:hover {.workVideo, .workAudio {
	margin-top: 0px;
}
	background-color: SteelBlue;
}
nav ul li::before {
	content: "";
	margin: 0px;
}

nav .currentPage {
	color: White;
	font-weight: bold;
}

table {
	border-collapse: collapse;
	width: 100%;
	max-width: 800px;
	margin: 1em auto;
	margin-bottom: 30px;
	font-size: 0.8em;
	color: #ddd;
	background-color: rgba(20, 20, 40, 0.85);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
	border-radius: 6px;
	overflow: hidden;
}

th, td {
	padding: 12px 16px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
	background-color: rgba(60, 60, 90, 0.6);
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.9em;
	color: White;
}

tr:nth-child(even) {
	background-color: rgba(255, 255, 255, 0.03);
}
tr:hover {
	background-color: rgba(255, 255, 255, 0.08);
}

form {
	display: flex;
	position: relative;
	flex-direction: column;
	width: 100%; /* Ensures the form takes the full width */
}

form .reset {
	margin-top: 15px;
}

label {
	position: relative;
	margin-bottom: 5px;
	font-weight: bold;
	font-size: 0.8em;
}

input, textarea {
	margin-bottom: 15px;
	padding: 10px;
	font-size: 1em;
	border: 1px solid #ccc;
	border-radius: 3px;
	background-color: White;
	width: 100%; /* Full width for input fields */
	box-sizing: border-box; /* Prevent overflow due to padding */
}

textarea {
	resize: vertical;
}

input[type="file"] {
	background-color: transparent;
	padding: 5px;
}

button {
	background-color: #4CAF50;
	color: White;
	padding: 10px;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	margin-bottom: 5px;
	font-size: 1em;
	text-transform: uppercase;
}

button:hover {
	background-color: #45a049;
}

button.reset {
	display: inline-block;
	background-color: #888888; /* neutral gray for 'clear/reset' */
	color: white;
	padding: 10px;
	border: none;
	border-radius: 3px;
	cursor: pointer;
}

button.reset:hover {
	background-color: #777777;
}

input.error, textarea.error {
	border: 1px solid #f5c6cb;
}

.form-error {
	position: relative;
	background-color: rgba(248, 215, 218, 0.95); /* Slight transparency for softness */
	color: #8a1f2b; /* Slightly deeper red for better contrast */
	font-size: 0.85em; /* Slightly larger for readability */
	font-weight: bold; /* Emphasize the message */
	padding: 10px 14px;
	border: 1px solid #f1aeb5;
	border-left: 5px solid #c82333; /* Red accent stripe for visibility */
	border-radius: 5px;
	display: none;
	width: 100%;
	margin-bottom: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 1); /* Slight elevation */
}

.form-error::before {
	content: "";
	position: absolute;
	top: 100%; /* Position the arrow below the box */
	left: 20px; /* Adjust as needed */
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-top: 10px solid #f8d7da; /* This makes it point down */
}

.form-error:not(:empty) {
	display: block;
}

#flash-message {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 10px 15px;
	background-color: White;
	color: Black;
	border-bottom: 1px solid #c3e6cb;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 1000;
	box-sizing: border-box;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	line-height: 1.5em;
}
#flash-message b {
	color: Black;
}

#flash-text {
	flex-grow: 1;
}

#flash-hide-toggle:checked + #flash-message {
	display: none !important;
}

#flash-message.success {
	background-color: #d4edda;
	color: #155724;
	border-bottom: 1px solid #c3e6cb;
}

#flash-message.error {
	background-color: #f8d7da;
	color: #721c24;
	border-bottom: 1px solid #f5c6cb;
}

/* Keep the dismiss form small and inline */
#flash-dismiss-form {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  margin-left: 15px;
  padding: 0;
  height: auto;
  width: auto;             /* Ensure the form only wraps the button */
  line-height: 0;          /* Remove vertical spacing artifacts */
  flex: none;              /* Prevent growing/shrinking */
}

/* Style only the close button itself — restore green background, white text, rounded corners */
#flash-dismiss-form > button {
  margin: 0;
  padding: 0 8px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 3px;
  font-size: 1.2em;
  line-height: 1;
  cursor: pointer;
  height: auto;
}

/* Hover effect like your other buttons */
#flash-dismiss-form > button:hover {
  background-color: #45a049;
}

.form-container {
	max-width: 100%; /* Removed max-width: 600px */
	width: 100%; /* Full width of the screen/container */
	background-color: rgba(0, 0, 0, 0.25);
	padding: 20px;
	border-radius: 5px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#form-errors {
	display: none;
	margin-bottom: 1em;
	padding: 7px;
	border-radius: 3px;
	color: #e74c3c;
}

#form-errors.visible {
	display: block;
}

#content {
	margin: 25px 10px 100px 10px;
}
#content::after {
	content: "";
	display: table;
	clear: both;
}

.banner-wrapper {
	position: relative;
	max-height: 450px;
	overflow: hidden;
	width: 100%;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#banner {
	width: 100%;
	padding-top: 56.25%; /* 16:9 aspect ratio */
	position: relative;
	overflow: hidden;
	z-index: 1;
}

#banner img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}

#banner img.active {
	opacity: 1;
}

#bannerToggleButton {
	display: none;
	position: absolute;
	bottom: 17px;
	left: 17px;
	width: 35px;
	z-index: 100;
	cursor: pointer;
	opacity: 0.25;
}

#bannerToggleButton:hover {
	opacity: 0.8;
}

.image-wrapper {
	display: block;
	width: 75%;
	margin: 0 auto 20px; /* Centers the wrapper and adds space between images */
	border-radius: 3px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	padding: 4px;
	line-height: 1.4;
	background-color: rgba(0, 0, 0, 0.25);
	font-size: 0.8em;
	clear: both;
}

.image {
	display: block;
	width: 100%; /* Ensures the image fills the width of the wrapper */
	border-radius: 3px;
}

figcaption {
	font-size: 0.9em;
	padding-top: 6px;
	font-style: italic; /* Optional, for a more elegant look */
	text-align: center;
}

#workContainer {
	display: block; /* or flex with no wrapping */
}

.workWrapper {
  width: 100%;
  max-width: 100%;        /* ensure no overflow */
  box-sizing: border-box; /* include padding/borders in width */
  margin: 0 0 25px;
  padding: 4px;
  background-color: rgba(20, 20, 40, 0.65);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.workTitle {
	font-size: 1em;
	font-weight: 900;
	text-align: center;
	padding: 5px;
}
.workTitle::before {
	display: block;
	content: "title";
	color: White;
	font-size: 0.8em;
	margin-right: 10px;
}

.workArtist {
	font-size: 1em;
	font-weight: 900;
	text-align: center;
	padding: 5px;
	background-color: rgba(255, 255, 255, 0.03);
}
.workArtist::before {
	display: block;
	content: "artist";
	color: White;
	font-size: 0.8em;
	margin-right: 10px;
}

.workContribution {
	font-size: 1em;
	font-weight: 900;
	text-align: center;
	padding: 5px;
	background-color: rgba(60, 60, 90, 0.7);
}
.workContribution::before {
	display: block;
	content: "contribution";
	color: White;
	font-size: 0.8em;
	margin-right: 10px;
}

.workImage, .workVideo, .workAudio {
	width: 100%;
}

.workVideo, .workAudio {
	margin-top: -7px;
	z-index: 100;
}

.workDescription {
	flex: 1;
	font-size: 0.8em;
	padding: 7px;
	line-height: 1.3;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  margin: 2em 0;
  text-align: center;
}

.shareButton, .pagination button {
  font-family: inherit;
  font-weight: normal;
  cursor: pointer;
  display: inline-block;
  line-height: 1.2;
  vertical-align: middle;
}

.shareButton {
  margin-bottom: 50px; /* keep vertical spacing */
}

/* Hide pagination and share buttons if JavaScript is disabled */
.no-js .pagination,
.no-js .shareButton {
    display: none;
}

.highlighted {
    border: 2px solid gold;
    background-color: #222;
    padding: 1em;
    animation: pulse 1s ease-out;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0px rgba(255, 215, 0, 0.5); }
    100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0); }
}

@media screen and (min-width: 1000px) {
	html {
		font-size: 110%;
	}

	body {
		margin-top: 20px;
	}

	.banner-wrapper {
		position: relative;
		border-radius: 20px 20px 0 20px; /* Rounded top-left and bottom-left corners */
		overflow: hidden; /* Hide any overflowed shadow */
	}

	.banner-wrapper::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		border-radius: 20px 20px 0 20px; /* Match the rounded corners */
		box-shadow:
			-4px 4px 15px rgba(0, 0, 0, 0.3), /* Shadow for top-left corner */
			4px 4px 15px rgba(0, 0, 0, 0.3),  /* Shadow for bottom-left corner */
			4px -4px 15px rgba(0, 0, 0, 0.3); /* Shadow for bottom-right corner */
		z-index: -1; /* Place shadow behind the element */
	}
}

@media screen and (min-width: 700px) {
	input, textarea {
		font-size: 0.9em; /* Slightly smaller font on small devices */
		padding: 10px; /* Adjust padding */
	}

	.form-container {
		padding: 15px; /* Adjust padding on small devices */
	}
}
