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;
}

/* FORUM COLOR SELECTOR */

select,
::picker(select) {
  appearance: base-select;
}

select {
  flex: 1;
}
select {
  border: none;
  background: #f3efe4;
  padding: 8px;
  transition: 0.4s;
	font-family:'Work Sans',sans-serif;
	font-size:1.2rem;
	color:black;
}

selectedcontent{
	color:black;
	font-family:'Work Sans',sans-serif;
}

select:hover,
select:focus {
  background: #f3efe4;
}
select::picker-icon {
  color: #999999;
  transition: 0.4s rotate;
}
select:open::picker-icon {
  rotate: 180deg;
}
::picker(select) {
  border: none;
}
option {
  display: flex;
  justify-content: flex-start;
  gap: 20px;

  border: none;
  background: #fffcf4;
  padding: 8px;
  transition: 0.4s;
}
option:first-of-type {
  border-radius: 8px 8px 0 0;
}

option:last-of-type {
  border-radius: 0 0 8px 8px;
}

::picker(select) {
  border-radius: 8px;
}

option:not(option:last-of-type) {
  border-bottom: none;
}
option:nth-of-type(odd) {
  background: white;
}

option:hover,
option:focus {
  background: #cd947b;
}
option .icon {
  font-size: 1rem;
  text-box: trim-both cap alphabetic;
}
selectedcontent .icon {
  display: none;
}
option:checked {
  font-weight: 400;
}
option::checkmark {
  order: 1;
  margin-left: auto;
  content: "✔";
}
::picker(select) {
  opacity: 0;
  transition: all 0.4s allow-discrete;
}
:open::picker(select) {
  opacity: 1;
}
@starting-style {
  :open::picker(select) {
    opacity: 0;
  }
}
::picker(select) {
  top: calc(anchor(bottom) + 1px);
  left: anchor(10%);
}
@supports not (appearance: base-select) {
  body::before {
    content: "Your browser does not support `appearance: base-select`.";
    color: black;
    background-color: wheat;
    position: fixed;
    left: 0;
    right: 0;
    top: 40%;
    text-align: center;
    padding: 1rem 0;
    z-index: 1;
  }
}

/* ---------------------------------- */

.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%;
}
