@charset "UTF-8";
* {
  padding: 0;
  margin: 0;
  font-family: 微軟正黑體;
}

html, body {
  margin-left: auto;
  margin-right: auto;
}

h1 {
  margin-top: 50px;
  text-align: center;
}

h2 {
  text-align: center;
}

.container-fluid {
  background-color: #eee;
}

.navbar {
  margin: 0;
  padding: 0;
}

.navbar-brand {
  font-size: 20px;
  font-weight: 600;
  padding-left: 20px;
  padding-right: 80px;
  display: block;
}

li {
  font-weight: 800;
  font-size: 16px;
  padding: 5px 0px;
  margin: 0px 5px;
}
li:hover {
  transition: 0.5s;
  background-color: #57B8D6;
}
li .nav-link:hover {
  transition: 0.5s;
  color: #fff;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.modal-content {
  margin: 10% auto;
  width: 600px;
  box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.17);
  animation-name: modalopen;
  animation-duration: var(--modal-duration);
}

.modal-header h2, .modal-footer h3 {
  margin: 0;
}

.modal-header {
  background: var(--modal-color);
  padding: 15px;
  color: #000;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: var(--bs-modal-padding);
  background: #fff;
}

.modal-footer {
  background: var(--modal-color);
  padding: 10px;
  color: #fff;
  text-align: center;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

tr {
  border-bottom: solid 1px #ddd;
}

.btngroup {
  margin-left: 100px;
}

@keyframes modalopen {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
h3 {
  margin-left: 35%;
}

.btn.btn-primary {
  margin: 30px 10px;
}

table.table.mt-4 thead {
  display: inline-block;
  width: 100%;
  height: 30px;
}

table.table.mt-4 tbody {
  height: 300px;
  display: inline-block;
  width: 100%;
  overflow: auto;
}
table.table.mt-4 th.name {
  padding-right: 20px;
}


#addDataModal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

#addDataForm {
  background: #fff;
  padding: 20px 80px;
  border-radius: 20px;
  text-align: left;
}

#addDataModal.modal .modal-content {
  width: 400px;
  position: relative;
}
#addDataModal.modal input.form-control {
  width: 350px;
  margin-left: auto;
  margin-right: auto;
}
#addDataModal.modal .btn1 {
  margin-right: 20px;
}
#addDataModal.modal .btngroup {
  margin-top: 20px;
  margin-left: 210px;
}

footer#footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #eee;
  color: black;
  text-align: center;
}

@media only screen and (max-width: 767px) {
  h1 {
    margin-top: 50px;
  }

  .modal-content {
    margin: 10% auto;
    width: 350px;
    box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.17);
    animation-name: modalopen;
    animation-duration: var(--modal-duration);
  }

  .modal-content {
    margin-top: 40px;
  }

  h3 {
    margin-left: 100px;
  }
  .btngroup {
  margin-left: 60px;
 }
}