/* General Styles */

  @import url('https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap');

body {
  font-family: 'Courier Prime', 'Courier New', monospace;
}

body {
    font-family: 'Courier New', monospace;
    background-color: #222;
    color: #00FF00;
    margin: 0;
    padding: 0;
    text-align: center;
    background-image: url('images/lain.jpg');
    background-size: 2050px auto;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100vw;
}

html, body {
    height: 100%;
}

/* Header */
header {
    background-color: rgba(0, 0, 0, 0.8);
    color: #00FF00;
    padding: 0px;
    padding-top: 15px;
    padding-bottom: 15px;
    width: 1000px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 0 20px #FF00FF;
}

header h1 {
    font-size: 3em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 255, 0, 0.7);
}

/* Centered Box Layout */
.center-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 700px;
    height: 750px;
    width: 1000px;
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 20px #FF00FF;
}

.main-container {
    display: flex;
    width: 1000px;
    padding: 20px;
    flex: 1;
    align-items: stretch;
    min-height: 500px;
}

/* Sidebar */
.sidebar {
    width: 150px;
    flex-shrink: 0;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    color: #00FF00;
    box-shadow: inset 0 0 20px #FF00FF;
    border-radius: 8px;
}

.sidebar h2 {
    font-size: 1.5em;
    color: #FF00FF;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 15px 0;
}

.sidebar ul li a {
    display: block;
    padding: 6px 8px;
    background: linear-gradient(to bottom, #2a2a2a, #000);
    border: 2px solid #800080;
    border-top-color: #ff66ff;
    border-left-color: #ff66ff;
    border-right-color: #660066;
    border-bottom-color: #660066;
    color: #00FF00;
    text-decoration: none;
    text-align: center;
    font-family: Tahoma, sans-serif;
    font-weight: normal;
    font-size: 13px;
    line-height: 1.2;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.sidebar ul li a:hover {
    background: linear-gradient(to bottom, #2a002a, #000);
    border-top-color: #660066;
    border-left-color: #660066;
    border-right-color: #993399;
    border-bottom-color: #993399;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: #00FF00;
}

.sidebar ul li a::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.25), rgba(255,255,255,0));
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    pointer-events: none;
}

.sidebar ul li a:hover::after {
    opacity: 0;
}

.right-sidebar {
    width: 150px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    color: #00FF00;
}

.donation-popup {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.donation-content {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    width: 300px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    font-family: Arial, sans-serif;
}

.donation-content h3 {
    margin-bottom: 20px;
    color: #333;
}

.donation-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.donation-content ul li {
    margin: 10px 0;
}

.donation-content a {
    display: block;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.donation-content a:hover {
    background-color: #555;
}

#closePopup {
    cursor: pointer;
    float: right;
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.lain-updates {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lain-update {
  text-align: center;
  width: 100%;
}

.lain-update img {
  width: 120px;
  height: 120px;
  border: 1px solid #FF00FF;
  object-fit: cover;
  display: block;
  margin: 0 auto 5px;
}

.lain-update p {
  font-size: 14px;
  margin: 0;
  line-height: 1.4em;
}

/* Content */
.content {
    max-height: 690px;
    overflow-y: auto;
    flex-grow: 1;
    padding: 20px;
    color: #00FF00;
    overflow: hidden;
}

section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
}

section h2 {
    font-size: 1.8em;
    color: #FF00FF;
}

section p {
    font-size: 1.09em;
    color: #FFFF00;
}

.post-container {
    margin-top: 20px;
}

.post {
    background-color: rgba(51, 51, 51, 0.8);
    padding: 15px;
    margin-bottom: 25px;
    
    box-shadow: 0 0 10px #FF00FF;
    color: #00FF00;
    font-size: 1.04em;
}

.post-scroll-wrapper {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 6px;
    padding-left: 16px;
    margin-top: 10px;
}

.post-scroll-wrapper::-webkit-scrollbar {
    width: 10px;
}

.post-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: #FF00FF;
    border-radius: 6px;
}

.post-scroll-wrapper::-webkit-scrollbar-track {
    background: #111;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: #00FF00;
    padding: 0px;
    width: 1000px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 0 20px #FF00FF;
    margin-top: 0px;
}

/* Category Buttons */
.category-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.category-buttons a {
    text-decoration: none;
}

.category-buttons .category-btn {
    width: 130px;
    height: 130px;
    font-size: 1em;
    font-weight: bold;
    color: #00FF00;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: inset 0 0 20px #FF00FF;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 2px #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.category-buttons .category-btn:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 10px #FFFFFF,
        0 0 20px #FFFFFF,
        inset 0 0 10px #FFFFFF,
        inset 0 0 20px #FFFFFF;
}

.category-buttons .category-btn span {
    position: relative;
    z-index: 2;
    padding: 5px 10px;
    color: #00FF00;
    font-size: 1.2em;
    font-weight: bold;
    display: block;
}


/* PDF Explorer View */
#pdfList ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#pdfList li {
    padding: 8px 12px;
    margin-bottom: 6px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    text-align: left;
    color: #00FF00;
    transition: background-color 0.2s, color 0.2s;
}

#pdfList li:hover {
    background-color: transparent;
    color: #00FF00;
}

#pdfList a {
    color: #00FFFF;
}

#pdfList a:hover {
    color: #FF00FF;
}

#pdfList li a {
    text-decoration: none;
}

#pdfList li a:hover {
    text-decoration: none;
}


/* Blue color for folder and file names */
#pdfList li {
    color: #1e90ff; /* deep sky blue */
}

#pdfList a {
    color: #1e90ff;
}

#pdfList a:hover {
    color: #63b3ff; /* dodger blue */
}



@keyframes shine {
  0% {
    mask-image: linear-gradient(-75deg, rgba(255,255,255,0.2) 30%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.2) 70%);
    mask-size: 200%;
    mask-position: 150%;
  }
  100% {
    mask-position: -50%;
  }
}

.download-button.shine-active svg {
  animation: shine 1s ease-in-out;
  -webkit-mask-image: linear-gradient(-75deg, rgba(255,255,255,0.2) 30%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.2) 70%);
  -webkit-mask-size: 200%;
  -webkit-mask-position: 150%;
}


#pdfList {
    position: relative;
    height: 350px;
    overflow-y: auto;
    padding: 10px;
}


.pdf-explorer-wrapper {
    background-color: transparent;
    position: relative;
    padding-top: 10px;
}


/* Current folder name label */



#searchInput {
    width: calc(100% - 20px);
    padding: 8px;
    background-color: #111;
    color: #00FF00;
    border: 1px solid #FF00FF;
}

#categoryFilter {
    margin-bottom: 20px;
    padding: 8px;
    background-color: #111;
    color: #00FF00;
    border: 1px solid #FF00FF;
}

#pdfList.post-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 0px;
    background-color: transparent;
}

.explorer-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 0px;
}

#breadcrumb {
    font-size: 1em;
    font-family: 'Courier New', monospace;
    text-align: center;
    margin: 10px auto 20px auto;
    padding: 6px 12px;
    color: inherit;
    text-shadow: 0 0 4px #00FFFF, 0 0 8px #FF00FF;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    box-shadow: 0 0 10px #FF00FF;
    max-width: 90%;
    word-break: break-word;
}

#breadcrumb { display: none; }

/* Glossy Round Navigation Buttons */
.nav-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    background-image: url("images/windows-media-player-back-button-icon.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
    padding: 0;
    margin-bottom: -10px;
    margin-left: 7px;
    transition: transform 0.2s ease;
}

.nav-btn:active {
    transform: scale(0.95);
}

.mobile-nav {
  display: none; /* hidden on desktop */
}

.buy-btn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.buy-btn {
    margin-left: auto;
    display: inline-block;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.85em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.buy-popup {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -30%);
    background-color: #111;
    border: 2px solid #007BFF;
    padding: 5px;
    padding-top: 10px;
    padding-bottom: 10px;
    z-index: 9999;
    text-align: center;
    border-radius: 8px;
}

.buy-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.buy-popup-content {
    max-width: 300px;
    margin-bottom: 17px;
    margin-right: 5px;
    margin-left: 5px;
}

.buy-popup-content p {
    margin-bottom: 0;
}

.buy-options {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 0;
    margin-bottom: 0;
}

.buy-options a {
    margin: 0 !important;
    padding: 0 !important;
}

.buy-logo {
    width: 120px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
    display: block;
    margin: 20px;
    margin-bottom: 0;
    padding: 0 !important;
}

.buy-logo:hover {
    transform: scale(1.1);
}

.close-popup {
    cursor: pointer;
    float: right;
    font-size: 20px;
    color: #fff;
    margin-top: -5px;
    margin-left: -12px;
    margin-right: 3px;
    margin-bottom: 0;
}

.close-popup:hover {
    color: #ff0000;
}

.web-buttons-bar {
  width: 100%;
  overflow: hidden;
  border-top: 2px solid #FF00FF;
  padding: 6px 0;
  background: rgba(0, 0, 0, 0.8);
  margin-top: auto;
  display: flex;
  justify-content: center;
}

.web-buttons-track {
  display: flex;
  gap: 10px;
  animation: scrollButtons 40s linear infinite;
}

.web-buttons-bar img {
  height: 31px;
  width: 88px;
  image-rendering: pixelated;
}

@keyframes scrollButtons {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media only screen and (max-width: 768px) {
  body {
    background-image: url('images/lain mobile.jpg') !important;
    background-size: 720px !important;
    background-position: center top !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;  /* replace 92vh with 100% */
    font-size: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }

  body,
  h1, h2, h3,
  p,
  .content,
  .latest-posts,
  .post,
  .pdf-container,
  .banner,
  .contact-form,
  input,
  textarea,
  button {
    font-family: 'Courier Prime', 'Courier New', monospace !important;
    font-size: 12px !important;
  }

  header {
  height: 40px;
  padding: 0;
  display: flex;
  justify-content: center;  /* horizontal centering */
  align-items: center;      /* vertical centering */
  text-align: center;
}

  .main-container {
    padding: 4px;
    min-height: auto;
  }

  header,
  .main-container,
  .center-box,
  .content,
  footer {
    width: 99vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    position: static !important;
    float: none !important;
  }

  footer {
  position: relative;
  margin-top: 0;
  height: 40px;
  padding: 0;
  display: flex;
  justify-content: center;  /* horizontal centering */
  align-items: center;      /* vertical centering */
  text-align: center;
}

  .center-box {
    height: 75% !important;
    margin: 0 !important;
    min-height: unset !important;
    max-height: unset !important;
  }

  .instagram-browser .center-box {
    height: 80% !important;
  }

  section {
  margin-bottom: 10px !important;
}

  .sidebar,
  .right-sidebar {
    display: none !important;
  }

  .mobile-nav {
    display: flex;
    margin-top: 12px;
  }

  .mobile-nav a {
    color: #00FF00;
    text-decoration: none;
    font-family: Tahoma, sans-serif;
    font-size: 1em;
    padding: 6px 10px;
    background: linear-gradient(to bottom, #2a2a2a, #000);
    border: 2px solid #800080;
    border-top-color: #ff66ff;
    border-left-color: #ff66ff;
    border-right-color: #660066;
    border-bottom-color: #660066;
    border-radius: 5px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    text-align: center;
  }

  .mobile-nav a:hover {
    background: linear-gradient(to bottom, #2a002a, #000);
    color: #00FF00;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.8);
  }

  .latest-posts {
    max-height: 210px !important; /* Shrink the vertical space */
  overflow-y: auto !important;
  padding: 0.5em 1em !important;
  box-sizing: border-box !important;
  }

  .post-scroll-wrapper {
  max-height: 210px !important;
  overflow-y: auto !important;
}

  .post {
    margin-bottom: 1.5em !important;
    margin-left: -1em;
  }

  #searchInput {
    width: calc(100% - 20px) !important;
  }

  .nav-btn {
    width: 25px !important;
    height: 25px !important;
    margin-left: 8px;
  }

  .pdf-container {
    padding: 1em 1em !important;
    margin-bottom: 0.8em !important;
  }

  #pdfList {
    position: relative;
    height: 205px;
    overflow-y: auto;
    padding: 10px;
}

.instagram-browser #pdfList li,
.instagram-browser #pdfList a {
    font-size: 13px;
}

#pdfList li:hover {
    background-color: rgba(0, 0, 0, 0.6);
    color: #00FF00;
}

  .post-title, .pdf-title {
    margin-bottom: 0.2em !important;
  }

  .post p, .pdf-description {
    line-height: 1.2em !important;
  }

  .banner img,
  .pdf-container,
  .latest-posts,
  .tab-content,
  .update-box {
    width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .banner {
    margin-top: 1.5em !important;
  }

  h1, h2, h3, p, label {
    text-align: center !important;
  }

  h1 {
    font-size: 1.7em !important;
    margin-top: 0.3em !important;
    margin-bottom: 0.2em !important;
  }

  h2 {
    font-size: 1.3em !important;
    margin-top: 0.3em !important;
    margin-bottom: 0.2em !important;
  }

  h3 {
    font-size: 1.1em !important;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
  }

  p {
    margin-top: 0.5em;
  }

  p, .content, .latest-posts, .pdf-container {
    font-size: 1em !important;
    line-height: 1.3em !important;
    padding: 0.5em 1em !important;
    margin-bottom: 0.1em;
  }

  footer {
    font-size: 0.9em !important;
    padding: 15px 0 !important;
    text-align: center !important;
  }

  .donation-content {
    width: 250px;
  }

/* Landscape override */
@media only screen and (orientation: landscape) {
  body {
    background-image: url('images/lain.jpg') !important;
    background-size: cover !important; /* Fill horizontally instead */
    background-position: center center !important;
    height: auto !important;
    overflow: auto !important;
  }

  header,
  .main-container,
  .center-box,
  .content,
  footer {
    width: 50vw !important;
  }

  .main-container,
  .center-box,
  .content {
    height: auto !important;
    min-height: unset !important;
  }

  footer {
    display: flex !important;
    position: relative !important;
    clear: both;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}

/* Hide scrollbar universally */
::-webkit-scrollbar {
    display: none;
}

html, body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
}