/*
Theme Name: Random Word Theme v3
Author: ChatGPT
Description: Random word generator with sound, repeat, previous, and history.
Version: 3.0
*/

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #c3ec52, #0ba29d);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  color: #333;
}

.container {
  background: white;
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 500px;
  width: 100%;
}

h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #0ba29d;
}

#wordDisplay {
  font-size: 32px;
  font-weight: bold;
  margin: 20px 0;
  color: #444;
}

button {
  background: #0ba29d;
  color: white;
  border: none;
  padding: 12px 18px;
  margin: 5px 3px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease-in-out;
}

button:hover {
  background: #088b85;
  transform: scale(1.05);
}

select, label {
  margin-top: 10px;
}

.history-container {
  margin-top: 25px;
  text-align: left;
}

.history-container h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #0ba29d;
}

#historyList {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  background: #f9f9f9;
}

#historyList div {
  padding: 6px 10px;
  margin-bottom: 5px;
  border-radius: 8px;
  background: #e0f2f1;
  cursor: pointer;
  transition: all 0.2s;
}

#historyList div:hover {
  background: #b2dfdb;
}
@media (max-width: 600px) {
  #wordDisplay { font-size: 28px; }
  button { font-size: 14px; padding: 10px 14px; }
}
