/* Colors */
:root {
  --bg: #edf3ea;
  --panel: #a9c694;
  --topbar: #6f9e45;
  --primary: #4b66a8;
  --primary-dark: #2f4f97;
  --field: #eef3eb;
  --muted: #8ea6cc;
  --text-grey: #222;
  --text-white: #fff;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Inter", Arial, sans-serif;
  background: var(--bg);
  font-size: medium;
}

body.modal-open {
  overflow: hidden;
}

h1,
h2,
h3,
p,
span {
  color: var(--text-grey);
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", Arial, sans-serif;
}

p,
span {
  font-family: "Inter", Arial, sans-serif;
  color: var(--text-grey);
}

button span,
a span {
  color: var(--text-white);
}

/* Customs */
.sidebar-text {
  transition: opacity 0.2s ease-in-out;
}

.bold {
  font-weight: 500;
}

/* Alert box styles */
.alertbox {
  position: fixed;
  bottom: 60px;
  left: 20px;
  max-width: calc(100% - 40px);
  z-index: 10000;
  padding: 20px 40px 20px 20px;
  text-align: left;
  font-size: 1.1em;
  font-weight: 500;
  background-color: #f1f1f1;
  color: #222;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition:
    opacity 0.3s,
    transform 0.3s;
}

.messagebox {
  border-left: 6px solid #4caf50;
}

.errorbox {
  border-left: 6px solid #f44336;
}

.closebtn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #444;
  font-size: 1.5em;
  cursor: pointer;
  line-height: 1;
}

.closebtn:hover {
  color: #000;
}

/* Breadcrumb styles */
/* https://www.w3schools.com/howto/howto_css_breadcrumbs.asp */
ul.breadcrumb {
  padding: 10px 16px;
  list-style: none;
}

ul.breadcrumb li {
  display: inline;
  font-size: 18px;
}

ul.breadcrumb li + li:before {
  padding: 8px;
  color: black;
  content: ">";
}

ul.breadcrumb li a {
  color: var(--primary);
  text-decoration: none;
}

ul.breadcrumb li a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Modal helpers */
.modal-centered {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.modal-centered.is-open {
  display: flex !important;
}

.modal-centered .w3-modal-content {
  width: 100%;
  max-width: min(92vw, 600px);
  margin: 0 auto;
  box-sizing: border-box;
  padding-left: 20px !important;
  padding-right: 20px !important;
}
