* {
  box-sizing: border-box;
}

.openBtn {
	display: flex;
	justify-content: left;
}
.openButton {
        border: none;
        border-radius: 5px;
        background-color: #1c87c9;
        color: white;
        padding: 14px 20px;
        cursor: pointer;
        position: fixed;
}

.form-popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.formPopup {
  display: none;
  position: relative; /* Changed from fixed */
  background: white;
  padding: 20px;
  border: 3px solid #999999;
  z-index: 1000;
  opacity: 0;
  transition: opacity 1s ease;
  margin: auto; /* Center the form */
}

.formPopup.show {
  display: block;
  opacity: 1;
}

.form-popup-container.active {
  display: flex;
}

.form {
	position: relative;
	text-align: center;
	width: 100%;
	
}
.formPopup {
	display: none;
	position: fixed;
	left: 45%;
	top: 5%;
	transform: translate(-50%, 5%);
	border: 3px solid #999999;
	z-index: 9;
	opacity: 0;
	transition: opacity 1s ease;
}

.formPopup.show {
  display: block;
  opacity: 1;
}

.form.active {
  opacity: 1;
  visibility: visible;
}



input[type=text],input[type=number], input[type=checkbox], select{
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  resize: vertical;
}

/* Style the label to display next to the inputs */
label {
  padding: 12px 12px 12px 0;
  display: inline-block;
}

/* Style the submit button */
input[type=submit] {
  background-color: #04AA6D;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  float: center;
}

/* Style the container */
main {
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
  width:70%;
  margin:auto;
}

/* Floating column for labels: 25% width */
.col-25 {
  float: left;
  width: 15%;
  margin-top: 6px;
}

/* Floating column for inputs: 75% width */
.col-75 {
  float: left;
  width: 85%;
  margin-top: 6px;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
  width:70%;
}

/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .col-25, .col-75, input[type=submit] {
    width: 100%;
    margin-top: 0;
  }
}

.container {
  margin: 0 auto;
  max-width: 910px;
}

.choose {
  width: 100%;
  height: 40px;
}
.fa {
  margin-right: 20px;
  font-size: 30px;
  color: gray;
  float: right;
}
/******************************************
Book stuff
*******************************************/

.book {
  position: relative;
  display: inline-block;
  width: 230px;
  height: 390px;
  box-shadow: 0 0 20px #aaa;
  margin: 25px;
  padding: 10px 10px 0 10px;
  vertical-align: top;
  transition: height 1s;
}
/* star button */
.book:after {
  font-family: FontAwesome;
  content: "\f006";
  font-size: 35px;
  position: relative;
  left: -.1cm;
  top: -1.6cm;
  float: right;
}

.description {
	position: relative;
	padding: 2.5%;
	background: rgba(255, 255, 255, 0.9); 
	width:100%;
	height:15%;
	flex:1.4;
}

.cover {
  border: 2px solid gray;
  height: 100%;
  overflow: hidden;
  position: relative;
  display:flex;
  flex-direction:column;
}

.cover img {
  width: 100%;
  height: 75%;
  object-fit: cover; 
  flex:2;
}

.buttons {
	width:100%;
	height:5%;
	bottom:0;
	display:flex;
	align-items:center;
	flex:0.6;
	justify-content:center;
	text-align:center;
}

.btnStatus {
	display:flex;
	flex:1;
	margin:10%;
	height:60%;
	align-items:center;
	border-radius:15px;
}

.btnDelete {
	border-radius:15px;
	display:flex;
	flex:1;
	margin:10%;
	height:60%;
	align-items:center;
}

.btnStatus > button {
	  background-color: #04AA6D;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  float: center;
  font-weight:600;
}

.btnDelete > button {
  background-color: #04AA6D;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  float: center;
}

.book p {
  margin-top: 12px;
  font-size: 20px;
}

.book .author {
  font-size: 15px;
}
@media (max-width: 941px) {
  .container {
    max-width: 700px;
  }
  .book {
    margin: 49px;
  }
}
@media (max-width: 730px) {
  .book {
    display: block;
    margin: 0 auto;
    margin-top: 50px;
  }
  .cover {
    
  }
}

/*********************************
other
**********************************/

h1 {
  color: gray;
  text-align: center;
  font-size: 50px;
  margin-bottom: -3px;
}

/**********************************
display change
***********************************/
/*book height smaller, cover opacity, move text onto cover and star too
animate it */
#list-th:target .book {
  height: 100px;
  width: 250px;
  padding: 10px;
  margin: 25px auto 25px auto;
}

#list-th:target .cover {
  width: 246px;
}

#list-th:target img {
  opacity: .1;
}

#list-th:target p {
  margin-top: -62px;
  margin-left: 20px;
}
/* remove button? */
#large-th:target .book {
  height: 400px;
}

