@media only screen and (min-width: 768px) {
}
@media only screen and (min-width: 1024px) {
}
@media only screen and (min-width: 1280px) {
}
@media only screen and (min-width: 1580px) {
}

body {
  margin: 0;
}

body.container {
  display: grid;
  grid-template-rows: auto auto auto 1fr 100px;
  grid-template-columns: 1fr 100px;
  grid-template-areas:
    "header menu-button"
    "menu menu"
    "breadcrumbs breadcrumbs"
    "content content"
    "footer footer";
  background-color: var(--secondary-background-color);
  color: var(--primary-text-color);
  font-family: Comfortaa;
  max-width: 100vw;
}

@media only screen and (min-width: 768px) {
  body.container {
    display: grid;
    grid-template-rows: auto auto 1fr 100px;
    grid-template-columns: var(--menu-width-small) 1fr 1fr 1fr 1fr;
    grid-template-areas:
      "menu header header header header"
      "menu breadcrumbs breadcrumbs breadcrumbs breadcrumbs"
      "menu content content content content"
      "menu footer footer footer footer";
  }
}

@media only screen and (min-width: 1024px) {
  body.container {
    display: grid;
    grid-template-columns: var(--menu-width-big) 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-areas:
      "menu header header header header header header"
      "menu breadcrumbs breadcrumbs breadcrumbs breadcrumbs breadcrumbs breadcrumbs"
      "menu content content content content content content"
      "menu footer footer footer footer footer footer";
  }
}

/* header */

div.header {
  grid-area: header;
  place-content: center;
  background-color: var(--primary-background-color);
  padding-left: 1rem;
  padding-right: 1rem;
}

div.header h1 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.menu-button {
  display: grid;
  grid-area: menu-button;
  place-self: center;
  background-color: var(--secondary-background-color);
  width: 100%;
  height: 100%;
  justify-items: center;
  align-items: center;
}

@media only screen and (min-width: 768px) {
  .menu-button {
    display: none;
  }
}

@media only screen and (min-width: 1024px) {
}

/* menu */

div.menu {
  grid-area: menu;
  background-color: var(--secondary-background-color);
  display: grid;
  grid-template-areas:
    "menu-title"
    "menu-content";
  grid-template-rows: auto 1fr;
  transition: width 0.5s;
  transition-timing-function: ease-out;
}

div.menu .menu-title {
  grid-area: menu-title;
}
div.menu .menu-content {
  grid-area: menu-content;
}

div.menu h2 {
  margin-top: 0;
  margin-bottom: 0;
  visibility: hidden;
  font-size: 2em;
  height: 2px;
}

div.menu .menu-content {
  margin-block-start: 0;
  margin-block-end: 0;
  padding-inline-start: 0;
  max-height: 0;
  overflow: hidden;
  transition-timing-function: ease-in-out;
  transition: 0.5s ease-in-out;
}
div.menu .menu-content.open {
  margin-block-start: 0.25rem;
  margin-block-end: 0.25rem;
  padding-inline-start: 0;
  max-height: 90vh;
  overflow: auto;
  animation: hide-scroll 0.5s;
}

@keyframes hide-scroll {
  0%,
  100% {
    overflow: hidden;
  }
}

div.menu ul {
  margin-block-start: 0;
  margin-block-end: 0;
  padding-inline-start: 0;
}

div.menu ul:not(:last-child) {
  margin-bottom: 1rem;
}

div.menu ul > li {
  list-style-type: none;
  font-size: 1.3rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
div.menu ul > li.active {
  background-color: var(--tertiary-background-color);
}

div.menu ul > li > a {
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: center;
  color: var(--primary-text-color);
  text-decoration: none;
}
div.menu ul > li > a:hover {
  color: var(--primary-text-color-hover);
  text-decoration: underline;
}

div.menu ul > li > a > i {
  justify-self: center;
  font-size: 1.1rem;
}

.menu-button a.close-button {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-text-color);
  text-decoration: none;
  transition: 0.5s;
}
.menu-button a.close-button:hover {
  color: var(--primary-text-color-hover);
}

.menu-page {
  width: max-content;
}
.menu-page ul {
  list-style: none;
}
.menu-page ul li {
  padding: 0.25rem;
}
.menu-page ul li a {
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: center;
}

@media only screen and (min-width: 768px) {
  div.menu {
    width: var(--menu-width-small);
    position: sticky;
    height: 100vh;
    overflow: auto;
    top: 0;
  }
  /* div.menu h2 {
    display: block;
    visibility: hidden;
    height: initial !important;
    margin-block-start: 1rem !important;
    margin-block-end: 1rem !important;
  } */

  div.menu .menu-content {
    /* margin-block-start: 0.25rem; */
    margin-block-start: 1.5rem !important;
    margin-block-end: 0.25rem;
    max-height: 1000px;
    transition: none;
    overflow: unset;
  }

  div.menu ul > li {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }
}

@media only screen and (min-width: 1024px) {
  div.menu {
    width: var(--menu-width-big);
  }
}

/* breadcrumbs */

nav.breadcrumbs {
  grid-area: breadcrumbs;
  background-color: var(--primary-background-color);
  padding-top: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

nav.breadcrumbs ul {
  list-style: none;
  margin-block-start: 0;
  margin-block-end: 0;
  padding-inline-start: 0;
}

nav.breadcrumbs ul li {
  float: left;
}

nav.breadcrumbs ul li:not(:first-child):before {
  content: "/";
  margin: 0 0.5rem;
}

/* content */

div.content {
  grid-area: content;
  background-color: var(--primary-background-color);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media only screen and (min-width: 768px) {
}

@media only screen and (min-width: 1024px) {
}

/* footer */

div.footer {
  grid-area: footer;
  display: grid;
  grid-template-columns: 1fr;
  /* grid-template-areas:
    "social-media"
    "footer-content"; */
  grid-template-areas: "footer-content";
  background-color: var(--secondary-background-color);
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
}

/* div.footer div.social-media {
  grid-area: social-media;
  justify-items: center;
}
div.social-media div.social-media-icons i {
  padding: 0.5rem;
} */

div.footer div.footer-content {
  grid-area: footer-content;
  align-content: center;
  justify-items: center;
}

@media only screen and (min-width: 768px) {
  div.footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* grid-template-areas: "social-media social-media footer-content footer-content"; */
    grid-template-areas: "footer-content footer-content footer-content footer-content";
  }
}

@media only screen and (min-width: 1024px) {
  div.footer {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* grid-template-areas: "footer-1 social-media social-media footer-content footer-content footer-2"; */
    grid-template-areas: "footer-1 footer-content footer-content footer-content footer-content footer-2";
  }
}

/* links */

a {
  color: var(--primary-text-color-hover);
  text-decoration: none;
}

a.remove {
  color: var(--remove-buttonlink-text-color);
}
a.remove:hover {
  color: var(--remove-button-background-color-hover);
}

a:hover {
  color: var(--primary-link-color);
  text-decoration: underline;
}

div.back-link {
  margin-top: 1rem;
}
div.back-link a i {
  margin-right: 0.25rem;
}

/* alerts */

.alert {
  border-radius: 0.4rem;
  border: 1px solid;
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.alert *:not(:last-child) {
  padding-bottom: 0.5rem;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}
.alert.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}
.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}
.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.alert a {
  text-decoration: underline;
  font-weight: 600;
}
.alert.alert-success a {
  color: #0b2e13;
}
.alert.alert-danger a {
  color: #491217;
}
.alert.alert-warning a {
  color: #533f03;
}
.alert.alert-info a {
  color: #062c33;
}

.alert p {
  margin-top: 0;
  margin-bottom: 0;
}

#PopupNotificationContainer {
  position: fixed;
  z-index: 100;
  top: 1rem;
  right: 1rem;
  display: grid;
  justify-items: end;
  row-gap: 0.25rem;
}
.alert.popup {
  position: relative;
  display: none;
}
#PopupNotificationContainer .alert.popup {
  display: block;
}
.alert.popup a.popup-close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  padding: 0.1rem 0.2rem;
  border: 2px groove var(--primary-background-color);
  border-radius: 100%;
  background-color: inherit;
  cursor: pointer;
}
.alert.popup a.popup-close:hover {
  border-style: outset;
  box-shadow: 0.1rem 0.1rem 1rem var(--tertiary-background-color);
}
.alert.popup a.popup-close:active {
  border-style: inset;
  box-shadow: none;
}

/* pager */

.pager {
  display: flex;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  /* max-width: 50rem;
  margin-left: auto;
  margin-right: auto; */
}
.pager-previous,
.pager-count,
.pager-next {
  width: calc(100% / 3);
  display: flex;
  align-items: center;
}

.pager-previous {
  justify-content: start;
}

.pager-count {
  justify-content: center;
}

.pager-next {
  justify-content: end;
}

.pager-previous a,
.pager-next a {
  padding: 0.25rem 0.5rem;
  border: solid 1px;
  min-width: 3rem;
  text-align: center;
}

.pager a.button {
  display: unset;
}

.pager a span {
  display: none;
}

@media only screen and (min-width: 768px) {
  .pager a span {
    display: unset;
  }

  .pager-previous a i {
    padding-right: 0.25rem;
  }
  .pager-next a i {
    padding-left: 0.25rem;
  }
}
