/******************************
Author: Simon Dreyfus
Site: Leguminapp.simon3fus.ch/app
Version: 1.0
******************************/

/*******************************
Global
*******************************/

:root {
  --green-400: #6d8240;
  --blue-400: #1e89aa;
  --grau-200: #f5f4f2;
  --grau-400: #ebe9e6;
  --grau-800: #393938;
  --white-100: #fff;
}

html {
  background-color: var(--grau-200);
}

h1,
h2,
h3,
h4,
p,
a {
  font-family: "Rubik", sans-serif;
  color: var(--grau-800);
}

H1 {
  font-weight: bold;
  font-size: 43px;
  line-height: 100%;
  letter-spacing: -0.015em;
}

H2 {
  font-weight: bold;
  font-size: 37px;
  line-height: 110%;
  letter-spacing: -0.015em;
}

H3 {
  font-weight: bold;
  font-size: 33px;
  line-height: 110%;
  letter-spacing: -0.005em;
}

H4 {
  font-weight: 500;
  font-size: 29px;
  line-height: 115%;
  letter-spacing: -0.005em;
}

H5 {
  font-weight: 500;
  font-size: 21px;
  line-height: 120%;
  letter-spacing: -0.005em;
}

p {
  margin: 5px;
}

/************
Body
************/
body {
  position: relative;
  padding-top: 96px;
  overflow: hidden;
}

.wrapper-padding {
  padding-left: 16px;
  padding-right: 16px;
}

/************
Header
************/

header {
  position: absolute;
  position: fixed;
  top: 0;
  z-index: 10;
  width: 100%;
  height: 60px;
  padding-left: 16px;
  padding-right: 16px;
  background-color: var(--white-100);
  padding-top: 18px;
  filter: drop-shadow(0px 2px 10px rgba(0, 0, 0, 0.15));
}

.header-datum {
  display: flex;
  justify-content: space-between;
}

.header-dropper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.date {
  font-weight: 700;
  color: var(--grau-800);
}

#tag {
  color: var(--green-400);
}

/************
Nav
************/
nav {
  position: fixed;
  z-index: 20;
  bottom: 0;
  background-color: var(--white-100);
  height: 60px;
  width: 100%;
  padding-right: 16px;
  box-shadow: 0px 0px 9px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

nav p {
  font-weight: 700;
  font-size: 15px;
  color: var(--blue-400);
  padding-left: 5px;
}

.menu {
  color: var(--blue-400);
  font-weight: 500;
  display: flex;
}

.menu p {
  color: var(--blue-400);
}
.menu img {
  margin-right: 8px;
}

#navigation-container {
  overflow: hidden;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  z-index: 15;
  background-color: var(--white-100);
  transform: translateX(100%);
  -webkit-transform: translateX(100%);
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 15%;
  background-color: var(--grau-200);
}

ul {
  list-style-type: none;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

li {
  display: flex;
  align-items: center;
  height: 70px;
}

/************
Burger
************/
.burger {
  height: 20px;
  width: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.burger span {
  width: 27px;
  height: 2px;
  border-radius: 8px;
  background-color: var(--blue-400);
}

/************
Reiter
************/

.reiter {
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  height: 35px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.tap-active {
  width: 50%;
  color: var(--white-100);
  background-color: var(--blue-400);
  border-radius: 8px 0px 0px 8px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.tap-passiv {
  width: 50%;
  background-color: var(--white-100);
  border-radius: 0px 8px 8px 0px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

/************
Card
************/

.card {
  background-color: var(--white-100);
  width: 100%;
  height: 77px;
  margin-top: 16px;
  margin-bottom: 16px;
  display: flex;
  position: relative;
  border-radius: 8px;
}

.aufgabe {
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  padding-left: 16px;
}

.checker {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 4px;
  border-radius: 8px;
  position: absolute;
  background-color: var(--grau-400);
}

.checker-false {
  animation: 0.8s forwards check-ani reverse;
}

.checker-true {
  animation: 0.8s forwards check-ani;
}

.checker img {
  opacity: 0;
  height: 32px;
  user-drag: none;
  -webkit-user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  transition: opacity 0.8s;
}

.checker.checker-true img {
  opacity: 1;
}

/************
Animation
************/

@keyframes check-ani {
  0% {
    width: 4px;
    left: 0;
    right: calc(100%-4px);
    background-color: var(--grau-400);
  }

  50% {
    width: 100%;
    left: 0;
    right: auto;
  }

  50.1% {
    left: auto;
    right: 0;
  }

  100% {
    width: 103px;
    left: calc(100%-103px);
    right: 0%;
    background-color: var(--green-400);

    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 103px;
    border-radius: 8px;
    position: absolute;
    background-color: var(--green-400);
  }
}

@keyframes opacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
