:root {
  --dark-color: #000;
  --dark-opacity1-color: rgba(0, 0, 0, 0.1);
  --dark-opacity4-color: rgba(0, 0, 0, 0.4);
  --dark-opacity7-color: rgba(0, 0, 0, 0.7);
  --white-color: #fff;
  --light-gray-color: #f8f8f8;
  /* --light-opacity7-color: rgba(255, 255, 255, 0.7); */
}

/* reset */
html {
  font-size: 62.5%;
}
body,
input {
  font-family: "Lato", sans-serif;
}
body {
  margin: 0;
  background-color: var(--light-gray-color);
  color: var(--dark-color);
  width: 100vw;
  height: 100vh;
}
ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
h1 {
  font-weight: normal;
  margin: 0;
}
dl,
dd,
p {
  margin: 0;
}
button,
input {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background-color: transparent;
  border-radius: 0;
}

button {
  cursor: pointer;
}
em {
  font-style: normal;
}
a {
  text-decoration: none;
  cursor: pointer;
}
a:hover,
a:focus {
  text-decoration: underline;
}
img {
  vertical-align: top;
}
fieldset {
  border: 0 none;
  margin: 0;
  padding: 0;
}

#phone {
  display: flex;
  flex-direction: column;
  border: solid 2rem var(--dark-color);
  border-radius: 6rem;
  padding: 2.2rem 2rem 2.4rem;
}

@media screen and (max-width: 462px) {
  #phone {
    width: calc(100vw - 4rem - 4rem);
  }
}
@media screen and (max-height: 930px) {
  body {
    display: flex;
  }
  #phone {
    height: calc(100vh - 4rem - 4.6rem);
    margin: auto;
  }
}

@media screen and (min-width: 463px) {
  #phone {
    width: 382px;
  }
}
@media screen and (min-height: 931px) {
  #phone {
    height: 844px;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* 전체 input 영역 */
.modal form input,
#todo-form input {
  width: 100%;
  padding: 1.4rem 2rem;
  border-radius: 5rem;
  border: solid 0.1rem var(--dark-opacity4-color);
  color: var(--dark-color);
  margin-right: 0.8rem;
}
.modal form input::placeholder,
#todo-form input::placeholder {
  color: var(--dark-opacity4-color);
}
.modal form input:focus,
#todo-form input:focus {
  border: solid 0.1rem var(--dark-color);
  outline: none;
}
.modal form button,
#todo-form button {
  padding: 1.4rem 2.4rem;
  border-radius: 5rem;
  background-color: var(--dark-color);
  color: var(--white-color);
}
.modal form button:hover,
#todo-form button:hover {
  background-color: var(--dark-opacity7-color);
}

/* 로그인 입력창 */
.none {
  display: none !important;
}
.login {
  display: flex;
  align-items: center;
  /* width: calc(100% - 6.4rem); */

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  border-radius: 4rem;
  background-color: var(--dark-opacity7-color);
  padding: 0rem 3.2rem;
}
@media screen and (max-width: 462px) {
  .login {
    width: calc(100vw - 4rem - 4rem);
    border-radius: 6rem;
  }
}
@media screen and (max-height: 930px) {
  .login {
    height: calc(100% - 4rem);
    margin: auto;
    border-radius: 4rem;
  }
}

@media screen and (min-width: 463px) {
  .login {
    width: 382px;
  }
}
@media screen and (min-height: 931px) {
  .login {
    height: calc(844px + 48px);
  }
}

.modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 3.2rem 2.4rem 2.4rem;
  background-color: var(--white-color);
  border-radius: 4rem;
}
@media screen and (max-width: 462px) {
  .modal {
    width: calc(100vw - 4rem - 4rem - 5rem);
  }
}

.modal form {
  display: flex;
  margin-top: 5.6rem;
}

/* 시간 & 날씨 */
.info {
  height: 4rem;
  display: flex;
  justify-content: space-between;
  font-size: 1.4rem;
}

/* profile */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.8rem 0rem 1.6rem;
  font-size: 1.4rem;
}
.profile div:first-child {
  width: 4rem;
  height: 4rem;
  margin-bottom: 0.8rem;
  background-color: var(--dark-color);
  color: var(--white-color);
  font-size: 2.4rem;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* todo-list 영역 */
.todo-list {
  height: calc(100% - 4rem - 8.8rem - 6.6rem);
  padding: 0rem 0.4rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column-reverse;
}
.todo-li {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: end;
  margin-top: 1rem;
}
.todo-li span {
  font-size: 1.2rem;
  color: var(--dark-opacity4-color);
}
.todo-li div {
  display: flex;
  align-items: center;
  width: 75%;
  padding: 1.6rem;
  border-radius: 2rem 2rem 0rem 2rem;
  font-size: 1.6rem;
  background-color: var(--dark-opacity1-color);
  justify-content: space-between;
}
.todo-li div p {
  width: 85%;
}
.done div p {
  color: var(--dark-opacity4-color);
  text-decoration-color: var(--dark-opacity4-color);
  text-decoration-line: line-through;
}

.todo-li div button {
  width: 2rem;
  height: 2rem;
  border: solid 0.1rem var(--dark-color);
  border-radius: 100%;
  transition: 0.5s cubic-bezier(0.2, 0.89, 0.35, 1.15) all;
}
.todo-li div button:hover {
  border: solid 0.2rem var(--dark-color);
}
.done div button {
  position: relative;
  width: 2rem;
  height: 2rem;
  border-radius: 100%;
  background-color: var(--dark-color);
}
.done div button:before {
  border-bottom: 0.15rem solid var(--white-color);
  position: absolute;
  content: "";
  width: 20%;
  height: 50%;
  top: 10%;
  left: 40%;
  transform: rotateZ(45deg);
}
.done div button:after {
  border-bottom: 0.15rem solid var(--white-color);
  position: absolute;
  content: "";
  width: 50%;
  height: 50%;
  top: 5%;
  left: 15%;
  transform: rotateZ(-45deg);
}
.done div button:hover {
  background-color: var(--dark-opacity7-color);
  border: solid 0.1rem var(--dark-opacity7-color);
}

/* todo-input영역 */
#todo-form {
  display: flex;
  padding-top: 2rem;
}
