body {
  width: 100%;
  min-height: 100vh;
}

header {
  display: flex;
  width: 100%;
  padding: 1rem;
  color: var(--bs-white);
  background-color: var(--bs-gray);
  justify-content: space-between;
  align-items: center;
}

main {
  display: flex;
  min-height: 100%;
}

aside {
  background-color: var(--bs-gray);
  min-width: 20%;
}

aside ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

aside ul li {
  background-color: var(--bs-gray);
  color: var(--bs-white);
  padding: 1rem;
  cursor: pointer;
  transition: 0.5s;
}

aside ul li.active,
aside ul li:hover {
  filter: brightness(0.7);
  transition: 0.5s;
}

#main-content {
  padding: 2rem;
  flex-grow: 1;
}

#container-login {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#container-login .card {
  min-width: 30%;
}

.error-msg {
  color: var(--bs-danger);
}

/*LINKS*/
#links-list {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 50%;
}

.link-element-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.link-element-header-container button {
  margin-left: 1rem;
}

.copy-box {
  width: 1ch;
  height: 1ch;
  display: none;
}

#notification-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

#notification {
  opacity: 0;
  margin: 1rem;
  position: fixed;
  z-index: 5;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
  transition: 0.5s;
}

#notification.visible {
  opacity: 1;
  transition: 0.5s;
}


/* Hosted page image galleries */
.page-gallery {
  margin-top: 2rem;
}

.page-gallery .gallery-wrapper {
  display: grid;
  gap: 1rem;
}

.page-gallery.layout-grid .gallery-wrapper {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.page-gallery.layout-flex .gallery-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.page-gallery.layout-flex .gallery-item {
  flex: 1 1 220px;
}

.page-gallery.layout-masonry .gallery-wrapper {
  display: block;
  column-count: 3;
  column-gap: 1rem;
}

.page-gallery.layout-native-masonry .gallery-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
}

.page-gallery.layout-hero .gallery-wrapper {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-gallery .gallery-item {
  margin: 0;
  overflow: hidden;
  break-inside: avoid;
}

.page-gallery.layout-masonry .gallery-item {
  margin: 0 0 1rem;
}

.page-gallery .gallery-item a {
  display: block;
}

.page-gallery .gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-gallery.layout-grid .gallery-item img,
.page-gallery.layout-flex .gallery-item img {
  aspect-ratio: 4 / 3;
}

.page-gallery.layout-hero .gallery-item.is-hero {
  grid-column: 1 / -1;
}

.page-gallery.layout-hero .gallery-item.is-hero img {
  max-height: 70vh;
  object-fit: contain;
  background: #f4f4f4;
}

/* Native CSS Grid Masonry when the browser implements it. */
@supports (grid-template-rows: masonry) {
  .page-gallery.layout-native-masonry .gallery-wrapper {
    grid-template-rows: masonry;
  }
}

/* Hosted page content: preserve exactly the line breaks entered in the textarea. */
.page-content-text {
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: break-word;
}

@media (max-width: 800px) {
  .page-gallery.layout-masonry .gallery-wrapper {
    column-count: 2;
  }

  .page-gallery.layout-hero .gallery-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .page-gallery.layout-masonry .gallery-wrapper {
    column-count: 1;
  }

  .page-gallery.layout-grid .gallery-wrapper,
  .page-gallery.layout-native-masonry .gallery-wrapper {
    grid-template-columns: 1fr;
  }
}
