/* import icon */
@import url("fontCss.css");

:root {
  font-size: 16px;
  --bg-color: #0d1017;
  --primary-color: #00ccff;
  --secondary-color: #ffffff;
  --border-style: 3px solid var(--primary-color);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1;
  font: 1rem sans-serif;
}

html {
  width: 100%;
  min-height: 100dvh;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

#main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2.9rem 0;
  margin: 5rem;
  width: 70%;
  border: var(--border-style);
  border-radius: 1.25rem;
}

#sec-add,
#sec-edit {
  display: flex;
  flex-flow: column;
  gap: 1.25rem;
  width: 80%;
  padding: 0.625rem 1.875rem;
}

.head {
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1875rem;
  margin-bottom: 1.25rem;
  color: var(--bg-color);
  animation: fadeDown 1s ease-in calc(var(--i) * 0.5s) backwards;
  filter: drop-shadow(1px 1px 0px var(--primary-color))
    drop-shadow(-1px -1px 0px var(--primary-color))
    drop-shadow(1px -1px 0px var(--primary-color))
    drop-shadow(-1px 1px 0px var(--primary-color));
}

.form {
  display: flex;
  flex-flow: column;
  position: relative;
}

.label {
  position: absolute;
  top: -0.625rem;
  left: 0.625rem;
  padding: 0.625rem;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  font-weight: 900;
  pointer-events: none;
  color: var(--bg-color);
  filter: drop-shadow(1px 1px 0px var(--secondary-color))
    drop-shadow(-1px -1px 0px var(--secondary-color))
    drop-shadow(1px -1px 0px var(--secondary-color))
    drop-shadow(-1px 1px 0px var(--secondary-color));
  transform: skew(-40deg);
  transition: all 0.3s ease-in;
}

.input {
  background-color: transparent;
  border: 0;
  outline: 0;
  color: transparent;
  border-bottom: var(--border-style);
  border-left: var(--border-style);
  border-bottom-left-radius: 0.625rem;
  padding: 0.625rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.input::placeholder {
  color: var(--primary-color);
  text-transform: uppercase;
  font-size: 1rem;
  opacity: 0;
  transition: all 0.3s ease-in 0.1s;
}

.form:focus-within .input {
  color: var(--secondary-color);
}

.form:focus-within .label {
  top: -2.5rem;
  left: 0;
  transform: skew(0deg);
  font-size: 1rem;
}

.form:focus-within .input::placeholder {
  opacity: 0.7;
}

.btn,
.btn {
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  width: fit-content;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--secondary-color);
  border: 0;
  outline: 0;
  background-color: transparent;
  border: var(--border-style);
  cursor: pointer;
  transition: all 0.3s ease-in;
  animation: fadeUp 1s ease-in calc(var(--i) * 0.5s) backwards;
}

.btn:hover,
.btn:hover {
  box-shadow: inset 0 0 0.625rem var(--primary-color), 0 0 0.625rem var(--primary-color);
  transform: scaleY(1.2);
}

.hr-dashed {
  width: calc(80% - 3.75rem);
  border: 2px dashed var(--secondary-color);
  margin: 2rem 0;
}

#task-list {
  list-style: none;
  display: flex;
  flex-flow: column;
  gap: 0.625rem;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.625rem;
  color: var(--secondary-color);
  border: var(--border-style);
  border-radius: 0.5rem;
  text-transform: capitalize;
  transition: all 0.3s ease-in;
  animation: fadeIn 1s ease-in calc(var(--i) * 0.5s) backwards;
}

.list-item:not(:last-child) {
  margin-bottom: 0.5rem;
}

.list-item:hover {
  transform: scaleY(1.2);
  box-shadow: inset 0 0 0.625rem var(--primary-color), 0 0 0.625rem var(--primary-color);
}

.editList,
.delList,
.updateList {
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 900;
  background-color: transparent;
  border: 0;
  cursor: pointer;
  margin: 0 0.625rem;
  transition: all 0.3s ease-in;
}

.delList:hover,
.editList:hover,
.updateList:hover {
  transform: scale(1.1);
  color: var(--secondary-color);
}

.update-input {
  background-color: #ffffff29;
  border: 0;
  outline: 0;
  color: var(--secondary-color);
  width: 50%;
  padding: 8px;
}

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #00ccff20;
}

.modal {
  background-color: var(--bg-color);
  color: var(--secondary-color);
  text-align: center;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 10px;
  border: var(--border-style);
  animation: shake 1.4s ease-in infinite ;
}

.modal:hover {
  animation-play-state: paused;
}

.modal p {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 10px 0 30px;
}

.none {
  display: none !important;
}

@keyframes fadeUp {
  0% {
    transform: translateY(200%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeDown {
  0% {
    transform: translateY(-200%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes shake {
  0%,
  65% {
    transform: rotate(0deg);
  }
  15%,
  35%,
  55% {
    transform: rotate(10deg);
  }
  5%,
  25%,
  45% {
    transform: rotate(-20deg);
  }
}

@media (max-width: 768px) {
  #main {
    width: 100%;
    margin: 0;
  }
}
@media (max-width: 425px) {
  :root {
    font-size: 12px;
  }
}