/* Hide scrollbar when not needed */
html {
  overflow-y: overlay;
  scrollbar-gutter: auto;
  /* Firefox scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: #42006c #2b0044;
}

/* Custom WebKit Scrollbar */
::-webkit-scrollbar {
  width: 16px;
}

::-webkit-scrollbar-track {
  background: #2b0044; 
}

::-webkit-scrollbar-thumb {
  background-color: #42006c; 
  border: 2px solid #32cd32;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #694072;
  border-color: #50e850; 
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'ibm_ps-55_re';
  src: url('assets/fonts/Web437_IBM_PS-55_re.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ibm_xga-ai';
  src: url('assets/fonts/Web437_IBM_XGA-AI_12x20.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ibm_cga_thin';
  src: url('assets/fonts/WebPlus_IBM_CGAthin-2y.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'EagleSpCGAAlt2';
  src: url('assets/fonts/Web437_EagleSpCGA_Alt2.woff') format('woff');
}

@font-face {
  font-family: 'EagleSpCGAAlt3';
  src: url('assets/fonts/Web437_EagleSpCGA_Alt3.woff') format('woff');
}

@font-face {
  font-family: 'EagleSpCGAAlt3_2y';
  src: url('assets/fonts/Web437_EagleSpCGA_Alt3-2y.woff') format('woff');
}


body {
  font-family: 'ibm_xga-ai', monospace;
  background-color: #0b0014;
  color: #c9a0ff;
  display: flex;
  height: 100%;
}
  
h2, h3, h4, h5, h6 {
  font-family: 'ibm_cga_thin', 'ibm_ps-55_re', monospace;
  margin-bottom: 20px;
}
h1 {
	font-family: 'EagleSpCGAAlt2'
}

/* Sidebar (taskbar) */
.taskbar {
  width: 64px;
  background-color: #694072;
  border-right: 2px solid #42006c;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  gap: 10px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 10;
}

.taskbar-btn {
  background: none;
  border: none;
  color: #c9a0ff;
  width: 100%;
  font-size: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'ibm_xga-ai', monospace;
  text-decoration: none;
}

.taskbar-btn:hover {
  background-color: #2b0044;
}

.taskbar-btn img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  transition: transform 0.2s ease;
}

.taskbar-btn:hover img {
  transform: scale(1.5);
}

/* Main content */
.content {
  margin-left: 64px; 
  padding: 40px;
  background: transparent;
  flex-grow: 1;
  width: calc(100% - 64px);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Optional file-section and <details> styles */
.file-section {
  margin-bottom: 40px;
}

.file-section h2 {
  color: #ffccff;
  margin-bottom: 10px;
}

.file-section ul {
  list-style-type: square;
  padding-left: 20px;
}

.file-section ul li {
  margin: 5px 0;
}

.file-section a {
  color: #c9a0ff;
  text-decoration: none;
  transition: color 0.2s;
}

.file-section a:hover {
  color: #ffffff;
}

details {
  background-color: #1e0033;
  border: 1px solid #4b0082;
  border-radius: 6px;
  margin-bottom: 20px;
  padding: 10px;
}

summary {
  font-family: 'ibm_cga_thin', monospace;
  cursor: pointer;
  font-weight: bold;
  color: #ffccff;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  padding: 5px 0;
  z-index: 10;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "▶";
  display: inline-block;
  transition: transform 0.2s;
}

details[open] summary::before {
  content: "▼";
}

ul {
  padding-left: 20px;
  margin: 0;
  list-style-position: inside; 
}

li {
  margin-bottom: 15px;
  line-height: 1.5;
  list-style-type: square;
}

.file-section ul {
  list-style-type: square;
}

details {
  margin-bottom: 30px;
}
/* TIDY THIS */
.web-content {
  display: flex;
  gap: 40px;
  padding: 40px;
  margin-left: 64px;
  flex-wrap: wrap;
}

.web-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-left: 64px; 
  padding: 40px;
  min-height: calc(100vh - 80px);
}

.web-column {
  background-color: rgba(30, 0, 51, 0.5);
  border: 2px solid #42006c;
  padding: 20px;
  border-radius: 10px;
  flex: 1;
  min-width: 250px;
  height: calc(100vh - 160px);
  overflow-y: auto;
}
/* TIDY THIS END */

.section-title {
  font-family: 'ibm_cga_thin', monospace;
  color: #ffccff;
  font-size: 16px;
  margin-bottom: 12px;
}

.web-column ul {
  list-style-type: square;
  padding-left: 20px;
}

.web-column li {
  margin-bottom: 10px;
}

.web-column a {
  font-family: 'ibm_xga-ai', monospace;
  color: #c9a0ff;
  text-decoration: none;
  transition: color 0.2s;
}

.web-column a:hover {
  color: #ffffff;
}

/*background stuff*/

.background-disk {
  position: fixed;
  top: 85%;
  left: 95%;
  width: 10%;
  height: 10%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

.shadow, .disk {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transform-origin: center center;
}

.disk {
  opacity: 1;
}

.parallax-background {
  position: fixed;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background-color: #3e0068;
  background-image: url('assets/images/background.PNG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
  transition: transform 0.2s ease-out;
  opacity: 0.8;
}

/* Keep links in IBM font */
a {
  font-family: 'ibm_xga-ai', monospace;
  text-decoration: none;
  color: #c9a0ff;
}

.main-content {
  display: flex;
  gap: 2rem;
  position: relative;
}

.text-content {
  flex: 1;
  min-width: 0;
  background-color: rgba(30, 0, 51, 0.5);
  border-left: 2px solid #42006c;
  padding: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.status-section {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #42006c;
}

.status-section p {
  margin: 0 0 8px 0;
}

.right-panel::-webkit-scrollbar {
  width: 8px;
}

.right-panel::-webkit-scrollbar-track {
  background: rgba(30, 0, 51, 0.5);
}

.right-panel::-webkit-scrollbar-thumb {
  background: #42006c;
}

.right-panel::-webkit-scrollbar-thumb:hover {
  background: #694072;
}

.model-viewer {
  flex: 1;
  height: 100vh;
  background-color: rgba(30, 0, 51, 0.5);
  border-left: 2px solid #42006c;
  position: fixed;
  right: 0;
  top: 0;
  width: 25%;
}

/* Email link style */
.email-link {
  color: #c9a0ff;
  transition: color 0.2s;
}

.email-link:hover {
  color: #ffffff;
}

/* Contact Form Styles */
.contact-form {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #42006c;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #ffccff;
  font-family: 'ibm_cga_thin', monospace;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  background-color: rgba(30, 0, 51, 0.5);
  border: 1px solid #42006c;
  border-radius: 4px;
  color: #c9a0ff;
  font-family: 'ibm_xga-ai', monospace;
  font-size: 14px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #694072;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c9a0ff;
  box-shadow: 0 0 5px rgba(201, 160, 255, 0.2);
}

.form-group textarea {
  height: 100px;
  resize: vertical;
}

.form-submit {
  background-color: #42006c;
  color: #c9a0ff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'ibm_cga_thin', monospace;
  transition: all 0.2s;
  width: 100%;
}

.form-submit:hover {
  background-color: #694072;
  color: #ffffff;
}

.success-message {
  margin-top: 15px;
  padding: 10px;
  background-color: rgb(193, 255, 194);
  border: 1px solid #42006c;
  border-radius: 4px;
  color: #c9a0ff;
  text-align: center;
  font-family: 'ibm_xga-ai', monospace;
}

.blog-posts {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding-bottom: 30px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: flex-end; 
}

.blog-posts::-webkit-scrollbar {
  display: none;
}

.blog-post {
  flex: 0 0 350px; 
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  height: 500px; /* Taller magazines */
  backdrop-filter: blur(10px);
  transform-origin: bottom center;
  transform: perspective(1000px) rotateX(0deg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.blog-post:hover {
  transform: perspective(1000px) rotateX(-5deg) translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.blog-post-brief {
  padding: 1.5rem;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.blog-post-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.blog-post-header h3 {
  margin: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.blog-date {
  color: #fff;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.blog-post-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.blog-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-brief {
  color: #fff;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.4;
  flex-grow: 1;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Shelf background */
.blog-section::before {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px; /* Increased shelf height */
  background: url('assets/images/shelf.png') no-repeat center bottom;
  background-size: cover; /* Changed to cover to make shelf bigger */
  z-index: 101;
  pointer-events: none;
}

.error-message {
  color: #ff6b6b;
  padding: 1rem;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 4px;
  text-align: center;
  margin: 1rem 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  text-align: center;
  pointer-events: none;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

.blog-link {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 100;
    transition: transform 0.3s ease;
}

.blog-link:hover {
    transform: translateY(-10px);
}

.blog-shelf {
  width: 25%;
  position: relative;
  margin: 0 auto;
  display: block;
  pointer-events: none;
}

/* Blog page specific styles */
.blog-posts {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.blog-post {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.blog-post h2 {
    margin-top: 0;
    color: #fff;
}

.blog-post img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 10px 0;
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.magazine-cover {
    aspect-ratio: 8.5/11;
    background: #000000;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Ensure images don't overflow their container */
    cursor: pointer;
}

.magazine-cover:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.magazine-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the container, cropping if necessary to maintain aspect ratio */
    display: block; /* Removes any extra space below the image */
}

/* Hide right sidebar on mobile devices */
@media screen and (max-aspect-ratio: 1/1) {
  .right-panel {
    display: none;
  }
  
  .model-viewer {
    display: none;
  }
  
  .content {
    width: 100%;
    margin-left: 64px;
  }
}
.inline-blog-image {
  max-width: 80%;
  max-height: 40%;
  object-fit: contain;
  display: block;
  margin: 20px auto;
  border: 1px solid #ccc;
  padding: 5px;
  background: #fff;
}
.image-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.image-row img {
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
#loading {
  font-family: monospace;
  font-weight: bold;
  position: relative;
}

#loading::after {
  content: "";
  display: inline-block;
  margin-left: 10px;
  width: 12px;
  height: 12px;
  border: 3px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
