:root {
  --primary: #4682b4;
  --primary-dark: #38678f;
  --primary-darker: #294d6b;
  --primary-color: #fff;
  --secondary: #ff0000;
  --border: #c5c5c5;
  --alt: #fff;
}

body {
    font-family: Tahoma, Geneva, sans-serif;
    margin: 0;
    padding: 0;
    color: #555;
    font-size: 1rem;
}

form {
    width: 100%;
}

h1 {
    margin-top: 0;
    font-size: 4em;
    margin-bottom: 0.2em;
}

h2 {
    font-size: 2em;
}

p {
    line-height: 1.5em;
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-dark);
}

input[type="text"], input[type="email"], input[type="password"], select {
    padding: 0.6em 0.6em;
    font-size: 1em;
    width: 100%;
    border: 1px solid var(--border);
    box-sizing: border-box;
}

input[type="text"]:focus, textarea:focus, input[type="email"]:focus, input[type="password"]:focus, select:focus {
    border: 1px solid var(--primary);
    outline: 0;
}

input[type="text"], input[type="email"], input[type="password"], button, textarea, select, .button {
    border-radius: 6px;
}

textarea {
    padding: 0.6em 0.6em;
    font-size: 1.231em;
    width: 100%;
    height: 100%; 
    box-sizing: border-box;
    border: 1px solid var(--border); 
    line-height: 1.6em;       
}

label {
    margin: 1.4em 0 0.4em 0;
    clear: both;
    display: block;
}

label span {
    color: green;
}

.button {
    text-align: center;
    width: auto !important;
    display: inline-block;
}

button, .button {
    background-color: var(--primary);
    border: 1px solid var(--primary-dark);
    margin: 1em 0.1em 0 0;
    padding: 0.6em 1.2em;
    color: var(--primary-color);
    font-size: 0.9em;
    cursor: pointer;
    text-decoration: none;
    font-family: Arial;
    line-height: normal;
}

button:hover, .button:hover {
    background-color: var(--primary-dark);
    border: 1px solid var(--primary-darker);
    color: var(--primary-color);
}

.alt {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: #333;        
}

.alt:hover {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

ul {
    margin: 2em 0;
    list-style-type: circle;
}

li {
    line-height: 1.8em;
}

input[type="checkbox"] {
  margin: 1.4em;
  top: 0.3em;
  position: relative;
  width: 1.4em; height: 1.4em;
}

input[type="radio"] {
    margin: 1.6em 0 2em 1em;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th {
    background-color: var(--primary);
    color: var(--primary-color);
}

th, td {
    border: 1px var(--primary-darker) solid;
    padding: 0.7em;
}

td:hover {
    cursor: pointer;
}

tr:hover, tr:nth-child(odd):hover {
    background-color: #fdfdea;
}

tr:nth-child(odd) {
    background-color: #f3f3f3;
}

hr {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: 2em 0;
}

.float-right {
    float: right;
    position: relative;
}

.float-left {
    float: left;
    position: relative;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.container {
    width: 90%;
    max-width: 940px;
    margin: 0 auto;
    background-color: var(--primary-color);
    padding: 1em;
}

.pagination {
    display: inline-block;
    margin: 0 0 12px 0;
}

.pagination:nth-of-type(2) {
    margin-top: 1em;
}

.pagination a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
}

.pagination a.active {
    background-color: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.pagination a:hover:not(.active) {background-color: #ddd;}

.pagination a:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.pagination a:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.card-heading {
    font-size: 1.2em;
    background-color: var(--primary);
    color: var(--primary-color);
    padding: 12px;
    border: 1px solid var(--primary-darker);
}

.card-body {
    padding: 20px;
}

.card {
    box-shadow: 0 4px 10px 0 rgba(0,0,0,0.2),0 4px 20px 0 rgba(0,0,0,0.19);
    margin-bottom: 1em;
}

#overlay {
    background-color: black;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: -2;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0.7;
}

#modal-container {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    z-index: -3;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.modal {
    width: 90%;
    max-width: 570px;
    z-index: -4;
    background-color: white;
    opacity: 0;
    position: relative;
    margin-top: -160px;
    transition: 0.3s;
}

.modal-body h5 {
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.modal p {
    text-align: center;
}

#delete-modal p:nth-child(1) {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.modal p:nth-child(3) {
    margin: 0;
}

.modal-heading {
    font-size: 1.2em;
    background-color: var(--primary);
    padding: 12px;
    color: var(--primary-color);
    border: 1px solid var(--primary-darker);
    text-transform: uppercase;
}

.modal-danger {
    background-color: red !important;
    border: 1px #990000 solid;
}

.modal-body {
    padding: 20px;
}

.modal textarea {
    font: inherit;
    font-size: 15px;
    margin: 0;
    overflow: auto;
    padding: 8px;
    display: block;
    border: 1px solid #ccc!important;
    color: #000!important;
    background-color: #fdf5e6!important;
    min-height: 7em;
    resize: none;
    line-height: 1.5em;
}

@media screen and (max-width: 550px) {
  button, .button {
    width: 100%;
    display: block;
  }
}


