body {
	font-family: Alegreya, sans-serif;
	background-color: #F2EDD5;
	text-align: center;
}

h1 {
	font-size: 50px;
	color: #034E00;
}

h3 {;
	font-size: 30px;
}

/* Center all content inside the quiz container */
#quiz-container {
	background-color: #D3F1F2;
	text-align: center;
	margin: 5% auto;
	padding: 2%;
	border-radius: 2%;
	box-shadow: 0 2px 6px rgba(0,0,0,0.2);
	width: 60%;
	min-width: 250px;
	max-width: 90%;
}

/* Style and center the question image */
#question-image {
	display: block;        /* makes it act like a block */
	margin: 0 auto 15px;   /* auto left/right = center */
	max-width: 300px;      /* shrink large images */
	height: auto;          /* keep proportions */
}

#answer-buttons {
	display: grid;
	grid-auto-flow: column;
	justify-content: center;
	gap: 12px;
}

button {
	font-family: Montserrat, sans-serif;
	font-size: 16px;
	padding: 10px 20px;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

#start-btn {
	background-color: #FFFFFF;
	transform: scale(1.05);
}

.answer-btn {
	font-size: 18px;
	background-color: #F0F0F0;
}

#start-btn:hover,
#retry-btn:hover,
.answer-btn:hover {
  background-color: #D9D9D9;
  transform: scale(1.05);
}

#retry-btn {
	display: none;
	margin: 2% auto;
	display: block;
	background-color: #FFFFFF;
}


/*MEDIA QUERIES*/

/* Mobile adjustments */
/* Mobile (1 column) */
@media only screen and (max-width: 599px) {
  h1 {
    font-size: 40px;
    padding: 5% 10% 2%;
  }

  h3 {
    font-size: 25px;
    padding: 0 5%;
  }

  #answer-buttons {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: unset;
    gap: 10px;
  }

  #answer-buttons button {
    width: 60%;
    padding: 4% 0;
    margin: 0 auto;
  }

  #question-image {
  	padding: 2%;
    max-width: 230px;
  }

  #quiz-container {
    width: 90%;
  }
}

/* Tablet (2 columns) */
@media only screen and (min-width: 600px) and (max-width: 750px) {
  #answer-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns */
    grid-auto-flow: unset;
    gap: 12px;
  }

  #answer-buttons button {
    width: 90%; /* not too wide */
    margin: 0 auto;
  }

  h1 {
    font-size: 45px;
  }

  h3 {
    font-size: 28px;
  }

  #quiz-container {
    width: 80%; /* a bit narrower than mobile */
  }
}