#bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

html {
    background-color: hsl(0, 0%, 94%);
}

body * {
  font-family: 'Roboto', sans-serif;
  color: #1b1b1b;
}

main {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  margin: 0px auto;
  padding: 80px 12px;
  display: block;
  max-width: 1000px;
  justify-content: left;
}

section {
  padding: 1.5rem;
  justify-content: left;
  margin: 30px 24px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  min-width: 260px;
}

section * {
  padding: 2px;
  margin: 2px;
}

h4 {
  padding: 2px;  
}

header {
  padding: 8px 12px 12px;
  background-color: #cdcdcd33;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  min-width: 200px;
  
  justify-content: space-between;
  align-items: center;
}

footer {
  position: relative;
  padding: 8px 12px 12px;
  margin: auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  height: 100%;
  display: block;
  max-width: 800px;
  min-width: 100px;
}

li a {
  color: #2e3f25;
  text-decoration: none;
  word-break: break-all;
}

#links .section {
    margin: 1rem 0;
    padding: 1rem;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#links li {
    margin-bottom: .5rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #3e3e3e;
}

/* Remove border from last item */
#links li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Link titles */
#links li strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #2f2f2f;
}

/* Actual links */
#links li a {
    color: #2e3f25;
    text-decoration: none;
    word-break: break-all;
}

#links li a:hover {
    text-decoration: underline;
}

/* Description text */
#links li p {
    margin: 0.5rem 0 0 .1f;
    color: #444;
    font-size: 0.9em;
}

form {
    display: inline-flex;
    flex-direction: column;
    gap: 1rem;
}

/* Form Containers */
.form-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 2rem;
    margin: 1rem auto;
    max-width: 480px;
    width: 100%;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

/* Labels */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #374151;
}

/* Inputs */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out;
    background-color: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #2e3f25;
    box-shadow: 0 0 0 3px rgba(46,63,37,0.1);
}

.form-input:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

/* Textareas */
.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Select Boxes */
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background-color: #ffffff;
    cursor: pointer;
}

/* Checkboxes and Radio Buttons */
.form-checkbox-group,
.form-radio-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-checkbox,
.form-radio {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

/* Buttons */
.form-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.form-button-primary {
    background-color: #2e3f25;
    color: #ffffff;
}

.form-button-primary:hover {
    background-color: #243119;
}

.form-button-secondary {
    background-color: #e5e7eb;
    color: #374151;
}

.form-button-secondary:hover {
    background-color: #d1d5db;
}

/* Error States */
.form-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.form-input-error {
    border-color: #dc2626;
}

.form-input-error:focus {
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

/* Helper Text */
.form-helper {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .form-container {
        padding: 1.5rem;
        margin: 0.5rem;
        border-radius: 6px;
    }

    .form-button {
        width: 100%;
        padding: 0.875rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
}

/* Form Grid for side-by-side fields */
.form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}


