body {
  height: 100%;
  margin: 0;
  padding: 0;
  min-width: 330px;
  font-family: 'Open Sans', serif;
  background-color: #fcfcfc;
  color: var(--primary-text-color);
  font-size: var(--font-size-normal);
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

:root {
  --primary-text-color: rgb(21,21,23);
  --primary-text-color-75: rgba(21,21,23,0.75);
  --accent-color: rgb(75,51,227);
  --delete-text-color: rgb(227,51,93);
  --primary-background-color: #fcfcfc;
  --secondary-background-color: rgba(0,0,0,0.05);
  --secondary-background-color-75: rgba(0,0,0,0.0375);
  --pop-up-overlay-color: rgba(0,0,0,0.2);
  --pop-up-background-color: #fcfcfc;
  --pop-up-border-radius: 24px;
  --max-width: 1500px;
  --radius-normal: 16px;
  --offset: 12px;
  --shadow-normal: 0 3px 12px 0 rgba(0,0,0,0.1),0 1px 2px 0 rgba(0,0,0,0.08);
  --font-size-normal: 16px;
  --font-size-title-normal: 22px;
  --font-size-title-small: 16px;
  --height-without-navbar: calc(100dvh - 84px);
  --extra-small-span-size: 12px;
  --small-span-size: 14px;
  --normal-span-size: 16px;
}

main {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.footer-distance-fitter {
  flex-grow: 1;
}

.limited-width-container {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--max-width);
  padding: 0 var(--offset);
  width: 100%;
}

@media (min-width: 1500px) {
  .container-offset {
    margin-left: calc((100vw - var(--max-width)) / 2);
  }
}

.w-fit {
  width: fit-content;
}

.unlimited-width-container {
  width: 100%;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.offset-items-container {
  overflow-x: scroll;
  scrollbar-width: none;
  width: 100%;
  padding-right: 12px;
  padding-left: 12px;
}

.shadow-normal {
  box-shadow: 0 3px 12px 0 rgba(0,0,0,0.1),0 1px 2px 0 rgba(0,0,0,0.08);
}

.border-radius-normal {
  border-radius: var(--radius-normal);
}

a {
  text-decoration: none;
  color: var(--primary-text-color);
}

.text-overflow-ellipse {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}



/* Header / Navbar */
nav {
  padding: 1.5rem 0;
}

.nav-element {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-weight: 500;
  padding: 0.25rem 1.25rem;
  border-radius: 32px;
  outline: 1.5px solid  var(--primary-text-color);
  text-decoration: none;
  cursor: pointer;
}

.nav-element:hover {
  opacity: 0.75 !important;
}

.nav-element.active {
  outline: 2px solid var(--accent-color);
  background: rgba(95,48,194,0.05);
}

nav .logo-container {
  max-width: 55px;
}


.form-check-input:checked {
  background-color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
}

/* Popups */
.popup-overlay-blur {
  position: absolute;
  inset: 0;
  background: var(--pop-up-overlay-color);
  backdrop-filter: blur(2px);
}

.fixed-popup {
  position: fixed;
  inset: 0;
}

.popup-self {
  width: 100%;
  max-width: 1100px;
  overflow: hidden;
  border-radius: var(--pop-up-border-radius);
  background: var(--pop-up-background-color);
}

.popups {
  position: relative;
  z-index: 99;
}

.popup-container {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  justify-content: center;
  align-items: start;
  display: flex;
  overflow-y: auto;
}


/* Dropdown */

.dropdown {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
}

.dropdown .icon {
  cursor: pointer;
}

.dropdown .menu {
  list-style: none;
  padding: 0.5rem;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fcfcfc;
  box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
  border-radius: var(--radius-normal);
  z-index: 3;
}

.dropdown.open-left .menu {
  left: auto !important;
  right: 0;
}

.dropdown:hover .menu {
  display: block;
}

.dropdown .menu .item {
  display: flex;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  justify-content: start;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-normal);
  cursor: pointer;
}

.dropdown .menu .item:hover {
  background: var(--secondary-background-color-75);
}

.dropdown .menu .item:hover .menu {
  display: block;
}


/* Flash Messages */

.flash-messages-container {
  width: 100%;
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 99;
  pointer-events: none;
  padding-top: 1rem;
}

.flash-messages-container .message {
  padding: 0.75rem 2rem;
  margin: 0.5rem;
  border-radius: 64px;
  text-align: center;
  font-size: var(--font-size-normal);
  backdrop-filter: blur(16px);
  pointer-events: auto;
  cursor: pointer;
}

.flash-messages-container .message.error {
  color: var(--primary-background-color);
  background: rgba(101,12,44,0.7);
  border: 2px solid rgb(101,12,44);
}

.flash-messages-container .message.success {
  color: var(--primary-background-color);
  background: rgb(22 1 160 / 50%);
  border: 2px solid var(--accent-color);
}

