@import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap");

/* cores 
  bgColor: "#F5F5F5",
  fontColor: "#393939",
  colorWhite: "#fafafa",
  colorGrey: "#f0f0f0",
  colorDark: "#212121"
*/
*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  font-size: 62.5%;
}

body {
  font-family: "Roboto", sans-serif;
  background: #f5f5f5;
  color: #393939;
  overflow-x: hidden;
}

@keyframes mounting_animation {
  from {
    transform-origin: 0% 0%;
  }
  to {
    transform-origin: 0% 0%;
  }
}

/*=============== DASHBOARD =====================*/

.dashboard {
  height: 16%;
  min-height: 14rem;
  margin: 1rem 1rem 0 1rem;
  border-radius: 0.8rem;
  box-shadow: 0 0.5rem 1.25rem rgba(33, 33, 33, 0.25);
  display: flex;
  padding: 1rem 0;
  align-items: center;
  justify-content: space-evenly;
  animation: mounting_animation 0.5s 1 ease;
  /*box-shadow: inset 0 1rem 1.5rem -1.5rem rgba(33, 33, 33, 0.4);*/

  background: #dad299; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    to right,
    #b0dab9,
    #dad299
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to right,
    #b0dab9,
    #dad299
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.block {
  height: 100%;
  flex-basis: 20%;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-weight: bold;
  overflow: hidden;
}

.block:not(:last-child) {
  border-right: 0.2rem solid #464646;
  box-shadow: 1rem 0 1.25rem -1.25rem rgba(33, 33, 33, 0.1),
    inset -1rem 0 1.25rem -1.25rem rgba(33, 33, 33, 0.1);
}

.block__information {
  font-size: 5.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.block__information-data {
  position: relative;
}

.block__icon {
  position: absolute;
  left: 0;
  cursor: default;
}

@keyframes icon_animation {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(10deg);
  }

  50% {
    transform: rotate(0deg);
  }

  75% {
    transform: rotate(-10deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.block__icon:hover {
  animation: icon_animation 0.4s 1 ease-in-out;
}

.block__information .block__information-unit {
  font-size: 2.5rem;
  position: relative;
  top: 0.5em;
}

.block__title {
  font-size: 1.6rem;
  padding: 0 1rem;
}

.board {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  align-items: flex-start;
  align-content: flex-start;
  animation: mounting_animation 0.5s 1 ease;
}

/*============= Lane ================*/

.lane {
  width: calc(33% - 0.3rem);
  height: auto;
  border-radius: 5px;
  padding: 1rem 1rem 0 1rem;
  box-shadow: 0 1rem 1.25rem rgba(33, 33, 33, 0.25);
}

#lane-1 {
  background-color: #e57373;
}

#lane-2 {
  background-color: #64b5f6;
}

#lane-3 {
  background-color: #81c784;
}

.lane__header {
  padding-bottom: 1rem;
  text-align: left;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  color: #212121;
}

.lane__header p {
  font-weight: bold;
  font-size: 2rem;
}

.lane__icon {
  cursor: default;
}

.lane__icon:hover {
  animation: icon_animation 0.4s 1 ease-in-out;
}

.lane__content {
  min-height: 4rem;
  display: flex;
  flex-direction: column;
}
/* placeholder quando quando item esta sendo arrastado */

.placeholder {
  margin-bottom: 1rem;
  border-radius: 5px;
}
#lane-1 .placeholder {
  background: #e05959;
}

#lane-2 .placeholder {
  background: #47a7f4;
}

#lane-3 .placeholder {
  background: #6dbe70;
}

/*=========== Card  ====================*/

.card {
  background: #fafafa;
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 0.05rem 0.2rem rgba(0, 0, 0, 0.2);
  padding: 0 1rem;
  position: relative;
  overflow: hidden;
  cursor: grab;
  color: #212121;
  margin-bottom: 1rem;
  transition: transform 0.1s;
}

.card:active {
  cursor: grabbing;
}

.card.active .arrow {
  transform: rotate(180deg);
  transform-origin: center;
}

.arrow {
  transition: transform 0.3s;
  cursor: pointer;
}

.card__header {
  font-size: 2rem;
  margin: 0 -1rem;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  padding: 1rem;
  background: #f0f0f0;
  position: relative;
  box-shadow: 0 0.25rem 1rem 0rem rgba(33, 33, 33, 0.25);
}

.card__header p {
  font-weight: bold;
}

.card__header__time {
  position: absolute;
  margin: 0 0.75rem;
  right: 0rem;
  bottom: 0;
  font-size: 1.4rem;
}

.card__extra {
  width: 100%;
  margin-bottom: 1rem;

  opacity: 0;
  visibility: hidden;
  position: absolute;
  transition: all 0.3s ease-out;
  transform: scaleY(0);
  transform-origin: 50% 0%;
}

.card__info {
  height: auto;
  font-size: 1.8rem;
  padding: 3rem 1rem;
  border: 2px solid #f0f0f0;
  box-shadow: 0 0.25rem 0.75rem 0 rgba(33, 33, 33, 0.25);
  margin-bottom: 1rem;
}

.card.active .card__extra {
  position: static;
  visibility: inherit;
  opacity: 1;
  transform: scaleY(1);
}

.card__item {
  border: 2px solid #f0f0f0;
  position: relative;
  padding: 0 0.25rem;
  border-radius: 5px;
  box-shadow: 0 0.25rem 0.75rem 0 rgba(33, 33, 33, 0.25);
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  font-size: 1.6rem;
}

legend {
  margin-left: 0.25rem;
  background: transparent;
  font-size: 1.2rem;
}

.card__info legend {
  margin-left: -0.5rem;
}

.card__item__header {
  text-transform: uppercase;
  font-size: 1.8rem;
  width: 100%;
  font-weight: 500;
  text-align: center;
}

.card__icons {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  margin: 0.2rem 0.5rem;
  font-size: 1.2rem;
}

.card__image-icon {
  position: absolute;
  top: 0;
  margin: 0.2rem;
  right: 3rem;
  cursor: pointer;
}

.image-container {
  height: 100vh;
  position: fixed;
  width: 100vw;
  padding: 25vmin;
  background: rgba(33, 33, 33, 0.6);
  top: 0;
  left: 0;
  visibility: hidden;
  opacity: 0;
}

.image-container.visible {
  opacity: 1;
  visibility: inherit;
}

.card__image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 100%;
  max-width: 100%;
  border-radius: 3px;
  box-shadow: 0 1rem 2rem 0 rgba(0, 0, 0, 0.2);
}

.material-icons-outlined.md-small {
  font-size: 1.2rem;
}

.material-icons-outlined.md-large {
  font-size: 2.75rem;
}

.material-icons-outlined.md-larger {
  font-size: 4.5rem;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 1.188em;
}

.material-icons-outlined {
  padding: 0.25rem;
}

.tilt {
  transform: rotate(4deg);
}

.loading-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.submit-card {
  position: relative;
  width: 100%;
  border: 2px solid #f0f0f0;
  box-shadow: 0 0.25rem 0.75rem 0 rgba(33, 33, 33, 0.25);
  flex-direction: column;
  font-size: 1.6rem;
  padding: 3rem 1rem 2.6rem 1rem;
}

.radio-input {
  display: none;
}

.checkmark {
  display: inline-block;
  height: 2.5rem;
  width: 2.5rem;
  border: 4px solid #393939;
  border-radius: 50%;
  position: relative;
  margin-right: 1.2rem;
}

.radio-input:checked ~ .checkmark::after {
  position: absolute;
  content: "";
  display: block;
  margin: 0 auto;
  border-radius: 50%;
  width: 70%;
  height: 70%;
  background: #393939;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

label {
  cursor: pointer;
  display: flex;
  align-items: center;
  margin-bottom: 0.4rem;
}

.btn {
  outline: 0;
  border: 0;
  cursor: pointer;
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: none;
  border: 2px solid #f0f0f0;
  padding: 1rem 2.5rem;
  border-radius: 5px;
  color: #393939;
  font-size: 1.6rem;
  font-family: inherit;
  box-shadow: 0 0.25rem 0.5rem 0 rgba(33, 33, 33, 0.1);
}

.btn:hover {
  background: #f0f0f0;
  box-shadow: 0 0.25rem 0.75rem 0 rgba(33, 33, 33, 0.25);
}

.spinner {
  border: 1rem solid rgba(33, 33, 33, 0.1);
  height: 10rem;
  width: 10rem;
  border-radius: 50%;
  border-left-color: rgba(33, 33, 33, 0.8);
  animation: spin 1s infinite linear;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(145deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 60em) {
  .btn {
    position: static;
    transform: translate(0, 0);
    margin-top: 0.4rem;
    width: 100%;
  }
}

@media (max-width: 75em) {
  html {
    font-size: 56.25%;
  }
}

@media (max-width: 56.25em) {
  html {
    font-size: 50%;
  }

  .block__icon {
    opacity: 0;
    visibility: hidden;
  }
}

@media (min-width: 112.5em) {
  html {
    font-size: 75%;
  }
}
