/* This file is for all CSS that is global to the application. */

body {
	font-family: system-ui, sans-serif;
}

/* "navigate" id is for the navigation menu bar.                                   */

#navigate {
	border: 1px solid gray;
	background-image: url("/assets/spacer-48b6a6a5.bmp");
	background-repeat: no-repeat;
	margin-bottom: 2px;
	padding-top: 5px;
	padding-bottom: 5px;
}

#navigate ul {
	list-style: none;
	font-size: 100%;
	margin: 0;
	padding: 0;
}

#navigate li {
	display: inline;
}

#navigate li.shop {
	display: inline;
	background-color: #DE392D;
	margin-bottom: 2px;
	padding-top: 5px;
	padding-bottom: 5px;
}

#navigate a:link {
	text-decoration: none;
	color: red;
	padding: 5px 1em 5px 1em;
}

#navigate a:link    { text-decoration: none; color: var(--logo-color); padding: 0 1rem 0 1rem; }
#navigate a:visited { text-decoration: none; color: var(--logo-color); }
#navigate a:hover,
#navigate a:focus   { text-decoration: none; color: red; background-color: mediumpurple; padding-top: 5px; padding-bottom: 5px; }

#providers {
	display: none;
}

#hide-social-control {
	display: none;
}

.providers-heading {
	width: 23rem;
	margin: 0 auto 0.5rem auto;
}

.providers-heading span {
	display: block;
	width: 59%;
	margin: 0 auto;
}

.providers-heading p {
	display: inline;
}

.providers-heading a {
	text-decoration: none;
	color: blue;
	font-size: smaller;
}

.providers-heading a:hover,
.providers-heading a:focus {
	text-decoration-line: underline;
}

.auth_providers {
	display: flex;
}

.auth_providers ul {
	display: block;
	list-style: none;
	margin-left: auto;
	margin-right: auto;
	padding: 0;
}

.auth_providers li {
	margin-bottom: 1rem;
}

#providers .auth_providers p {
	font-size: medium;
	margin: 0.5rem 0;
	width: auto;
}

.auth_providers .provider-container {
	display: flex;
	margin-left: auto;
	margin-right: auto;
}

.auth_provider_disabled {
	float: left;
	text-decoration: none;
	margin-right: 20px;
	text-align: center;
	margin-bottom: 10px;
	height: 64px;
	width: 64px;
}

.auth_provider_disabled img {
	display: block;
}

.auth_provider_enabled {
	float: left;
	background-color: red;
	text-decoration: none;
	margin-right: 20px;
	text-align: center;
	margin-bottom: 10px;
}

.auth_provider_enabled  img {
	display: block;
}

.auth_provider_apple {
	all: unset;
	cursor: pointer;
	display: flex;
	border: 1px solid gray;
	border-radius: 1.5rem;
	margin-left: auto;
	margin-right: auto;
	min-width: 16rem;
	background-color: white;
}

.auth_provider_facebook {
	all: unset;
	cursor: pointer;
	display: flex;
	border: 1px solid gray;
	border-radius: 1.5rem;
	margin-left: auto;
	margin-right: auto;
	min-width: 16rem;
	background-color: white;
}

.auth_provider_github {
	all: unset;
	cursor: pointer;
	display: flex;
	border: 1px solid gray;
	border-radius: 1.5rem;
	margin-left: auto;
	margin-right: auto;
	min-width: 16rem;
	background-color: white;
}

.auth_provider_google {
	all: unset;
	cursor: pointer;
	display: flex;
	border: 1px solid gray;
	border-radius: 1.5rem;
	margin-left: auto;
	margin-right: auto;
	min-width: 16rem;
	background-color: white;
}

.auth_provider_microsoft {
	all: unset;
	cursor: pointer;
	display: flex;
	border: 1px solid gray;
	border-radius: 1.5rem;
	margin-left: auto;
	margin-right: auto;
	min-width: 16rem;
	background-color: white;
}

#main-page {
	display: flex;
	flex-direction: column;
	background-image: linear-gradient(whitesmoke 5%, lightblue);
}

#main-page h1 > a {
	text-decoration: none; color: var(--logo-color);
}

#main-page main {
	position: relative;
	text-align: left;
	width: 1200px;
	margin-right: auto;
	margin-left: auto;
	padding: 10px;
}

#main-page header {
	display: flex;
	width: 1200px;
	background-color: whitesmoke;
	margin-right: auto;
	margin-left: auto;
	padding: 0;
}

#main-page #content {
	display: table-cell;
	width: 100%;
}

#main-page h1 {
	font-family: 'Dancing Script', cursive;
	font-size: 3rem;
	color: #226;
	width: 300px;
	text-align: left;
	position: relative;
	margin: 0;
}

#main-page h2 {
	font:  1.25rem sans-serif;
	font-weight: bold;
	line-height: 2.0em;
	color: #226;
	text-align: left;
	position: relative;
	margin: 0;
	padding: 0;
}

#main-page p {
	color: black;
	margin: 0;
	padding: 0;
}

#flash_messages {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

#flash_messages div {
	font-size: 1rem;
	line-height: 2rem;
	padding: 0;
	margin: 0;
}


.debug {
	display: flex;
	color: red;
	font-size: xx-small;
	text-align: left;
}

.version {
	display: block;
	background-color: whitesmoke;
	color: red;
	font-size: xx-small;
	text-align: right;
}

.create-child, .create-child-link {

}

.list-line-even
{

}

.list-line-odd
{
	background: whitesmoke;
}

.wish form, .wish form div {
  display: inline;
}

/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */

#wrapper {
  position: relative;
  text-align: left;
  width: 1200px;
  margin-right: auto;
  margin-left: auto;
	padding: 10px;
}

#header {
	margin: 0;
	padding: 0;
	background-color: red;
}

#advert0 {
	display: inline;
	width: 40%;
}

#advert1 {
	display: inline;
	flex-grow: 1;
}

#spacer {
	flex-grow: 1;
}

#list-indent {
	padding-left: 40px;
}

#sidebar {
	display: table-cell;
	width: 300px;
	padding: 0 0 0 0.75rem;
	vertical-align: top;
}

#sidebar a {
	display: inline-block;
	transition: transform 0.3s, color 0.3s, box-shadow 0.3s;
}

#sidebar a:link    { text-decoration: none; color: var(--logo-color); }
#sidebar a:visited { text-decoration: none; color: var(--logo-color); }
#sidebar a:hover,
#sidebar a:focus   { text-decoration: none; color: red; transform:scale(1.2); }

#sidebar-system-admin {
	border: 1px solid gray;
	text-align: center;
  line-height: 1.6em;
	border-radius: 0.875rem;
}

#sidebar-environment-admin {
	border: 1px solid gray;
	border-radius: 0.875rem;
	width: 300px;
	background-color: lightblue;
}

#sidebar-environment-admin .initially-hidden {
	color: lightblue;
	word-break: break-all;
}

#sidebar-groups {
	border: 1px solid gray;
  text-align: center;
  line-height: 1.6em;
  width: 300px;
	padding: 0.5rem;
  margin: 0 0 0.5rem;
	border-radius: 0.875rem;
}

#sidebar-groups .button {
	width: 200px;
	margin-left: auto;
	margin-right: auto;
}

#sidebar .sidebar-groups {
}

#sidebar-actions {
	border: 1px solid gray;
	text-align: center;
	line-height: 1.6em;
	width: 300px;
	padding: 10px;
	margin: 0.5rem auto;
	border-radius: 0.875rem;
}

#sidebar-actions .button {
	width: 200px;
	margin-left: auto;
	margin-right: auto;
}

#sidebar-represent a:link    { text-decoration: none; color: var(--logo-color); }
#sidebar-represent a:visited { text-decoration: none; color: var(--logo-color); }
#sidebar-represent a:hover,
#sidebar-represent a:focus   { text-decoration: none; color: red; }

#sidebar-represent {
	border: 1px solid gray;
	text-align: center;
	line-height: 1.6rem;
	padding: 10px;
	margin-left: auto;
	margin-right: auto;
	border-radius: 0.875rem;
}

#sidebar-represent small {
	font-size: 0.75rem;
}

footer {
	background-color: var(--logo-color);
	text-align: center;
	padding-bottom: 2rem;
}

footer ul {
	padding: 0;
	margin: 1rem 0;
}

footer li {
	display: inline;
}

footer p#copyright {
	font-size: smaller;
	color: white;
	padding: 0;
}

footer a {
	display:inline-block;
	text-decoration:none;
	transition:transform 0.3s, color 0.3s, box-shadow 0.3s;
}

footer a:link    { text-decoration: none; color: white; padding: 0 1rem 0 1rem; }
footer a:visited { text-decoration: none; color: white; }
footer a:hover,
footer a:focus   { text-decoration: none; color: red; transform:scale(1.2); }

/* This is the default one! */
p {
  line-height: 1.6em;
	color: orange;
}

/* Pretty sure that this should be global, ie. stay here. */
legend {
  padding: 0.2em 0.5em;
  border:1px solid grey;
  color:grey;
  font-size:90%;
  text-align:left;
}

#footer-navigation {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-bottom: 1rem;
}

#footer-navigation-logged-in {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-bottom: 1rem;
}

.print-icon
{
	padding: 0.5rem 1rem 0 0;
	float: right;
}

.back-icon
{
	padding: 0.5rem 0 0 1rem;
	float: left;
}

.home-icon
{
	width: 32px;
	padding: 0.5rem 0 0.5rem 0;
	margin-left:auto;
	margin-right:auto;
}

/* Is this even used? I can't find it anywhere, and google found no results. */
.error-explanation {
	font-size: 14px;
	background-color: red;
}

/* was previously in scaffolds.css
/* omniauth-identity produces errors with this class. Other forms may also. */
.field_with_errors {
	padding: 2px;
	border: 3px solid red;
	display: table;
}

.error {
	color: red;
}

p.alert {
	color: red !important;
}

p.notice {
	color: green !important;
}

#mobile-links a {
	display:inline-block;
	text-decoration:none;
	color:#048;
	transition:transform 0.3s, color 0.3s, box-shadow 0.3s;
}

#mobile-links a:link    { text-decoration: none; color: var(--logo-color); padding: 0 1rem 0 1rem; }
#mobile-links a:visited { text-decoration: none; color: var(--logo-color); }
#mobile-links a:hover,
#mobile-links a:focus   { text-decoration: none; color: red; transform:scale(1.2); }

#mobile-links {
	display: flex;
}

#mobile-links li {
	display: inline;
}

#mobile-links li.shop {
	display: inline;
	background-color: #DE392D;
	margin-bottom: 2px;
	padding-top: 5px;
	padding-bottom: 5px;
}

@media screen and (max-width: 120rem) {
	/* Desktop (1920) -- since we originally coded for this, there should be nothing to do here. */
	#mobile-links ul {
		list-style: none;
		font-size: 100%;
		line-height: 57px;
		margin: 0;
		padding: 0;
	}

	/* We only want to display the button for mobile devices. */
	#mobile-links button {
		display: none;
	}
}

@media screen and (max-width: 46rem) {
	#footer-navigation {
		width: 100%;
	}
}

/* iPhone 13 Pro Max 430*/
@media screen and (max-width: 26.875rem) {
	#navigate {
		display: none;
	}

	#flash_messages {
		width: 100%;
		padding-left: 0.5rem;
	}

	.auth_providers ul {
		margin-left: auto;
	}

	#list-indent {
		padding-left: 20px;
	}

  #sidebar {
    display: block;
    padding: 0;
    margin-left: auto;
    margin-right: auto;
  }

	#sidebar-amazon {
		display: none;
	}

	#footer-navigation {
		width: 100%;
	}

	footer {
		padding-bottom: 0;
	}

	#mobile-links button {
		display: block;
	}

	#mobile-links ul {
		list-style: none;
		font-size: 100%;
	}

	#mobile-links li {
		display: block;
	}

	/* Hamburger Menu */
	.visually-hidden {
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		height: 1px;
		overflow: hidden;
		position: absolute;
		white-space: nowrap;
		width: 1px;
	}

	/* Since we hide the button on non-mobile devices, we need to manually display it here. */
	button {
		display: block;
	}

	.primary-navigation {
		position: absolute;
		top: 100%;
		right: 0;
		background: #aaaac8; /*#464655;*/
		transition: clip-path ease-in-out 700ms;
		margin: 0;
		padding: 0;
		list-style: none;
	}
	.primary-navigation[data-state="opened"] {
		animation: clipPathCircleOpen 750ms ease-in-out forwards;
		display: block;
	}

	.primary-navigation[data-state="closing"] {
		animation: clipPathCircleClose 750ms ease-in-out forwards;
	}

	.primary-navigation[data-state="closed"] {
		display: none;
	}

	@keyframes clipPathCircleOpen {
		0% { clip-path: circle(0% at top right); }
		100% { clip-path: circle(250% at top right); }
	}

	@keyframes clipPathCircleClose {
		0% { clip-path: circle(250% at top right); }
		100% { clip-path: circle(0% at top right); }
	}

	.site-nav li {
		border-bottom: 1px solid #575766;
	}

	.site-nav li:last-child {
		border-bottom: none;
	}

	.site-nav a {
		color: #ebebd3;
		display: block;
		padding: 2rem 4rem 2rem 1.5rem;
		text-transform: uppercase;
		text-decoration: none;
	}

	.site-nav a:hover,
	.site-nav a:focus {
		background: #e4b363;
		color: #464655;
		width: 100%;
	}

	.site-nav--icon {
		display: inline-block;
		font-size: 1.5rem;
		margin-right: 1rem;
		width: 1.1rem;
		text-align: right;
		color: rgba(255, 255, 255, 0.4);
	}

	.menu-toggle {
		padding: 1rem;
		background: transparent;
		border: 0;
		position: absolute;
		top: 0.5rem;
		right: 0.5rem;
		cursor: pointer;
	}

	.hamburger,
	.hamburger::before,
	.hamburger::after {
		content: "";
		display: block;
		background: black; /*#ebebd3;*/
		height: 3px;
		width: 1.75rem;
		border-radius: 3px;
		transition: all ease-in-out 500ms;
	}

	.hamburger::before {
		transform: translateY(-6px);
	}

	.hamburger::after {
		transform: translateY(3px);
	}

	[aria-expanded="true"] .hamburger {
		transform: rotate(45deg);
	}

	[aria-expanded="true"] .hamburger::before {
		opacity: 0;
	}

	[aria-expanded="true"] .hamburger::after {
		transform: translateY(-3px) rotate(-90deg);
	}
}

/* iPhone 11 Pro 375 */
@media screen and (max-width: 23.4375rem) {

}
