@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Kumbh+Sans:wght@100..900&family=Lexend+Zetta:wght@100..900&family=Lexend:wght@100..900&family=Spectral:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

:root {
  --body-font: "Kumbh Sans", serif; /* set a value "red" to the "color" variable */
  --cas-font: "Josefin Sans", serif;
  --black-color: #020122;
  --light-color: #D8E1E8;
  --white-color: #f4f4f4;
  --pale-color: #C6D3E3;
  --med-color: #B2CBDE;
  --dark-color: #98BAD5;
  --darker-color: #304674;
  
}

body {

    font-weight: 300;
    background-color: var(--white-color);
  }
  
h1, p, h2{
  font-family: var(--body-font);
}
h1{
  font-size: 3em;
  color: var(--dark-color);
}

nav{
  background-color: var(--white-color);
}

td, tr{
  font-family: var(--body-font);
}

.navbar *{
  font-family: var(--body-font);
  font-weight: 500;
  color: var(--darker-color)
}


  .login-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 50vh;
      margin-left:auto;
      margin-right:auto;
      text-align: center;
      width:50vw;
  }

.login-container *{
  font-family: var(--body-font);
}

  .login-form {
      border: 4px solid var(--med-color);
      border-radius: 8px;
      padding-bottom: 10px;
      padding-left: 10px;
      padding-right: 10px;
      margin-top: 20px; /* Added margin for separation */
  }

  .login-form h2 {
      font-size: 1.5em;
  }

  .login-form label {
      display: block;
  }

  .login-form input {
      width: 100%;
      padding: 8px;
      margin-top: 5px;
      box-sizing: border-box;
  }

  .login-form button {
      background-color: var(--dark-color);
      color: white;
      padding: 10px 15px;
      width: 80px;
      margin-top: 5px;
      border: none;
      border-radius: 4px;
      cursor: pointer;
  }

  .login-form button:hover {
      background-color: var(--med-color);
  }

  body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
    }

    .topnav {
      overflow: hidden;
      background-color: DodgerBlue;
      display: flex;
      justify-content: center;
    }

    .topnav a {
      color: #f2f2f2;
      text-align: center;
      padding: 14px 16px;
      text-decoration: none;
      font-size: 14px;
      transition: all 0.3s;
    }

    .topnav a:hover {
      background-color: #555;
    }

    .topnav a.active {
      background-color: #ddd;
      color: #333;
    }


/* Students */
.search-container{
  display: flex;
  margin-bottom: 10px;
}
.search-container input, button {
  display: inline-block;
  height: fit-content;
  font-family: var(--body-font);
  border-width: 1px;
  border-color:var(--med-color);
  border-radius: 0.2em;
  color: var(--dark-color);
  font-size: 1.1rem;
}

.search-container input{
  min-width: 15vw;
  border-color: var(--med-color);
}
.search-container input[type="search"] {
  
  outline: 0;
  width: 100%;
  background-color: var(--light-color);
  padding: 0 1.6rem;
  border-radius: 0.2em;
  appearance: none; 
  transition: all 0.2 ;
  transition-property: width, border-radius;
  border-width: 1px;
  z-index: 1;
  position: relative;
}

.search-container button, select {
  
  width: fit-content;
  font-weight: bold;
  background-color: var(--med-color);
  border-radius: 0 0.2em 0.2em 0;
  color: var(--white-color);
}
.search-container input:not(:placeholder-shown), select {
  border-radius: 0.21em 0 0 0.2em;
  color: var(--dark-color);
  width: calc(100% fit-content);
  + button {
    display: block;
  }
}


.student{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  justify-content: center;
  gap:1px;
  align-items: stretch;
}


.card{
  display: inline-block;
  flex: 1 1 calc(25% - 20px);
  min-width: fit-content;
  font-family: var(--body-font);
  background-color: var(--light-color);
  margin: 5px;
  min-width: 15vw;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 3px 15px rgba(0, 0, 0, 0.1);
  word-wrap: break-word;
  overflow-wrap: break-word
}


.card-list{
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.card-body{
  font-family: var(--cas-font);
  
}

.card-body *{
  font-weight: 200;
}

.card-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0;
  white-space: normal;
}

#btn-checkout{
  margin-top: -1px;
}
.btn{
  font-size: small;
  margin-top: 1em;
}
.btn-primary{
  background-color: var(--dark-color);
  border-color: var(--med-color);
  font-size: small;
  margin-top: 1em;
}

.btn-primary:hover{
  background-color: var(--med-color);
}

select{
  background-color: var(--light-color);
  font-family: var(--cas-font);
  color:white;
  font-size: .9rem;
  background-color: var(--dark-color);
}

@media screen and (max-width:900px), screen and (max-height:500px) {
  .card{
    width: 80vw;
    flex: none;
  }
  }

/* library */

.library{
  flex-direction: column;
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: center;
  gap:1px;
}
.library .card{
  width: 70vw;
  box-shadow: none;
  margin: 1px;
  height: fit-content;
  transition: background-color 0.3s ease-in-out;
}

.library .card:hover{
  background-color: var(--med-color); 
  cursor: grab;
}

@media screen and (max-width:900px), screen and (max-height:500px) {
  .library{
    align-items: center;
  }
  .library  .card{
    width: 90vw;
  }
  }

.modal-title{
  color: var(--black-color);
}

.modal-body *{
  color:var(--black-color);
  font-family: var(--body-font);
}

.modal-footer *{
  font-family: var(--cas-font);
}





.search-container input[type="search"] {
  
  outline: 0;
  width: 100%;
  background-color: var(--light-color);
  padding: 0 1.6rem;
  border-radius: 0.2em;
  appearance: none; 
  transition: all 0.2 ;
  transition-property: width, border-radius;
  border-width: 1px;
  z-index: 1;
  position: relative;
}

/* Floating Footer */
#floating-footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  padding: 10px ;
  border-radius: 15px;
  display: flex;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 1000;
  font-family: var(--body-font);
}

/* Footer buttons */
.btn-footer {
  color: var(--white-color);
  background-color: var(--darker-color);
}

.btn-footer:hover {
  color: var(--white-color);
  background-color: var(--black-color);
}


