/* Neobrutalism CSS MIT License

Copyright (c) 2024 MATIAS FANDIÑO*/

.nb-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--zr-bg);
  color: var(--zr-fg);
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  box-shadow: 3px 3px 0px var(--zr-fg);
  border: var(--button-border-stroke) solid var(--zr-fg);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.nb-button:hover {
  box-shadow: none;
  background-color: var(--zr-soft-gray);
}

.nb-button:focus {
  outline-color: transparent;
}

.input.primary {
  background-color: var(--zr-primary-lilac);
  color: var(--zr-fg);
}

.input.primary:hover {
  background-color: #b482c9;
}

.rounded {
  border-radius: 9999px;
}

.nb-input {
  padding: 10px;
  background-color: var(--zr-bg);
  color: var(--zr-fg);
  border: 2px solid var(--zr-fg);
  border-radius: 0.25rem;
  box-shadow: 2px 2px 0px 0px var(--zr-fg);
  border-radius: var(--button-border-radius);
  font-size: 16px;
  text-align: left;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.nb-input:hover {
  background-color: var(--primary-90);
}

.input:disabled {
  background-color: var(--zr-soft-gray);
  cursor: not-allowed;
  box-shadow: 0px 0px;
}

.input:disabled:hover {
  background-color: var(--zr-soft-gray);
  cursor: not-allowed;
  box-shadow: 0px 0px;
}

.nb-input::placeholder {
  color: var(--zr-fg);
  opacity: 1;
  text-align: left;
}

.dialog {
  background: #fff;
  border-radius: 20px;
  filter: drop-shadow(4px 4px 0px var(--zr-fg));
  padding: 20px;
  border: 3px solid var(--zr-fg);
  width: 20rem;
}

.dialog p {
  font-size: 18px;
}

.card a {
  text-decoration: none;
  color: inherit;
}

.avatar {
  overflow: hidden;
  width: 67px;
  height: 67px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--zr-fg);
  border-radius: 50%;
  box-shadow: 2px 2px 0 0 #031926;
}

.avatar img {
  border: 0;
  max-width: 100%;
  vertical-align: middle;
  display: inline-block;
}

.nb-label {
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: var(--zr-fg);
  text-transform: uppercase;
}

input.nb-checkbox {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background-color: #fff;
  border: 2px solid var(--zr-fg);
  border-radius: 4px;
  cursor: pointer;
}

input.nb-checkbox:checked {
  background-color: var(--zr-primary-lilac);
  color: var(--zr-fg);
}

input.nb-checkbox:checked::before {
  content: "x";
  font-weight: bold;
  color: inherit;
  left: 5px;
  position: relative;
  top: 0px;
  font-size: 18px;
  text-align: center;
}

.badge {
  width: fit-content;
  padding: 5px;
  border: 2px solid var(--zr-fg);
  border-radius: 50px;
  box-shadow: 3px 3px 0 0 var(--zr-fg);
  background-color: var(--zr-primary-lilac);
}

.badge .badge-inner {
  display: flex;
  height: 100%;
  margin: 0;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--zr-fg);
  border-radius: 50px;
}

.badge .badge-inner .badge-text {
  padding: 10px;
  margin: 0;
}

#modal {
  display: none;
}

#modal:checked~.modal,
#modal:checked~.modal-background {
  display: block;
}

.modal-background {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  z-index: 9998;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  display: none;
  width: 300px;
  height: 300px;
  background-color: #fff;
  box-sizing: border-box;
  z-index: 9999;
}

.modal>p {
  padding: 15px;
  margin: 0;
}

.modal-header {
  background-color: #f9f9f9;
  border-bottom: 1px solid #dddddd;
  box-sizing: border-box;
  height: 50px;
}

.modal-header h3 {
  margin: 0;
  box-sizing: border-box;
  padding-left: 15px;
  line-height: 50px;
  color: #4d4d4d;
  font-size: 16px;
  display: inline-block;
}

.modal-header label {
  box-sizing: border-box;
  border-left: 1px solid #dddddd;
  float: right;
  line-height: 50px;
  padding: 0 15px 0 15px;
  cursor: pointer;
}

.modal-header label:hover img {
  opacity: 0.6;
}

.alert.success {
  background-color: #92fca2;
  border: 1px solid #40d39c;
  padding: 0.1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 2px 2px 0px var(--zr-fg);
}

.alert.error {
  background-color: #ffc5c8;
  border: 1px solid #dc341e;
  padding: 0.1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 2px 2px 0px var(--zr-fg);
}

.alert.warning {
  background-color: #f8f894;
  border: 1px solid #fdfd96;
  padding: 0.1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 2px 2px 0px var(--zr-fg);
}

.alert.info {
  background-color: #d5f0ff;
  border: 1px solid #b9e2f8;
  padding: 0.1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 2px 2px 0px var(--zr-fg);
}

.dropdown {
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 2px 2px 0px var(--zr-fg);
  border: 1px solid var(--zr-fg);
  padding: 10px;
  cursor: pointer;
}

.dropdown::after {
  content: '\25BC';
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.dropdown option {
  background-color: #fff;
  color: #333;
  box-shadow: 2px 2px 0px var(--zr-fg);
  border: 1px solid var(--zr-fg);
  padding: 10px;
}

.dropdown:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* End of Neobrutalism CSS */

.portal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.login-container form {
  display: flex;
  flex-direction: column;
}

.login-container input {
  padding: 12px;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.error-message {
  color: #e74c3c;
  margin-top: 1rem;
}

.content-container {
  border-radius: var(--button-border-radius);
  border: var(--button-border-stroke) solid var(--zr-fg);
  box-shadow: var(--emphasis-shadow-offset) var(--emphasis-shadow-offset) var(--zr-fg);
  overflow: hidden;
}

.portal-header {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.portal-header h1 {
  margin-right: auto;
}

.portal-header p {
  margin-right: 1rem;
}

.content-section {
  padding: 2rem;
  border-bottom: 1px solid #ecf0f1;
}

.content-section:last-child {
  border-bottom: none;
}

.content-section h2 {
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

.content-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.content-card {
  border: 1px solid #ecf0f1;
  border-radius: 6px;
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.content-card h3 {
  margin-bottom: 0.8rem;
  color: #3498db;
}

.content-card p {
  margin-bottom: 1.2rem;
  color: #7f8c8d;
}

.content-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

@media (max-width: 768px) {
  .portal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-header p {
    margin: 0.5rem 0;
  }

  .logout-btn {
    margin-top: 1rem;
    align-self: flex-start;
  }
}

/*-- -------------------------- -->
<---           Stats            -->
<--- -------------------------- -*/
#stats-315 {
  max-width: 80rem;
  width: 95%;
  margin: auto;
  background-color: var(--zr-primary-lilac);
  border-radius: var(--button-border-radius);
  border: var(--button-border-stroke) solid var(--zr-fg);
  box-shadow: var(--emphasis-shadow-offset) var(--emphasis-shadow-offset);
  margin-bottom: 20px;
}

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #stats-315 .cs-card-group {
    width: 100%;
    /* changes to 1280px at desktop */
    margin: auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
  }

  #stats-315 .cs-item {
    list-style: none;
    /* set fixed width so they can all be aligned on the left */
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  #stats-315 .cs-picture {
    width: 5rem;
    height: 5rem;
    /* 12px - 20px */
    margin-right: clamp(0.75rem, 3vw, 1.25rem);
    border-radius: 50%;
    border: 2px solid var(--zr-fg);
    display: flex;
    justify-content: center;
    align-items: center;
    /* prevents flexbox from squishing it */
    flex: none;
  }

  #stats-315 .cs-icon {
    width: 3.5rem;
    height: auto;
  }

  #stats-315 .cs-flex-group {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
  }

  #stats-315 .cs-number {
    font-size: 1.25rem;
    color: var(--zr-fg);
    font-weight: 900;
    line-height: 1.2em;
    margin: 0;
    display: block;
  }

  #stats-315 .cs-stat {
    line-height: 1.5em;
    display: block;
  }

  #stats-315 .cs-stat a {
    color: var(--zr-dark-plum);
    font-weight: bold;
  }
}

/* Tablet - 650px */
@media only screen and (min-width: 40.625rem) {
  #stats-315 .cs-card-group {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    column-gap: 1.25rem;
    row-gap: 2rem;
  }

   #stats-315 .cs-item {
    width: 30%;
    min-width: 14rem;
   }
}

/* Small Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #stats-315 .cs-card-group {
    max-width: 80rem;
    flex-wrap: nowrap;
    justify-content: space-evenly;
  }
}

/*-- -------------------------- -->
<---           Stats            -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #stats-5 {
    position: relative;
    z-index: 1;
    max-width: 80rem;
    width: 95%;
    margin: auto;
  }

  #stats-5 .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: flex-start;
  }

  #stats-5 .cs-card-group {
    width: 100%;
    max-width: 31.25rem;
    padding: 0 1.25rem;
    /* 40px - 68px */
    padding-top: clamp(1.5rem, 4.7vw, 3.25rem);
    /* 48px - 80px */
    padding-bottom: clamp(1.5rem, 4.7vw, 3.25rem);
    margin-bottom: 20px;
    background: #fff;
    border: var(--button-border-stroke) solid var(--zr-fg);
    border-radius: var(--button-border-radius);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
    gap: 3.4375em;
    box-shadow: var(--emphasis-shadow-offset) var(--emphasis-shadow-offset) var(--zr-fg);
    /* prevents padding from adding to the width of the container */
    box-sizing: border-box;
  }

  #stats-5 .cs-item {
    text-align: center;
    list-style: none;
    width: 100%;
  }

  #stats-5 .cs-number {
    /* 39px - 61px */
    font-size: clamp(2.4375rem, 4.7vw, 3.8125rem);
    font-weight: 700;
    line-height: 1.2em;
    /* 4px - 8px */
    margin-bottom: clamp(0.25rem, 0.78vw, 0.5rem);
    color: var(--zr-dark-plum);
    display: block;
  }

  #stats-5 .cs-header {
    /* 16px - 25px */
    font-size: clamp(1rem, 2vw, 1.5625rem);
    font-weight: 700;
    line-height: 1.2em;
    color: var(--headerColor);
  }

  #stats-5 .cs-button-solid {
    font-size: 1rem;
    /* 46px - 56px */
    line-height: clamp(2.875rem, 5.5vw, 3.5rem);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    margin: 0;
    color: #fff;
    min-width: 9.375rem;
    padding: 0 1.5rem;
    background-color: var(--primary);
    border-radius: 0.25rem;
    display: inline-block;
    position: relative;
    z-index: 1;
    /* prevents padding from adding to the width */
    box-sizing: border-box;
  }

  #stats-5 .cs-button-solid:before {
    content: "";
    position: absolute;
    height: 100%;
    width: 0%;
    background: #000;
    opacity: 1;
    top: 0;
    left: 0;
    z-index: -1;
    border-radius: 0.25rem;
    transition: width 0.3s;
  }

  #stats-5 .cs-button-solid:hover:before {
    width: 100%;
  }

  #stats-5 .cs-background {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 65%;
    z-index: -1;
  }

  #stats-5 .cs-background:before {
    /* Overlay */
    content: "";
    position: absolute;
    display: block;
    height: 100%;
    width: 100%;
    background: var(--zr-primary-lilac);
    opacity: 1;
    top: 0;
    left: 0;
    z-index: 1;
    border-radius: var(--button-border-radius);
    border: var(--button-border-stroke) solid var(--zr-fg);
  }

}

/* In-between - 500px */
@media only screen and (min-width: 31.25rem) {
  #stats-5 .cs-card-group {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    row-gap: 3.4375rem;
    column-gap: 6.25rem;
  }

  #stats-5 .cs-item {
    /* sets even spacing */
    width: 7.8125rem;
  }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #stats-5:before {
    height: 37.5%;
  }

  #stats-5 .cs-card-group {
    max-width: 100%;
    column-gap: 0;
    row-gap: 0;
    justify-content: space-around;
  }

  #stats-5 .cs-item {
    /* reset width */
    width: auto;
  }
}

.testimonial-slider {
  margin-bottom: 40px;
}

.testimonial {
  padding: 0 15px;

}

.testimonial .description {
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  line-height: 30px;
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
  border: 2px solid var(--zr-primary-lilac);
  border-radius: var(--button-border-radius);
}

.testimonial .description:after {
  content: "";
  width: 20px;
  height: 20px;
  background: #fff;
  position: absolute;
  bottom: -10px;
  left: 50%;
  border-bottom: 2px solid var(--zr-primary-lilac);
  border-right: 2px solid var(--zr-primary-lilac);
  transform: translateX(-50%) rotate(45deg);
}

.testimonial .title {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  color: var(--zr-dark-plum);
  margin: 0;
}

.testimonial .post {
  display: inline-block;
  font-size: 20px;
}

@media only screen and (max-width:360px) {

  .testimonial .title,
  .testimonial .post {
    font-size: 16px;
  }
}

[data-action] {
  display: block;
  margin: 10px auto;
  font-size: 17px;
  min-width: 3em;
  text-align: center;
  background: transparent;
  border: 0;
}

.tns-nav {
  text-align: center;
  margin: 10px 0;
}

.tns-nav>[aria-controls] {
  width: 9px;
  height: 9px;
  padding: 0;
  margin: 0 5px;
  border-radius: 50%;
  background: #ddd;
  border: 0;
}

.tns-nav>.tns-nav-active {
  background: var(--zr-primary-lilac);
}

.tns-horizontal.tns-subpixel>.tns-item {
  vertical-align: middle;
}