:root {
  --primary: #b1ffaa;
  --secondary: #2b2b2b;
  --background: #232323;
}
* {
  font-family: "Inter", Tahoma, Verdana, sans-serif;
  box-sizing: border-box;
}
html,
body {
  width: 100%;
}
body {
  background-color: var(--background);
  color: white;
  margin: 0;
}
a {
  color: white;
  text-decoration: none;
}
a:hover {
  color: var(--primary);
}
button {
  border-radius: 0 !important;
}

/* Header + Footer */

.navigation {
  ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style-type: none;
    font-size: 22px;
    margin: 20px;
  }
}
.navigation-phone {
  display: inline !important;
  position: absolute;
  right: 0;
  top: 0;
  height: 100vh;
  background-color: var(--background);
  border-left: 2px solid var(--primary);
  z-index: 1000;
  .navbar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    .nav-item {
      text-align: right;
    }
  }
}
#enableBurgerMenu {
  position: absolute;
  background-color: rgb(0, 0, 0, 0) !important;
  border: none;
  font-size: 40px;
  left: -20px;
  top: 10px;
}
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  flex-direction: column;
  gap: 10px;
  img {
    height: 100px;
  }
}
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: var(--background);
  margin-top: 50px;
}
/* MENU */
/* popup-frame */

.popup-outer {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background-color: rgb(177, 255, 170, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  .popup-frame {
    position: relative;
    width: 400px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background-color: rgb(43, 43, 43, 0.9);
    .closed-day-navigation {
      position: absolute;
      bottom: 0;
      button {
        a {
          color: var(--secondary);
        }
      }
    }
    &::before {
      content: "Datum eintragen:";
      position: absolute;
      top: 90px;
      color: white;
      font-size: 25px;
    }
    input {
      background-color: rgb(0, 0, 0, 0);
      border: 1px solid var(--primary);
      padding: 2px;
      color: white;
      &::placeholder {
        color: white;
      }
    }
    button {
      background-color: var(--primary);
      color: var(--secondary);
      border: none;
      border: 2px solid var(--primary);
      &:hover {
        cursor: pointer;
      }
    }
  }
}

.menu-main {
  display: flex;
  margin-top: 20px;
  margin-bottom: 20px;
  position: relative;
  /* list-frame */

  .list-area {
    background-color: var(--secondary);
    display: flex;
    position: absolute;
    height: 100%;
    .sold-products {
      padding: 10px;
      transition: all 0.2s ease-in-out;
      display: none;
    }
    .total-income {
      padding: 10px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      .income-area {
        text-align: center;
      }
      .close-day {
        color: white;
        background-color: var(--background);
        border: none;
        height: 40px;
        width: 40px;
        border-radius: 10px;
        transition: all 0.2s ease-in-out;
        &:hover {
          cursor: pointer;
          background-color: #b1ffaa;
          i {
            color: var(--secondary);
          }
        }
      }
    }
    &:hover {
      .sold-products {
        display: inline;
      }
      border-right: 8px solid var(--background);
    }
  }

  /* button-frame */
  .button-area {
    width: 100%;
    display: flex;
    justify-content: center;
    .button-area-inner {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      grid-template-rows: repeat(4, 1fr);
      width: 85%;
      gap: 10px;

      .foodbutton-frame {
        display: flex;
        height: 140px;
        button {
          width: 90%;
          background-color: var(--secondary);
          color: white;
          border: none;
          font-size: 20px;
          transition: all 0.2s ease-in-out;
          &:hover {
            cursor: pointer;
            background-color: var(--primary);
            color: var(--secondary);
          }
        }
        .foodbutton-description {
          background-color: var(--primary);
          color: var(--secondary);
          padding: 15px;
          width: 15%;
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          text-align: center;
        }
      }
    }
  }
}
.add-product {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  form {
    input {
      border: 2px solid var(--primary);
      background-color: var(--background);
      padding: 5px;
      color: white;
      &::placeholder {
        color: white;
      }
    }
    button {
      border: 2px solid var(--primary);
      background-color: var(--primary);
      padding: 5px;
      &:hover {
        cursor: pointer;
      }
    }
  }
}
.change-user {
  margin-bottom: 100px;
  form {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    input {
      border: 2px solid var(--primary);
      background-color: var(--primary);
      padding: 5px;
      &:hover {
        cursor: pointer;
        background-color: var(--background);
        color: white;
      }
    }
  }
}

/* OVERVIEW */

/* overview-list */

.overview-main {
  display: flex;
  padding: 0 100px;
  margin-top: 20px;
  margin-bottom: 100px;
  gap: 10px;
  height: 600px;
  .daily-overview {
    width: 85%;
    background-color: var(--secondary);
    padding-left: 30px;
    display: flex;
    justify-content: space-between;
    .fooditem-stats {
      padding-top: 20px;
      width: 80%;
      overflow: hidden;
      position: relative;
      .fooditem-stats-end {
        position: absolute;
        top: 0;
        left: 0;
        background: rgb(43, 43, 43);
        background: linear-gradient(
          90deg,
          rgba(43, 43, 43, 1) 0%,
          rgba(43, 43, 43, 0) 100%
        );
        height: 100%;
        width: 50px;
      }
      .comparisons-outer {
        height: 50px;
        position: relative;
        .comparison-revenue,
        .comparison-product {
          background-color: var(--primary);
          height: 100%;
          position: absolute;
          top: 0;
          right: 0;
          padding: 10px;
          color: var(--secondary);
          text-align: right;
          display: flex;
          align-items: center;
          justify-content: right;
        }
        .comparison-average,
        .comparison-previous-day {
          border-left: 4px solid black;
          height: 100%;
          position: absolute;
          top: 0;
          right: 0;
          display: flex;
          margin-top: -4px;
          .comparison-average-inner,
          .comparison-product-inner {
            width: 0;
            height: 100%;
            border-right: 2px solid white;
          }
        }
      }
      .comparison-revenue-average-outer {
        margin-bottom: 20px;
      }
    }
  }
  .sales-days {
    width: 15%;
    height: 100%;
    position: relative;
    .sales-days-inner {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      gap: 5px;
      overflow: auto;
      .sales-day-outer {
        width: 100%;
        display: flex;
      }
      .sales-day {
        background-color: var(--secondary);
        border: none;
        padding: 10px;
        width: 80%;
        color: white;
        &:hover {
          cursor: pointer;
        }
      }
      .sales-day-revenue {
        background-color: var(--primary);
        width: 30%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--secondary);
      }
      &::-webkit-scrollbar {
        display: none;
      }
      a:last-child {
        padding-bottom: 40px;
      }
    }
    .sales-days-end {
      position: absolute;
      width: 100%;
      height: 50px;
      bottom: 0;
      background: rgb(35, 35, 35);
      background: linear-gradient(
        0deg,
        rgba(35, 35, 35, 1) 0%,
        rgba(35, 35, 35, 0) 100%
      );
    }
  }
}

/* STATS */

.stats-main {
  padding: 0 100px;
  margin-top: 20px;
  margin-bottom: 100px;
  .statistic {
    margin-bottom: 50px;
    .statistic-inner {
      display: flex;
      justify-content: center;
      gap: 20px;
      align-items: end;
      .bar-outer {
        .bar-number {
          background-color: white;
          color: var(--secondary);
          text-align: center;
          padding: 5px 0;
        }
        .bar {
          background-color: var(--primary);
          width: 50px;
          padding-top: 10px;
          text-align: end;
          p {
            transform: rotate(90deg);
            color: var(--secondary);
          }
        }
      }
    }
    .bar-title {
      text-align: center;
    }
  }
  .more-statistics {
    text-align: center;
    display: flex;
    justify-content: center;
    .more-statistic-inner {
      background-color: var(--secondary);
      padding: 30px 0;
      width: 680px;
      border-radius: 20px;
    }
  }
}

/* OVERVIEW */

.news-main {
  padding: 0px 100px;
  margin-bottom: 100px;
  .news-content {
    display: flex;
    justify-content: center;
    gap: 20px;
    .news-form {
      display: flex;
      justify-content: center;
      gap: 20px;
      .news-title {
        width: 100px;
        height: 90px;
        textarea {
          width: 100%;
          height: 100%;
          border: 2px solid var(--primary);
          background-color: var(--background);
          color: white;
          &::placeholder {
            color: white;
            padding: 10px;
          }
        }
      }
      .news-titles {
        width: 500px;
        height: 90px;
        textarea {
          width: 100%;
          height: 100%;
          border: 2px solid var(--primary);
          background-color: var(--background);
          color: white;
          &::placeholder {
            color: white;
            padding: 10px;
          }
        }
      }
      .news-close {
        width: 80px;
        height: 98px;
        background-color: var(--primary);
        border: 0px;
        color: var(--secondary);
        &:hover {
          cursor: pointer;
        }
      }
    }
  }
  .news-overview {
    padding: 50px 0px;
    display: flex;
    justify-content: center;
    tbody {
      tr {
        td {
          padding: 6px;
          input {
            background-color: var(--primary);
            border: 0px;
            padding: 5px;
            color: var(--secondary);
            &:hover {
              cursor: pointer;
            }
          }
        }
      }
    }
  }
}

/* BESTAND */

.balance-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px 100px 100px 100px;
  .current-balance {
    padding: 5px;
    background-color: white;
    color: var(--secondary);
    width: 620px;
    text-align: center;
    margin-bottom: 5px;
  }
  .balance-form {
    margin-bottom: 0.4rem;
    form {
      input {
        border: 2px solid var(--primary);
        background-color: var(--secondary);
        padding: 10px;
        color: white;
        &::placeholder {
          color: white;
        }
      }
      button {
        border: 2px solid var(--primary);
        background-color: var(--primary);
        padding: 10px;
        width: 200px;
        &:hover {
          cursor: pointer;
        }
      }
    }
  }
  .balance-overview {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 80%;
    .product-balance {
      .product-balance-name {
        background-color: var(--secondary);
        padding: 5px;
        text-align: center;
        form {
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          button {
            background-color: var(--secondary);
            border: 2px solid var(--primary);
            width: 40px;
            color: white;
            height: 80%;
            &:hover {
              cursor: pointer;
            }
          }
        }
      }
      .product-balance-bar {
        background-color: var(--primary);
        padding: 10px;
        color: var(--background);
      }
    }
  }
}

/* LOGIN-MASKE */

.login-main {
  overflow-x: hidden;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    input,
    button {
      border: 3px solid var(--primary);
      padding: 10px;
      color: var(--secondary);
      &::placeholder {
        color: white;
      }
    }
    input {
      background-color: var(--background);
      color: white;
    }
    button {
      background-color: var(--primary);
      &:hover {
        cursor: pointer;
      }
    }
  }
  .bottom-text {
    position: absolute;
    bottom: 0;
    left: 0;
    font-weight: 900;
    font-size: 50px;
    width: 100%;
    overflow-x: hidden;
  }
  .false-password {
    position: absolute;
    top: 0;
    background-color: red;
    width: 100%;
    text-align: center;
    padding: 5px 0;
  }
}

/* */
/* RESPONSIVE-FORMAT */
/* */

@media only screen and (max-width: 1405px) {
  .login-main {
    .bottom-text {
      font-size: 30px;
    }
  }
  .menu-main {
    .button-area {
      .button-area-inner {
        .foodbutton-frame {
          height: 110px;
          button {
            width: 80%;
            font-size: 16px;
          }
          .foodbutton-description {
            width: 20%;
            font-size: 14px;
            padding: 10px;
          }
        }
      }
    }
  }
  .overview-main {
    .daily-overview {
      .fooditem-stats {
        display: flex;
        flex-direction: column;
        justify-content: end;
        padding-bottom: 20px;
      }
    }
    .sales-days {
      width: 20%;
      .sales-days-inner {
        .sales-day-outer {
          .sales-day-revenue {
            font-size: 14px;
          }
        }
      }
    }
  }
}
@media only screen and (max-width: 1150px) {
  .menu-main {
    .button-area {
      justify-content: right;
      padding-right: 20px;
      .button-area-inner {
        grid-template-columns: repeat(3, 1fr);
      }
    }
  }
  .overview-main {
    .daily-overview {
      width: 75%;
      display: inline;
      .fooditem-stats {
        width: 100%;
      }
    }
    .sales-days {
      width: 25%;
    }
  }
}
@media only screen and (max-width: 750px) {
  .login-main {
    .bottom-text {
      text-align: center;
      top: 10px;
    }
    .false-password {
      bottom: 0;
      top: auto;
    }
  }
  .menu-main {
    .button-area {
      .button-area-inner {
        .foodbutton-frame {
          button {
            width: 70%;
            font-size: 12px;
          }
          .foodbutton-description {
            width: 30%;
          }
        }
      }
    }
    .add-product {
      form {
        button {
          color: var(--background) !important;
        }
      }
    }
  }
  .overview-main {
    padding: 0 30px;
    height: auto;
    .daily-overview {
      width: 40%;
      padding-left: 0;
      background-color: rgb(0, 0, 0, 0);
      .fooditem-stats {
        display: none;
      }
      .fooditem-outer {
        position: sticky;
        top: 20px;
      }
    }
    .sales-days {
      width: 60%;
      height: auto;
      .sales-days-end {
        display: none;
      }
      .sales-days-inner {
        .sales-day-outer {
          .sales-day-revenue {
            font-size: 13px;
          }
        }
      }
    }
  }
  .stats-main {
    .statistic {
      .statistic-inner {
        gap: 10px;
        .bar-outer {
          .bar {
            width: 40px;
          }
          .bar-number {
            font-size: 12px;
          }
        }
      }
    }
  }
  .balance-main {
    padding: 0px 20px 100px 20px;
    .current-balance {
      width: 80%;
    }
    .balance-form {
      button {
        color: var(--background) !important;
      }
    }
    .balance-overview {
      width: 100%;
      .product-balance {
        p {
          font-size: 12px;
        }
        button {
          padding: 0 5px;
        }
      }
    }
    .balance-form {
      margin-bottom: 10px;
      form {
        display: flex;
        flex-direction: column;
        gap: 5px;
      }
    }
  }
  .news-main {
    .news-content {
      .news-form {
        flex-direction: column;
        gap: 10px;
        .news-title,
        .news-titles,
        .news-close {
          width: 100%;
        }
        .news-titles {
          height: 250px;
        }
        .news-close {
          height: 50px;
        }
      }
    }
  }
  footer {
    display: none;
  }
}

@media only screen and (max-width: 575px) {
  .navigation {
    ul {
      justify-content: space-between;
      gap: 0;
      font-size: 15px;
      padding: 0;
    }
  }
  .login-main {
    .bottom-text {
      height: 200px;
    }
  }
  .menu-main {
    flex-direction: column-reverse;
    gap: 20px;
    .list-area {
      position: relative;
      justify-content: space-between;
      .sold-products {
        display: inline;
      }
    }
    .button-area {
      justify-content: center;
      padding-right: 0;
      .button-area-inner {
        width: 95%;
        grid-template-columns: repeat(2, 1fr);
        .foodbutton-frame {
          button {
            width: 75%;
            font-size: 13px;
          }
          .foodbutton-description {
            width: 25%;
          }
        }
      }
    }
  }
  .stats-main {
    padding: 0 30px;
    .statistic {
      display: flex;
      flex-direction: column-reverse;
      .statistic-inner {
        display: inline;
        .bar-outer {
          display: flex;
          margin-bottom: 10px;
          .bar {
            height: auto !important;
            width: 80%;
            padding-top: 0;
            padding-left: 5px;
            p {
              transform: rotate(0deg);
              text-align: left;
            }
          }
          .bar-number {
            width: 20%;
            font-size: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
          }
        }
      }
    }
    .more-statistics {
      .more-statistic-inner {
        padding: 20px;
      }
    }
  }
  .news-main {
    padding: 0 30px;
    .news-overview {
      width: 100%;
      tbody {
        width: 100%;
        tr {
          width: 100%;
          display: flex;
          flex-direction: column;
          background-color: var(--secondary);
          padding: 10px;
          position: relative;
          margin-bottom: 6px;
          td:nth-child(3) {
            width: 50%;
            input {
              width: 100%;
            }
          }
          td:nth-child(4) {
            position: absolute;
            right: 10px;
            bottom: 10px;
            width: 50%;
            input {
              width: 100%;
            }
          }
        }
      }
    }
  }
}
