
p {
  font-size: 12pt;
}

footer {
  display: flex;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}

footer p {
  margin-left: 1em;
  margin-bottom: 1em;
}

footer a {
  margin-left: auto;
  margin-right: 1em;
  margin-bottom: 1em;
  padding: 5px;
  text-decoration: none;
}

summary {
  margin-bottom: 10px;
}

details {
  /* display: flex; */
  /* flex-direction: column; */
}
details a {
  display: flex;
  padding: 14px 25px;
  margin-bottom: 4px;
  margin-bottom: 4px;
  /* width: 100%; */
  text-decoration: none;
  background-color: black;
  text-align: center;
  color: white;
  
}

/* CSS id's */

#welcome {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#welcome p {
  text-align: justify;
  width: 40vw;
}

#welcome ul {
  text-align: justify;
  width: 40vw;
}

#welcome li {
  text-align: justify;
  max-width: 37vw;
}

#top-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  /* width: 55%; */
}

#add-copy {
  margin-top: 20em;
}

#login-box {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#back-button {
  color: black;
}

#book-list {
  max-height: 60vh;
}

#book-list > ul {
  list-style: none;
  break-inside: avoid;
}

#book-list a {
  color: black;
  text-decoration: none;
  font-size: 12pt;
  /* margin: 10px; */
}

#book-list li {
  margin: 5px;
}

#tip {
  text-align: center;
  justify-content: center;
  color: grey;
  width: 30em;
}

#navbar {
  display: flex;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
}

#navbar a {
  margin-left: 1em;  
}

#navbar a:nth-child(2) {
  margin-left: auto;
  margin-right: 1em;
  color: grey;
}

#navbar p {
  /* margin: 0; */
  margin-left: auto;
  margin-right: 1em;
  color: grey;
}

#sort {
  padding: 8px;
}

/* CSS classes */
.grey{
  color: grey;
}

.start {
  gap: 0.8rem;
}

.block-button {
  padding: 14px 25px;
  width: 7rem;
  text-decoration: none;
  background-color: black;
  text-align: center;
  color: white;
}

.center-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.form-box {
  /* width: 40px; */
  margin-left: 40%;
  margin-right: 40%;
}

.form-box p {
  text-align: justify;
}

.button {
  padding: 14px 25px;
  margin: 15px;
  text-decoration: none;
  background-color: black;
  color: white;
}

.borrow-list li {
  padding: 10px;
  margin-top: 2px;
}

.borrow-list {
  display: flex;
  flex-direction: column;
}

.borrow-list a {
  padding: 8px 8px;
  /* margin: 12px; */  
  text-decoration: none;
  background-color: black;
  color: white;
}

.returned {
  background-color: green !important;
}

.permanent {
  background-color: red !important ;
  color: white !important;
}

.delete {
  /* background-color: red !important; */
  background-color: white !important ;
  color: black !important;

  border: 1px solid black;

}

.confirm {
  background-color: green !important;
  color: white;
}

.deny {
  background-color: red !important;
  color: white;
}

.prompt {
  display: flex;
  text-align: center;
  justify-content: center;
  color: black;
  width: 30em;
  margin-bottom: 2em;
}

.admin-list {
  min-width: 20em; 
  max-height: 65vh;
}

.admin-list li {
  display: flex;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.admin-list > li > ul {
  flex-basis: 100%;
  margin: 0;
}

.admin-list a {
  padding: 8px 8px;
  margin-left:8pt;
  text-decoration: none;
  background-color: black;
  color: white;
}

.admin-list a:first-of-type {
  margin-left:auto;
}

.inverted {
  background-color: white;
  color: black;
  border: 2px solid black;
  text-align: center;
  /* width: 600px; */
}



#tree-title {
  margin: 0.5em;
  margin-bottom: 0em;
}

.tip {
  text-align: center;
  justify-content: center;
  color: black;
  width: 30em;
  margin-bottom: 2em;

}

.tree, .tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.tree ul {
  margin-left: 20px;
}

.tree li {
  margin: 0;
  padding: 0 0 0 20px;
  line-height: 20px;
  position: relative;
}

/* vertical line */
.tree ul li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  border-left: 1px solid #555;
  height: 100%;
}

/* horizontal line */
.tree ul li::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 20px;
  border-top: 1px solid #555;
}

.overflow: {
  overflow: auto;
}

/* remove vertical line after last child */
.tree ul li:last-child::before {
  height: 10px;
}

/* css for small screen (ugh) */
@media (max-width: 768px) {
  html {
    font-size: 14pt;
  }
}

@media (max-width: 426px) {

  body {
    overflow-x: scroll;
  }
  #tip {
    text-align: center;
    justify-content: center;
    color: grey;
    width: 20em;
  }

  .center-box{
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .inverted {
    background-color: white !important;
    color: black !important;
  }

  .block-button {
    padding: 14px 25px;
    width: 4rem;
    text-decoration: none;
    background-color: black;
    text-align: center;
    color: white;
  }
}
