@import url('https://fonts.googleapis.com/css2?family=Georgia&family=Roboto:wght@400&display=swap');

* {
  box-sizing: border-box;
}

body {
  background-color: #f4f4f4;
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 2rem 1rem;
  color: #333;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-family: 'Georgia', serif;
    font-weight: normal;
    font-size: 2.5rem;
    margin: 0;
}

header p {
    font-style: italic;
    color: #666;
    margin-top: 0.5rem;
}

/* Form for submitting a new whisper */
.form-container {
    width: 100%;
    max-width: 600px;
    margin-bottom: 3rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

#whisper-form textarea {
    width: 100%;
    height: 100px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 1rem;
}

#whisper-form button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: #5a5a5a;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#whisper-form button:hover {
    background-color: #333;
}

/* Container for all the whispers */
.whispers-container {
    width: 100%;
    max-width: 600px;
}

/* Individual whisper styling */
.whisper {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  /* Use white-space to respect newlines from the textarea */
  white-space: pre-wrap; 
  line-height: 1.7;
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
  color: #444;
}
