:root{
  --body-bg: black;
  --main-bg: #222;
  --text-color: white;
  --border-color: grey;
}

.light{
  --body-bg: white;
  --main-bg: #f5f5f5;
  --text-color: black;
  --border-color: #ccc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  background-color: var(--body-bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

.theme-toggle{
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 40px;
    cursor: pointer;
}

/* Dark theme (default) */
.dark-icon{
    color: white;
}

.light-icon{
    display:none;
    color: black;
}

/* Light theme */
body.light .dark-icon{
    display: none;
}

body.light .light-icon{
    display: block;
}

main{
    height:60%;
    width: 60%;
    background-color: var(--main-bg);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

h1{
  font-size: 32px;
  font-weight: 600;
  color: var(--text-color);
}


input{
  padding:10px 10px;
  outline: none;
  border: 1px solid var(--border-color);
  border-radius: 5px;
}

#add{
  padding:10px 30px;
  outline:none;
  border:white;
  background-color: rgb(9, 154, 154);
  color:white;
  border-radius: 5px;
  cursor:pointer;
}
.todo-list{
  width:70%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.li{
  width:100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 10px;
}

h3{
  font-size: 22px;
  font-weight: 500;
  color: var(--text-color);
}

.btn{
  padding:5px 10px;
  border:none;
  border-radius: 5px;
  cursor:pointer;
}

.btn.edit{
  background-color:darkgoldenrod;
  color: var(--text-color);
}

.btn.delete{
  background-color:darkred;
  color: var(--text-color);
}