/**********************************************
                Global styles
**********************************************/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
}

/**********************************************
                    Layout
**********************************************/
.col-10 {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.col-8 {
  width: 100%;
  margin: 0 auto;
}

.col-4 {
  width: 33.332%;
}

/**********************************************
                Specific styles
**********************************************/
.btn {
  width: 80px;
  margin: 5px 0;
  padding: 8px 0;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  font-size: .8rem;
}

.delete,
.edit {
  width: 40px;
  font-size: .6rem;
}

.btn-primary {
  position: relative;
  background-color: #0000FF;
  transition: .3s;
}

.btn-primary:hover {
  background-color: #ddd;
  color: #0000FF;
  transition: .3s;
}

.btn-primary:active {
  top: 2px;
  left: 2px;
}

.btn-info {
  position: relative;
  background-color: #00B3B3;
}

.btn-info:hover {
  background-color: #ddd;
  color: #00B3B3;
  transition: .3s;
}

.btn-info:active {
  top: 2px;
  left: 2px;
}

.btn-danger {
  position: relative;
  background-color: #E60000;
}

.btn-danger:hover {
  background-color: #ddd;
  color: #E60000;
  transition: .3s;
}

.btn-danger:active {
  top: 2px;
  left: 2px;
}

.btn-warning {
  position: relative;
  background-color: #FFB319;
}

.btn-warning:hover {
  background-color: #ddd;
  color: #FFB319;
  transition: .3s;
}

.btn-warning:active {
  top: 2px;
  left: 2px;
}

.row.header {
  text-align: center;
  padding: 50px 0;
  background-color: rgb(236, 236, 236);
}

.container {
  width: 100vw;
  height: 100%;
}

.title {
  width: 100%;
  margin: 20px 5px;
  font-size: 1rem;
  font-weight: 400;
  color: rgb(138, 138, 138);
}

.table {
  width: 100%;
  border-top: 1px solid #ddd;
}

.table th,
td {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  text-align: left;
  text-indent: 10px;
  font-size: .6rem;
}

input.form-control {
  width: 100%;
  padding: 10px 0;
  text-indent: 10px;
  font-size: .8rem;
  border: none;
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
  outline: none;
}

input.form-control:focus {
  border-color: #00B3B3;
}

button.form-control {
  width: 100%;
}

#formView,
#editView,
#editFormView {
  display: none;
}

#saveBtn,
#editBtn {
  display: block;
  margin: 0 auto;
  width: 90%;
}

#error-box {
  position: absolute;
  top: -15px;
  left: 0;
  color: red;
  font-size: .8rem;
}

#myFooter {
  margin-top: 10px;
  padding: 20px 0;
  text-align: center;
  background-color: rgb(236, 236, 236);
}

#myFooter a {
  text-decoration: none;
  color: black;
}

/**************************************
            @media Queries
**************************************/

@media all and (min-width: 360px) {

  .table th,
  td {
    font-size: .7rem;
  }
}

@media all and (min-width: 576px) {

  .table th,
  td {
    font-size: .8rem;
  }
}

@media all and (min-width: 768px) {
  .col-10 {
    width: 83.333%;
  }

  .col-8 {
    width: 83.333%;
  }

  .btn,
  .delete,
  .edit {
    width: 100px;
    font-size: 1rem;
  }

  .title {
    margin: 20px 0;
    font-size: 2.5rem;
  }
}

@media all and (min-width: 992px) {
  .col-8 {
    width: 66.664%;
  }

  .table th,
  td {
    font-size: 1rem;
  }

  input.form-control {
    font-size: 1rem;
  }

  #saveBtn,
  #editBtn {
    display: inline-block;
    width: 100%;
  }
}