/* UNIVERSAL */
html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  left: 0;
  top: 0;
  font-size: 100%;
  -ms-overflow-style: none;
}

/* ROOT FONT STYLES */
* {
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Inter';
  font-style:  normal;
  font-weight: 400;
  font-display: swap;
  src: url("../font/Inter-Regular.woff2?v=3.15") format("woff2"),
       url("../font/Inter-Regular.woff?v=3.15") format("woff");
}

@font-face {
  font-family: 'Inter';
  font-style:  normal;
  font-weight: 500;
  font-display: swap;
  src: url("../font/Inter-Medium.woff2?v=3.15") format("woff2"),
       url("../font/Inter-Medium.woff?v=3.15") format("woff");
}

@font-face {
  font-family: 'Inter';
  font-style:  normal;
  font-weight: 700;
  font-display: swap;
  src: url("../font/Inter-Bold.woff2?v=3.15") format("woff2"),
       url("../font/Inter-Bold.woff?v=3.15") format("woff");
}

/* TYPOGRAPHY */
h1 {
  font-size: 3.3rem;
  line-height: 4rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.375rem;
}

p {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.8;
}

/* POSITIONING */
.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Style */
input[type="text"] {
  -webkit-appearance: none;
  border-radius: 0;
}

/* Style */
header {
  padding: 25px 0;
  position: relative;
}
main, header {
  position: relative;
  display: block;
  width: 60%;
  max-width: 870px;
  margin-left: auto;
  margin-right: auto;
}
main {
  min-height: calc(100% - (145px));
  display:block;
  overflow: scroll;
  position: relative;
}
#logo {
  background: url(../img/dailyfour-light.svg);
  position: relative;
  display: block;
  margin: auto;
  width: 166px;
  height: 35px;
  background-size: 166px 35px;
}
#logo:after {
  content: "";
  position: absolute;
  display: inline-block;
  width: 7px;
  height: 7px;
  right: -8px;
  bottom: 8px;
  transition: all 0.1s linear;
}
.zero:after {
  background: url("../img/0.svg") no-repeat;
}
.one:after  {
  background: url("../img/1.svg") no-repeat;
}
.two:after  {
  background: url("../img/2.svg") no-repeat;
}
.three:after {
  background: url("../img/3.svg") no-repeat;
}
.four:after {
  background: url("../img/4.svg") no-repeat;
}

.line {
  display: block;
  margin: 50px auto;
  width: 279px;
  height: 10px;
  background: url(../img/line.svg);
  background-size: 279px 10px;
}

/* Nav */
.nav {
  margin: 0;
  padding: 0;
  display: block;
  position: absolute;
  top: 16px;
  right: 0;
}
.nav-start {
  margin: 0;
  padding: 0;
  display: block;
  position: absolute;
  top: 16px;
  left:0;
}
.nav-start li {
  margin: 0.9em 0em;
  display: inline-block;
}

.nav li {
  display: inline-block;
  margin: 0.9em 0em 0.9em 1.5em;
}
.nav li a,
.nav-start li a {
   text-decoration: none;
   color: #444;
   padding: 5px 0;
   transition: all 0.1s linear;
}
.nav li a:hover,
.nav-start li a:hover {
  color:#000;
  border-bottom: 1px solid #F1B02B;
}

.nav-start li a {
  color: #aaa;
  text-decoration-color: white;
}

.active,
.nav-start li a.active {
  border-bottom: 1px solid #F1B02B;
  color:#000;
}

/* Reflect */
#todo {
  background-color: #F8F5F0;
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 40px 60px;
  overflow: auto;
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
  scrollbar-width: none;  /* Firefox */
}
#start{
  background-color: #F8F5F0;
  width: 100%;
  height: 100%;
  padding: 50px 60px 40px;
  display: none;
  overflow: auto;
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
  scrollbar-width: none;  /* Firefox */
}
#start a {
  color: #444;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 5em;
  transition: all 0.1s linear;
}

#start a:hover {
  transition: all 0.1s linear;
  color:#000;
  text-decoration-color: #F1B02B;
}

.next {
  background: rgba(0,0,0,0.05);
  position: absolute;
  top:0;
  left:0;
  width: 100%;
}

#start a.next {
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 4em;
}

#start a.next:hover {
  text-decoration: underline;
}

.privacy {
  font-size: 14px;
  color: #777;
}

.or {
  font-size: 16px;
  color: #777;
  padding: 0 5px;
}

#reflect {
  background: linear-gradient(-90deg, #F3ECE8 75%, #E6DFDC 25%);
  position: absolute;
  width: 100%;
  height: 100%;
  text-align: left;
  overflow: auto;
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
  scrollbar-width: none;  /* Firefox */
}
.items {
  background: linear-gradient(-90deg, #F3ECE8 75%, #E6DFDC 25%);
  list-style-type: none;
  margin: 0;
  padding:30px 0 0;
}

.item {
  position: relative;
  margin-left: 25%;
  padding: 10px 55px 10px 25px;
  font-size: 16px;
  color: #666666;
  transition: all 0.1s linear;
}
.item:hover {
  background: rgba(0,0,0,0.03);
}

.item:hover .delete-item {
  display: block;
}


.item .content {
  cursor: default;
}

.day {
  width: 25%;
  padding-right: 25px;
  font-size: 14px;
  text-align: right;
  color:#A5A09D;
}

.timestamp {
  position: absolute;
  top: 13px;
  left: -25%;
  padding-right: 25px;
  width: 25%;
  font-size: 12px;
  text-align: right;
  color:#A5A09D;
  display: none;
  transition: all 0.1s linear;
}
.item:hover .timestamp {
  display: block;
}
.reflect-empty {
  text-align: center;
  position: absolute;
  width: 100%;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -40%);
}

.reflect-empty a {
  color: #444;
  font-size: 18px;
  transition: all 0.1s linear;
}

.reflect-empty a:hover {
  transition: all 0.1s linear;
  color:#000;
  text-decoration-color: #F1B02B;
}

/* Footer */
footer {
  padding: 5px 0;
}
footer p, footer a {
  font-size: 0.8rem;
  line-height: 1.6;
  color: #bbb;
}

footer a:hover {
  transition: all 0.1s linear;
  color:#000;
  text-decoration-color: #F1B02B;
}

.list {
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: 80%;
  font-size: 18px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.task {
  margin: 15px 0;
  padding: 20px;
  border-bottom: 1px solid rgba(0,0,0,0);
  position: relative;
}

.task:hover {
  transition: all 0.1s linear;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.task:hover .complete,
.task:hover .delete {
  transition: all 0.1s linear;
  display: block;
}

.add input {
  border: 0;
  margin: 0;
  width: 100%;
  padding: 20px;
  background: none;
  font-size: 18px;
  text-align: center;
  outline: none;
  border-bottom: 1px solid rgba(0,0,0,0);
}
.add input:hover {
  transition: all 0.1s linear;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
input:focus::placeholder {
  transition: all 0.1s linear;
  color: transparent;
}
.add input:focus {
  transition: all 0.1s linear;
  border-bottom: 1px solid #F1B02B;
}

.completed-state .content {
 text-decoration: line-through;
}


/* ICONS */
.delete {
  display: none;
  position: absolute;
  top: 21px;
  right: 0;
  cursor: pointer;
}
.delete path{
  transition: all 0.1s linear;
  fill:#DEDCD7;
}
.delete:hover path {
  fill:#B6B3AF;
}

/* ICONS */
.delete-item {
  display: none;
  position: absolute;
  top: 10px;
  right: 30px;
  cursor: pointer;
  width: 22px;
  height: 22px;
  background-size: 22px 22px;
}

.delete-item path {
  transition: all 0.1s linear;
  fill: #CAC7C3;
}

.delete-item:hover path {
  fill: #B4B1AD;
}

.complete {
  display: none;
  position: absolute;
  top: 21px;
  left: 0;
  cursor: pointer;
}

.complete circle {
  transition: all 0.1s linear;
}

.complete:hover circle {
  fill: #F1B02B;
}

/* Darkmode */

.darkmode {
  background: #111111;
  color: #eee;
}

.darkmode #todo, .darkmode #start {
  background: #21201E;
}

.darkmode #logo {
  background: url(../img/dailyfour-dark.svg);
}

.darkmode #start a {
  color: #eee;
}

.darkmode #start a:hover {
  color:#fff;
}

.darkmode .reflect-empty a {
  color: #eee;
}

.darkmode .reflect-empty a:hover {
  color:#fff;
}

.darkmode .content {
  color: #EEE;
}

.darkmode footer p, .darkmode footer a {
  color: #777;
}
.darkmode footer a:hover {
  color:#EEE;
}

.darkmode .nav li a,
.darkmode .nav-start li a {
   color: #D8D8D8;
}
.darkmode .nav li a:hover,
.darkmode .nav-start li a:hover {
  color:#FFF;
}

.darkmode .nav-start li a {
  color: #777;
}

.darkmode .active,
.darkmode .nav-start li a.active {
  color:#FFF;
}

.darkmode #reflect {
  background: linear-gradient(-90deg, #262221 75%, #201D1C 25%);
}
.darkmode .items {
  background: linear-gradient(-90deg, #262221 75%, #201D1C 25%);
}

.darkmode .day,
.darkmode .timestamp {
  color:#797573;
}

.darkmode .day .content {
  color:#797573;
}

.darkmode .item {
  color: #DDD;
}
.darkmode .item:hover {
  background: rgba(0,0,0,0.1);
}

.darkmode .delete-item path {
  fill: #6A6763;
}

.darkmode .delete-item:hover path {
  fill: #A29E98;
}

.darkmode .delete path {
  fill: #6A6763;
}

.darkmode .delete:hover path {
  fill: #A29E98;
}

.darkmode .add input {
  color: #EEE;
}
.darkmode .add input:hover {
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.darkmode input::placeholder {
  color: #666;
}
.darkmode .add input:focus {
  transition: all 0.1s linear;
  border-bottom: 1px solid #F1B02B;
}

.darkmode input:focus::placeholder {
  color: transparent;
}

/* RESPONSIVE */
@media only screen and (max-width:45em) { 
  header {
    padding: 15px 0;
    width: 95%;
  }
  main {
    width: 95%;
    padding: 0;
    min-height: calc(100% - (105px));
  }
  footer {
    padding: 5px 0;
  }
  footer p, footer a {
    font-size: 0.7rem;
    line-height: 1.4;
  }
  #start{
    padding: 20px 30px;
  }

  #logo {
    width: 130px;
    height: 25px;
    background-size: 130px 25px;
  }
  #logo:after {
    right: -4px;
    bottom: 6px;
  }
  .darkmode #logo {
    width: 130px;
    height: 25px;
    background-size: 130px 25px;
  }
  .nav,
  .nav-start {
   top: 1px;
   font-size: 0.9rem;
  }
  .nav li {
    margin: 0.9em 0em 0.9em 0.5em;
  }
  h1 {
    font-size: 2.5rem;
   line-height: 3rem;
  }
  p {
    font-size: 1.2rem;
    line-height: 1.6;
  }
  .or {
    display: block;
  }
  .line {
    margin: 30px auto;
  }
  .list {
    width: 90%;
  }
  .complete,
  .delete,
  .delete-item{
    display: block;
  }
  .task,
  .add input {
    font-size: 1rem;
  }
  .delete-item {
    top: 10px;
    right: 15px;
  }
  .item:hover .timestamp {
    display: none;
  }
  .day {
    width: 25%;
    padding-right: 15px;
    font-size: 14px;
    text-align: right;
    color:#A5A09D;
  }
  .item {
    padding: 10px 55px 10px 15px;
  }
}