body {
  margin: 0;
  font-family: sans-serif;
}

.center-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 1em;
}

.top-bar {
  width: 100%;
  text-align: center;
  margin-bottom: 1em;
}

.header {
  text-align: center;
}

.search-bar {
  margin: 1em 0;
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
  justify-content: center;
}

#filters-box {
  display: none;
  margin-bottom: 1em;
  text-align: center;
  gap: 0.5em;
}

.filters-box input {
  margin: 0.25em;
}

.message-card {
  position: relative;
  width: 400px;
  height: 300px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.message-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.message-text {
  position: absolute;
  z-index: 1;
  font-family: 'Segoe UI', sans-serif;
  color: #000;
  white-space: pre-wrap;
  padding: 0 1em;
}

.message-text.to {
  top: 5px;
  right: 5px;
  font-weight: bold;
}

.message-text.body {
  text-align: center;
  font-size: 0.95em;
}

.message-text.from {
  bottom: 15px;
  right: 20px;
  font-style: italic;
  font-size: 0.85em;
}

.messages-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  column-gap: 8em;
  row-gap: 1.5em;
  justify-items: center;
  width: 100%;
  padding: 1em 0;
}

#submit-enter-page {
  position: fixed;
  top: 5px;
  right: 20px;
  padding: 0.1em .5em;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #000;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  z-index: 1000;
  border: 2px solid #fff;
}

#submit-enter-page:focus {
  outline: none;
}

.fullscreen-message {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(255, 255, 255, 0.95);
  pointer-events: none;
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  z-index: 9999;
  opacity: 0;
}

.fullscreen-container {
  pointer-events: auto;
  position: relative;
}

.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  pointer-events: auto;
  z-index: 10000;
  background: none;
  border: none;
  font-size: 2rem;
  color: black;
}
.button-lineup {
  display: flex;
  gap: 0.5rem;
}

.button-lineup button {
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  cursor: pointer;
}

