body {
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background-color: white;
  color: #222286;
}

#content{
	width:100%;
}

#theform{
    flex-flow: row wrap;
    justify-content: space-around;
    padding: 0;
    margin: 125px auto 0;
    list-style: none;
    max-width: 1200px;
    text-align: center;
}

#theform h2{
	margin:40px auto 10px;
}

select {
	font-size:1.2em;
	padding:5px;
}

#purchaseInput{
	font-size:1.2em;
}

#startButton{
	font-size:1.2em;
}

.topbutton-container{
	display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    padding: 0;
    margin: 0 auto;
    list-style: none;
    max-width: 1200px;
    text-align: center;
}

.topbutton {
	padding: 5px;
    width: 170px;
    margin-top: 10px;
    font-weight: bold;
    font-size: 1.5em;
    text-align: center;
    border-style: solid;
    border-width: 4px;
    border-color: #333;
    border-radius: 25px;
    cursor: pointer;
	text-decoration: none;
	color: #333333;
}

.topbutton:hover{
	border-color: #30318e;	
}

h1{
	text-align:center;
}











.topbutton-container {
  display: flex;
  justify-content: space-between;
  width: 90%;
  max-width: 960px;
  margin-top: 20px;
}

.topbutton {
  background-color: transparent;
  color: #222286;
  padding: 10px 20px;
  border: 1px solid #222286;
  border-radius: 5px;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.topbutton:hover {
  background-color: #222286;
  color: white;
  border-color: #222286;
}

h1 {
  font-size: 2.5em;
  margin-top: 30px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
  color: #EC1B92;
}

.difficulty-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.difficulty-buttons h2 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #222286;
  width: 100%;
  text-align: center;
}

.difficulty-buttons button {
  padding: 15px 25px;
  font-size: 1.2em;
  border: none;
  border-radius: 8px;
  background-color: #EC1B92;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 200px; /* Minimum width */
  max-width: 300px; /* Maximum width */
  flex: 1; /* Distribute space equally */
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
}

.difficulty-buttons button:hover {
  background-color: #222286;
}

.difficulty-image {
  max-width: 150px;
  height: auto;
  margin-bottom: 10px;
  border-radius:8px;
}

.question-buttons {
  display: flex;
  gap: 10px;
}

.question-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.question-buttons h2 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #222286;
}

.question-buttons button {
  padding: 15px 30px;
  font-size: 1.2em;
  border: none;
  border-radius: 8px;
  background-color: #EC1B92;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 330px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
}

.question-buttons button:hover {
  background-color: #D1187F;
}

#video-container {
  margin-top: 20px;
  text-align: center;
}

#video-container p {
  font-size: 1.2em;
  color: #777;
}

#video-container .video-link {
  font-size: 0.8em;
} 

video {
  max-width: 90%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2em;
  }

  .difficulty-buttons {
    flex-direction: column;
  }

  .difficulty-buttons button {
    width: 90%;
    max-width: 300px;
    flex: auto;
    min-width: 0;
  }

  .difficulty-image {
    max-width: 100px;
  }
}