/* General page styling */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
  text-align: center;
}

h1 {
  color: #333;
}

/* Button container rows */
.row {
  display: flex;
  justify-content: center;
  margin: 10px 0;
  flex-wrap: wrap; /* lets buttons wrap if they don’t fit */
}

/* Sound buttons */
.sound-button {
  padding: 15px 20px;
  margin: 10px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  background-color: #6200ea;
  color: white;
  border-radius: 5px;
  transition: background-color 0.3s ease;

  /* fixes for long text */
  width: 160px;            /* consistent width */
  height: 80px;            /* fixed height for uniform rows */
  max-width: 200px;
  white-space: normal;     /* allow wrapping */
  word-wrap: break-word;   /* break very long words */
  text-align: center;      /* center-align text */
  display: flex;           /* flexbox for vertical centering */
  align-items: center;
  justify-content: center;
  line-height: 1.2;        /* improve readability on multi-line */
}

.sound-button:hover {
  background-color: #3700b3;
}

/* Responsive layout for small screens */
@media (max-width: 600px) {
  .row {
    flex-direction: column;
    align-items: center; /* keep buttons centered */
  }

  .sound-button {
    width: 90%;          /* buttons fill most of screen */
    height: auto;        /* let height expand if needed */
    max-width: none;
  }
}
/* References button */
.references {
  margin-top: 30px;
}

.ref-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #03a9f4;
  color: white;
  text-decoration: none;
  font-size: 16px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.ref-button:hover {
  background-color: #0288d1;
}

