/* Main body styles */
body {
  font-family: "Tahoma", "Verdana", sans-serif;
  margin: 0;
  padding: 0;
  color: black;
  padding-bottom: 40px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Gray background for the body */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
  background: #c0c0c0;
}

/* Background video */
#background-video {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
  object-fit: cover;
  opacity: 0.85;
  pointer-events: none;
}

/* Disable text selection for the entire body, avoids selection with movable windows */
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Enable text selection for specific elements */
.content, p, span, h1, h2, h3, h4, h5, h6, a, button {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  z-index: 1000; /* Ensure it stays on top */
}

/* Animation for the diagonal lines */
@keyframes slideStripes {
  from {
    background-position: 0px 0;
  }
  to {
    background-position: -4000px 0;
  }
}

@media (max-width: 68px) {
  .banner-separator {
    height: 18px;
    background-size: 100vw 100vw;
    animation-duration: 6s;
  }
}

/* Main window with navigation menu and text */
.window {
  width: 90%;
  max-width: 900px;
  margin: 75px auto;  /* 75px auto default if no banner */
  margin-bottom: 50px;
  border: 2px solid #000;
  background-color: #e0e0e0;
  box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #808080;
  box-sizing: border-box;
}


.title-bar {
  background: linear-gradient(to right, #000080, #0000a0);
  color: white;
  padding: 4px 8px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title-bar span {
  font-size: 14px;
}

.title-buttons {
  display: flex;
  gap: 2px;
}

.title-button {
  width: 16px;
  height: 16px;
  background-color: #c0c0c0;
  border: 2px outset #fff;
  font-size: 12px;
  text-align: center;
  line-height: 12px;
  cursor: pointer;
}

/* Navigation menu */
nav {
  background-color: #d4d0c8;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  transition: background-color 0.2s ease;
}

nav li {
  position: relative;
  border: 2px solid transparent; /* ← reserve border space */

}

nav li:hover {
  background-color: #b0b0b0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
}

nav > ul > li {
  padding: 8px 16px;
  border-right: 2px solid #808080;
}

nav > ul > li:first-child {
  border-left: 2px solid #808080;
}

nav a {
  text-decoration: none;
  color: black;
  font-weight: bold;
}

nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #d4d0c8;
  border: 2px solid #000;
  list-style: none;
  padding: 0;
  z-index: 999;
  min-width: 160px;
}

nav li:hover ul {
  display: block;
}

nav li ul li {
  padding: 8px 12px;
  border-bottom: 2px solid #808080;
}

nav li ul li:last-child {
  border-bottom: none;
}

nav li ul li:hover {
  background-color: #b0b0b0; /* Original color 000080 */
  color: white;
}

/* Mobile style for navigation */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  nav > ul > li {
    border: none;
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0;
  }

  nav > ul > li a {
    display: block;
    padding: 12px 16px;
    border: 2px solid transparent; /* reserve border space */
    border-bottom: 1px solid #808080;
    width: 100%;
    box-sizing: border-box; /* Prevent padding from overflowing */
  }

  nav > ul > li a:hover {
    background-color: #b0b0b0;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;
  }

  nav > ul > li:first-child {
    border-left: none;
  }

  nav > ul > li:last-child {
    border-bottom: none;
  }
}

/* Main content area */
main {
  padding: 20px;
  background-color: #ffffff;
  border: 2px inset #808080;
  margin: 20px;
  box-sizing: border-box;
}

h1 {
  font-size: 20px;
  margin-bottom: 10px;
  text-align: center;
}

p {
  font-size: 16px;
  line-height: 1.4;
  white-space: pre-line;
}

/* Clickable Windows 98-style button with text */
.win98-button {
  font-family: Tahoma, sans-serif;
  font-size: 14px;
  padding: 4px 12px;
  background-color: #d4d0c8;
  border: 2px outset #fff;
  color: black;
  box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #fff;
  cursor: pointer;
  margin-top: 10px;
}

.win98-button:active {
  border: 2px inset #808080;
  box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff;
}

/* Trello card styles */
.trello-card {
  height: 295px;  /* To avoid cutoff */
}

.trello-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.trello-text {
  flex: 1;
  font-size: 16px;
}

.trello-card-wrapper {
  flex-shrink: 0;
}

/* Grid of clickable icons for draggable windows */
.icon-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.icon-label {
  margin-top: 4px;
  color: black;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}

.icon:hover .icon-label {
  color: #000080; /* match social media hover color */
  transform: scale(1.1);
}

.icon img {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

.icon:hover img {
  transform: scale(1.1);
}


/* Bottom taskbar */
.taskbar {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 40px;
  background-color: #c0c0c0;
  border-top: 2px solid #808080;
  display: flex;
  align-items: center;
  padding: 0 5px;
  justify-content: space-between;
}

.start-button {
  background-color: #d4d0c8;
  border: 2px outset #fff;
  padding: 4px 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.start-button:hover {
  background-color: #b0b0b0;
}

#time {
  padding-right: 10px;
  font-size: 14px;
}

/* Social media icons */
.social-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.social-row a img {
  width: 40px;
  height: 40px;
  transition: transform 0.2s ease;
}

.social-row a:hover img {
  transform: scale(1.1);
}

.social-media-title {
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  margin-top: 50px;
  margin-bottom: 8px;
}

.social-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: color 0.2s ease;
}

.social-row a {
  text-decoration: none;
}

.social-label {
  margin-top: 4px;
  font-size: 14px;
  font-weight: bold;
  color: black;
  transition: color 0.3s, transform 0.3s;
  text-decoration: none;
}

.social-icon:hover .social-label {
  color: #000080; /* Highlight color */
  transform: scale(1.1);
}

/* Closable corner GIF */
.corner-gif {
  position: fixed;
  bottom: 6vh;
  right: 3vw;
  max-width: 12vw;
  z-index: 999;
  pointer-events: auto;
}

.corner-gif img {
  width: 100%;
  height: auto;
  display: block;
}

.close-gif-btn {
  position: absolute;
  top: -20px;
  right: -10px;
  background: #d4d0c8;
  border: 2px outset #fff;
  font-size: 12px;
  cursor: pointer;
  width: 20px;
  height: 20px;
  padding: 0;
  line-height: 16px;
  text-align: center;
  z-index: 1000;
}

.close-gif-btn:active {
  border: 2px inset #808080;
}

/* VHS overlay style */
.vhs-static-overlay {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: url('../images/vhs-static-overlay.gif'); /* static VHS-style animation */
  opacity: 0.10;  /* Adjust intensity */
  mix-blend-mode: normal;  /* Creates ghosty VHS glow */
}

.vhs-static-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.01) 0px,
    rgba(255,255,255,0.01) 1px,
    transparent 2px,
    transparent 4px
  );
  animation: scanlines 1s linear infinite;
}

@keyframes scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

.vhs-lines-overlay {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: url('../images/vhs-lines-overlay.jpg'); /* static VHS-style animation */
  opacity: 0.07;  /* Adjust intensity */
  mix-blend-mode: normal;  /* Creates ghosty VHS glow */
}

/* Mobile style */
@media (max-width: 768px) {
  .window {
    width: 95%;
    margin: 10px auto;
  }

  main {
    margin: 10px;
    padding: 15px;
  }


  .banner {
    height: 150px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav li {
    padding: 10px;
  }

  .icon-grid {
    gap: 20px;
  }

  .icon {
    width: 60px;
    font-size: 10px;
  }

  .taskbar {
    height: 50px;
  }

  .start-button {
    padding: 6px 15px;
  }

  #time {
    font-size: 12px;
  }
}

/* Custom cursor styles */
@media (pointer: fine) {
  body {
    cursor: url('../images/cursor/arrow.cur'), auto;
  }

  span, a, em, strong, label, h1 {
    cursor: url('../images/cursor/text.cur'), text;
  }

  a,
  button,
  label,
  summary,
  .clickable,
  [role="button"],
  [onclick] {
    cursor: url('../images/cursor/pointer.cur'), pointer;
  }

  .draggable-window .title-bar {
    cursor: url('../images/cursor/move.cur'), move;
  }

  .resizable-horizontal {
    cursor: url('../images/cursor/ew-resize.cur'), ew-resize;
  }

  .resizable-vertical {
    cursor: url('../images/cursor/ns-resize.cur'), ns-resize;
  }

  .loading {
    cursor: url('../images/cursor/wait.cur'), wait;
  }

  button:disabled,
  input:disabled,
  .not-allowed,
  .blocked-area {
    cursor: url('../images/cursor/not-allowed.cur'), not-allowed;
  }
}
