body {
    background-image: url('img/background.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-color: black;
    margin: 0;
    padding-top: 60px;
}

#mainDiv {
    width: 65%;
    height: 85vh;
    background-color: rgba(0,0,0,0.95);
    border: 8px solid #121212;
    display: block;
    flex-direction: column;
    margin: 0 auto;
    text-align: center;
    overflow-y: scroll;
    scrollbar-color: #323760 black;
    scrollbar-width: thin;
        z-index: 1;
}

#pageTitle {
    display: block;
    max-width: 60%;
    height: auto;
    margin: 35px auto;
}

#white { color: white; }
#blue { color: #4A6468; }

nav {
    margin: 15px 0;
}
.selectionButton {
    font-size: 18px;
    font-weight: bold;
    font-family: Courier New;
    text-decoration: none;
    padding: 5px 20px;
    transition: color 0.3s, text-shadow 0.3s;
    letter-spacing: 2px;
      line-height: 1.5;
}
.selectionButton.unselected {
    color: #7f7f7f;
}
.selectionButton.selected {
    color: #4A6468;
    text-decoration: underline;
}
.selectionButton:hover {
    color: white;
    text-shadow: none;
}

#separator {
    width: 60%;
    border-color: #7f7f7f;
    margin: 30px auto;
}

#homeContent {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: monospace;
    color: #ccc;
    line-height: 2;
    padding: 0 30%;
    text-align: center;
    font-size: 16px;
}
#homeContent p {
    margin-bottom: 20px;
}

#gallery {
    display: grid;
    gap: 8% 5%;
    grid-template-columns: repeat(5, 1fr);
    padding: 3% 15%;
}
#gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 2px solid #1B1B1B;
    border-radius: 10px;
    box-shadow: none;
    transition: border-color 0.3s ease;
}
#gallery img:hover {
    border-color: #323760;
    box-shadow: none;
    cursor: pointer;
}

#imageViewer {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    visibility: hidden;
    background-color: rgba(0, 0, 0, 0.85);
}
#selectedImage {
    width: 30%;
    object-fit: contain;
}
#xButton {
    width: 32px;
    height: 32px;
    position: fixed;
    cursor: pointer;
    top: 20px;
    right: 20px;
}
#leftArrow, #rightArrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;   /* adjust size */
  height: 48px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 3;
}

#leftArrow:hover, #rightArrow:hover {
  opacity: 1;
}

#leftArrow {
  left: 20px;
}

#rightArrow {
  right: 20px;
}

@font-face {
    font-family: 'OctoSquares';
    src: url('font/TTOctosquares-DBold.woff2') format('woff2');
}
#newsSection {
    padding: 5% 15%;
    font-family: monospace;
}

.newsPost {
    margin-bottom: 30px;
    padding: 15px;
    background-color: rgba(50, 55, 96, 0.1);
    border-left: 3px solid #323760;
    color: #ccc;
}
.newsDate {
    font-size: 0.9em;
    color: #777;
}
.newsPost h3 {
    margin-top: 5px;
    color: white;
}
#contactIcons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 50px 15%;
}

#contactIcons a {
    color: #4a6468;
    font-size: 2em;
    transition: color 0.3s ease;
}

#contactIcons a:hover {
    color: white;
}

#contactIcons a svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: middle;
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

.particle {
  position: absolute;
  will-change: transform;
}

#imageWrapper {
  position: relative;
  display: inline-block;
}

#selectedImage {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

#xButton {
  width: 32px;
  height: 32px;
  position: absolute;
  top: -12px;
  right: -12px;
  cursor: pointer;
}
