@property --background {
  syntax: "<color>";
  initial-value: #fafafa;
  inherits: true;
}

@property --content-background {
  syntax: "<color>";
  initial-value: #fff;
  inherits: true;
}

@property --button-background {
  syntax: "<color>";
  initial-value: #d3d3d3;
  inherits: true;
}

@property --text-color {
  syntax: "<color>";
  initial-value: #333;
  inherits: true;
}

@property --text-muted {
  syntax: "<color>";
  initial-value: #656565;
  inherits: true;
}

@property --content-border {
  syntax: "<color>";
  initial-value: #ddd;
  inherits: true;
}

@property --border-radius {
  syntax: "<length>";
  initial-value: 4px;
  inherits: true;
}
/* Dark Theme */
:root[data-theme="dark"] {
  --background: #333;
  --text-color: #fafafa;
  --text-muted: #cacaca;
  --content-border: black;
  --content-background: #444;
  --button-background: #ddd;
}

a.no-style {
  color: var(--text-color);
  text-decoration: none;
}

.inline-form {
  color: var(--text-color);
  width: fit-content;
  padding: 0;
  background-color: var(--content-background);
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid var(--text-color);
  outline: 0;
}

:root {
  transition-property: --background, --text-muted, --text-color,
    --content-border, --content-background;
  transition-duration: 300ms;
}

.text-muted {
  color: var(--text-muted) !important;
}

.nav-item {
  position: relative;
}

.input-control {
  color: var(--text-color);
  background-color: var(--content-background);
  border-color: var(--content-border);
}

body {
  background-color: var(--background);
  color: var(--text-color);
  margin-top: 5rem;
}

.alert-message {
  color: var(--text-color);
  background-color: var(--content-background);
  border-color: var(--content-border);
}

.btn {
  background-color: var(--button-background);
  font-weight: bolder;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: rgb(from var(--text-color) calc(r - 17) calc(g - 17) calc(b - 17));
}

#navbar {
  background-color: #5f788a;
}

.navbar-nav .nav-link {
  color: #cbd5db;
}

.navbar-nav .nav-link:hover {
  color: #ffffff;
}

.navbar-nav .nav-link.active {
  font-weight: 500;
}

.content-section {
  background: var(--content-background);
  color: var(--text-color);
  padding: 10px 20px;
  border: 1.25px solid var(--content-border);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
}

.account-img {
  height: 125px;
  width: 125px;
  margin-right: 20px;
  margin-bottom: 16px;
  border-radius: 50%;
}

.account-img-sm {
  height: 24px;
  width: 24px;
  border-radius: 50%;
}

#nav-selector {
  position: absolute;
  height: 6px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  width: 100%;
  bottom: -8px;
  background-color: var(--selector-color);
}

.account-heading {
  font-size: 2.5rem;
}

.dropdown-content a:hover {
  background-color: #dddddd;
  color: black;
}

.dropdown {
  position: relative;
}

.dropdown .dropdown-content {
  display: none;
}

.dropdown.dropdown-hover:hover .dropdown-content,
.dropdown.active .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  display: block;
  background-color: var(--content-background);
  border: 1px solid var(--content-border);
  color: var(--text-color);
  text-decoration: none;
}

.dropdown-content {
  position: absolute;
  width: max-content;
  max-width: 15.5rem;
  display: block;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
  z-index: 1;
  border-radius: var(--border-radius);
  right: 0;
  background-color: transparent;
}

.dropdown-content.center {
  left: 50%;
  transform: translateX(-50%);
}

.dropdown-content a:first-of-type {
  border-top-right-radius: inherit;
  border-top-left-radius: inherit;
}

.dropdown-content a:last-of-type {
  border-bottom-right-radius: inherit;
  border-bottom-left-radius: inherit;
}

.dropdown-content.dropdown-content-round a {
  border-radius: inherit;
}

.dropdown-content.up {
  bottom: 112.5%;
}

label:has(+ input[type="file"]) {
  cursor: pointer;
}

.nav-item {
  position: relative;
}

input.form-control {
  background-color: var(--background);
}

#new-activity-button {
  bottom: 45px;
  right: 45px;
  position: fixed;
}

#new-activity-button button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  border: none;
  background-color: var(--button-background);
}

#new-activity-button button svg {
  width: 35px;
  height: 35px;
}

.rounded {
  border-radius: var(--border-radius);
}
