:root {
  --font-color: #e1f2fd;
}

*,
::before,
::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

h1 {
  margin: 0;
  padding: 0;
  padding: 1rem;
  text-align: center;
  color: #f0f9ff;
  font-size: 2.5rem;

  color: #f0f9ff;
  letter-spacing: 1px;

  text-shadow: -4px 5px 7px rgba(0, 0, 0, 0.68);
}

body {
  width: 100%;
  height: 100dvh;
}

html {
  font-family: "Merriweather", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}
main {
  width: 100%;
  min-height: 100dvh; /*Remove after debugging*/
  height: 100dvh;
  background-color: #07679d;
  border-radius: 0px;
  background: #07679d;
  box-shadow: inset 11px 11px 5px #065b8a, inset -11px -11px 5px #0873b0;
}

.main-container {
  width: 100%;
  height: 100dvh;
  background-image: url(images/LogoKraken.png);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.main-action-container {
  width: 100%;
  height: 80dvh;
}

.goal-container {
  width: 100%;
  height: 2rem;
  background-color: #80d1f9;
  color: #80d1f9;
}

.goal-advance-container {
  list-style-type: none; /* Remove bullets */
  padding: 0; /* Remove padding */
  margin: 0; /* Remove margins */
  width: 100%;
  height: inherit;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  text-align: center;
  align-items: center;
  padding: 0.2rem;
}

.goal-advance {
  height: 100%;
  flex-grow: 1;
}

.goal-completed {
  background-color: green;
  color: transparent;
  background: #27bd54;
  box-shadow: inset 25px 25px 15px #1e9342, inset -25px -25px 15px #30e766;
  border-radius: 3px;

  background: #27bd54;
  box-shadow: inset 6px 6px 4px #21a147, inset -6px -6px 4px #2dd961;
}

.total-label {
  width: 100%;
  height: 5rem;
  text-align: center;
  background-color: rgb(39, 189, 84);
  color: rgb(243, 243, 243);
  font-size: 4rem;
  /*border: solid 3px #e1f2fd; */

  border-radius: 4px;
  background: #27bd54;
  box-shadow: inset 11px 11px 5px #21a147, inset -11px -11px 5px #2dd961;
  text-shadow: -4px 5px 7px rgba(0, 0, 0, 0.68);
}

.trips-buttons-container {
  width: 100%;
  height: 70%;
  padding: 1rem;
  display: flex;
  flex-grow: 1;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: column;
}

.trip-button,
.other-trip-button {
  height: 5.5rem;
  width: 5.5rem;
  padding: 0.5rem;
  border: none;
  font-size: 2rem;
  background-color: #0a2f47;
  color: #e1f2fd;
  /* border: solid 3px #e1f2fd; */
  cursor: pointer;
  border-radius: 40%;

  background: #0a2f47;
  box-shadow: inset 25px 25px 15px #082537, inset -25px -25px 15px #0c3957;
  text-shadow: -4px 5px 7px rgba(0, 0, 0, 0.68);
}

.trip-button:hover,
.other-trip-button:hover {
  animation: clicked-trip 0.5s;
}

.menu {
  width: 100%;
  height: 5rem;
  display: flex;
  justify-content: space-between;
}

.reverse-button,
.test-json,
.history-btn,
.close-btn {
  height: 4.5rem;
  width: 4.5rem;

  border: none;
  font-size: 2rem;
  color: #e1f2fd;
  /* border: solid 3px #e1f2fd; */
  bottom: 1rem;

  cursor: pointer;
  border-radius: 15px;

  background: #8f3317;
  box-shadow: inset 25px 25px 15px #702812, inset -25px -25px 15px #ae3e1c;
  text-shadow: -4px 5px 7px rgba(0, 0, 0, 0.68);
}

.close-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
}

.diferent-trip-container {
  position: absolute;
  top: 0;
  left: -100%;
  opacity: 1;
  padding: 0.5rem;

  top: 0;
  width: 100%;
  height: 100dvh;
  background-color: #bce5fb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.diferent-trip-form {
  margin: 0 3rem;
  height: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding: 0.5rem;
}

.diferent-trip-form input {
  width: 100%;
  font-size: 1.5rem;
  padding: 0.5rem;
  border-radius: 10px;
  border: solid 3px #0781c2;
  background-color: #80d1f9;
  color: #0f496b;
  font-weight: bold;
  cursor: pointer;
}

.diferent-trip-form input[type="number"] {
  background-color: #0a2f47;
  border-color: #0781c2;
  color: #e1f2fd;
}

.error-container {
  background-color: #da4242;
  color: rgb(255, 243, 243);
  width: 100%;
  height: 3rem;
  position: absolute;
  bottom: 0%;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.history-container {
  position: absolute;
  top: 0;
  left: -100%;
  opacity: 1;
  background-color: #80d1f9;
  width: 100%;
  min-height: 100dvh;
  max-height: 100%;
}

.history-header {
  display: flex;
  width: 100%;
  justify-content: space-around;
  background-color: #0a2f47;
  padding: 0.5rem;
  align-items: center;
  color: var(--font-color);
}

.history-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.control-btn {
  width: 4rem;
  height: 3rem;
  padding: 0.5rem;
  background-color: #07679d;
  color: var(--font-color);
  font-size: 2rem;
  border: solid 3px var(--font-color);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

th,
td {
  border: thick solid blue;
  font-size: 0.8rem;
}

.error-finded {
  animation: error-animation 3s;
  animation-fill-mode: forwards;
}

.inactive {
  animation: other-trip-inactive 0.7s;
}

.active {
  left: 0;
  animation: other-trip-active 0.7s;
  animation-fill-mode: forwards;
}

.more-money {
  animation: money-label 1s;
}

@keyframes other-trip-active {
  0% {
    opacity: 0;
    left: -100%;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}

@keyframes other-trip-inactive {
  0% {
    opacity: 1;
    left: 0;
  }
  100% {
    opacity: 0;
    left: -100%;
  }
}

@keyframes clicked-trip {
  0% {
    font-size: 2rem;
  }

  50% {
    font-size: 0.5rem;

    background-color: #80d1f9;
  }

  100% {
    font-size: 2rem;
  }
}

@keyframes money-label {
  0% {
    background-color: rgb(39, 189, 84);
  }
  50% {
    background-color: gold;
  }

  100% {
    background-color: rgb(39, 189, 84);
  }
}

@keyframes error-animation {
  0% {
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* Grphic */
:root {
  --bg: #0f1724;
  --card: #0b1220;
  --muted: #013680;
}

.card {
  /* height: inherit; */
  padding: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

canvas {
  background: transparent;
  border-radius: 8px;
}

.value {
  margin-left: auto;
  color: var(--muted);
}

.title {
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 6px;
  color: rgb(185, 38, 21);
}
.subtitle {
  margin: 0.5rem 0;
  text-align: center;
  width: 90%;
  color: var(--muted);
  font-size: 20px;
  font-weight: bold;
}

/* loader */

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader.hidden {
  display: none;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
