* {
  box-sizing: border-box;
}

html {
  font-family: "Oxygen Mono", monospace;
  background:
    radial-gradient(
      circle at 18% 20%,
      rgba(48, 105, 133, 0.3) 0%,
      rgba(48, 105, 133, 0.2) 18%,
      rgba(48, 105, 133, 0.08) 38%,
      transparent 58%
    ),
    radial-gradient(
      circle at 82% 72%,
      rgba(118, 72, 151, 0.26) 0%,
      rgba(118, 72, 151, 0.18) 20%,
      rgba(118, 72, 151, 0.07) 42%,
      transparent 62%
    ),
    radial-gradient(
      ellipse at 55% 45%,
      rgba(35, 82, 105, 0.14) 0%,
      rgba(35, 82, 105, 0.07) 35%,
      transparent 68%
    ),
    linear-gradient(
      125deg,
      #010a11 0%,
      #07141e 22%,
      #0b1a26 45%,
      #0d2533 70%,
      #102c3b 100%
    );
  background-attachment: fixed;

}

body {
  margin: 0;
  min-height: 100vh;
  color: #fbfdff;
  
  line-height: 1.7;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: #fbfdff;
  font-weight: 400;
}

#main-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  min-height: 5rem;
  padding: 0 5%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(11, 26, 38, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#main-navigation a {
  text-decoration: none;
  color: #e5f1ff;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

#main-navigation a:hover,
#main-navigation a:active {
  color: #daf6ff;
}

#main-navigation h1 {
  margin: 0;
  font-size: 1.2rem;
}

#main-navigation .brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

#main-navigation .brand-block .current-user {
  color: #cfe2f6;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}

#main-navigation h1.brand a {
  font-size: inherit;
  letter-spacing: 0.02em;
}

#main-navigation nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

#main-navigation nav a {
  position: relative;
  text-transform: uppercase;
}

#main-navigation nav form {
  margin: 0;
}

#main-navigation nav .nav-separator {
  color: rgba(255, 255, 255, 0.5);
  user-select: none;
}

#main-navigation nav .logout-form {
  margin-left: 0.5rem;
}

#main-navigation nav button {
  padding: 0;
  border: 0;
  color: #e5f1ff;
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

#main-navigation nav button:hover,
#main-navigation nav button:focus-visible {
  color: #daf6ff;
}

#main-navigation nav a + a::before {
  content: "";
  position: absolute;
  left: -0.85rem;
  top: 50%;
  width: 1px;
  height: 1rem;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.32);
}

body > h1,
body > h2,
body > ul,
body > form,
body > .pagination {
  width: min(calc(90% - 2rem), 760px);
  margin-right: auto;
  margin-left: auto;
}

body > h1,
body > h2 {
  margin-top: 4rem;
}


.alert {
    position: fixed;
    left: 50%;
    transform: translate(-50%, -50%);

    min-width: 300px;
    max-width: 500px;

    display: flex;
    align-items: center;

    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    
    text-align: center;
    z-index: 9999;

    animation: popupOut 0.5s ease-out 6s forwards;
}


@keyframes popupOut {
   
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.alert-close {
    width: 10%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    background: transparent;
    border: none;

    font-size: 24px;
    cursor: pointer;

    opacity: 0.6;
}


