html,
body {
  margin: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: url('../static/images/homepage_banner_v3.png') center/cover no-repeat;
  font-family: sans-serif;
  color: white;
  background-attachment: fixed;
}

body {
  display: flex;
  flex-direction: column;
}

header {
  width: calc(100% - 60px);
  margin: 20px 30px 2rem;
  min-height: 3rem;
  padding: 15px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  border-radius: 20px;
  box-shadow: 0 0 var(--shadow-blur) var(--shadow-spread) var(--shadow-color);
}

nav.navbar {
  width: 100%;
  position: relative;
  z-index: 1;
}

nav.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

nav.navbar ul li {
  text-align: center;
}

nav.navbar ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  transition: text-shadow 0.3s ease;
}

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden; /* Prevent content from spilling */
  padding: 3rem 1rem; /* Add some side padding */
}

/* Style the title within the new flex context */
.title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  color: white;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  flex-shrink: 0; /* Prevent it from shrinking */
}

/* Make the .main-content wrapper fill the remaining space */
.main-content {
  flex-grow: 1;
  position: relative;
  width: 100%;
}

.separator {
  width: 50%;
  height: 3px;
  margin-top: 1rem;
}
.announcements {
  position: absolute;
  inset: 0;
  overflow-y: scroll;
  padding: 2rem 1rem;
  box-sizing: border-box;
  scrollbar-width: none;
}

.announcements::-webkit-scrollbar {
  display: none;
}

.announcement-card {
  width: 100%;
  height: 10rem;
  max-width: 800px;
  padding: 0.5rem 2.5rem;
  box-sizing: border-box;
  text-align: center;
  cursor: pointer;
  margin: 0 auto 3rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 0% cover 101%;

}

.announcement-card .name {
  font-size: 1.4rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);

}

.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  z-index: 1000;
}

.fullscreen-panel {
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  padding: 2rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.exit-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.exit-button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  z-index: 501;
}

.exit-button:hover {
  background: rgba(255, 255, 255, 0.4);
}

.name-display {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  padding: 1rem 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.content {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: left; /* Text is easier to read left-aligned */
  padding: 2rem;
  margin: 1rem 0;
  background: rgba(0,0,0,0.1);
  border-radius: 15px;
  overflow-y: auto;

  white-space: pre-line;
  overflow-wrap: break-word;
}

.date-section {
  font-size: 0.9rem;
  opacity: 0.9;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.delete-button {
  background-color: #d92d20;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  float: right;
  transition: background-color 0.2s ease;
}

.delete-button:hover {
  background-color: #b2251a;
}

.submission-portal {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 500;
}

.submission-portal a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  padding: 15px;
  transition: all 0.3s ease-in-out;
}

.submission-portal p {
  font-weight: 600;
  margin: 0 0 0 10px;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
}

.submission-portal img {
  height: 2.5rem;
  transition: transform 0.3s ease;
}

.submission-portal a:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.submission-portal a:hover img {
  transform: rotate(90deg);
}