body {
  font-family: system-ui, sans-serif;
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: start;
  min-height: 100vh;
  padding: 4rem 1rem;
  margin: 0;
}

.container {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px; /* Much smaller max-width for mobile */
  text-align: center;
}

h1 {
  margin-top: 0;
  font-size: 2rem;
}

p.description {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

input#urlInput {
  width: 100%;
  max-width: 90%;
  padding: 1rem;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box; /* VERY IMPORTANT to respect padding */
}


button#analyseButton {
  background-color: #eee;
  border: 1px solid #ccc;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 2rem;
}

button#analyseButton:hover {
  background-color: #ddd;
}

#result {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.result-button {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-button:hover {
  background-color: #f0f0f0;
}

.result-button .heading {
  font-weight: bold;
  font-size: 1.6rem;
}

.result-button .subheading {
  font-size: 1.3rem;
  margin-top: 0.5rem;
}

.result-button .click-more {
  font-size: 1rem;
  color: #666;
  margin-top: 0.7rem;
}

/* --- Desktop (only widen grid on big screens) --- */
@media (min-width: 768px) {
  .container {
    max-width: 800px;
  }

  #result {
    grid-template-columns: 1fr 1fr;
  }
}

.expandable {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  font-size: 1rem;
  color: #444;
  margin-top: 0.5rem;
  padding: 0 1rem;
}

.expandable.open {
  max-height: 500px;
  padding: 1rem;
  background-color: #fafafa;
  border-top: 1px solid #ccc;
  border-radius: 0 0 8px 8px;
}

