/* ==========================================================================
   Curliosity Metalworks - shared stylesheet
   Used by: index.htm, ornaments.htm, chimes.htm, tikis.htm, links.htm,
            contact.htm
   Desktop: blue menu column on the left (menubg.gif), content on the right.
   Phones/narrow windows (760px and below): the menu becomes a band across
            the top and multi-column sections stack into a single column.
   ========================================================================== */

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: #fff;
	color: #000;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: normal;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a:link    { color: #0000FF; }
a:visited { color: #0000FF; }
a:hover   { color: red; }

hr {
	border: 0;
	border-top: 1px solid #a0a0a0;
	height: 0;
	margin: 8px auto;
}

/* Old-style <font size=...> equivalents */
.size1 { font-size: 10px; }
.size2 { font-size: 13px; }
.size3 { font-size: 16px; }
.size4 { font-size: 18px; }
.size5 { font-size: 24px; }
.navy  { color: navy; }
.center { text-align: center; }
.right  { text-align: right; }
.serif  { font-family: "Times New Roman", Times, serif; font-size: 16px; }

/* Image with a thin black frame (old border="1") */
.framed { border: 1px solid #000; }

/* --------------------------------------------------------------------------
   Page frame: menu column + main column
   -------------------------------------------------------------------------- */
.page {
	display: flex;
	min-height: 100vh;
}

.menu {
	flex: 0 0 193px;
	width: 193px;
	background: #8493E8 url(menubg.gif) repeat-y left top;
	padding-top: 37px;
	box-sizing: border-box;
}

.menu a {
	display: block;
	width: 143px;
	height: 50px;
	margin: 0 0 4px 8px;
	position: relative;
}

.menu a img {
	display: block;
	width: 143px;
	height: 50px;
}

/* Rollover: second image shows on hover (replaces old JavaScript swap) */
.menu a img.over { display: none; }
.menu a:hover img.up,
.menu a:focus img.up { display: none; }
.menu a:hover img.over,
.menu a:focus img.over { display: block; }

.main {
	flex: 1 1 auto;
	min-width: 0;
	text-align: center;
}

.masthead {
	padding-top: 18px;
}

.masthead img {
	display: block;
	margin: 0 auto;
}

.masthead hr {
	width: 90%;
	margin-top: 18px;
}

.content {
	padding-top: 16px;
}

/* Centered block that takes 90% of the width (old <table width="90%">) */
.column {
	width: 90%;
	margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
	padding: 16px 0 36px;
	text-align: center;
}

.footer hr {
	width: 90%;
	margin-bottom: 10px;
}

.footer .copyright {
	color: navy;
	font-size: 13px;
}

.footer .legal {
	font-size: 10px;
}

/* --------------------------------------------------------------------------
   Home page
   -------------------------------------------------------------------------- */
.home-grid {
	width: 98%;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 7px;
	text-align: left;
}

.home-grid > section {
	padding: 12px;
}

.bg-blue  { background: #D9FFFF; }
.bg-tan   { background: #F8ECD2; }
.bg-green { background: #DBF3E7; }

.home-grid h2 {
	font-size: 24px;
	text-align: center;
	margin: 16px 0 26px;
}

.home-grid h3 {
	font-size: 16px;
	text-align: center;
	margin: 16px 0;
}

.home-grid p {
	margin: 13px 0;
}

.home-grid .note {
	color: navy;
	font-size: 16px;
	font-style: italic;
	margin: 34px 0 34px;
}

.booth {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.booth p {
	font-size: 16px;
	font-weight: bold;
}

.quote { font-style: italic; }

.home-welcome {
	width: 98%;
	margin: 0 auto;
	padding: 44px 0 32px;
	display: grid;
	grid-template-columns: 28% auto 1fr;
	gap: 32px;
	align-items: start;
	text-align: left;
	box-sizing: border-box;
}

.home-welcome > div {
	padding: 12px;
}

.home-welcome .welcome {
	margin-left: 32px;
	align-self: stretch;
}

.home-welcome .photo {
	padding: 12px 0;
	text-align: center;
}

.home-welcome .designs {
	margin-right: 32px;
	padding-top: 0;
}

/* Show listings inside "Upcoming Shows" */
.show {
	margin: 0 0 16px;
	font-size: 13px;
}

.show .show-name {
	font-size: 16px;
	font-weight: bold;
}

.show.past { color: lightgray; }

.show img.badge {
	vertical-align: top;
	margin-left: 8px;
}

/* --------------------------------------------------------------------------
   Product pages (ornaments, chimes, tikis)
   -------------------------------------------------------------------------- */
.products {
	width: 90%;
	margin: 0 auto;
	padding: 20px 0;
}

.product {
	text-align: center;
	margin-bottom: 40px;
	font-size: 16px;
}

.product p {
	margin: 16px 0;
}

.products h1 {
	color: navy;
	font-size: 24px;
	font-weight: normal;
	margin: 16px 0 24px;
}

.products .intro {
	text-align: left;
	margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Links / Contact
   -------------------------------------------------------------------------- */
.links {
	text-align: left;
	font-size: 16px;
	padding-top: 2px;
}

.links p { margin: 0 0 19px; }

.contact {
	text-align: left;
	padding-top: 2px;
}

.payments {
	margin: 34px 0 6px;
}

/* --------------------------------------------------------------------------
   Medium windows: let the bottom home-page row breathe
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.home-welcome {
		grid-template-columns: 1fr 1fr;
	}
	.home-welcome .welcome { margin-left: 12px; }
	.home-welcome .designs {
		grid-column: 1 / -1;
		margin: 0 12px;
	}
}

/* --------------------------------------------------------------------------
   Phones and narrow windows
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
	.page {
		flex-direction: column;
	}

	.menu {
		flex: none;
		width: auto;
		background: #8493E8;
		border-bottom: 5px solid #EDA14D;
		padding: 8px 6px 4px;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 2px 4px;
	}

	.menu a {
		margin: 0;
		width: calc(33.333% - 4px);
		max-width: 143px;
		height: auto;
	}

	.menu a img {
		width: 100%;
		height: auto;
	}

	.masthead { padding-top: 12px; }
	.masthead img { width: 80%; max-width: 436px; }

	.home-grid {
		grid-template-columns: 1fr;
		width: auto;
		margin: 0 8px;
	}

	.home-welcome {
		grid-template-columns: 1fr;
		width: auto;
		margin: 0 8px;
		padding: 16px 0;
		gap: 12px;
	}

	.home-welcome .welcome,
	.home-welcome .designs {
		margin: 0;
	}

	.products,
	.column {
		width: auto;
		margin: 0 12px;
	}

	.home-grid p,
	.contact,
	.show {
		font-size: 14px;
	}
}
