
/* ----- Global Styling ----- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;500&display=swap');
:root {
  --dark-color: #4b5dac;
  --light-color: #3665f3;
  --very-light-color: #6291ff;
  --tile-dl: 30vw;  /* 160 px */
  --tile-ds: 30vw;  /* 120 px */
  --tile-width: calc(var(--tile-ds));
  --tile-height: calc(var(--tile-ds));
  --tile-border: 0.1rem;
  --tile-border-radius: 0.2rem;
  --username-font-size: 0.6rem;
  --username-padding: 0.1rem 0.2rem;
  --icon-size: 1.4rem;
  --icon-padding: 0.1em;
  --header-height: 20vh;
  --box-radius: 1rem;
}


/* ----- index.html and main elements ----- */

body{
  background-color: rgba(232,233,239,1);
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  margin: 0;
  width: 100%;
}





/* === HEADER AS A FIXED BAR === */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: var(--header-height);  /* Responsive height (adjust as needed) */
  padding: 0 2vw;
  background: white;
  z-index: 1000;
  gap: 2vw;
}

/* ----- Connie (Logo) ----- */
#logo {
  height: var(--header-height); /* Responsive height */
  width: auto;
  flex-shrink: 0;             /* Never shrink */
  float: right;
  margin-right: 4vw;
}

/* ----- Menu Icon (allowed to overlap logo) ----- */
#menu-icon {
  font-size: 5vh;             /* Responsive scaling */
  cursor: pointer;
  position: absolute;
  right: 6vw;
  top: 2.5vh;
  transform: translateY(-50%);
  z-index: 2;                 /* Ensure clickable over logo */
}

/* ----- Page Title (truncate long titles) ----- */
#page-title {
  font-size: 3vh;
  font-weight: bold;
  white-space: nowrap;        /* Prevent wrapping */
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;               /* REQUIRED for ellipsis inside flexbox */
  margin: 0.5rem 0rem 0.5rem;
}

/* ----- Announcements (fills remaining hreader space) ----- */
#announcements-container {
  flex: 2;
  min-width: 0;
  height: 13.5vh;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: flex;
  font-size: 1.7vh;
  border: 0.2rem solid var(--dark-color);
  border-radius: 0.4rem;
}


.content-container {
  background-color: #fff;
  padding: 2rem;
  border-radius: var(--box-radius);
  margin 0 auto;
  padding-top: var(--header-height); /* Push page down below the fixed header */
}

#footer p {
    text-align: center;
}


/* ----- Misc ----- */

.gallery-image {
  max-height: 198px;
  margin: 2px;
  cursor: pointer;
}

table {
  border-spacing: 0.5rem;
}
table td {
  vertical-align: top;
}


