:root {
  --accent-color: #f3be17;
  --accent-color-hover: #9c7c12;
  --primary-color: #003c66;
  --disabled-color: rgb(14, 39, 64);
  --dark-color: #222f3e;
  --white-color: #eee;
  --light-color: #ddd;
  --danger-color: #9c0000;
  --content-color: #c8d6e5dd;
  --error-color: red;
  --header-height: 4rem;
  --footer-height: 4rem;
  --shadow: 3px 4px 18px -3px #000000;
  --main-font: "Montserrat", sans-serif;
}

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

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  font-family: var(--main-font);
  background: center center / cover url(../images/background.jpg) no-repeat
    fixed;
  font-size: 120%;
}

h1,
h2 {
  color: var(--light-color);
}

.container {
  height: calc(100vh - var(--header-height));
  width: 100%;
  padding-top: var(--header-height);
  display: flex;
  flex-flow: column;
}
.content {
  max-width: 80%;
  margin: auto;
  padding: 1rem;

  /* display: flex; */

  align-items: center;
}

.hidden {
  display: none !important;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.transparent {
  background-color: transparent;
  color: white;
  border-color: white;
}

.ml-1 {
  margin-left: 0.3rem;
}

header {
  position: fixed;
  flex: 1 0 var(--header-height);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primary-color);
  border-bottom: 1px solid var(--light-color);
  box-shadow: var(--shadow);
  z-index: 1000;
}

header img {
  height: 3rem;
  margin: 0.5rem;
}

header ul {
  display: flex;
  flex-direction: row nowrap;
  justify-content: flex-end;
  align-items: center;
  list-style-type: none;
}

header ul li {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

header ul li a {
  display: flex;
  align-items: center;
  color: var(--light-color);
  text-decoration: none;
}

footer {
  flex: 1 0 var(--footer-height);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color);
  border-top: 1px solid var(--light-color);
}

footer p {
  color: var(--light-color);
}

.light-color {
  color: var(--light-color);
}

.center {
  text-align: center;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.ml-1 {
  margin-left: 0.3rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.form-control {
  border: 1px solid var(--dark-color);
  border-radius: 6px;
  padding: 0.7rem;
  margin: 0.3rem;
}

.form-group {
  display: flex;
  flex-flow: column nowrap;
  padding: 0.4rem 0.2rem 0.2rem 0.2rem;
}

.form-group label {
  margin-bottom: 0.2rem;
  margin-left: 0.2rem;
  font-size: 0.9rem;
}

.form-group input,
textarea {
  margin-bottom: 0.2rem;
  border: 1px solid var(--dark-color);
  border-radius: 6px;
  padding: 0.7rem;
}

.form-group textarea {
  margin-bottom: 0.2rem;
  border: 1px solid var(--dark-color);
  border-radius: 6px;
  padding: 0.7rem;
}

.btn {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 0.7rem;
  cursor: pointer;
  background-color: var(--accent-color);
  color: #eee;
  font-weight: 400;
}

.btn:hover {
  background-color: var(--accent-color-hover);
}

td .fas,
td .far {
  padding: 0.5rem;
}

.fa-trash-alt:hover {
  color: var(--danger-color);
  cursor: pointer;
}
.fa-edit:hover {
  color: var(--accent-color);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-color-hover);
}

.error {
  color: var(--error-color);
  margin-bottom: 0.2rem;
}

// Prestation section

.prestation #code {
  width: 1.5rem;
}

.prestation #title {
  width: 6rem;
}

.prestation #from {
  width: 2.5rem;
}

.prestation #to {
  width: 2.5rem;
}

.prestation #file {
  width: 2.5rem;
}

#prestations {
  background-color: var(--primary-color);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 2px solid var(--white-color);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
}

#prestations h2 {
  margin: 0rem;
  padding: 0rem 0rem 2rem 0rem;
  text-align: center;
}
#prestations table {
  color: var(--white-color) !important;
  border: 1px solid var(--white-color);
}

#prestations th,
#prestations td {
  padding: 0.5rem !important;
}
