* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  
}


header {
  width: 100vw;
  height: 4rem;
  background-color: whitesmoke;
  display: flex;
  justify-content: space-around;
  align-items: center;

}

.buttonGrid {
  display: flex;
  justify-content: center;
  margin-top: 1rem;

}

.addBtn {
  background-color: gray;
  color: whitesmoke;
  padding: 1rem;
  
  
}

.popUp {
  
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%) scale(0);
  transition: 0.2s ease-in-out; 
}

.popUpActive{
  transform: translate(-50%, -50%) scale(1); 
  

}

.popUp form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-radius: 10%;
  align-items: center;
  justify-content: center;
  background-color: gray;
  padding: 4rem;
}

.popUp input {
  font-size: 1rem;
  border: none;
  padding: 0.3rem;
  

}


.submit,
.cancel {
  background-color: rgb(255, 255, 255);
  font-weight: bold;
  padding: 1rem;
  
}

.libraryGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 240px);
  gap: 1rem;
  padding: 1rem;
  margin-top: 1rem;
}

.book {
  display: flex;
  overflow-wrap: anywhere;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap:1rem;
  height: 15rem;
  width: 15rem;
  background-color: whitesmoke;
  border-radius: 10%;
  
}


.readBtn,.removeBtn{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 70%;
  font-weight: bold;
  height: 2rem;
    
  }

.removeBtn{
   background-color: gray;
  
}

button{
  cursor:pointer;
  border: none;
  border-radius: 10%;
}

button:hover{
  opacity: 80%;
  transition: 0.2s ease-in-out;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  
}

.overlayActive {
  display: block;
   
}

.read {
  background-color: green;
}

.unread {
  background-color: burlywood;
}
