* {
  padding: 0;
  margin: 0;
}

body {
  background: #191765;
}

.heading {
  text-align: center;
  color: #fff;
  margin-top: 1rem;
}

h1 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.heading a {
  height: 3rem;
  font-size: 1.6rem;
  padding: 0.4rem;
  text-decoration: none;
  background-color: #fff;
  color: #000;
}

#enter-book {
  width: 32%;
  background: cornflowerblue;
  height: 30rem;
  display: none;
  position: absolute;
  top: 22%;
  left: 33%;
}

#enter-book h1 {
  text-align: center;
  margin: 0;
}

form {
  padding: 1rem;
}

input[type='text'],
input[type='number'],
input[type='submit'],
input[type='button'] {
  width: 100%;
  font-size: 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 0.5rem;
  height: 2.3rem;
  margin-bottom: 0.6rem;
  box-sizing: border-box;
  border-radius: 0.4rem;
  border: none;
}

form label,
form p {
  font-size: 1.3rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

input[type='radio'] {
  margin-right: 1.4rem;
  height: 1.1rem;
  width: 1.1rem;
}

#submit-record {
  margin-top: 2rem;
  padding: 0.4rem;
  height: 2.5rem;
}

.close-box {
  height: 2rem;
  display: block;
}

.close {
  padding: 0.3rem 0.4rem;
  text-decoration: none;
  font-size: 1.5rem;
  float: right;
}

.close a {
  color: #fff;
}

thead {
  background: cornflowerblue;
}

th {
  height: 3rem;
  font-size: 1.2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#bookTitle {
  width: 34rem;
}

.headItem {
  width: 20rem;
}

#changeStaus {
  width: 15rem;
}

.action {
  width: 6rem;
}

.library-container {
  text-align: center;
  margin: 2rem auto;
  width: 80%;
}

#table-body tr {
  height: 3rem;
  background: #fff;
  color: #000;
  padding: 0.8rem;
  border-bottom: 1px solid #191765;
}

#table-body button {
  font-size: 1rem;
  padding: 0.2rem;
  border-radius: 3px;
  background: #191765;
  color: #fff;
  margin: 0.3rem 0;
  font-weight: bold;
}

input[type='button'] {
  margin-top: 2rem;
}

#errorMsg {
  margin-left: 20%;
}

#formReset {
  height: 1.5rem;
  background: #fff;
  color: #000;
  font-size: 1.2rem;
  text-decoration: none;
  padding: 0.2rem;
}

@media only screen and (min-width: 280px) and (max-width: 767.9px) {
  th {
    font-size: 0.8rem;
  }

  #table-body button {
    font-size: 0.6rem;
  }

  #enter-book {
    width: 80%;
    top: 24%;
    left: 10%;
  }

  h1 {
    font-size: 1.5rem;
  }
}
