h1 {
  font-size: 6vh;
  margin-bottom: 0;
  margin-top: 0;
}


h2 {
  font-style: italic;
  color: red;
  margin-top: 0;
  font-size: 4vh;
  margin-bottom: 1vh;
  text-align: center;
}

p {
  display: flex;
  line-height: 1.5;
  margin: 1vh;
  flex-direction: column;
  max-width: 1200px;
  font-size: 20px;
  color: black ;

}

body {

  font-family: Arial, sans-serif;
  background-image: url("./images/forest.jpg");
  background-size: cover;
}


.page-wrapper {
  overflow: auto; /* Enable scrolling */
  scrollbar-width: none; /* For Firefox */
}

.page-wrapper::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, and Edge */
}

::-webkit-scrollbar { display: none; }


.instructions-container {
  display: flex;
  text-align: justify;
  overflow: scroll;

}


#game-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
}


#clickToBegin {
  background-color: rgba(0, 0, 0, 0.5);
  color: red;
  font-size: 3vh;
  text-align: center;
}


#start-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: scroll;
}

#imageDisplay {
  width: 25vw;
  height: auto;
  margin-top: 10vh;
  display: none;
  border: 4vh solid transparent;
  border-image: linear-gradient(to bottom, #f80505ee, #1d04f8) 1;
  margin-bottom: 15px;
}

#quiz-container {
  display: grid;
  grid-template-columns: auto auto auto auto;
  grid-template-rows: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  justify-content: center;
  grid-gap: 5px;
  width: 75vw;
  height: auto;
  max-width: 600px;
  margin-bottom: 5%;
}

.picture {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 3px;
  border: 1vh solid red;
  cursor: pointer;
  transition: border-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 140px; /* optional: controls max size */
  max-height: 105px; /* optional: controls max size */
  overflow: hidden;
}

.picture img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* or 'contain' if you want to see the whole image */
  aspect-ratio: 4 / 3;
  display: block;
}


.picture.selected {
border-color: blue;

}


.picture:active {
  border-color: blue;
}

#results {
  display: flex;
  justify-content: center; 
  align-items: center;
  text-align: center; 
  width: 100%;
  height: 20%; 
  margin: 0 auto; 
  background-color: rgba(255, 223, 0, 0.8);
  border: 10px ridge silver;
  font-size: 20px; 
  font-weight: bold; 
  color: black; 
  padding: 10px; 
  box-sizing: border-box;
}



#timer {
  display: block;
  font-size: 20px;
  color: red;
  font-weight: bold;
  margin-top: 10px;
}

.button {
  background-color: red;
  padding: 1vh 3vw;
  font-size: 4vh;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  margin-top: 2vh;
  margin-bottom: 1vh;
}

.button:hover {
  background-color: darkred;
  transform: scale(1.10);
  transition: transform 0.2s;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.instructions {
  text-align: justify;
  max-width: 1200px;
  font-size: 3vh;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.4);
  border: 15px ridge rgba(255, 255, 255, 0.4);
}
.instruct-a {
  color: white;
  animation:  onoff 1s infinite;
  }

@keyframes onoff {
  0% {
    color: green;
  }
  50% {
    color: red;
  }
  100% {
    color: blue;
  } 
}


.instruct-p {
  text-align: center;
  color: red;
  font-size: 4vh;
  margin-top: 1vh;
  text-decoration: underline;
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% {
    text-decoration: none;
  }
  90% {
    text-decoration: underline;
  }
  100% {
    text-decoration: none;
  }
}