:root {
  --color-bg: rgb(238, 236, 230);
  --color-bg-contrast: rgb(255, 255, 255);
  --color-secondary: rgb(112, 177, 114);
  --color-tertiary: rgb(178, 225, 170);
  --color-tertiary-light: rgba(178, 225, 170, 0.5);
  --color-text: rgb(8, 97, 8);
  --color-logo: rgb(238, 236, 230);
  --color-overlay: rgba(42, 63, 44, 0.25);
  --elements-rad: 0.5rem;
  --button-rad: 0.25rem;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

.header {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100vw;
  background-color: var(--color-secondary);
  padding: 0 5vw;
  box-sizing: border-box;
}

.content {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: auto;
  flex-grow: 1;
  width: 100vw;
  padding: clamp(0.1rem, 5vw, 2rem) clamp(0.1rem, 5vw, 2rem);
  box-sizing: border-box;
}

.footer {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  height: 20px;
  background-color: var(--color-secondary);
}

h1 {
  color: var(--color-text);
  margin-bottom: 0.5em;
}

p {
  line-height: 1.5;
}

.t-centered {
  text-align: center;
}

.logo {
  display: flex;
}

.logo-svg {
  height: 100px;
  max-width: 80vw;
  fill: var(--color-logo);
}

.notice {
  background-color: var(--color-secondary);
  padding: 0.5em 1em;
  border-radius: var(--elements-rad);
  margin-top: 1.5em;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-box {
  background: var(--color-bg);
  padding: 1.5rem;
  border-radius: var(--elements-rad);
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); */
}

.error {
  color: red;
  margin-bottom: 1rem;
}

.category-list .element, .product-list .element {
  background-color: rgba(0, 0, 0, 0.05);
}

.category-list .element:hover, .product-list .element:hover {
  background-color: rgba(0, 0, 0, 0.15);
}

.react-auth a {
  color: var(--color-text);
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: var(--button-rad);
  padding: 0.25rem 0.75rem;
  text-decoration: none;
  width: 125px;
  text-align: center;
}

.react-auth a:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.auth-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.auth-menu p {
  margin: 0;
  padding: 0;
}

button {
  background-color: var(--color-secondary);
  color: var(--color-text);
  border: none;
  border-radius: var(--button-rad);
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  transition: background-color 0.3s;
  margin: 0.25rem;
}

button:hover {
  background-color: var(--color-tertiary);
}

button:disabled {
  background-color: var(--color-tertiary-light);
  cursor: not-allowed;
}

input, select, textarea {
  border: 1px solid var(--color-secondary);
  border-radius: var(--button-rad);
  padding: 0.25rem 0.75rem;
  color: var(--color-text);
  background-color: var(--color-bg-contrast);
  box-sizing: border-box;
  margin: 0.25rem;
}

option {
  background-color: var(--color-bg);
  border-radius: 0;
  border: none;
}

option:hover {
  background-color: var(--color-tertiary);
  border-radius: 0;
  color: white;
}

option:focus {
  background-color: red;
  border-radius: 0;
  color: white;
}

input:hover, select:hover, textarea:hover {
  border: 1px solid var(--color-secondary);
}

input:focus, select:focus, textarea:focus {
  outline: 1px solid var(--color-secondary);
  /* box-shadow: 0 0 5px var(--color-secondary); */
}

select::backdrop {
  border: none;
}