body {
  margin: 0;
  font-family: "Slackside One", cursive;
}

.text-background {
  color: #0B2D5C;
  font-family: "Slackside One", cursive;
  padding: 75px 50px 0;
  padding-left: 75px;
  min-height: calc(100vh - 180px);
  box-sizing: border-box;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

h1 {
  font-size: 70px;
  margin: 0;
}

h2 {
  font-size: 20px;
  margin: 0;
}

.topbar {
  position: fixed;
  width: 100%;
  display: flex;
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.25);
  color: #fff;
  justify-content: space-between;
  top: 0;
  left: 0;
  height: 40px;
  align-items: center;
  z-index: 100;
}

.topbar p {
  margin: 0;
}

.topbar .brand {
  margin-left: 10px;
  cursor: pointer;
}

.topbar .time {
  margin-right: 10px;
}

.window {
  position: absolute;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  background: rgba(126, 212, 153, 0.125);
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.window-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: grab;
  margin-top: 8px;
  padding: 0 12px;
  box-sizing: border-box;
}

.window-title {
  margin: 0;
  color: #fff;
  font-weight: 500;
  flex: 1;
  text-align: center;
}

.window-close {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: #ff4d4d;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.window-body {
  background-color: #eaeeeb;
  margin: 6px;
  border-radius: 12px;
  width: 360px;
  padding: 16px;
  text-align: center;
  box-sizing: border-box;
}

.window-body img {
  width: 64px;
  height: 64px;
  border-radius: 32px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

#welcome {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.notes-window {
  display: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, calc(100vw - 24px));
}

.notes-body {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  width: auto;
  height: min(480px, calc(100vh - 100px));
  min-height: 260px;
  text-align: left;
}

.notes-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.add-note {
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  background: #80becd;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  min-height: 0;
}

.note-list-item {
  border: 0;
  border-radius: 8px;
  padding: 10px;
  background-color: #66a9c9;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.note-list-item.selected {
  background-color: #e4e4e4;
}

.note-list-title {
  display: block;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-list-date {
  display: block;
  font-size: 12px;
}

.note-editor {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.note-title {
  width: 100%;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  background: transparent;
  box-sizing: border-box;
}

.note-title:focus {
  outline: 2px solid #aaa;
  outline-offset: 2px;
}

.note-date {
  margin: 2px 0 12px;
  font-size: 12px;
}

.note-content {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  padding-right: 8px;
  box-sizing: border-box;
}

.note-content:focus {
  outline: 2px solid #aaa;
  outline-offset: 2px;
}

.notes-error {
  grid-column: 1 / -1;
  margin: 0;
  color: #a00000;
  font-size: 13px;
}

.notes-error[hidden] {
  display: none;
}

.note-content blockquote {
  background-color: #f9f9f9;
  margin: 16px 0;
  padding: 16px;
  border-radius: 12px;
}

.notes-sidebar .notes-list {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 16px;
}

.window-header:active {
  cursor: grabbing;
}

@media (max-width: 560px) {
  .notes-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .notes-sidebar .notes-list {
    flex-direction: row;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .note-list-item {
    min-width: 120px;
  }
}

.gallery-window {
  display: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, calc(100vw-24px));
}

.gallery-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 16px;
  margin: 6px;
  border-radius: 12px;
  background: white;
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.photo-card h3,
.photo-card p {
  margin: 8px 0 0;
}

.closebutton {
  width: 16px;
  height: 16px;
  cursor: pointer;
  background-color: #EC6B5E;
  border-radius: 16px;
  border: solid 1px rgba(0, 0, 0, 0.25);
  margin-left: 6px;
}

.selected img {
  border: 2px solid #2fa7b7;
  box-sizing: border-box;
}

.desktop-app {
  width: fit-content;
  cursor: pointer;
}

.desktop-apps {
  display: flex;
  gap: 24px;
  padding: 24px 16px;
}

.desktop-app.selected {
  cursor: grab;
}

.desktop-app.selected:active {
  cursor: grabbing;
}
