:root {
  --font-stack: "Segoe UI", Candara, "Bitstream Vera Sans", "DejaVu Sans",
    "Bitstream Vera Sans", "Trebuchet MS", Tahoma, Verdana, "Verdana Ref",
    sans-serif;

  --window-title-color1: #2cabe2;
  --window-title-color2: #40b58b;
  --window-title-color3: #e07040;

  --window-background: #fcf5e8;

  --scroll-bar-color: #fcb13b;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-stack);
  font-size: 14px;
  background-color: #f0f0f0;
  background-image: radial-gradient(#d0d0d0 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 20px;
  box-sizing: border-box;
}

.centered-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

a,
a:visited {
  transition: all 0.3s ease;
  color: #0580e0;
}

a:hover {
  color: #2cabe2;
}

.window {
  background-color: var(--window-background);
  border: 2px solid #000;
  box-shadow: -6px 6px 0px rgba(0, 0, 0, 1);
  width: 400px;
  height: 300px;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.window .title-bar-blue {
  background-color: var(--window-title-color1);
}

.window .title-bar-green {
  background-color: var(--window-title-color2);
}

.window .title-bar-red {
  background-color: var(--window-title-color3);
}

.window .title-bar {
  color: black;
  padding: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #333;
  box-sizing: border-box;
  height: 30px;
  font-weight: bold;
}

.window .title-bar .controls {
  display: flex;
}

.window .title-bar .controls .control-button {
  width: 20px;
  height: 20px;
  margin-left: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  cursor: pointer;
}

.window .content {
  flex-grow: 1;
  padding: 0px 30px 30px 10px;
}

.scroll-bar-vertical {
  position: absolute;
  top: 30px;
  right: 0px;
  width: 16px;
  height: calc(100% - 44px);
  border-left: 2px solid #000;
  border-bottom: 2px solid #000;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background-color: var(--window-background);
}

.scroll-bar-vertical .scroll-track {
  width: 100%;
  height: calc(100% - 28px);
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.scroll-arrow-up,
.scroll-arrow-down {
  width: 14px;
  height: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  cursor: pointer;
  box-sizing: border-box;
}

.scroll-bar-vertical .scroll-thumb {
  border: 2px solid #000;
  height: 50px;
  width: 10px;
  cursor: grab;
  margin: 2px 0;
  border-radius: 5px;
  box-sizing: border-box;
  background-color: var(--scroll-bar-color);
}

.scroll-bar-horizontal {
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: calc(100% - 14px);
  height: 16px;
  border-top: 2px solid #000;
  border-right: 2px solid #000;
  display: flex;
  box-sizing: border-box;
  background-color: var(--window-background);
}
.scroll-bar-horizontal .scroll-track {
  width: calc(100% - 28px);
  height: 100%;
  border-left: 2px solid #000;
  border-right: 2px solid #000;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
.scroll-bar-horizontal .scroll-thumb {
  border: 2px solid #000;
  width: 200px;
  height: 10px;
  cursor: grab;
  margin: 0 2px;
  border-radius: 5px;
  box-sizing: border-box;
  background-color: var(--scroll-bar-color);
}

.scroll-arrow-left,
.scroll-arrow-right {
  width: 14px;
  height: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  cursor: pointer;
  box-sizing: border-box;
}

.cloud-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  overflow: hidden;
}

.cloud {
  position: absolute;
  color: #ffffff;
  opacity: 0.8;
  animation: moveCloud linear infinite;
}

.cloud-1 {
  font-size: 2em;
  bottom: 15px;
  animation-duration: 20s;
  animation-iteration-count: infinite;
}

.cloud-2 {
  font-size: 3em;
  bottom: 10px;
  animation-duration: 30s;
  animation-delay: -10s;
  animation-iteration-count: infinite;
}

.cloud-3 {
  font-size: 1.5em;
  bottom: 30px;
  animation-duration: 15s;
  animation-delay: -40s;
  animation-iteration-count: infinite;
}

.cloud-4 {
  font-size: 2.5em;
  bottom: 5px;
  animation-duration: 25s;
  animation-delay: -15s;
  animation-iteration-count: infinite;
}

.cloud-5 {
  font-size: 1.8em;
  bottom: 20px;
  animation-duration: 18s;
  animation-delay: -8s;
  animation-iteration-count: infinite;
}

.cloud-6 {
  font-size: 2.2em;
  bottom: 8px;
  animation-duration: 30s;
  animation-delay: -20s;
  animation-iteration-count: infinite;
}

@keyframes moveCloud {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(400px);
  }
}

.desktop-icons {
  margin-left: 50px;
}

.desktop-icons a {
  color: #000;
}

.desktop-icons .icon:hover {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.desktop-icons .icon {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.5s ease;
  padding: 5px;
  box-sizing: border-box;
}

.desktop-icons .icon .name {
  text-align: center;
  margin-top: 5px;
}

.desktop-icons .icon .name p {
  text-align: center;
  padding: 1px 4px;
  border: 2px solid #000;
  border-radius: 5px;
  background-color: #fff;
  display: inline-block;
  margin: 0;
}

.desktop-icons .icon img {
  display: block;
  width: 60px;
}

.note-group-title {
  font-weight: bold;
  margin-top: 10px;
}

.note-group ul {
  margin-top: 5px;
  padding-left: 15px;
  list-style-type: none;
}

.table-of-content {
  margin-left: -10px;
}

.table-of-content ul {
  margin: 0;
  padding-left: 10px;
  list-style-type: none;
}

.table-of-content ul li {
  padding-bottom: 5px;
}

.note-back-button {
  display: block;
  margin: 0;
  width: 20px;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: #000 !important;
  border: 2px solid #000;
  border-radius: 5px;
  padding: 5px 10px;
  background-color: var(--scroll-bar-color);
  transition: all 0.5s ease;
  text-align: center;
  margin-bottom: 10px;
}

.note-back-button:hover {
  background-color: var(--scroll-bar-color);
  filter: brightness(1.2);
  color: #000;
}

#note-content pre {
  background-color: #f0f0f0;
  padding: 10px;
  border-radius: 5px;
  border: 2px solid #000;
  /* max-width: calc(100% - 20px); */
  overflow: auto;
  line-height: normal;
  font-size: 0.9em;
}

#note-content pre:has(code) {
  padding: 0;
}

#note-content {
  line-height: 1.5em;
}

#note-content h1 {
  font-size: 1.5em;
}
#note-content h2 {
  font-size: 1.25em;
}
#note-content h3 {
  font-size: 1em;
}

#note-content ul {
  padding-left: 30px;
}

#note-content img {
  max-width: 100%;
}

#note-content table {
  max-width: 100%;
  border-collapse: collapse;
}

#note-content table,
#note-content td,
#note-content th {
  border: 1px solid #ccc;
  padding: 5px;
}

#search-input {
  width: 100%;
  margin-right: 10px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

#search-results {
  margin-top: 10px;
}
