/* Basic resets and typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-image: url('webp/RiderWaiteSmith/background.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 20px;
  margin: auto;
  width: 80%;
  max-width: 1200px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.01);
  opacity: 0.01;
  pointer-events: auto;
  transition: opacity 0.5s ease;
  animation: colorChange 20s infinite;
  animation-play-state: paused;
}

.card a {
  display: block;
  width: 268px;
  height: 42px;
  line-height: 42px;
  background-color: #2d403c;
  border: 1px solid #d2bca6;
  color: #d2bca6;
  font-family: 'EB Garamond', serif;
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  margin: 10px auto;
}

.card {
  flex: 1 0 auto;
  margin: 10px;
  position: relative;
  text-align: center;
  max-width: 327px;
}

.image-container {
  position: relative;
  width: 100%;
  height: auto;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

.question-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px auto;
  max-width: 400px;
}

.question-form input[type="text"] {
  width: 100%;
  max-width: 880px;
  height: 62px;
  font-family: 'EB Garamond', serif;
  font-size: 36px;
  color: #000;
  background-color: white;
  border: 1px solid #d2bca6;
  padding: 10px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.question-form input::placeholder {
  color: #8a8989;
  font-family: 'EB Garamond', serif;
  font-size: 36px;
}

.question-form button {
  width: 400px;
  height: 62px;
  background-color: #136915;
  border: 1px solid #d2bca6;
  color: #d2bca6;
  font-family: 'EB Garamond', serif;
  font-size: 54px;
  font-weight: bold;
  text-align: center;
  padding: 0;
  line-height: 62px;
  cursor: pointer;
}

#read-button:disabled {
  background-color: #828884;
  cursor: not-allowed;
}

#read-button {
  background-color: #136915;
  cursor: pointer;
}

@keyframes colorChange {
  0% { background-color: orange; }
  25% { background-color: red; }
  50% { background-color: purple; }
  75% { background-color: green; }
  100% { background-color: blue; }
}

@media (max-width: 1050px) {
  /* Skalér alle elementer ned med 50% */
  body {
    font-size: 50%;
  }

  .card-container {
    gap: 5px;
    padding: 10px;
  }

  .card a {
    width: 134px;
    height: 21px;
    line-height: 21px;
    font-size: 18px;
    margin: 5px auto;
  }

  .card {
    max-width: 163.5px;
  }

  .question-form input[type="text"] {
    max-width: 440px;
    height: 31px;
    font-size: 18px;
    margin-bottom: 5px;
  }

  .question-form button {
    width: 200px;
    height: 31px;
    font-size: 27px;
    line-height: 31px;
  }
}
