body {
  margin: 0;
  padding: 0;
  font-family: 'Libre Baskerville',serif;
  background: #f3efe4;
  color: #212121;
}

.app {
  max-width: 900px;
  margin: auto;
  padding: 20px;
  text-align: center;
}

h1 {
  font-weight: normal;
  font-size: 2rem;
  margin-bottom: 20px;
}

.app p{
  font-family:'Work Sans', sans-serif;
  margin:0;
}

button {
  padding: 10px 20px;
  border-radius: 25px;
  border: none;
  background: #5d86a2;
  color: white;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 10px;
  font-family:'Libre Baskerville',serif;
  animation:in 0.5s;
}

button:hover {
  animation:out 0.5s ease forwards;
}

@keyframes in {
    from {
        transform: translateY(-5px);
    }
    to {
        transform: translateY(0px);
    }
}
@keyframes out {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-5px);
    }
}

.message-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 20px auto;
  max-width: 500px;
}

.message-form input[type="text"],
.message-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family:'Work Sans',sans-serif;
  resize: none;
}

.form-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

#test_color{
  border-style:none;
  background:none;
}

.grid-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.message-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border-radius: 20px;
  min-height: 100px;
  color: white;
  text-align: center;
  word-break: break-word;
  cursor: pointer;
  border: 3px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 5px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: url(images/paper\ texture.jpeg);
  background-size:contain;
  background-blend-mode:multiply;
}

.message-tile:hover {
  transform: translateY(-4px);
}

.message-tile strong {
  display: block;
  font-size: 1rem;
  margin-top: 12px;
}

.message-tile.enlarged {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 80%;
  max-width: 500px;
  min-height: 200px;
  transform: translate(-50%, -50%) scale(1.05);
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 5;
  display: none;
}

.hidden {
  display: none;
}

#submitPage,
#messagesPage {
  width: 100%;
}
