body {
  font-family: 'Lusitana', serif;
  margin: 0;
  padding: 0;
  background-image: url("../backd.jpg");
  background-repeat: repeat;
  background-size: 100%;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #0b0b3b;
  color: white;
}

header nav a {
  margin-left: 20px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.title {
  text-align: center;
  margin: 30px 0;
  font-size: 68px;
  color: #fff;
}

.layout {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.sidebar {
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar .tab-btn {
  padding: 12px;
  border: none;
  background: #ddd;
  cursor: pointer;
  font-size: 16px;
  border-radius: 6px;
  transition: background 0.3s;
}

.sidebar .tab-btn.active {
  background: #0b0b3b;
  color: white;
}
#messages-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 80%;   
  margin: 0 auto;  
}
.message-card {
  background: #ffffffef;
  color: #04026d;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Lusitana', serif;
  line-height: 1.6;
  height: auto;
}


.message-card p {
  white-space: pre-line; /* keeps new lines in poems/messages */
}

.message-text {
  font-size: 16px;
  margin-bottom: 10px;
}

.message-author {
  font-weight: bold;
  text-align: right;
  font-size: 14px;
  color: #444;
}

.filter-buttons {
  text-align: center;
  margin: 20px 0;
}

.filter-buttons button {
  padding: 10px 20px;
  margin: 0 10px;
  border: none;
  border-radius: 4px;
  background: #ffffff60;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.2s;
}

.filter-buttons button:hover {
  background: #ffffff10;
}

@media (max-width: 600px) {
    .title{
      font-size: 1.6rem;
    }
    header nav a {
        font-size: 0.8rem;
    }
    header {
        flex-direction: column;
        gap: 10px;
    }
  }
