:root{
  --bg:#2a2626;
  --pillGrey:#7a7575;
  --pillGreen:#7fb243;
  --textDark:#2b2b2b;

  --blue:#184b9a;
  --white:#ffffff;

  --shadow:0 18px 40px rgba(0,0,0,.35);
}

/* RESET */
*{
  box-sizing:border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body{
  height:100%;
}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
}

/* MAIN SCREEN */
.screen{
  height:100%;
  width:100%;
  position:relative;

  display:flex;
  justify-content:center;     /* horizontal center */
  align-items:flex-start;     /* keep top aligned */

  padding: 56px 28px;
}

/* LIST */
.list{
  width:100%;
  max-width:640px;

  display:flex;
  flex-direction:column;
  gap:22px;
}

/* ROW */
.row{
  display:flex;
  align-items:center;
  gap:18px;
}

/* CHECK CIRCLE */
.checkBadge{
  width:78px;
  height:78px;
  border-radius:999px;
  background: var(--blue);

  display:flex;
  align-items:center;
  justify-content:center;

  box-shadow: var(--shadow);

  opacity:0;
  transform: scale(.95);
  pointer-events:none;

  transition:
    opacity .15s ease,
    transform .15s ease;
}

.row.done .checkBadge{
  opacity:1;
  transform: scale(1);
}

.checkBadge svg{
  width:44px;
  height:44px;
}

/* TASK PILL */
.taskPill{
  flex:1;
  min-height:84px;

  border-radius:999px;
  border:none;

  background: var(--pillGrey);
  color: var(--textDark);

  font-weight:800;
  font-size:44px;
  letter-spacing:.2px;

  padding: 10px 30px;
  text-align:left;

  cursor:pointer;
  box-shadow: var(--shadow);

  transition:
    filter .15s ease,
    transform .08s ease,
    box-shadow .15s ease;
}

/* COMPLETED */
.row.done .taskPill{
  background: var(--pillGreen);
}

/* HOVER */
.taskPill:hover{
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.row.done .taskPill:hover{
  filter: brightness(1.05);
}

/* ACTIVE (PRESS) */
.taskPill:active{
  transform: translateY(1px);
}

/* FLOATING ACTION BUTTON */
.fab{
  position:absolute;
  right:26px;
  bottom:26px;

  width:120px;
  height:120px;
  border-radius:999px;

  border:none;
  background: var(--blue);

  display:flex;
  align-items:center;
  justify-content:center;

  box-shadow: var(--shadow);
  cursor:pointer;

  transition:
    filter .15s ease,
    transform .1s ease;
}

.fab:hover{
  filter: brightness(1.1);
}

.fab:active{
  transform: translateY(1px);
}

.fab-plus{
  color: var(--white);
  font-size:90px;
  line-height:1;
  font-weight:300;
  transform: translateY(-2px);
}

/* MODAL */
.modal{
  position:absolute;
  inset:0;

  background: rgba(0,0,0,.45);

  display:flex;
  align-items:center;
  justify-content:center;

  padding:24px;
}

.hidden{
  display:none;
}

.modal-card{
  width: min(520px, 92vw);

  background:#141414;
  color:#f1f1f1;

  border-radius:18px;
  padding:18px;

  box-shadow: var(--shadow);
}

.modal-title{
  font-weight:700;
  font-size:16px;
  opacity:.9;
  margin-bottom:12px;
}

/* MODAL FORM */
.modal-form{
  display:flex;
  gap:10px;
  align-items:center;
}

.modal-input{
  flex:1;
  height:52px;

  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);

  background:#0e0e0e;
  color:#f1f1f1;

  padding:0 14px;
  font-size:16px;

  outline:none;
}

.modal-add{
  height:52px;
  padding:0 14px;

  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);

  background:#1e1e1e;
  color:#f1f1f1;

  cursor:pointer;
  font-weight:650;
}

/* MODAL ACTIONS */
.modal-close{
  margin-top:12px;
  width:100%;
  height:46px;

  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);

  background:transparent;
  color:#cfcfcf;

  cursor:pointer;
}

.status{
  margin-top:10px;
  font-size:12px;
  color: rgba(255,255,255,.7);
  min-height:16px;
}
