@font-face {
  font-family: 'Oxanium';
  src: url('../../public/fonts/Oxanium[wght].woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: 'Funnel Display';
  src: url('../../public/fonts/FunnelDisplay-VariableFont_wght.ttf');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --theme-link-color: rgba(109, 46, 4, 0.7);
  --theme-main-color: rgba(238, 210, 138, 0.83);
  --hover: rgba(111, 111, 185, 0.5);
  --black: rgba(0, 0, 0, 0.7);
  --grey: #767676;
  --disabled: #e1dbdb;
  --white: rgba(255, 255, 255, 0.9);
  --red: rgba(194, 23, 23, 0.7);
  --red-light: rgba(194, 23, 23, 0.35);
  --orange-dark: rgb(150, 87, 24);
  --orange: rgba(206, 119, 34, 0.7);
  --green: rgba(33, 108, 14, 0.7);
  --green-light: rgba(33, 108, 14, 0.35);
  --yellow: rgba(243, 235, 151, 0.98);
  --body-font: 'Funnel Display', sans-serif;
  --font-family: 'Funnel Display', sans-serif;
  --primary-color: var(--theme-main-color);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 85%;
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--black);
}

h1 {
  margin: 0;
  font-size: 2rem;
  color: var(--theme-link-color);
}

h2 {
  margin-top: 8px;
  margin-bottom: 5px;
  color: var(--theme-link-color);
}

a {
  font-weight: 500;
  color: var(--theme-link-color);

  &:visited {
    color: var(--theme-link-color);
  }
}

.button {
  text-transform: uppercase;
  border: none;
  color: white;
  font-weight: 700;
  background-color: var(--theme-link-color);
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
  fill: var(--white);
  text-decoration: none;

  &:visited {
    color: var(--white);
  }

  i, span {
    color: inherit;
  }

  &:hover {
    background-color: var(--hover);
  }

  &.button-secondary {
    background-color: var(--white);
    color: var(--theme-link-color);

    &:hover {
      background-color: var(--hover);
    }
  }

  &.button-danger {
    color: var(--white);
    background-color: var(--red);

    &:hover {
      background-color: var(--red-light);
    }
  }

  &.search-button {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    border: solid 2px var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

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

.clickable {
  cursor: pointer;
}

table.striped {
  border-collapse: collapse;
  th {
    padding: 4px;
    text-align: left;
    border-bottom: solid 1px black;
  }
  td {
    padding: 4px;
  }
  tr:nth-child(even) > td {
    background-color: rgba(128, 128, 128, 0.25);
  }
}

.card {
  border-radius: 8px;
  padding: 10px 20px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  margin-bottom: 20px;
}

.page-header {
  padding-left: 10px;
  margin-bottom: 20px;
}

.icon-button {
  width: 32px;
  height: 32px;
  background-color: var(--theme-link-color);
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
}

input, textarea, select {
  border-radius: 4px;
  border: solid 1px #bbbbbb;
  padding: 4px 8px;
  font-size: 1rem;
  font-family: var(--body-font);
  color: var(--black);
  width: 300px;

  &:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--theme-link-color);
  }

  &:disabled {
    background-color: var(--disabled);
  }

  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

textarea {
  width: 600px;
  height: 300px;
}

.form-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 6px;

  label {
    text-transform: uppercase;
    font-weight: 600;
    padding-bottom: 6px;
    color: #4b4b4b;

    &.required::after {
      content: '*';
    }
  }
}

.footer {
  padding-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
