@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Zen+Dots&display=swap");

:root {
  --ffPoppins: "Poppins", serif;
  --ffZenDots: "Zen Dots", serif;

  --whiteColor: white;
  --blackColor: black;
  --grayColor: gray;
  --lightGreenColor: #7ee07e80;

  --mainBackgroundColor: rgba(0, 0, 0, 0.05);
  --borderColor: rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--ffPoppins);

  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.svgCnt {
  height: 48px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
}
svg {
  height: 100%;
  width: 100%;
  padding: 8px;
}

/* HEADER */
/* HEADER */
/* HEADER */
/* HEADER */
/* HEADER */
/* HEADER */
/* HEADER */
/* HEADER */
/* HEADER */
/* HEADER */
/* HEADER */
/* HEADER */
/* HEADER */
/* HEADER */
/* HEADER */
/* HEADER */
/* HEADER */
header {
  height: 65px;
  padding: 6px 12px;
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.logoContainer {
  font-family: var(--ffZenDots);
  font-weight: 900;
  padding: 12px;
  font-size: 0.9em;
  width: fit-content;
  border-radius: 12px;
  backdrop-filter: blur(48px);
  cursor: pointer;
}
.daysCompletedCnt {
  height: 42px;
  font-size: 0.9em;
  width: fit-content;
  border-radius: 12px;
  border-radius: 50%;
  aspect-ratio: 1;

  width: 175px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--lightGreenColor) 0%, #f3f3f3 0%);
  color: var(--grayColor);
  font-size: 0.75em;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease;
  backdrop-filter: blur(48px);
}
.daysCompletedCountCnt {
  font-size: 1.5em;
  font-weight: 600;
  font-family: var(--ffZenDots);
  padding: 0 6px;
  color: var(--blackColor);
}
/* MAIN */
/* MAIN */
/* MAIN */
/* MAIN */
/* MAIN */
/* MAIN */
/* MAIN */
/* MAIN */
/* MAIN */
/* MAIN */
/* MAIN */
/* MAIN */
/* MAIN */
/* MAIN */
/* MAIN */
/* MAIN */

.challengeTitleCnt {
  position: relative;
  padding: 6px 12px;
}
.cTitle {
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  border: 1px solid var(--mainBackgroundColor);
}
.titleEditBtn {
  background: red;
  position: absolute;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.7em;
  bottom: 18px;
  right: 18px;
  color: var(--whiteColor);
  cursor: pointer;
}

/* challengeDateCnt */
.challengeDateCnt {
  padding: 6px 12px;
  font-size: 0.75em;
  display: flex;
  gap: 3px;
  transition: 0.3s ease;

  position: relative;
}

.editInputDate {
  padding: 12px;
  background: transparent;
  border-radius: 6px;
  width: 60%;
  border: 1px solid var(--borderColor);
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url(assets/calendar.png);
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 24px;
  cursor: pointer;
  transition: 0.3s ease;
}
.editInputDateActive {
  width: 100%;
}
.generateDatesButton {
  border: 0;
  padding: 12px;
  background: var(--lightGreenColor);
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s ease;
  width: 40%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: 0.3s ease;
}
.generateDatesButton:active {
  scale: 0.8;
}

.generateDatesButtonHide {
  position: absolute;
  right: 12px;
  top: 30%;
  font-size: 0.75em;
  padding: 6px;
  width: fit-content;
  transform: translate(-50px);
}
.generateDatesButton:disabled {
  color: black;
}
/*  */
/*  */
/*  */
/*  */
/* BOXES STYLING */
/* BOXES STYLING */
/* BOXES STYLING */
/* BOXES STYLING */
#boxesSection {
  background: var(--mainBackgroundColor);
  padding: 3px 12px;
}
.boxesContainer {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.box {
  min-height: 75px;
  border-radius: 8px;
  background: linear-gradient(var(--whiteColor), #f5f5f5e8, var(--whiteColor));

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  transition: 0.3s ease;
  width: 100%;
  cursor: pointer;
}
.dayCompleted {
  background: var(--lightGreenColor);
  animation: dayOverAnimation 1s ease, orderAnimation 0.3s 0.6s forwards;
}
@keyframes orderAnimation {
  100% {
    order: 1;
  }
}
@keyframes dayOverAnimation {
  100% {
    transform: translatey(100vh);
  }
}

/* boxLeft Content */
.boxDay {
  color: var(--grayColor);
  font-size: 0.75em;
}

/* boxRight Content */
.boxRight {
  min-width: 45px;
}
.dayText {
  color: var(--grayColor);
  font-size: 0.75em;
  text-align: center;
}
.dayCountDisplayer {
  align-content: center;
  text-align: center;
  font-size: 1.5em;
}

/* INPUTS MODAL */
/* INPUTS MODAL */
/* INPUTS MODAL */
/* INPUTS MODAL */
/* INPUTS MODAL */
/* INPUTS MODAL */
/* INPUTS MODAL */
/* INPUTS MODAL */
/* INPUTS MODAL */
/* INPUTS MODAL */
/* INPUTS MODAL */
/* INPUTS MODAL */
/* INPUTS MODAL */

.inputsModalSection {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;

  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.inputsModalSectionActive {
  z-index: 1;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.8);
  visibility: visible;
}
.inputsModalSection .closeModalSectionModal {
  border-radius: 8px;
  position: absolute;
  top: 12px;
  right: 12px;
  cursor: pointer;
  background: red;

  font-size: 0.75em;
  padding: 6px 12px;
  color: white;
}

.inputsModalSection h3 {
  width: 100%;
  padding: 6px;
}

.inputsContainer {
  padding: 18px 24px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;

  transition: 0.3s ease;
  scale: 0;
  background: white;
}
.inputsModalActive {
  scale: 1;
}
.inputsContainer > div {
  position: relative;
}
.inputsContainer input {
  border: 0;
  font-size: 1em;
  padding: 8px 18px;
  min-width: 240px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid var(--mainBackgroundColor);

  width: 300px;
  padding-top: 12px;
}

.inputsContainer button {
  padding: 6px 24px;
  border-radius: 8px;
  background: blue;
  color: white;
  border: 0;
  cursor: pointer;
}

.inputsContainer label {
  background: var(--whiteColor);
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  border-radius: 4px;
  align-content: center;

  transform: translate(6px, -50%);
  font-size: 0.75em;
  padding: 2px 6px;
  color: var(--grayColor);
}

.challengeExtendBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: darkblue;
  padding: 12px 28px;
  font-size: 0.9em;
  border-radius: 12px;
  color: white;
  transform: translate(100px);
  transition: 0.3s ease;
  box-shadow: 12px 12px 12px -6px rgba(0, 0, 0, 0.75);
}

/* ALERT CONTAINER */
.alertsContainer {
  position: fixed;
  transform: translate(0, 100%);
  transition: 0.3s ease;
  font-size: 0.9em;

  min-width: 400px;
  width: fit-content;
  max-width: 100%;
  border-radius: 8px;

  bottom: 12px;
  right: 12px;
  height: fit-content;
  padding: 12px;
  z-index: 1;
}

.alertsContainerActive {
  transform: translate(0);
}

.alertsContainer p {
  text-align: center;
}

@media screen and (max-width: 600px) {
  .alertsContainer {
    transform: translate(0, -100%);
    min-width: unset;
    width: 92%;
    max-width: unset;

    top: 12px;
    left: 4%;
  }

  .alertsContainerActive {
    transform: translate(0);
  }
}
main {
  position: relative;
}
.clearStorageCnt {
  padding: 12px;
  position: absolute;
  bottom: -80px;
  z-index: 1;
  width: 100%;
  align-content: center;
  background: var(--whiteColor);
}
.clearStorage {
  padding: 12px 8px;
  width: 130px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  font-size: 0.85em;
  cursor: pointer;
  background: red;
  color: white;
  user-select: none;
  transition: 0.3s ease;
  justify-content: center;
}
.clearStorage svg {
  all: unset;
  height: 24px;
  fill: white;
}

.dayCompletedTransition {
  background: #7ee07e80;
  transform: translateY(100vh);
  transition: transform 0.9s ease 0.3s, background 0.3s;
}

/* trashIconStylings */

.trashContainer {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  z-index: -1;
  display: flex;
  justify-content: center;
  align-items: center;

  transform: translateY(100%);
  height: 0;
  visibility: hidden;
}

.trashContainerStart {
  transform: translateY(-100%);
  height: auto;
  visibility: visible;
}

.trash-icon {
  width: 80px;
  height: 100px;
  position: relative;
  margin: 20px;
  scale: 1.5;

  height: 0;
  transition: 0.3s ease;
}

.trashIconStart {
  height: 100px;
}

/* Bin Base */
.trash-icon .bin {
  width: 100%;
  height: 100%;
  background-color: #000;
  border-radius: 5px;
  position: relative;

  /* background-image: url(assets/recycle.png); */
  background-size: 40px;
  background-position: center;
  background-position-y: 40px;
  background-repeat: no-repeat;
}

/* Bin Lid */
.trash-icon .lid {
  width: 100%;
  height: 8px;
  background-color: #000;
  position: absolute;
  top: -10px;
  border-radius: 3px;
  transition: all 0.3s ease, transform 0.3s ease 0.3s;

  height: 0;
}

.lidStart {
  height: 8px !important;
  transform: rotateZ(-120deg);
  transform-origin: left;
}
.lidClose {
  transform: rotate(0);
}

/* Handle */
.trash-icon .lid .handle {
  width: 12px;
  height: 4px;
  background-color: #000;
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}
