* {
  box-sizing: border-box;
  color: rgb(17, 17, 17);
}

ul[role="menu-bar"] {
  border-bottom: 1px solid #000;
  margin: 0;
  padding: 0;
}

ul[role="menu-bar"] li[role="menu-item"] {
  margin-bottom: 0;
  padding: 0;
}

ul[role="menu-bar"] li[role="menu-item"] a {
  color: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
  padding: 6px 10px;
}

.everything {
  position: relative;
  width: 100%;
  height: calc(100vh - 28px);
  margin: 0 auto;
  overflow: hidden;
}

.window {
  position: absolute;
  max-width: 720px;
  background: white;
  border: 1px solid #000;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  z-index: 1;
  overflow: hidden;
}

.window.wide-window {
  max-width: 1440px;
}

.window.focused {
  z-index: 1000;
}

.title-bar {
  cursor: move;
  user-select: none;
}

/* Desktop icons */
.desktop-icons {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 0;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
  user-select: none;
  width: 80px;
  text-align: center;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 2px;
}

.desktop-icon.selected {
  border-color: #000;
  background: rgba(0, 0, 0, 0.08);
}

.desktop-icon.selected .icon-label {
  background: #000;
  color: #fff;
}

.icon-label {
  font-size: 12px;
  font-family: Geneva, Verdana, sans-serif;
  margin-top: 4px;
  padding: 1px 4px;
  line-height: 1.3;
}

.icon-shape {
  image-rendering: pixelated;
}

/* Document icon (About) */
.icon-doc {
  width: 38px;
  height: 46px;
  background: #fff;
  border: 2px solid #000;
  position: relative;
}

.icon-doc::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 6px;
  width: 20px;
  height: 2px;
  background: #000;
  box-shadow: 0 6px 0 #000, 0 12px 0 #000, 0 18px 0 #000;
}

/* Folder icon (Library) */
.icon-folder {
  width: 48px;
  height: 34px;
  background: #fff;
  border: 2px solid #000;
  position: relative;
  margin-top: 12px;
}

.icon-folder::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -2px;
  width: 22px;
  height: 12px;
  background: #fff;
  border: 2px solid #000;
  border-bottom: none;
}

/* Window contents */
.window-contents {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  margin-top: 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 200px);
}

.window-contents.wide-contents {
  max-width: 1400px;
}

@media (max-width: 768px) {
  .desktop-icons {
    display: none;
  }

  .sidepanel-window {
    display: none;
  }

  .everything {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    overflow: visible;
  }

  .window {
    position: relative;
    max-width: calc(100vw - 20px);
    margin: 20px 10px;
    left: auto !important;
    top: auto !important;
  }

  .title-bar {
    cursor: default;
  }

  .window-contents {
    max-height: none;
    overflow-y: visible;
  }
}

body {
  margin: 0;
  font-size: 16px;
  line-height: 25.6px;
}

p {
  line-height: 30px;
  font-size: 20px;
  margin: 5px 0;
}

li {
  font-size: 20px;
}

ol > li {
  margin-bottom: 10px;
}

ul > li {
  margin-bottom: 10px;
}

li > p {
  margin-top: 0;
  margin-bottom: 0;
  margin-block-start: 0;
  margin-block-end: 0;
}

a {
  text-decoration: none;
  color: rgb(33, 93, 211);
}

blockquote {
  border-left: 2px solid rgb(33, 93, 211);
  padding-left: 20px;
  font-style: italic;
  font-weight: 300;
}

pre {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

code[class*="language-"] {
  white-space: pre-wrap;
}

header {
  text-align: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

footer {
  border-top: 1px solid #eee;
  display: block;
  font-size: 14px;
  text-align: center;
  margin: 10px 0;
  padding-top: 15px;
}

img {
  max-width: 100%;
}

.title {
  margin: 0;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
}

.section-title {
  margin: 0;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
}


.subtitle {
  text-align: center;
  color: rgb(182,182,182);
  margin: 0;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  width: 100%;
}

.borderLine {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
  background: none;
  border-bottom: 1px solid #eee;
  height: 0;
  width: 100%;
}

.subscribe {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  padding: 3px;
  margin-top: 15px;
  padding-top: 20px;
  text-align: center;
  max-width: 100%;
}

.subscribeInput {
  padding: 5px 10px;
  width: 325px;
  font-size: 16px;
  border: 2px solid rgb(33, 93, 211);
  border-radius: 4px;
  margin-right: 20px;
}
.subscribeButton {
  font-size: 16px;
  background-color:rgb(33, 93, 211);
  color: white;
  cursor: pointer;
  font-weight: 600;
  justify-content: center;
  padding: 5px 10px;
  text-align: center;
  white-space: nowrap;
  border-radius: 4px;
}

.warning {
  font-size: 14.4px;
  margin-top: 10px;
  margin-left: 10px;
}

.copyright {
  margin-top: 0;
  font-size: 14px;
  line-height: 27.6px;
}

/* library */
#the-library {
  width: 100%;
}

.librarySelect {
  padding: 5px 10px;
  width: 100%;
  font-size: 22px;
  border: 4px solid rgb(33, 93, 211);
  border-radius: 4px;
  /* margin-right: 20px; */
}

#library-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#booklist {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.card {
  text-align: center;
  background-color: white;
  border: 1px solid #eee;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin: 1rem;
  padding: 1rem;
  max-width: 400px;
}

#library-button-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
}

#library-button {
  background-color: rgb(33, 93, 211);
  color: white;
}

#library-lazy {
  background-color: #20c997;
  color: white;
}

#library-instructions {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

#library-title {
  margin-bottom: 5px;
}

#library-schema {
  margin-top: 16px;
  cursor: pointer;
  font-size: 16px;
}

.btn {
  display: inline-block;
  width: 49%;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.25rem;
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
