* {
  box-sizing: border-box;
}

body {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  background-color: #efefef;
  justify-content: center;
  align-items: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

h1 {
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
  font-size: 1.8rem;
  color: #881111;
}

h2 {
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
  font-size: 1.6rem;
}

section {
  padding: 1rem;
  background-color: #fff;
  border: 1px solid #ccc;
  margin: 1rem;
}

section > ul {
  padding: 1rem;
}

section > ul > li {
  list-style: none;
}

section > ul > li li {
  list-style: square;
}

section > ul > li:not(:last-child) {
  list-style: none;
  margin: 1rem auto;
  padding: 1rem 0 1.5rem;
  border-bottom: 1px solid #efefef;
}

section small,
.erreur {
  color: rgba(255, 0, 0, 0.6);
}

section a {
  color: #999;
  text-decoration: none;
  display: block;
  padding: 0.5rem;
}

section a:hover {
  color: black;
}

section .install-btns {
  display: flex;
  flex-wrap: wrap;
}

section .install-btn {
  display: flex;
  padding: 0.3rem 0.5rem;
  border: 1px solid #ccc;
  margin: 0 1rem;
  border-radius: 0.8rem;
  background-color: #efefef;
}

section .install-btn.active {
  background-color: #70d664;
}

section .install-btn.active a {
  color: white;
}

section .install-btn.full {
  border-color: #70d664;
}

section .install-btn.inactive {
  opacity: 0.5;
  pointer-events: none;
}

#errors {
  padding: 1rem;
  border: #881111;
  color: #881111;
  font-weight: bold;
  text-align: center;
}

.info {
  padding: 1rem;
  text-align: center;
  background-color: #dab573;
  color: white;
  margin: 2rem;
  border-radius: 1rem;
}

.success {
  padding: 1rem;
  text-align: center;
  background-color: #70d664;
  color: white;
  margin: 2rem;
  border-radius: 1rem;
}

.fail {
  padding: 1rem;
  text-align: center;
  background-color: #881111;
  color: white;
  margin: 2rem;
  border-radius: 1rem;
}

/* Loader */
.loader-overlay {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loader-info {
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #efefef;
  text-align: center;
}

.loader-info .percent {
  display: block;
  margin: 1rem;
  font-size: 3rem;
  font-weight: bold;
  color: #dab573;
}

.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
}
.lds-ellipsis div {
  position: absolute;
  top: 27px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 6px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 6px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 26px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 45px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(19px, 0);
  }
}

.recalculate-town-distance button {
  margin-left: 10px;
}
