html { background: #14141c; }
html.js body {
  opacity: 0;
  transition: opacity 0.35s ease;
}
html.js body.ready {
  opacity: 1;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #e8e6f2;
  font-family: "Times New Roman", Times, serif;
  overflow: hidden;

  /* the accelerator as background */
  background-color: #14141c;
  background-image: url('graphics_personal/particleAccel.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

.top-nav {
  display: flex;
  gap: 24px;
  padding: 16px 24px;
}
.top-nav a {
  color: #cfc9e6;
  text-decoration: none;
  font-size: 16px;
}
.top-nav a:hover {
  text-decoration: underline;
}

.desktop {
  display: flex;
  gap: 40px;
  padding: 40px;
}

/* Folder build */
.folder {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  color: #e8e6f2;
}

.folder.selected .folder-icon {
  outline: 2px solid #cfc9e6;
  outline-offset: 3px;
}
.folder.selected .folder-label {
  background: #3a3a55;
  border-radius: 3px;
}

.folder-icon {
  width: 88px;
  height: 70px;
  display: block;
  background-image: url('graphics_personal/folderIcon.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
}
.folder:hover .folder-icon {
  filter: brightness(1.15);
}

.folder-label {
  font-size: 15px;
}

/* Window that pops up */
.window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 460px;
  max-width: 90vw;

  background: #201a2e;
  border: 3px solid #6f5b9e;
  border-radius: 0;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.5);

  display: none;
}
.window.is-open {
  display: block;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #160f24;
  border-bottom: 3px solid #6f5b9e;
  padding: 6px 8px;
}

.window-title {
  flex: 1;
  font-family: monospace;
  font-size: 13px;
  color: #cfc3e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-back,
.window-close {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: #2c2340;
  border: 2px solid #6f5b9e;
  color: #e8e6f2;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.window-back:hover,
.window-close:hover {
  background: #6f5b9e;
  color: #ffffff;
}

.window-body {
  padding: 18px;
  font-size: 16px;
  line-height: 1.6;
  min-height: 120px;
  max-height: 60vh;
  overflow-y: auto;
}

/* Files + Subfolders */
.window-body .items {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 4px;
}
.window-body .item {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  color: #e8e6f2;
  width: auto;
  min-width: 80px;
  max-width: 110px;
  padding: 6px;
  border-radius: 2px;
}
.window-body .item .item-icon {
  width: 72px;
  height: 58px;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
}
.window-body .item.folder .item-icon {
  background-image: url('graphics_personal/folderIcon.png');
}
.window-body .item.file .item-icon {
  background-image: url('graphics_personal/txtIcon.png');
}
.window-body .item.image .item-icon {
  background-image: url('graphics_personal/pngIcon.png');
}
.window-body .item .item-label {
  font-size: 13px;
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
}
.window-body .item:hover .item-icon {
  filter: brightness(1.15);
}
.window-body .item.selected .item-icon {
  outline: 2px solid #cfc9e6;
  outline-offset: 3px;
}
.window-body .item.selected .item-label {
  background: #3a3a55;
  border-radius: 3px;
}

.file-text {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
}

/* Main page app */
.main-app {
  position: fixed;
  top: 40px;
  right: 40px;               
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #e8e6f2;
  font-family: inherit;
}
.main-app-icon {
  width: 64px;
  height: 80px;
  background-image: url('graphics_personal/mainButton.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
}
.main-app:hover .main-app-icon {
  filter: brightness(1.15);
}
.main-app-label {
  font-size: 15px;
}

/* Hyperlinks in text files */
.file-text a {
  color: #6fa8ff;
  text-decoration: underline;
}
.file-text a:hover {
  color: #9cc4ff;
}

/* image file*/
.image-view {
  display: block;
  max-width: 100%;
  max-height: 55vh;
  margin: 0 auto;
}


#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1
}