*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  z-index: 2;
}

:root {
  --rubik: "Rubik", sans-serif;
  --staatliches: "Staatliches", sans-serif;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--rubik);
  margin: 0 clamp(15rem, 25vw, 25vw);
}

.nav-bar {
  min-height: 4rem;
  display: flex;
  align-items: flex-end;
  padding: 0 2rem;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.about-link button {
  color: black;
  outline: none;
  border: none;
  background: none;
  font-family: var(--rubik);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
}

.ham-burger {
  display: block;
  position: relative;
}

.side-nav-hidden {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 25vw;
  min-height: 100%;
  transform: translateX(-80vw);
  z-index: 5;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(5px) brightness(0.9);
  -webkit-backdrop-filter: blur(5px) brightness(0.9);
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-right-radius: 1.2rem;
  border-bottom-right-radius: 1.2rem;
  transition: 0.4s ease-in-out;
}

.side-nav-showed {
  transform: translateX(0);
}

#side-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#side-nav ul li {
  color: #222;
  transition: all 0.7s cubic-bezier(0.76, 0.03, 0.37, 1.02);
  list-style: none;
  font-size: 1.3rem;
  margin: 1rem 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#side-nav .forRecovery {
  position: absolute;
  bottom: 3rem;
  padding-left: 0.4rem;
}

.forRecovery p {
  margin: 0.4rem 0;
  font-size: 0.8rem;
}

.burger {
  display: block;
  height: 0.25rem;
  width: 2.2rem;
  background-color: #0d47a1;
  margin: 0.4rem 0;
  border-radius: 5px;
  -webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  -o-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}

.burger:nth-child(1) {
  transform-origin: left top;
}

.burger:nth-child(3) {
  transform-origin: left bottom;
}

.middle-rem {
  opacity: 0;
  -webkit-transform: translateX(-2rem);
  -moz-transform: translateX(-2rem);
  -o-transform: translateX(-2rem);
  transform: translateX(-2rem);
}

.top-bur {
  -webkit-transform: rotate(40deg);
  -moz-transform: rotate(40deg);
  -o-transform: rotate(40deg);
  transform: rotate(40deg);
}

.bottom-bur {
  -webkit-transform: rotate(-40deg);
  -moz-transform: rotate(-40deg);
  -o-transform: rotate(-40deg);
  transform: rotate(-40deg);
}

.mainHead {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr;
  overflow: hidden;
  width: fit-content;
}

.mainHead h1 {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.mainHead h1:nth-child(2) {
  visibility: hidden;
}

#logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
  position: relative;
}

#logo img {
  width: 15vw;
  height: auto;
}

#logo h1 {
  font-size: 1.8rem;
  text-transform: uppercase;
  font-family: var(--staatliches);
  letter-spacing: 2px;
  color: #333;
  text-align: center;
}

#task-bar {
  display: flex;
  flex-direction: column;
  padding: 0 1.8rem;
  margin-top: 0.5rem;
}

.taskHead {
  margin: 1rem 0;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.task {
  background: #f2f2f2;
  height: 3.6rem;
  border-radius: 0.7rem;
  display: grid;
  grid-template-columns: 5fr 1fr 1.5fr;
  align-items: center;
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
}

.centerWork {
  background: #f2f2f2;
  height: 3.6rem;
  border-radius: 0.7rem;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  margin-bottom: 0.8rem;
}

@keyframes spin {
  0% {
    transform: rotateZ(0);
    filter: blur(0);
  }
  30% {
    filter: blur(0.6px);
  }
  70% {
    filter: blur(0.6px);
  }
  100% {
    transform: rotateZ(360deg);
    filter: blur(0);
  }
}

.fade-in-out {
  animation: spinReverse 0.5s ease 1;
}

.spinThat {
  animation: spin 0.5s ease 1;
}

@keyframes spinReverse {
  0% {
    transform: rotateZ(0);
    filter: blur(0);
  }
  30% {
    filter: blur(0.6px);
  }
  70% {
    filter: blur(0.6px);
  }
  100% {
    transform: rotateZ(-360deg);
    filter: blur(0);
  }
}

.taskText {
  color: #545454;
  font-size: 1rem;
  justify-self: start;
  word-wrap: anywhere;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 100%;
}

.display-none {
  display: none;
}

.task img {
  width: 1rem;
  height: auto;
  transition: all 0.2s ease-in-out;
  place-self: center;
  cursor: pointer;
}

.task img:nth-child(2) {
  width: 1.5rem;
}

.formStyle {
  grid-template-columns: 4fr 1fr;
  border: 0.2rem solid #f2f2f2;
  display: grid;
  border-radius: 0.7rem;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  background: white;
}

.formStyle button {
  outline: none;
  border: 0.2rem solid #f2f2f2;
  border-radius: 0.7rem;
  padding: 0.6rem 1rem;
  background: none;
  font-family: var(--rubik);
  font-weight: bold;
  color: #545454;
  cursor: pointer;
}

.formStyle button:hover {
  background: #f2f2f2;
}

label {
  display: flex;
  align-items: center;
}

.input-box {
  width: 100%;
  outline: none;
  border: none;
  font-size: 0.9rem;
  text-align: center;
}

.input-box::placeholder {
  text-align: center;
}

.emptyTaskModal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 10;
  backdrop-filter: blur(2px) brightness(0.8);
  -webkit-backdrop-filter: blur(2px) brightness(0.8);
  transition: 0.4s ease-in-out;
}

.emptyTaskModal p {
  background: linear-gradient(to bottom right, #0d47a1, #29b6f6);
  height: 6rem;
  width: 17rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border-radius: 1rem;
  color: white;
}

.opHidden {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.checkedToDo {
  padding: 0 1.8rem;
}

.removing {
  animation: removing 1s ease-in-out 1;
  animation-fill-mode: forward;
  z-index: 1;
}

.completed {
  color: #a6a6a6;
  text-decoration: line-through;
}

@keyframes removing {
  25% {
    transform: translateY(2rem) scale(0.8);
  }
  100% {
    transform: translateY(10rem) scale(0.8);
    opacity: 0;
  }
}

/*----- About Section -----*/

#social-handles {
  display: none;
  flex-direction: column;
  padding: 0 1.8rem;
  margin-top: 0.5rem;
}

.handles-head {
  margin: 2rem 0;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.handle {
  height: 4rem;
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  place-items: center;
  margin-bottom: 1.4rem;
}

.handle a {
  text-decoration: none;
  display: inline-block;
  justify-self: start;
  color: #545454;
  font-size: 1rem;
}

.handle img {
  width: 2.5rem;
  height: auto;
}

.handle img:nth-child(3) {
  width: 1.5rem;
  height: auto;
  justify-self: start;
  cursor: pointer;
}

.handle span {
  color: #29b6f6;
}

.thanks-footer {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 2rem 0;
}

.thanks-footer p {
  font-size: 1rem;
  color: #545454;
}

@media screen and (max-width: 1024px) {
  html {
    font-size: 23px;
  }

  body {
    margin: 0 clamp(4rem, 10vw, 10vw);
  }
  #logo img {
    width: 25vw;
    height: auto;
  }
  .side-nav-hidden {
    width: 60vw;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 18px;
  }

  body {
    margin: 0;
  }

  #logo img {
    width: 40vw;
    height: auto;
  }
  .side-nav-hidden {
    width: 60vw;
  }
  .handle img {
    width: 10vw;
  }

  .handle img:nth-child(3) {
    width: 5vw;
  }
}
