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

html, body {
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

/* Background */
body {
    background-image: url("images/bgImage.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

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

    color: white;
}

/* Overlay for contrast */
.overlay {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 40px 60px;
    border-radius: 10px;
    text-align: center;
}

/* Header */
.overlay h1 {
    margin-bottom: 30px;
    font-size: 2.5rem;
}

/* List */
.report-list {
    list-style: none;
}

.report-list li {
    margin: 15px 0;
}

/* Links styled as buttons */
.report-list a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    padding: 10px 20px;
    display: inline-block;

    border: 2px solid white;
    border-radius: 6px;

    transition: all 0.3s ease;
}

.report-list a:hover {
    background-color: white;
    color: black;
}

.accordion {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.acc-btn {
    width: 100%;
    margin: 10px 0;
    padding: 10px 20px;

    background: transparent;
    color: white;

    border: 2px solid white;
    border-radius: 6px;

    cursor: pointer;
    font-size: 1.1rem;

    /* removes default button look */
    outline: none;

    transition: background 0.25s ease, transform 0.15s ease;
}

.acc-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}


.acc-btn.active {
    background: rgba(255, 255, 255, 0.15);
}

.acc-panel {
    display: none;
    padding: 10px;
    margin-bottom: 10px;

    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255,255,255,0.35);
}

.acc-panel.open {
    display: block;
}

.img-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.img-grid img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
}

/* HOME button as link */
.home-btn {
    display: block;
    text-decoration: none;
    text-align: center;
}

/* Optional: slightly different hover to hint navigation */
.home-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Make images look clickable */
.img-grid img {
  cursor: pointer;
}

/* Lightbox overlay */
.lightbox {
  display: none;              /* hidden by default */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;

  justify-content: center;
  align-items: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

/* Big image */
.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.4);
}

/* Close button */
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 26px;
  font-size: 44px;
  color: white;
  cursor: pointer;
  user-select: none;
}

/* Hide project link by default */
.project-link {
  margin-top: 12px;
  text-align: center;
  display: none;
}

/* Show link ONLY when Challenges panel is open */
#challenges.open .project-link {
  display: block;
}

.project-btn {
  display: inline-block;
  padding: 10px 18px;
  border: 2px solid white;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-size: 1rem;

  transition: background 0.25s ease, transform 0.15s ease;
}

.project-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

