html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: "Pixelated MS Sans Serif", "Arial", sans-serif;
  background-color: #008080;
  user-select: none;
  -webkit-font-smoothing: none;
}
@font-face {
  font-family: "Digital Dismay";
  src: url("https://kindabadbrew.neocities.org/fonts/digital-dismay.otf")
    format("truetype");
}

@font-face {
  font-family: "Press Start";
  src: url("https://kindabadbrew.neocities.org/fonts/prstart.ttf");
}

@font-face {
  font-family: "MS Sans Serif";
  src: url("https://kindabadbrew.neocities.org/fonts/micross.ttf");
}

.desktop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 28px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 15px;
  z-index: 1;
}

.icon {
  width: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
  font-size: 11px;
  cursor: pointer;
  text-shadow: 1px 1px 0 #000;
}

.icon img {
  width: 32px;
  height: 32px;
  margin-bottom: 5px;
  image-rendering: pixelated;
}
.icon div {
  background: transparent;
  padding: 2px;
  border: 1px dotted transparent;
}
.icon:hover div {
  background: #000080;
  border-color: #fff;
}

img {
  image-rendering: auto;
}

.taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  display: flex;
  align-items: center;
  padding: 2px;
  z-index: 9999;
  box-sizing: border-box;
}

.start-button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  font-weight: bold;
  height: 22px;
  margin-right: 5px;
  flex-shrink: 0;
}
.start-button img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}

#taskbar-items {
  display: flex;
  flex: 1;
  gap: 2px;
  height: 22px;
  overflow: hidden;
  padding-right: 5px;
}

.task-item {
  flex: 1;
  max-width: 150px;
  min-width: 30px;
  text-align: left;
  padding: 2px 5px;
  display: flex;
  align-items: center;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
}
.task-item span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-item.active {
  background: #e6e6e6;
  box-shadow: inset 1px 1px #000, inset -1px -1px #fff;
  font-weight: bold;
}

.tray {
  border-left: 1px solid #808080;
  border-top: 1px solid #808080;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  padding: 2px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #c0c0c0;
  font-size: 11px;
  height: 22px;
  margin-left: auto;
  flex-shrink: 0;
}

.tray-divider {
  width: 1px;
  height: 16px;
  margin: 0 4px;
  background-color: #808080;
  border-right: 1px solid #ffffff;
}

.section {
  display: none;
}

.section.active {
  display: block !important;
}

.start-menu {
  position: absolute;
  bottom: 28px;
  left: 2px;
  width: 180px;
  background: #c0c0c0;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff,
    inset -2px -2px #808080, inset 2px 2px #dfdfdf;
  display: none;
  flex-direction: column;
  z-index: 10000;
  padding: 2px;
}

.sidebar-strip {
  position: absolute;
  left: 2px;
  top: 2px;
  bottom: 2px;
  width: 20px;
  background: linear-gradient(to bottom, #000080, #1084d0);
  color: white;
  font-weight: bold;
  font-size: 14px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 10px;
}

.start-menu-items {
  margin-left: 24px;
  display: flex;
  flex-direction: column;
}
.start-menu button {
  border: none;
  background: none;
  text-align: left;
  padding: 6px 10px;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "ms sans serif";
  font-size: 11px;
  color: #000;
}
.start-menu button:hover {
  background: #000080;
  color: white;
}
.start-menu button img {
  width: 24px;
  height: 24px;
}

.window {
  position: absolute;
  display: flex;
  flex-direction: column;
  box-shadow: 1px 1px 0 #000;
  min-width: 200px;
  min-height: 100px;
}

.hidden {
  display: none !important;
}

.window-body {
  flex: 1;
  overflow: auto;
  margin: 0;
  padding: 8px;
  background: #c0c0c0;
}

.minesweeper-well {
  background-color: #c0c0c0;
  padding: 6px;
  border-top: 3px solid #808080;
  border-left: 3px solid #808080;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  display: inline-block;
}

.minesweeper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px;
  margin-bottom: 6px;
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

#board {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: auto !important;
  background-color: #c0c0c0;
  border-top: 3px solid #808080;
  border-left: 3px solid #808080;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
}

.game-cell {
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;

  padding: 0;
  box-sizing: border-box;
  background-color: #c0c0c0;

  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;

  text-align: center;
  vertical-align: middle;
  font-family: "Press Start";
  font-size: 16px;
  line-height: 16px;
  cursor: default;
  overflow: hidden;
}

.game-cell.revealed {
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: none;
  border-bottom: none;
  padding-top: 1px;
  padding-left: 1px;
}

.game-cell.mine-hit {
  background-color: #ff0000 !important;
}

#mine-reset {
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  cursor: pointer;
}

#mine-reset:active {
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

.game-cell img,
#mine-reset img {
  width: 100%;
  height: 100%;
  display: block;
  margin: auto;
}

.digit-display {
  background: #000;
  color: #ff0000;
  font-family: "Digital Dismay";
  font-size: 24px;
  height: 26px;
  width: 44px;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-right: 0;

  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  line-height: 22px;
}

.num-1 {
  color: #0000ff;
}
.num-2 {
  color: #008000;
}
.num-3 {
  color: #ff0000;
}
.num-4 {
  color: #000080;
}
.num-5 {
  color: #800000;
}
.num-6 {
  color: #008080;
}
.num-7 {
  color: #000000;
}
.num-8 {
  color: #808080;
}

#musicWindow .window-body,
#gamesWindow .window-body,
#riddleWindow .window-body {
  overflow: hidden;
}

.title-bar {
  cursor: default;
}
.title-bar.active {
  background: linear-gradient(90deg, #000080, #1084d0);
}
.title-bar.inactive {
  background: #808080;
  color: #c0c0c0;
}

.title-bar-text {
  display: flex;
  align-items: center;
  gap: 2px;
}

.title-bar-text img {
  image-rendering: pixelated;
  pointer-events: none;
}

.resizer {
  width: 12px;
  height: 12px;
  background-image: linear-gradient(135deg, transparent 50%, #808080 50%);
  position: absolute;
  bottom: 3px;
  right: 3px;
  cursor: nwse-resize;
  z-index: 20;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
  border-bottom: 1px solid #c0c0c0;
  filter: grayscale(1);
  opacity: 0.6;
}

.achievement-item.unlocked {
  filter: grayscale(0);
  opacity: 1;
  background: #f0f0f0;
}

.achievement-item img {
  width: 24px;
  height: 24px;
}
.achievement-title {
  font-weight: bold;
  font-size: 11px;
  display: block;
}
.achievement-desc {
  font-size: 12px;
  color: #555;
}

.achievement-locked {
  filter: grayscale(1) contrast(0.7);
  opacity: 0.6;
}

.achievement-locked legend {
  color: #808080;
}

.toast-text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#achievement-toast {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 260px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #0a0a0a #0a0a0a #ffffff;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  z-index: 1000000;
  padding: 2px;

  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s;
  transform: translateX(130%);
  opacity: 0;
}

#achievement-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-header {
  background: #000080;
  color: white;
  padding: 2px 4px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
}

.toast-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
}

.toast-body img {
  width: 32px;
  height: 32px;
}
#toast-title {
  font-size: 11px;
  color: #000;
}

#toast-desc {
  word-wrap: break-word;
  max-width: 190px;
}

.achievement-locked {
  filter: grayscale(1) opacity(0.5);
}
.achievement-locked legend {
  color: #808080;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: black;
  padding: 4px;
  border: 1px dotted transparent;
}
.social-link:hover {
  background: #000080;
  color: white;
  border-color: white;
}

.work-item {
  border: 2px groove #dfdfdf;
  padding: 8px;
  margin-bottom: 8px;
  background: #ffffff;
}

.album-container {
  width: 64px;
  height: 64px;
  border: 2px inset #fff;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}
.album-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-box {
  padding: 20px;
  text-align: center;
}
iframe {
  background: white;
}

.rotating-skull {
  animation: skull-rotate 3s ease-in-out infinite;
}

@keyframes skull-rotate {
  0% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
  100% {
    transform: rotate(-5deg);
  }
}

#riddleBody {
  transition: background-color 1s ease-in-out;
}