:root {
  --pico-border-color: #ccc;
  --pico-primary-color: #007bff;
  --pico-border-radius: 4px;
  
  --pico-link-color: black;
  --pico-hover-background-color: #e9ecef;
  --pico-spacing: 1.00rem;
  --pico-block-spacing-vertical: 0.5rem; /* Override Pico's default block spacing */
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content {
  flex: 1 0 auto;
}

section {
  background-color: var(--pico-background-color);
  color: var(--pico-color);
}

/* Custom styles for the header and navigation */
header {
  background-color: var(--pico-background-color);
  padding: 0.5rem 0;  /* More compact */
  border-bottom: 1px solid var(--pico-border-color);
  margin-bottom: 1rem;
  top: 0;
  position: sticky;
  box-shadow: 0px 3px 10px 0px lightgray;  
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.logo img {
  max-width: 50px;  /* More compact */
  height: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 1rem;
}

nav a {
  font-weight: 500;
  text-decoration: none;
  color: var(--pico-link-color);
  padding: 0.5rem 1rem;
  border-radius: var(--pico-border-radius);
}

nav a:hover {
  opacity: 0.8;
}

/* Chrome autofill normalization */
input:-webkit-autofill,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px var(--background-color) inset;
  -webkit-text-fill-color: var(--color);
  font-size: 1rem !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Dropdown menu styles */
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: var(--pico-background-color);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: var(--pico-border-radius);
}

.dropdown-content a {
  padding: 12px 16px;
  display: block;
}

.dropdown:hover .dropdown-content {
  display: block;
}
