:root{  
    --background: hsl(0, 0%, 6%);
    --primary-color: hsl(225, 7%, 12%);
    --secondary-color: hsl(226, 8%, 32%);
    --accent-color: hsl(0, 92%, 64%);
    --text-color: hsl(0, 0%, 98%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

html{
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16pt;
  color: var(--text-color);
}

body{
    min-height: 100vh;
    padding: 10px;
    background-color: var(--background);
    display: flex;
    flex-direction: column;
    align-items: center;
}

span {
    color: whitesmoke;
}

h1{
    margin-top: 100px;
    margin-bottom: 20px;
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    color: var(--accent-color);
}

.wrapper{
    width: 700px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#todo-input{
    box-sizing: border-box;
    padding: 12px 20px;
    width: 100%;
    background: none;
    border: 2px solid var(--secondary-color);
    border-radius: 1000px;
    font: inherit;
    color: var(--text-color);
    caret-color: var(--accent-color);
}

#todo-input:focus{
    outline: none;
}

form{
    position: relative;
}

#add-button{
    position: absolute;
    top: 0;
    right: 0;

    background-color: var(--accent-color);
    height: 100%;
    padding: 0 30px;
    border: none;
    border-radius: 1000px;
    font: inherit;
    font-weight: 600;
    color: var(--background);
    cursor: pointer;
}

.todo{
    margin-bottom: 10px;
    padding: 0 16px;
    background-color: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
}

.todo .todo-text{
    padding: 15px;
    padding-right: 0;
    flex-grow: 1;
    transition: 200ms ease;
}

.delete-button{
    padding: 3px;
    background: none;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.delete-button svg{
    transition: 200ms ease;
}

.delete-button:hover svg{
    fill: red;
}

.custom-checkbox{
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    min-height: 20px;
    min-width: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: 200ms ease;
    cursor: pointer;
}

input[type="checkbox"]:checked ~ .custom-checkbox{
    background-color: var(--accent-color);
}

input[type="checkbox"]:checked ~ .custom-checkbox svg{
    fill: var(--primary-color);
}

input[type="checkbox"]:checked ~ .todo-text{
    text-decoration: line-through;
    color: var(--secondary-color);
}

input[type="checkbox"]{
    display: none;
}


/*=============== FOOTER ===============*/
footer {
    background-color: rgb(12, 11, 11);
    color: white;
    padding: 20px 0;
    text-align: center;
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  .contact-text {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
  }
  
  .social-links {
    margin-bottom: 10px;
  }
  
  .social-icon {
    font-size: 30px;
    margin: 0 15px;
    color: white;
    transition: color 0.3s ease;
    position: relative;
  }
  
  .social-icon:hover {
    color: #ff0000;
  }
  
  footer p {
    font-size: 14px;
    margin-top: 10px;
    color: white;
  }
  
  .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 12px;
    padding: 5px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }
  
  .social-icon.show-tooltip .tooltip {
    opacity: 1;
    visibility: visible;
  }
  
  /* Responsive Design */
  @media screen and (max-width: 768px) {
    .social-icon {
      font-size: 25px;
      margin: 0 10px;
    }
  }
  
  @media screen and (max-width: 480px) {
    .social-icon {
      font-size: 20px;
      margin: 0 8px;
    }
  }
  
@media(max-width: 500px){
    html{
        font-size: 12pt;
    }
    #add-button{
        position: unset;
        width: 100%;
        margin-top: 10px;
        padding: 15px;
        height: auto;
    }
    h1{
        margin-top: 50px;
        font-size: 15vw;
    }
}

