li {
  text-align: left;
  margin-bottom: 15px;
  font-size: 0.9em;
}

.alert {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  padding: 10px 20px;
  font-size: 14px;
  background-color: #f8d7da;
  border: 1px solid #f5c2c7;
  border-radius: 3px;
  color: #842029;
  opacity: 0;
  transition: opacity 0.2s, transform 0.4s;
  transform: translateY(-40px);
}

.slides-down {
  opacity: 1;
  transform: translateY(0px);
}

.slides-up {
  opacity: 0;
  transform: translateY(-40px);
}

.btn {
  border-radius: .25rem;
  padding: .5rem 1rem;
  cursor: pointer;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
}

.btn-primary:hover {
  background-color: #0069EE;
}

.btn-secondary {
  background-color: #FFA07F;
  border-color: #FFA07F;
  color: #fff;
}

.btn-secondary:hover {
  background-color: #DD805D;
}

.container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin: auto;
  max-width: 800px;
  overflow: hidden;
  text-align: justify;
  width: 70%;
}

.cover {
  align-items: center;
  background-color: #000033;
  display: flex;
  height: 100px;
  justify-content: center;
  margin: 0;
}

.custom-radio-button {
  display: inline-block;
  position: relative;
  margin: 15px;
}

.custom-radio-button input[type="radio"] {
  opacity: 0;
  position: absolute;
  margin: 0;
}

.custom-radio-button label {
  padding-left: 30px;
  cursor: pointer;
  display: inline-block;
}

.custom-radio-button label::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 1em;
  height: 1em;
  border: 0.1em solid #007bff;
  border-radius: 50%;
  background-color: transparent;
  transition: border-width 0.1s ease-in-out, width 0.1s ease-in-out, height 0.1s ease-in-out;
}

.custom-radio-button label.invalid::before {
  border: 0.1em solid red !important;
}

.custom-radio-button input[type="radio"]:checked + label::before {
  border-width: 0.2em;
  width: calc(1em - 0.2em);
  height: calc(1em - 0.2em);
}

.d-flex {
  display: flex;
  justify-content: space-between;
}

.form-btn {
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 3%;
}

.form-control, .form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-clip: padding-box;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  box-sizing: border-box;
  color: #212529;
  display: block;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  padding: .375rem .75rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  width: 100%;
}

.form-label {
  display: block;
  margin-bottom: .5rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

.mb-4 {
   color: white;
   margin: 0;
}

.my-3 {
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.my-5 {
  margin-bottom: 3rem;
  margin-top: 3rem;
}

.text-center {
  text-align: center;
}

@media (max-width: 768px) {
  .form-control,
  .form-label,
  .form-select {
    width: 100%;
  }
}

.system-card {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  border-radius: 4px;
  overflow: hidden;
}

.system-card > div {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.system-card-text {
  background-color: #007bff;
  color: white;
  font-size: 25px;
  font-weight: bold;
  flex: 6;
  border-radius: 8px 0px 0px 8px;
  margin-right: 0.5%;
}

.system-card-delete {
  background-color: #ff0000;
  color: white;
  font-size: 32px;
  font-weight: bold;
  flex: 1;
  cursor: pointer;
  border-radius: 0px 8px 8px 0px;
}

.system-card-delete:hover {
  background-color: #800;
}

#title {
  background-color: #99BBFF;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#logo {
  flex: 0 0 auto;
  height: 100%;
  padding-left: 4%;
}

.content {
  text-align: justify;
  padding-right: 5%;
  padding-left: 5%;
}

h1 {
  flex: 1;
  margin: 0;
  text-align: center;
  padding: 2% 0;
  margin-right: 10%;
  font-size: 2em;
}

.link {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    top: -2px;
    overflow: hidden;
    text-decoration: none;
    z-index: 1;
}

.link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: yellow;
    z-index: -1;
    transition: left 0.3s ease;
}

.link:hover::before {
    left: 0%;
}

.accordion {
  background-color: #99BBFF;
  color: #000033;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
  font-weight: bold;
}

.active, .accordion:hover {
  background-color: #ccc;
}

.panel {
  padding: 0 18px;
  background-color: #e9f2fd;
  max-height: 0px;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.accordion:after {
  content: '\02795';
  font-size: 13px;
  color: #777;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2796";
}

#outcomeRisk {
  max-width: 1000px;
}

.styled-table {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    text-align: left;
}

.styled-table thead tr {
    background-color: #009879;
    color: #ffffff;
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.styled-table tbody tr:nth-of-type(odd) {
    background-color: #ffffff;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid #009879;
}

hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid #c0c0c0;
margin: 8px 0px;
padding: 0;
}

.button-3 {
  appearance: none;
  background-color: #99BBFF;
  border: 1px solid rgba(27, 31, 35, .15);
  border-radius: 6px;
  box-shadow: rgba(27, 31, 35, .1) 0 1px 0;
  box-sizing: border-box;
  color: #000033;
  cursor: pointer;
  display: inline-block;
  font-family: -apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
  font-size: 0.8em;
  font-weight: 800;
  line-height: 20px;
  padding: 10px 26px;
  position: relative;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
  white-space: nowrap;
  transition: 0.3s;
}

.button-3:focus:not(:focus-visible):not(.focus-visible) {
  box-shadow: none;
  outline: none;
}

.button-3:hover {
  background-color: #ccc;
}

.button-3:focus {
  box-shadow: rgba(46, 164, 79, .4) 0 0 0 3px;
  outline: none;
}

.button-4 {background-color: #008CBA;}
.button-4:hover {
  background-color: #007CAA;
}
.button-4:disabled {
  background-color: #00BCE8;
  border-color: rgba(27, 31, 35, .1);
  color: rgba(255, 255, 255, .8);
  cursor: default;
}

.button-5 {background-color: #3e944f;}
.button-5:hover {
  background-color: #3c874b;
}
.button-5:disabled {
  background-color: #84c3a2;
  border-color: rgba(27, 31, 35, .1);
  color: rgba(255, 255, 255, .8);
  cursor: default;
}


*::after {
  box-sizing: border-box;
}

:root {
  --select-border: #777;
  --select-focus: blue;
  --select-arrow: var(--select-border);
}

select {
  appearance: none;
  background-color: white;
  border: none;
  padding: 0 1em 0 0;
  margin: 0;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  cursor: inherit;
  line-height: inherit;

  z-index: 1;

  &::-ms-expand {
    display: none;
  }

  outline: none;
}

.select {
  display: grid;
  grid-template-areas: "select";
  align-items: center;
  position: relative;

  select,
  &::after {
    grid-area: select;
  }

  min-width: 15ch;
  max-width: 30ch;

  border: 1px solid var(--select-border);
  border-radius: 0.25em;
  padding: 0.25em 0.5em;

  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1.1;

  background-color: #fff;
  background-image: linear-gradient(to top, #f9f9f9, #fff 33%);

   &:not(.select--multiple)::after {
    content: "";
    justify-self: end;
    width: 0.8em;
    height: 0.5em;
    background-color: var(--select-arrow);
    clip-path: polygon(100% 0%, 0 0%, 50% 100%);
  }
}

select:focus + .focus {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border: 2px solid var(--select-focus);
  border-radius: inherit;
}

select[multiple] {
  padding-right: 0;
  height: 6rem;

  option {
    white-space: normal;
    outline-color: var(--select-focus);
  }
}

.select--disabled {
  cursor: not-allowed;
  background-color: #eee;
  background-image: linear-gradient(to top, #ddd, #eee 33%);
}

label {
  font-weight: 500;
}

.select + label {
  margin-top: 2rem;
}

body {
  font-family: "Arial", sans-serif;
  background-color: #ffffff;
  color: #000033;
  margin: 0px;
  min-height: 100vh;
  font-size: 1.2em;
}

.calculator {
  background-image: url('media/calculator-bg.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  position: relative;
}

.calculator::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: -1;
}
