:root {
  /* Color Variables */
  --primary-color: #ab1d2d;
  --secondary-color: #e588bf;
  --accent-color: #96b8d3;
  --text-color: #ffffff;
  --hover-color: #fe2e24;
  --shadow-color: #9327379a;
  --click-scale: 0.95;
  --transition-speed: 0.3s;
  /*#f7776c*/
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, var(--secondary-color) 100%);
  min-height: 100vh;
  margin: 0;
  max-width: 100%;
}

.container {
  max-width: 1200px;
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

h1 {
  color: var(--primary-color);
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
  width: 100%;
}

.element-decoration {
  transition: all var(--transition-speed) ease;
  box-shadow: 0 8px 20px var(--shadow-color);
  position: relative;
  display: inline-block;
  padding: 18px 32px;
  margin: 4px;
  background: var(--primary-color);
  color: var(--text-color);
  text-decoration: none;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
}

.link-button {
  position: relative;
  display: inline-block;
  padding: 18px 32px;
  background: var(--primary-color);
  color: var(--text-color);
  text-decoration: none;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;

  transform: translateY(0);
}

.link-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--hover-color)
  );
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  z-index: 1;
}

.link-button span {
  position: relative;
  z-index: 2;
  transition: transform var(--transition-speed) ease;
}

.link-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.link-button:hover::before {
  opacity: 1;
}

.link-button:hover span {
  transform: scale(1.05);
}

.link-button:active {
  transform: scale(var(--click-scale)) translateY(0);
  box-shadow: 0 4px 10px var(--shadow-color);
}

.link-button:active span {
  transform: scale(0.95);
}

.loading {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin: 40px 0;
}

.authors-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  flex: 1 1;
  text-align: center;
  transition: transform 0.3s ease;
}

@media (max-width: 992px) {
  .card {
    flex: 1 1 350px;
  }

  .authors-section {
    gap: 30px;
  }
  .photo-small {
    width: 50% !important;
  }
}

.card:hover {
  transform: translateY(-10px);
}

.photo {
  width: 10vw;
  min-width: 128px;
  object-fit: cover;
  margin: 0 auto 15px;
  display: block;
}

.photo-small {
  width: 25%;
}

.round {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

.dw-border {
  border: 4px solid var(--primary-color);
}

.author-name {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 10px 0;
  font-weight: bold;
}

.author-bio {
  color: #666;
  line-height: 1.6;
  margin: 15px 0;
}

.link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.link:hover {
  color: var(--hover-color);
}
/*
----
*/

.img-container {
  position: relative;
  text-align: center;
  color: white;
}

.img-container-centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.footer {
  margin-top: auto;
  padding: 25px 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--primary-color);
  font-size: 0.9rem;
}

.footer a {
  color: var(--primary-color);
  text-decoration: none;
  margin: 0 12px;
  transition: color var(--transition-speed) ease;
}

.footer a:hover {
  color: var(--hover-color);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.footer .separator {
  margin: 0 8px;
  color: var(--primary-color);
}

@media (max-width: 600px) {
  .footer {
    padding: 18px 10px;
    font-size: 0.85rem;
  }

  .footer a {
    margin: 0 8px;
  }
}

.width100 {
  width: 100%;
}

.display-none {
  display: none;
  visibility: hidden;
}
.center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.progress-container {
  width: 100%;
  height: 20px;
  background-color: var(--secondary-color);
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0;
}
.progress-bar {
  height: 100%;
  width: 0%; /* Controlled by JavaScript */
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}
.padding0 {
  padding: 0;
}

/**
Image Loading
**/

.blur-container {
  position: relative;
  display: inline-block;
}
.blur-img {
  filter: blur(10px);
  opacity: 1;
  transition: opacity 0.3s ease-out;
}
.full-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease-in;
}
.full-img.loaded {
  opacity: 1;
}
