/* CSS For Common Page Element Across the Entire Site */

* {
  box-sizing: content-box;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 1em;
  --max-width: 800px;
  --main-radius: 5px;
  --main-padding: 5px;
  --lg-badge: 80px;
  --md-badge: 60px;
  --sm-badge: 40px;
  --badge-size-process-owners: 60px;
  --badge-size-problem-owner: 100px;
  --childrens-gradient: linear-gradient(
    135deg,
    rgba(1, 33, 105, 1) 0%,
    rgba(152, 67, 146, 1) 70%
  );
  --childrens-dark-blue: rgb(1, 33, 105);
  --childrens-medium-blue: rgb(0, 156, 222);
  --childrens-light-blue: rgb(185, 217, 235);
  --childrens-red: rgb(223, 70, 97);
  --childrens-green: #71cc98;
  --childrens-purple: rgb(161, 90, 149);
}

.skeleton {
  animation: skeleton-loading 1s linear infinite alternate;
}

.skeleton-text {
  width: 100%;
  height: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 0.125rem;
}

.skeleton-badge-lg {
  width: var(--lg-badge);
  height: var(--lg-badge);
  background-color: gray;
  border-radius: 50%;
}
.skeleton-badge-sm {
  width: var(--sm-badge);
  height: var(--sm-badge);
  margin-right: 0.5rem;
  background-color: gray;
  border-radius: 50%;
}

.skeleton.btn {
  width: 4rem;
}

.demographics-group .skeleton {
  border-color: white;
}

.card-header .skeleton-text {
  align-content: flex-start;
}

.skeleton-text:last-child {
  margin-bottom: 0;
  width: 80%;
}

@keyframes skeleton-loading {
  0% {
    background-color: hsl(200, 20%, 70%);
    opacity: 0.7;
  }

  100% {
    background-color: hsl(200, 20%, 95%);
  }
}

h1 {
  font-size: 2em;
  margin: 0.2em 0 0 0;
}

h2 {
  font-size: 1.25em;
  margin: 0 0 0.2em 0;
}

h4 {
  margin: 0;
}

h5 {
  font-size: 0.8rem;
  font-weight: 400;
  margin: 1.5rem 0 0 0;
  color: #666;
  border-bottom: 0.5px dashed #999;
}

p {
  margin: 0 0 0.2em 0;
  font-size: 0.9rem;
  color: #444;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  background-color: white;
  min-height: 100vh;
}

.body-button {
  display: flex;
  align-items: center;
  background-color: var(--childrens-light-blue);
  color: var(--childrens-medium-blue);
  border-radius: 5px;
  border: 1px solid var(--childrens-medium-blue);
  padding: 3px 5px;
  cursor: pointer;
}

.body-button:hover {
  color: white;
  background-color: var(--childrens-dark-blue);
}

.body-button img {
  height: 1.5rem;
  padding-right: 5px;
}

header {
  position: sticky;
  top: 0;
  background-color: var(--childrens-dark-blue);
}

header .banner-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .banner-bar .logo {
  height: 50px;
  margin: 1em;
}

header .banner-bar h1 {
  display: flex;
  margin: 0;
  color: white;
  text-align: center;
}

header ul.nav-buttons {
  display: flex;
  list-style: none;
  margin-right: 0.75rem;
}

header .nav-buttons li img {
  height: 50px;
  padding-right: 1rem;
}

header .nav-buttons li {
  display: flex;
  color: white;
  padding: 0.5em;
  font-size: 1rem;
  font-variant: small-caps;
  background-color: var(--childrens-medium-blue);
  align-items: center;
  cursor: pointer;
  user-select: none;
  margin-left: 0.5rem;
  border-radius: 0.25em;
}
header .nav-buttons li:hover {
  background-color: var(--childrens-purple);
}

footer {
  display: flex;
  align-items: center;
  background-color: var(--childrens-dark-blue);
  height: 60px;
  font-size: 0.75rem;
  color: white;
  margin-top: auto;
}

.footer-logo {
  height: 40px;
  margin: 0 1.5em;
}

/* BADGES */

.badge-list img {
  height: auto;
}

.badge-list p {
  line-height: 1.4;
}

.badge-list .hidden {
  visibility: hidden;
}

.badge-list {
  list-style-type: none;
  display: grid;
  padding-left: 0;
  grid-gap: 1rem;
  margin: 0.25rem 0 0 0;
}

.badge-list li {
  opacity: 0.9;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  justify-items: center;
  align-items: center;
}

.badge-list .alt-badge,
.badge-list img {
  grid-row: 1 / 2;
  grid-column: 1;
}

.badge-list .alt-badge {
  display: flex;
  color: white;
  align-items: center;
  justify-content: center;
  background: var(--childrens-gradient);
  border-radius: 100%;
  user-select: none;
}

.badge-list h3 {
  overflow-wrap: anywhere;
  font-weight: 400;
  font-size: 1rem;
  text-align: center;
  align-self: end;
  margin: 0;
  border: 0;
}

.badge-list h4 {
  font-size: 0.75rem;
  font-weight: 400;
  margin: 0.25rem 0 0 0;
}

.badge-list p {
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 0.6rem;
}

/* BADGES for Process Owners container */

.badge-list.process-owners img {
  max-width: var(--badge-size-process-owners);
}

.badge-list.process-owners {
  grid-template-columns: repeat(
    auto-fit,
    calc(var(--badge-size-process-owners) * 1.5)
  );
}

.badge-list.process-owners .alt-badge {
  width: calc(var(--badge-size-process-owners) * 0.95);
  height: calc(var(--badge-size-process-owners) * 0.95);
}

.badge-list.process-owners h3 {
  font-size: 0.65rem;
  border: 0;
  margin: 0;
  display: flex;
  align-self: inherit;
}

.badge-list.process-owners p {
  display: none;
}
/* BADGES for Problem Owner container */

.badge-list.problem-owner img {
  max-width: var(---badge-size-problem-owner);
}

.badge-list.problem-owner {
  grid-template-columns: repeat(
    auto-fit,
    calc(var(--badge-size-problem-owner) * 1.5)
  );
}

.badge-list.problem-owner .alt-badge {
  width: calc(var(--badge-size-problem-owner) * 0.95);
  height: calc(var(--badge-size-problem-owner) * 0.95);
  font-size: 1.5rem;
  font-weight: bold;
}

/* MODAL DIALOGS STYLES */

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: 200ms ease-in-out;
  border: 1px solid black;
  border-radius: 10px;
  z-index: 201;
  background-color: white;
  width: 500px;
  max-width: 80%;
}

.modal.active {
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid black;
}

.modal-header img {
  height: 50px;
}

.modal-header .title {
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
}

.modal-header .close-button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-size: 1.25rem;
  font-weight: bold;
}

.modal-body {
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-body.left-align {
  align-items: flex-start;
}

.modal-body h3 {
  margin: 0.5rem 0 0 0;
  padding: 0;
}

.modal-body ul {
  margin-top: 0.25rem;
}

.modal-body p {
  padding: 0.5rem 0;
}

.group-selector {
  display: flex;
}

.group-selector label {
  margin-right: 1rem;
}

.small-button {
  height: 1.5rem;
  cursor: pointer;
  opacity: 0.5;
  background-color: inherit;
  border: none;
}

.group-selector .small-button {
  margin-left: 1rem;
}

.modal-header .small-button,
.modal-header .close-button {
  margin-left: 0.25rem;
}

.modal-header .small-button {
  transform: translateY(5px);
}

.small-button img {
  height: 100%;
}

.small-button:hover {
  opacity: 1;
}

#areas-select-panel {
  margin-top: 1rem;
}

#overlay {
  position: fixed;
  z-index: 200;
  opacity: 0;
  transition: 200ms ease-in-out;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

#overlay.active {
  opacity: 1;
  pointer-events: all;
}

.hamburger-button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

.hamburger-button img {
  height: 26px;
  aspect-ratio: 1;
}
