/* @font-face {
  font-family: PrimaryThinWebFont;
  src: url("../fonts/SourceCodePro-Light.ttf");
}
@font-face {
  font-family: PrimaryMediumWebFont;
  src: url("../fonts/SourceCodePro-Medium.ttf");
} */
:root {
  --primary-thin: Helvetica, sans-serif;
  --primary-medium: Helvetica, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
*::-moz-selection {
  color: rgb(255, 255, 255);
  background: rgb(33, 33, 228);
}

*::selection {
  color: rgb(255, 255, 255);
  background: rgb(33, 33, 228);
}
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgb(241, 241, 241);
}

::-webkit-scrollbar-thumb {
  background: rgb(136, 136, 136);
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(85, 85, 85);
}
@font-face {
  font-family: PrimaryThinWebFont;
  src: url("../fonts/FuturaPTLight.otf");
}
@font-face {
  font-family: PrimaryMediumWebFont;
  src: url("../fonts/FuturaPTLight.otf");
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--primary-medium), Helvetica, sans-serif !important;
}

input,
select,
textarea,
button,
p,
a {
  font-family: var(--primary-thin), Helvetica, sans-serif !important;
}

html {
  scroll-behavior: smooth;
}
html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--primary-thin), Helvetica, sans-serif;
  display: grid;
  grid-template-rows: 3.5rem auto fit-content(8rem);
  grid-template-areas:
    "header"
    "main"
    "footer";
}
header {
  grid-area: header;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgb(33, 33, 228), rgb(15, 15, 163));
  padding: 0 1rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.5rem;
  z-index: 100;
}
header h1 {
  color: rgb(255, 255, 255);
  margin-right: auto;
}
header .toggler {
  border-radius: 5px;
  padding: 3px;
  width: 35px;
  min-width: 35px;
  height: 30px;
  min-height: 30px;
  border: 2px solid rgb(255, 255, 255);
  display: flex;
  margin-right: 1rem;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
header .bar {
  height: 4px;
  width: 100%;
  background: rgb(255, 255, 255);
}
.main-nav__items {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  align-items: center;
}
.main-nav__cta,
.main-nav__link {
  display: block;
  text-decoration: none;
  font-size: 1rem;
  color: rgb(255, 255, 255);
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  border-radius: 8px;
  font-weight: bold;
  text-transform: uppercase;
}
.main-nav__cta:hover,
.main-nav__link:hover {
  background: rgb(255, 255, 255);
  color: rgb(24, 24, 207);
}
.main-nav__cta {
  background: none;
  border: none;
}
.main-nav__link-icon {
  font-family: Arial, Helvetica, sans-serif !important;
  text-decoration: none;
  color: rgb(255, 255, 255);
  display: block;
  font-size: 0.8rem;
  width: 1.1rem;
  height: 1.1rem;
  text-align: center;
  border-radius: 50%;
  border: 1px solid rgb(255, 255, 255);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 0.5rem;
}
.main-nav__item-acc {
  display: block;
}
.drop-down {
  position: relative;
}
.drop-down__btn {
  border-radius: 0;
}
.drop-down__btn:hover {
  background: none;
  color: rgb(255, 255, 255);
}
.drop-down__menu {
  position: absolute;
  right: 0;
  width: 10rem;
  padding-top: 1.2rem;
  display: none;
}
.drop-down__menu-items {
  background: rgb(230, 230, 230);
  padding: 0.2rem;
}
.drop-down__menu-items form {
  width: 100%;
}
.drop-down__menu-items .main-nav__link,
.drop-down__menu-items .main-nav__cta {
  width: 100%;
  color: rgb(24, 24, 24);
  padding: 0.5rem 0.3rem;
  display: block;
  border-radius: 0;
  text-align: left;
  font-size: 0.8rem;
}
.drop-down__menu-items .main-nav__link:hover,
.drop-down__menu-items .main-nav__cta:hover {
  background: rgb(33, 33, 228);
  color: rgb(255, 255, 255);
}
.drop-down:hover .drop-down__menu,
.drop-down__menu:hover {
  display: block;
}
.side-nav {
  position: fixed;
  top: 3.5rem;
  left: 0;
  height: calc(100vh - 3.5rem);
  overflow-y: auto;
  width: 15rem;
  transform: translateX(-100%);
  background: rgb(255, 255, 255);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  z-index: 99;
  padding-top: 1rem;
  transition: all 50ms linear;
}
.side-nav-active {
  transform: translateX(0);
}
.side-nav__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.side-nav__link {
  position: relative;
  text-decoration: none;
  display: block;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  color: rgb(33, 33, 228);
  font-weight: bold;
}
.side-nav__link:hover,
.side-nav__link:focus {
  background: rgb(33, 33, 228);
  color: rgb(255, 255, 255);
}
.side-nav__item .sub-nav {
  height: 0;
  overflow: hidden;
  transition: all 150ms ease-in-out;
}
.side-nav__item .sub-nav-active {
  height: auto;
}
.side-nav__item .sub-nav__items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.side-nav__item {
  cursor: pointer;
}
.side-nav__item .sub-nav__link {
  text-decoration: none;
  color: rgb(33, 33, 228);
  display: block;
  padding: 0.3rem 0 0.3rem 2rem;
  font-size: 0.9rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.side-nav__item .sub-nav__link:hover,
.side-nav__item .sub-nav__link.active {
  background: rgb(33, 33, 228);
  color: rgb(255, 255, 255);
}
.backdrop {
  display: none;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 98;
  transition: all 50ms linear;
}
.backdrop-active {
  display: block;
}
.side-nav__item .sub-nav__link {
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-size: 1rem;
}
.side-nav__username {
  display: none;
}
.side-nav__username h2 {
  margin-top: 0.3rem;
}
.side-nav__username p {
  margin-bottom: 0;
}
.side-nav__item-acc {
  display: none;
}
main {
  grid-area: main;
}
.page-head {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1rem;
  position: relative;
}
.page-head__title{
  text-align: center;
}
.page-head__title h2,
.page-head__title h3,
.page-head h2 {
  margin: 0;
  font-size: 2rem;
}
.page-head__title h3{
  font-size: 1rem;
}
.page-head__back-ctas,
.page-head__ctas {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
}
.page-head__back-ctas {
  right: unset;
  left: 1rem;
}
.page-head__back-ctas a,
.page-head__ctas a {
  text-decoration: none;
  font-size: 1rem;
  background: rgb(33, 33, 228);
  color: rgb(255, 255, 255);
  padding: 0.5rem 1rem;
  font-weight: bolder;
  cursor: pointer;
  margin: 0 0.3rem;
}
.page-head__back-ctas a:hover,
.page-head__ctas a:hover {
  background: rgb(28, 28, 199);
}
footer {
  grid-area: footer;
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  background: linear-gradient(270deg, rgb(20, 20, 20), rgb(50, 50, 50));
}
footer p {
  margin: 0;
  color: rgb(255, 255, 255);
}
.spacer {
  height: var(--space);
}

.text-center {
  text-align: center;
}
.m-x {
  margin-right: var(--mx);
  margin-left: var(--mx);
}
.m-y {
  margin-top: var(--my);
  margin-bottom: var(--my);
}
.flash-msg {
  display: block;
  width: 20rem;
  margin: 0 auto;
  text-align: center;
  border: 2px solid red;
  padding: 0.3rem 0.5rem;
  background: rgba(255, 0, 0, 0.2);
  margin-bottom: 0.5rem;
}
.flash-msg p,
.success-msg p {
  margin: 0;
}
.success-msg {
  border: 2px solid rgb(0, 142, 26);
  background: rgba(8, 154, 0, 0.583);
  color: rgb(255, 255, 255);
  margin-bottom: 0.5rem;
}
.btn {
  display: inline-block;
  padding: 0.3rem 1rem;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: rgb(0, 50, 255);
  color: rgb(255, 255, 255);
}
.btn-danger {
  background: rgb(255, 0, 50);
  color: rgb(255, 255, 255);
}
.loader-wrapper {
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 200;
}
.loader {
  border: 12px solid #0f0f0f;
  border-radius: 50%;
  border-top: 12px solid rgb(0, 50, 255);
  border-bottom: 12px solid rgb(0, 50, 255);
  width: 90px;
  height: 90px;
  -webkit-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
}
.image-viewer img {
  display: block;
  margin: 1rem auto;
  max-width: 80%;
}
.info-div {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
}
.info-div__item {
  margin: 0 0.5rem;
}
.info-div__item span {
  margin: 0 0.2rem;
}
.pagination{
  margin: 1rem 0;
  text-align: center;
}
.pagination a{
  text-decoration: none;
  color: rgb(15, 15, 163);
  margin: 0 0.5rem;
}
.reload-btn{
  display: block;
  fill: rgb(255,255,255);
  font-size: 1.5rem;
  text-decoration: none;
  margin: 0.5rem 0.8rem;
  cursor: pointer;
}
.widgets{
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
}
.widget{
  height: 10rem;
  width: 15rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 0.5rem;
}
.widget:nth-last-of-type(even){
  background: rgb(125, 151, 255);
}
.widget:nth-last-of-type(odd){
  background: rgb(168, 185, 255);
}
.widget-title{
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
}
.widget-value{
  font-size: 1.2rem;
  margin: 0;
}
.quick-links{
  width: 70%;
  margin: 0 auto;
}
.quick-links__title{
  text-align: center;
  margin-bottom: 0.5rem;
}
.quick-links hr{
  margin: 1rem 0;
}
.quick-links__links{
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
}
.quick-links__links .quick-link{
  text-decoration: none;
  display: block;
  padding: 0.5rem 1rem;
  /* width: 14rem; */
  margin: 0.5rem 0.2rem;
  text-align: center;
  border-radius: 0.3rem;
  box-shadow: 0 3px 5px rgb(0,0,0,0.3);
  background: rgb(0, 50, 255);
  color: rgb(255,255,255);
  transition: all 150ms linear;
}
.quick-links__links .quick-link:focus,
.quick-links__links .quick-link:hover{
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}
.loader-backdrop{
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background: rgb(0,0,0,0.95);
  z-index: 1000;
  transition: all 250ms linear;
}
.loader-backdrop.active{
  display: flex;
}
.loader {
  border: 16px solid #000000; /* Light grey */
  border-top: 16px solid #3498db; /* Blue */
  border-bottom: 16px solid #3498db;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 1000ms linear infinite;
}
@media (max-width: 40rem) {
  header {
    padding: 0 0.5rem;
  }
  header h1 {
    font-size: 1.4rem;
    font-family: --primary-medium;
  }
  header .toggler {
    padding: 2px;
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
  }
  header .bar {
    height: 4px;
    width: 100%;
    background: rgb(255, 255, 255);
  }
  .main-nav__cta,
  .main-nav__link {
    font-size: 0.8rem;
    padding: 0.2rem;
  }
  .main-nav__item-acc {
    display: none;
  }
  .side-nav {
    padding: 0.3rem;
    padding-top: 0;
  }
  .side-nav__link {
    padding: 0.8rem 1rem;
    font-size: 1.2rem;
    border-top: 2px solid rgb(200, 200, 200);
  }
  .side-nav__username,
  .side-nav__item-acc {
    display: block;
  }
  footer {
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .page-head {
    justify-content: center;
    flex-direction: column;
    padding: 0.5rem;
  }
  .page-head h2 {
    margin-bottom: 0.5rem;
  }
  .page-head__back-ctas,
  .page-head__ctas {
    position: static;
    transform: translateY(0);
  }
  .widget{
    margin: 0.5rem 0;
  }
  .quick-links__links .quick-link{
    width: 90%;
  }
}
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
