:root {
  --primary-color: #0044ad;
  --primary-text: rgb(255, 0, 84);
}

body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

h1 {
  margin-top: 0;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  line-height: 1.5;
}

nav {
  margin: 30px 10px;
}

nav ul {
  text-align: center;
}

nav ul li:first-child {
  margin: -10px;
  float: left;
}

nav ul li:first-child a {
  text-decoration: none;
  display: flex;
  align-items: center;
}

nav .name {
  margin-left: 5px;
  color: var(--primary-text);
  font-weight: bold;
}

nav ul li {
  display: inline;
  margin-right: 10px;
  float: right;
}

.button {
  -webkit-user-drag: none;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
  border: transparent;
  border-radius: 5px;
  font-size: 0.9em;
  padding: 0.5em 1em;
  color: #404040;
  text-decoration: none;
}

.button.active {
  font-weight: bold;
}

.button:hover {
  color: black;
}

.button+.button {
  margin-left: 5px;
}

.button.primary {
  background-color: var(--primary-color);
  font-weight: bold;
  color: white;
}

.button.danger {
  background-color: #c82333;
  font-weight: bold;
  color: white;
}

.button.secondary {
  background-color: #5a6268;
  color: white;
  font-weight: bold;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.banner {
  padding: 10px;
  margin: 5px;
  text-align: center;
}

.banner.success {
  background-color: #d4edda;
}

.banner.error {
  background-color: #ffbaba;
  color: #000;
}

.banner.info {
  background-color: #2196f3;
  color: #fff;
}

.banner.info a {
  color: white;
}

.banner.announcement {
  background-color: var(--primary-color);
  color: #fff;
  margin: 0;
}

.banner.announcement a {
  font-weight: bold;
  color: #fff;
}

.centered-para {
  margin: 10px 10%;
}

input,
select {
  padding: 5px;
}

.header {
  font-weight: bold;
  text-align: left;
}

table td {
  padding: 10px;
}

input[type="text"],
select {
  border-radius: 5px;
  padding: 10px;
  outline: 0;
  border: 1px solid grey;
}

.section {
  padding: 20px;
  text-align: center;
}

.footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  margin-bottom: -10px;
}

.footer ul {
  list-style-type: none;
  list-style-image: none;
  margin-block-start: 0;
  padding-inline-start: 0;
}

.footer li {
  padding-top: 10px;
}

.footer li:first-child {
  font-weight: bold;
}

footer .companyDetails {
  margin-top: 5px;
  font-size: 0.9em;
}

footer {
  padding: 10px 20px 10px 20px;
  margin-top: auto;
  text-align: center;
}

#login,
#register,
#resetPassword {
  margin: auto;
  text-align: center;
  width: 80%;
}

.form-input {
  padding: 10px;
  width: 70%;
  border-radius: 15px;
  border: 1px solid grey;
  margin-bottom: 10px;
}

.form-button {
  padding: 10px;
  border-radius: 10px;
  width: 90px;
}

.search-button {
  height: 52px;
  flex: 1;
}

.react-autosuggest__container {
  position: relative;
  width: 80%;
}

@media (max-width: 992px) {
  .react-autosuggest__container {
    position: relative;
    width: 100%;
  }
}

.react-autosuggest__input {
  height: 52px;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  caret-color: var(--primary-text);
  color: var(--primary-text);
  flex: 5;
  outline: none;
  background: none;
  width: 100%;
  box-shadow: rgb(0 0 0 / 20%) 0px 4px 8px 0px,
    rgb(0 0 0 / 19%) 0px 6px 20px 0px;
}

.react-autosuggest__input--focused {
  outline: none;
}

.react-autosuggest__suggestions-container {
  display: none;
}

.react-autosuggest__suggestions-container--open {
  display: block;
  margin: auto;
  width: 75%;
  border: 1px solid #aaa;
  border-top: none;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.react-autosuggest__suggestions-list {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.react-autosuggest__suggestion {
  cursor: pointer;
  padding: 10px 20px;
  color: var(--primary-text);
}

.react-autosuggest__suggestion--highlighted {
  background-color: #ddd;
}
