body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background-color: #000;
}

.background-layer {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(to top, #000000, #26594f);
  overflow: hidden;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;
}

.blog-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  padding: 40px 20px;
  z-index: 2;
  position: relative;
}


.blog-box {
  background-color: rgba(0, 0, 0, 0.6);
  border: 2px solid #00ffee;
  border-radius: 16px;
  width: 210px;
  padding: 10px;
  text-align: center;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  cursor: pointer;
  z-index: 1;
}

.blog-box.active {
  transform: scale(1.3);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
  z-index: 2;
}

.blog-box img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 10px;
}

.caption {
  color: #9efbe1;
  font-size: 1rem;
  font-weight: 500;
}

.blue-overlay {
  position: absolute;
  inset: 0;
  background: url('images/blue root.png') center/cover no-repeat;
  pointer-events: none;
  z-index: 1;
  mask-image: linear-gradient(to right, transparent 0%, black 30%, black 70%, transparent 100%),
              linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%, black 70%, transparent 100%),
                      linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: destination-in;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: 200px 200px;
  -webkit-mask-size: 200px 200px;
}

.background-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('images/black root.png') center/cover no-repeat;
  opacity: 0.5;
  z-index: 0;
  transition: background 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.top-space {
  height: 100px;
  display: flex;
  align-items: center;
  z-index: 2;
  position: relative;
}

.logo-placeholder {
  font-size: 48px;
  font-weight: bold;
  width: 100%;
}

#logo-p {
  width: 100%;
  height: auto;
  position: relative;
  top: 0;
  opacity: 0.60;
  border-radius: 10px;
}

.title-area {
  position: relative;
  bottom: 10%;
  left: 5%;
  z-index: 2;
  top: 1vh;
  width: 30%;
  height: auto;
}

#title-p {
  width: 55vh;
  height: auto;
  position: relative;
}

@media (max-width: 500px) {
  .blog-box {
    width: 73%;
  }

  #logo-p {
    width: 300%;
    height: 80px;
    padding-top: 0px;
  }

  .title-area {
    top: 1vh;
    width: 30%;
  }

  #title-p {
    width: 35vh;
  }
}

/* Fullscreen Popup View */
#fullscreen-view {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to top, #296b5e99, #000000c2);
  color: rgb(255, 255, 255);
  display: none;
  flex-direction: column;
  padding: 5px;
  z-index: 999;
  overflow-y: auto;
}

#fullscreen-view.show {
  display: flex;
}

#close-btn {
  position: absolute;
  top: 0;
  right: 30px;
  margin-right: 20px;
  font-size: 28px;
  cursor: pointer;
  
}

#fs-title {
  font-size: 20ivh;
  margin-bottom: 20px;
  text-align: center;
  color: #9efbe1;
}

#fs-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  right: 0;
  padding: 10px;
}

#fs-images {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#fs-images img {
  max-width: 100%;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

#fs-content {
  font-size: 1.1rem;
  line-height: 1.6;
}

@media (max-width: 500px) {
  #fs-container {
    grid-template-columns: 1fr;
  }

  #fs-images {
    flex-direction: row;
    justify-content: left;
    flex-wrap: wrap;
  }

  #fs-content {
    order: -1;
    text-align: left;
  }
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.line-reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease forwards;
}