:root {
	--font-color: #93a1a1;
	--highlight-color: #f8520e;
	--border-color: #767676;
	--background-color: #002b36;
	--control-background-color: #073642;
	--read-width: 56.25rem;
}

h1, h2, h3, p, strong {
	color: var(--font-color);              
}

h1 {
	margin-top: 1rem;
	margin-bottom: 1rem;
	color: var(--font-color);              
	text-align: center;
	font-size: 6rem;
	font-weight: 600;
}
@media (max-width: 600px) {
	h1 {
		margin-top: .2rem;
		margin-bottom: .2rem;
		font-size: 2rem;
	}
}

fieldset {
	margin-inline: 0;
	display: flex;
	flex-direction: column;
	gap: 2rem;
	max-height: 19rem;
	overflow-y: auto;
	overflow-x: hidden;

	padding: 2rem;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}

fieldset, input {
	border: 0.2rem solid var(--border-color);
	background-color: var(--control-background-color);
	color: var(--font-color);              
	padding: 1rem;
}

@media (max-width: 600px) {
	input:focus,
	select:focus,
	textarea:focus,
	fieldset:focus,
	button:focus {
		outline: none;
	}
}

@media (min-width: 601px) {
	input,
	select,
	textarea,
	fieldset {
		max-width: var(--read-width);
	}
	input:focus,
	select:focus,
	textarea:focus,
	fieldset:focus,
	button:focus {
		outline: 0.2rem var(--highlight-color) solid;
	}
}


button {
    appearance: none;
    border: 0;
    cursor: pointer;
	border-radius: .35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
	padding: 1rem 2rem;
   
    background: linear-gradient(to bottom, #4a90e2, #225ea8);
	color: #fdf6e3;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: 0.04em;
   
    /* 3D effect */
    box-shadow:
        0 .6rem 0 #143863,           /* hard “base” */
        0 1rem 1.5rem rgba(0,0,0,0.35); /* soft shadow */
   
    transform: translateY(0);
    transition:
        transform 120ms ease,
        box-shadow 120ms ease,
        background 120ms ease;
}

@media (max-width: 600px) {
	button {
		padding: .7rem 1rem;
	}
}

#back-button {
	position: absolute;
	bottom: 2rem;
	left: 1.2rem;
	width: 3rem;
	height: auto;
}

button:hover {
    background: linear-gradient(to bottom, #5aa0f2, #2a6ec0);
}

button:active {
	transform: translateY(10px);

	box-shadow:
	  0 2px 0 #143863,
	  0 6px 10px rgba(0,0,0,0.28);

	background: linear-gradient(to bottom, #3a7ac2, #1b4f88);
}

/* subtle highlight */
button::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
      to bottom,
      rgba(255,255,255,0.25),
      transparent 40%
    );
    pointer-events: none;
}

button:disabled {
	background: grey;
	cursor: not-allowed;
    box-shadow:
        0 .6rem 0 #494d4c,           /* hard “base” */
        0 1rem 1.5rem rgba(0,0,0,0.35); /* soft shadow */
	color: black;
}

.htmx-indicator {
  display: none;
}

.htmx-request.htmx-indicator {
  display: inline-block;
}

.spinner {
	margin-left: 1rem;
	width: 1.5rem;
	height: 1.5rem;
	border: 0.125rem solid #999;
	border-top-color: transparent;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
	vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
