:root {
  --pale-blue: hsl(198, 69%, 80%);
  --blue: hsl(199, 100%, 43%);
  --light-blue: hsl(199, 15%, 59%);
  --dark-blue: hsl(199, 24%, 22%);

  --clr-secondary-500: hsl(12, 60%, 45%);
  --clr-secondary-400: hsl(12, 88%, 59%);
  --clr-secondary-300: hsl(12, 88%, 75%);
  --clr-secondary-100: hsl(13, 100%, 96%);

  --clr-primary-400: hsl(228, 39%, 23%);

  --clr-neutral-900: hsl(232, 12%, 13%);
  --clr-neutral-100: hsl(0 0% 100%);

  --ff-primary: Arial, sans-serif;

  --ff-body: var(--ff-primary);
  --ff-heading: var(--ff-primary);

  --fw-regular: 400;
  --fw-semi-bold: 500;
  --fw-bold: 700;

  --fs-300: 0.8125rem;
  --fs-400: 0.875rem;
  --fs-500: 0.9375rem;
  --fs-600: 1rem;
  --fs-700: 1.875rem;
  --fs-800: 2.5rem;
  --fs-900: 3.5rem;

  --fs-body: var(--fs-400);
  --fs-primary-heading: var(--fs-800);
  --fs-secondary-heading: var(--fs-700);
  --fs-nav: var(--fs-600);
  --fs-button: var(--fs-300);

  --size-100: 0.25rem;
  --size-200: 0.5rem;
  --size-300: 0.75rem;
  --size-400: 1rem;
  --size-500: 1.5rem;
  --size-600: 2rem;
  --size-700: 3rem;
  --size-800: 4rem;
  --size-900: 5rem;
  --size-950: 7.5rem;
}
/* ****************************** */
/*             RESET              */
/* ****************************** */

/* Remove default margin */
* {
  margin: 0;
  padding: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

/* Set core body defaults */
body {
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}
/* Make images easier to work with */
img,
picture,
svg {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style-type: none;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--ff-body);
  accent-color: var(--blue);
  color: var(--clr-neutral-900);
  font-size: var(--fs-body);
  background-color: var(--pale-blue);
  line-height: 1.6;
}

h1,
h2,
p {
  margin-block: 0;
}

input,
button,
textarea {
  font: inherit;
}

/* ****************************** */
/*             STYLES             */
/* ****************************** */

/* ********** HEADER *********** */

.header {
  padding-block: var(--size-400);
  background-color: var(--clr-neutral-100);

  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.header--img {
  width: auto;
  height: var(--size-800);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: var(--size-500);
  font-size: var(--fs-nav);
  font-weight: var(--fw-semi-bold);
  text-align: center;
}

.nav-list a {
  text-decoration: none;
  color: var(--clr-primary-400);
}

.nav-list a:hover,
.nav-list a:focus {
  color: var(--clr-secondary-400);
}

/* .primary-navigation {
} */

/* ********** LOGIN FORM *********** */
.login-card {
  padding: 2rem;
  background-color: var(--clr-neutral-100);
  border-radius: 1rem;
  max-inline-size: 400px;
  padding-inline: 2rem;
  margin-inline: auto;
}

/* ********** FORM *********** */
.block {
  padding: 2rem;
  background-color: var(--clr-neutral-100);
  border-radius: 1rem;
  max-inline-size: 700px;
  margin-inline: auto;
}

.form-group {
  display: grid;
  gap: 0.25rem;
}

.form-group:has(:not([type='radio'])[required]) label,
fieldset:has([required]) legend {
  display: flex;
  gap: 1ch;

  &::after {
    content: '*';
    color: var(--blue);
  }
}

.form-group:has([type='radio'], [type='checkbox']) {
  display: flex;
  gap: 1ch;
}

.span-all {
  grid-column: 1 / -1;
}

input,
textarea,
select,
input[type='file'],
.form-group:has(input[type='radio']) {
  border: 1px solid var(--dark-blue);
  border-radius: 8px;
  padding: 0.75em 1.5em;
}

input,
textarea {
  outline-color: var(--blue);
}

fieldset {
  border: 0;
  padding: 0;

  display: grid;
  gap: inherit;
  grid-template-columns: subgrid;
}

legend {
  margin-bottom: 0.5em;
}

input[type='radio'],
input[type='checkbox'] {
  width: 1.75cap;
}

.form-group:has(input[type='radio']:checked) {
  background: var(--pale-blue);
  border-color: var(--blue);
}

textarea {
  box-sizing: content-box;
  min-block-size: 3lh;
  resize: block;
}

form button {
  background: var(--blue);
  color: var(--clr-neutral-100);
  border: 0;
  border-radius: 6px;
  padding: 0.75em 1.5em;

  &:hover,
  &:focus-visible {
    background: var(--dark-teal);
  }
}

/* ********** FOOTER *********** */

.footer {
  background-color: #f8f8f8;
  padding: 20px 0;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1000;
  text-align: center;
}

footer div {
  max-width: 1200px;
  margin: 0 auto;
}

/* ********** BUTTONS *********** */

.button {
  display: inline-flex;
  cursor: pointer;
  text-decoration: none;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 6px;
  padding: 1.25em 2.5em;
  font-weight: var(--fw-bold);
  font-size: var(--fs-button);
  line-height: 1;
  color: var(--clr-neutral-100);
  background-color: var(--blue);
  /* box-shadow: 0 1.125em 1em -1em var(--blue); */
}

.button:hover,
.button:focus-visible {
  background-color: var(--clr-secondary-400);
}

/* PS TABLE */

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.5rem;
  text-align: left;
}

th {
  background-color: #f2f2f2;
  font-weight: bold;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

.scroll-box {
  width: 100%;
  height: 300px;
  overflow: auto;
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.5rem;
  text-align: left;
}

th {
  background-color: #f2f2f2;
  font-weight: bold;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

.scroll-box {
  width: 100%;
  height: 300px;
  overflow: auto;
  margin-bottom: 1rem;
}

.address-block {
  font-family: 'Arial', sans-serif;
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.address-block h3 {
  font-size: 1.2em;
  color: #333333;
  margin-bottom: 5px;
}

.address-block p {
  margin: 5px 0;
  color: #666666;
}

.address-block .address-label {
  font-weight: bold;
  color: #333333;
}
*/

/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* ****************************** */
/*         Utility Classes        */
/* ****************************** */

.text-primary-400 {
  color: var(--clr-primary-400);
}
.text-accent-400 {
  color: var(--clr-secondary-400);
}
.text-accent-100 {
  color: var(--clr-secondary-100);
}
.text-neutral-100 {
  color: var(--clr-neutral-100);
}
.text-neutral-900 {
  color: var(--clr-neutral-900);
}

.bg-primary-400 {
  background-color: var(--clr-primary-400);
}
.bg-accent-400 {
  background-color: var(--clr-secondary-400);
}
.bg-accent-100 {
  background-color: var(--clr-secondary-100);
}
.bg-neutral-100 {
  background-color: var(--clr-neutral-100);
}
.bg-neutral-900 {
  background-color: var(--clr-neutral-900);
}

.fw-bold {
  font-weight: var(--fw-bold);
}
.fw-semi-bold {
  font-weight: var(--fw-semi-bold);
}
.fw-regular {
  font-weight: var(--fw-regular);
}

.fs-primary-heading {
  font-size: var(--fs-primary-heading);
  line-height: 1.1;
}
.fs-secondary-heading {
  font-size: var(--fs-secondary-heading);
  line-height: 1.1;
}

.fs-300 {
  font-size: var(--fs-300);
}
.fs-400 {
  font-size: var(--fs-400);
}
.fs-500 {
  font-size: var(--fs-500);
}
.fs-600 {
  font-size: var(--fs-600);
}

.padding-block-700 {
  padding-block: var(--size-700);
}

.padding-block-900 {
  padding-block: var(--size-900);
}

.padding-block-950 {
  padding-block: var(--size-950);
}

.margin-block-200 {
  margin-block: var(--size-200);
}

.margin-block-300 {
  margin-block: var(--size-300);
}

.margin-block-700 {
  margin-block: var(--size-700);
}

.margin-block-500 {
  margin-block: var(--size-500);
}

.margin-block-950 {
  margin-block: var(--size-950);
}

.margin-top-300 {
  margin-top: var(--size-300);
}

.margin-top-500 {
  margin-top: var(--size-500);
}

.container {
  --max-width: 1110px;
  --padding: 1rem;

  width: min(var(--max-width), 100% - (var(--padding) * 2));
  margin-inline: auto;
}

.inner-container {
  padding: 2rem;
  max-inline-size: 700px;
  margin: 0 auto;
}

.fixed-bottom-container {
  position: fixed; /* Keep the container fixed in place */
  bottom: 60px; /* Align the container to the bottom of the viewport */
  left: 0; /* Align the container to the left of the viewport */
  width: 100%; /* Ensure the container spans the width of the viewport */
  background-color: white; /* Optional: Background color for the container */
  text-align: center; /* Center-align the buttons within the container */
  padding: 10px 0; /* Add some padding for visual spacing */
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2); /* Optional: Add shadow for better separation */
  z-index: 1000; /* Ensure the container sits above other content */
  display: flex;
  justify-content: center; /* This centers the buttons horizontally */
  gap: 10px; /* Optional: adds space between the buttons */
}

.even-columns {
  display: grid;
  gap: 1rem;

  @media (min-width: 50em) {
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
  }
}

.two-columns {
  display: grid;
  gap: 1.5rem;

  @media (width > 560px) {
    grid-template-columns: repeat(2, 1fr);
  }
}

.divider {
  width: 100%; /* Make it span the full width */
  height: 1px; /* Adjust the height for desired thickness */
  background-color: #ccc; /* Adjust the color for subtlety */
  margin: 20px 0; /* Adjust the margin for spacing */
}

.secondary-text {
  color: var(--clr-primary-400);
}

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