#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;
  margin: 0.5em;
}

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


#instance-list {
  display: flex;
  gap: 10px;
  /* height: 100px; */
  /* flex-direction: row; */
}

#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:last-child {
  /* margin: 0; */
  margin-left: auto;
  margin-right: 1em;
  color: grey;
}


/* CSS classes */


.card {
  color: black;
  
  border-radius: 25px;
  background-image: url("/img/sumi-4.png");
  background-size: cover;
  border-style: solid;

  position: relative;

  margin-top: auto;
  margin-bottom: 0em;
  
  width: 200px;
  height: 300px;
  overflow: hidden;

  transition: opacity 1s ease;

  word-wrap: normal;
}

.tana {
  background-image: url("/img/sumi-2.png");
}

.panta {
  background-image: url("/img/panta-profile-pic.jpg");
}

.card:visited {
  color: black;
}

.card h3, .card p {
  inset: 0.5em;
  position: relative;
  opacity: 0;
  transition: opacity 1.2s ease;
  color: white !important;
  word-wrap: normal;

  max-width: 90%;
}

.card::before {
  content: '';
  position: absolute;

  inset: 0;

  background: black;
  opacity: 0;
}

.card:hover::before {
  transition: opacity 1s ease;
  opacity: 0.8;
}

.card:hover h3, .card:hover p {
  inset: 0.5em;
  opacity: 1;
  position: relative;
  z-index: 2;
}

/* .card:visited { */
  /* color: black; */
/* } */



.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;
}


.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;
}

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


/* css for small screen (ugh) */
@media (max-width: 768px) {
  html {
    font-size: 14pt;
  }
  #welcome {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
  }
  #welcome p {
    width: 80vw;
    height: none;
  }

  #welcome ul {
    text-align: justify;
    width: 80%;
  }
  #welcome li {
    text-align: justify;
    max-width: 80%;
    margin: 0.5em;
  }
  
}

@media (max-width: 426px) {

  body {
    overflow-y: scroll;
  }

  #welcome {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
  }
  #welcome p {
    width: 80vw;
    height: none;
  }

  #welcome ul {
    text-align: justify;
    width: 80%;
  }
  #welcome li {
    text-align: justify;
    max-width: 80%;
    margin: 0.5em;
  }
  
}
