:root {
  --agh-green-rgb: 0 105 60;
  --agh-red-rgb: 167 25 48;

  --primary-color: #02324b;
  --primary-light-color: #0a6997;
  --primary-lighter-color: #1f91c8;
  --secondary-color: #7b3b37;

  --primary-text: rgb(52 55 60);
  --secondary-text: #fffffe;

  --shadow-md: 0 6px 10px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    'Noto Sans',
    'Liberation S';
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

button {
  font-family: inherit;
}

.main-content {
  flex-grow: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)),
    url('/static/resources/img/dzien-agh-bg-horizontal.webp');
  background-size: cover;
  background-position: center;
}

.page-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 12vw, 8rem) 0.5rem;

  color: var(--primary-text);
}

.navbar {
  background-color: black;
  border-bottom: 4px solid rgb(var(--agh-green-rgb));
  height: 90px;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.navbar-logo {
  color: white;
  font-weight: 700;
  text-decoration: none;

  > img {
    height: 80px;
    width: auto;

    filter: invert(1);
  }
}

.navbar-links {
  display: flex;
  gap: 1rem;

  a {
    color: white;
    text-decoration: none;
    font-weight: 500;

    &:hover {
      text-decoration: underline;
    }
  }
}

.login-btn {
  background-color: white;
  border-radius: 1.5rem;
  padding: 0.25rem 1.25rem;
  color: black;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  align-content: center;
  white-space: nowrap;
}

.login-btn:hover {
  text-decoration: underline black 1px;
}

#logout-btn {
  display: none;
}

.navbar-login-container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
#footer {
  background-color: black;
  color: white;
  border-top: 4px solid rgb(var(--agh-red-rgb));
  font-weight: 400;
  line-height: 24px;
}

.footer-container {
  position: relative;
  align-items: center;
  height: 100%;
}

.declaration-container {
  background: #fff;
  color: #333;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease-in-out;
}

.declaration-link {
  color: #1a90ff;
}

.container {
  width: 100%;
  margin: 0 auto;

  @media (min-width: 576px) {
    max-width: 540px;
  }

  @media (min-width: 768px) {
    max-width: 720px;
  }

  @media (min-width: 992px) {
    max-width: 960px;
  }

  @media (min-width: 1200px) {
    max-width: 1140px;
  }
}

.footer-row {
  padding-bottom: 1rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
}

.footer-col {
  padding-bottom: 1.5rem;
  flex: 0 0 auto;
  width: 100%;
}

.footer-logos {
  display: flex;
  justify-content: center;
}

.footer-col,
.footer-copyright {
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .footer-col {
    padding-bottom: 0;
    flex: 0 0 auto;
    width: 25%;
  }
  .footer-logos {
    justify-content: flex-start;
  }

  .footer-container::before {
    position: absolute;
    inset: 1.5rem 0 0;
    height: calc(100% - 3rem);
    pointer-events: none;
    content: '';

    background: url('/static/resources/img/footer-art-hollow.png?1ac28edd8712') no-repeat
      right 1rem center;
    background-size: contain;
  }
}

.list-unstyled {
  padding-left: 0;
  list-style: none;
  margin-top: 0;
  margin-bottom: 1rem;
}

.list-item {
  padding-left: 0.5rem;
  margin-bottom: 1rem;
  border-left: 2px solid white;
}

@media (min-width: 992px) {
  .list-item {
    margin-bottom: 0.5rem;
  }
}

.list-item-link {
  color: #f8f9fa;
  text-decoration-color: #f8f9fa;
  text-decoration: none;
}

.list-item-link:hover {
  text-decoration: underline;
}

.footer-copyright {
  padding-top: 1.5rem;
  flex: 0 0 auto;
  width: 100%;
}

/* shared styles */
.btn-primary {
  padding: 0.75rem 1.25rem;
  color: var(--secondary-text);
  background-color: #338763;
  border-radius: 0.75rem;
  border: none;

  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;

  transition: background-color 0.2s ease;

  &:hover {
    text-decoration: underline;
    background-color: rgb(var(--agh-green-rgb) / 0.9);
  }

  @media (min-width: 576px) {
    font-size: 1rem;
  }
}

.link {
  color: rgb(var(--agh-green-rgb));
}
