/*Animation*/
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/*Global styles*/
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to right, #fafafa, #eee);
  color: #333;
  margin: 0;
  padding: 1rem;
}

/*Container*/
.container {
  max-width: 600px;
  margin: auto;
  margin-top: 1vh;
  text-align: center;
  background: white;
  padding: 3rem;
  padding-top: 1rem;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.6s ease both;
}

/*Headings*/
h1 {
  text-align: center;
  margin-top: 0rem;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}


/*General link styling*/
a {
  display: inline-block;
  margin-top: 1rem;
  color: #cc0000;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  text-decoration: underline;
  color: #a30000;
}

.contact-link {
text-align: center;
margin-top: 1vh;
}

.contact-link a {
color: #666666c0;
}

.contact-link a:hover {

  text-decoration: underline;
  color:#424242c0;
  transform: scale(1.06);
;
}

/*Questions and labels*/
.question {
  margin-bottom: 0.8rem;
  animation: slideIn 0.5s ease both;
}

/*Buttons*/
button {
  display: block;
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  background: #cc0000;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 0.8rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background: #a30000;
  transform: scale(1.02);
}

/*Styled link as button*/
.button-link {
  display: inline-block;
  background: #cc0000;
  color: white;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.button-link:hover {
  background: #a30000;
}

/*Share section (i need to fix this shit later, it looks insane*/
#share-section {
  margin-top: 2rem;
  text-align: center;
}

#share-section button {
  margin: 0.5rem;
  background: #333;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#share-section button:hover {
  background: #000;
}

/*Progress bar*/
.progress-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.progress-bar {
  background-color: #ddd;
  border-radius: 10px;
  height: 12px;
  width: 100%;
  overflow: hidden;
}

.progress-fill {
  background-color: #cc0000;
  height: 100%;
  width: 0%; /* I'm controlling this inline via JS */
  border-radius: 10px 0 0 10px;
  transition: width 0.4s ease;
}


/*Responsive tweaks*/
@media (max-width: 480px) {
  .container {
    padding: 1.5rem 1rem;
  }

  nav ul {
    gap: 0.5rem;
  }

  nav a {
    font-size: 0.95rem;
  }

  button {
    font-size: 1rem;
    padding: 0.7rem;
  }

  h1 {
    font-size: 1.5rem;
  }
}
/*single image on page 2*/
.image-container {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  text-align: center;
}

.image-container img {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
 /* 4 x 4 images */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  width: 100%;
}

.photo-grid button {
  aspect-ratio: 1 / 1;
  padding: 0;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.photo-grid button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

