body {
  margin: 0;
  padding: 20px;
  background-color: #b6b6ae;
  font-family: Arial, sans-serif;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#experimentHeader {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.header-left {
  flex: 1;
  padding-right: 20px;
  border-right: 1px solid #666;
}

.header-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.experiment-explanation {
  margin-bottom: 20px;
}

.experiment-explanation p {
  margin: 8px 0;
}

#startButton {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #2f4858;
  color: rgb(231, 231, 231);
  border: none;
  cursor: pointer;
  margin: 10px;
}

/* add disabled state (greyed out, mouse cursor different) */
#startButton:disabled {
  background-color: #666;
  cursor: not-allowed;
}

#trialCounter {
  font-size: 14px;
}

#promptSection {
  text-align: center;
  margin: 0;
}

#promptImage {
  height: 205px;
  background-color: #98a096;
  margin: 0 auto;
  max-width: 100%;
  scale: 0.5;
  opacity: 1;
  transition: opacity 0.1s ease-in-out;
}

#promptText {
  background-color: #98a096;
  padding: 20px;
  margin: 0 auto;
  width: 465px;
  text-align: left;
  font-family: monospace;
  font-size: 16px;
  opacity: 1;
  transition: opacity 0.1s ease-in-out;
}

#promptImage.fade,
#promptText.fade {
  opacity: 0;
}

#imageGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

.grid-item {
  aspect-ratio: 465/265;
  cursor: pointer;
  transition:
    opacity 0.1s ease-in-out,
    transform 0.1s ease-in-out;
  perspective: 1000px;
  opacity: 1;
}

.grid-item.fade {
  opacity: 0;
}

.grid-item:hover {
  z-index: 1;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid #666;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.text-item {
  background-color: #f0f0f0;
  padding: 15px;
  border: 2px solid #666;
  font-family: monospace;
  font-size: 14px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Style for the prompt items to keep them straight */
#promptImage,
#promptText {
  transform: rotate(0deg) !important;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
}
