@font-face {
    font-family: 'RetroGaming';
    src: url('https://ultradpg.neocities.org/RetroGaming.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
  
  font-family: 'RetroGaming', sans-serif;
  background-color: #000111 !important;
  background-size: auto;
  /* Centers the image */
  background-repeat: no-repeat;
  /* Prevents the image from repeating */
  background-attachment: fixed;
  /* Optional: makes the background stay fixed when scrolling */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 25px;
  background: #000760;
  padding: 0.5rem 1rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
#navbar ul {
  list-style: none;
  display: flex;
  gap : 2rem;
  margin: 0;
  padding: 0;
}
#navbar li {
  display: inline-block;
  margin: 0 1rem;
}
#navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  text-shadow: #090a24 -3px 3px;
}

#navbar a:hover {
  color: #00d8ff;
}

/* Header */
.header {
  position: absolute;
  inset-inline-start: auto;
  inset-block-start: 25px;
  height: 200px; /* adjust based on your design */
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('/images/site assets/Smaller Banner DPG.webp') center/cover no-repeat;
  z-index: 900;
}

.header img {
    height: 100%;
    width: auto;
}

/* Layout grid */
.layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  max-width: 1200px;
  margin: auto;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;    /* center children horizontally */
  justify-content: flex-start;
  text-align: center;     /* center inline text inside children */
  background: linear-gradient(to bottom, #000760, #000000);
  border-radius: 15px;
  padding: 1rem;
  width: 200px; /* adjust to your design */
  color: white;
  box-shadow: #ffffff -10px 10px;
}
.sidebar .profile img {
  border-radius: 50%;
  width: 100px;
}
.sidebar a {
  display: block;
  margin: 0.5rem 0;
  text-decoration: none;
}
.sidebar a:hover {
  color: #00d8ff;
}

/* Posts container */
.posts {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 1.5rem;
}

/* Post card style */
.post {
  background: #000760;
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: #041030 -15px 15px;
  margin-bottom: 2rem;
  min-height: 140px;
  position: relative;
}

.post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px #09287e;
}

/* White bar overlay */
.post::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 35%; /* adjust thickness of the white bar */
  background: white;
  clip-path: polygon(0 0, 100% 0, 100% 73%, 0 73%);
  z-index: 2;
}

/* If post has image + content */
.post img {
  clip-path: polygon(0 0, 35% 0, 100% 100%, 0% 100%);
  width: 170px;
  min-width: 120px;
  height: 100%;
  object-fit: cover;       /* use "cover" to fill top/bottom (crop possible). Use "contain" to preserve whole image but may leave gaps */
  display: block;          /* remove inline-gap */
  align-self: flex-start;  /* align image to top of post */
  position: relative;
  z-index: 3;
}

.post-img img {
  width: auto;
  height: auto;
  object-fit: contain;
  display: inline-block;
}

.post-content {
  flex: 1;
  padding: 1.2rem 2rem 1.2rem 1rem;
  color: #000760; /* date color */
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
  position: relative;
  z-index: 3;
}

.post-content h2 {
  background: #ffffff00;
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
  position: relative;
  z-index: 4;
}

.post-content p {
  margin: 0;
  line-height: 1.4;
  color: #8BD5E8;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* number of lines */
  line-clamp: 3; /* standard property for compatibility */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-content a {
  margin-top: auto;
  align-self: flex-start; /* stopped here, still working on posts */
  color: #000760;
  text-decoration: none;
}

.post-content a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 0px;
  background: transparent;
  color: rgb(255, 255, 255);
  font-size: 10px;
}

content {
  display: flex;
  align-items: flex-start;
}

main {
  flex: 1;
  margin: 1rem;
  color: white;
}

/* Responsive */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .post {
    flex-direction: column;
    align-items: center;
  }
  .post img {
    width: 100%;
  }
  #layout {
    flex-direction: column;
  }
  #sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 2px solid transparent;
  }
} 

/* wrapper makes everything sit in a column */
#wrapper {
  position:absolute;
  inset-inline-start: auto;
  inset-block-start: 250px;
  background: transparent;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* layout: sidebar + content */
#layout {
  display: flex;
  gap: 1rem;
  flex: 1;
  max-width: 1200px;  /* keeps it centered */
  border-left: 4px solid transparent;   /* was creating a black line */
  border-right: 4px solid transparent;  /* was creating a black line */
}

/* sidebar on left */
#sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 250px;
  flex-shrink: 0;
  border-right: 2px solid transparent; /* avoid default black line */
  padding: 1rem;
 /* box-sizing: border-box; */
}

#sidebar a {
  display: block;
  margin: 0.5rem 0;
  text-decoration: none;
  color: #fff;
}

#sidebar a:hover {
  color: #00c2c2;
}

/* Sidebar internal spacing */
#sidebar .social,
#sidebar .sidebar-nav,
#sidebar .widgets {
  margin-bottom: 1.5rem;
}

/* main content area */
#content {
  flex: 1;
  background: transparent; /* Reimu-like mid background */
  border-radius: 8px;
  padding: 1.5rem;
  overflow: hidden;
  margin-top: 20px;
}

.link-icons a img {
  transition: transform 0.2s ease;
  border-radius: 5px;
}

.link-icons a:hover img {
  transform: scale(1.1);
}

.link-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

/* Textarea styles */
textarea {
  width: 100%;
  height: auto; /* Static height for the text box */
  padding: 10px;
  font-family: inherit;
  font-size: 10px;
  box-sizing: border-box;
  background-color: #000000;
  color: #ffffff;
  border: 2px solid #FFF;
  border-radius: 5px;
  resize: none; /* Prevents resizing of the text box */
  overflow-y: scroll; /* Enables vertical scrolling */
  outline: none; /* Remove default outline */
}

.inline-block-item {
  display: inline-block; /* Allows elements to sit next to each other */
  margin-right: 10px; /* Adds space between items */
  padding: 3px;
}

/* Post box */
.post-box {
  background: linear-gradient(to bottom, #000760, #000000);
  border-radius: 15px;
  padding: 1rem;
  color: white;
  box-shadow: #041030 -10px 10px;
}

.post-box-header {
  background: #001272;
  padding: 5px 15px;
  color: white;
  border-radius: 8px 8px 0 0;
}

.post-box-content {
  padding: 20px;
}

.archive-box {
  margin-top: 20px;
  background: linear-gradient(to bottom, #000760, #000000);
  border-radius: 15px;
  padding: 1rem;
  color: white;
  box-shadow: #041030 -10px 10px;
  text-align: center;
}

