* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --color-primary: #5a78ff;
    --color-secondary: #0957ff;
}

body{
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.author-text{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    text-align: center;
}


.container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 0 400px;
    min-width: 640px;
    max-width: 1000px;
    background: rgba( 255, 255, 255, 0.15 );
    box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.3 );
    backdrop-filter: blur( 3px );
    -webkit-backdrop-filter: blur( 3px );
    border-radius: 10px;
    border: 1px solid rgba( 255, 255, 255, 0.18 );
    padding: 20px;
}

.container header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
}

header h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
}

.alert-message{
    width: 100%;
    transition: all 0.3s ease;
    transform: scale(0.9);
}

.alert-message.show{
    display: block;
    transform: scale(1);
}

.alert-message.hide{
    display: none;
}

header .input-section {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.input-section input{
    margin-right: 10px;
    max-width: 100%;
}

.todos-filter{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-bottom: 10px;
}

.todos-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100%;
    max-height: 54vh;
    overflow-y: auto;
    width: 100%;
}

.todos-list .todo-item{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    width: 100%;
    border-bottom: 1px solid rgba( 255, 255, 255, 0.18 );
}

.todo-item p{
    margin-right: 10px;
}

.todo-item .todo-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    width: 100%;
    height: 100%;
}

.todo-actions button:not(:last-child){
    margin-right: 10px;
}

.theme-switcher{
    position: absolute;
    top: 16px;
    right: 16px;
}  

/* Existing code remains the same */

/* Add media queries for responsiveness */

/* For screens smaller than 768px (tablets and mobiles) */
@media only screen and (max-width: 768px) {
    .container {
      margin: 0 20px; /* reduce margin to fit smaller screens */
      min-width: 100%; /* take full width on smaller screens */
      max-width: 100%; /* take full width on smaller screens */
    }
    .input-section {
      flex-direction: column; /* stack input fields vertically on smaller screens */
    }
    .input-section input {
      margin-right: 0; /* remove margin on smaller screens */
    }
    .todos-list {
      max-height: 40vh; /* reduce max height on smaller screens */
    }
    .todo-item {
      flex-direction: column; /* stack todo item content vertically on smaller screens */
    }
    .todo-item p {
      margin-right: 0; /* remove margin on smaller screens */
    }
    .theme-switcher {
      top: 8px; /* adjust position on smaller screens */
      right: 8px; /* adjust position on smaller screens */
    }
  }
  
  /* For screens smaller than 480px (mobiles) */
  @media only screen and (max-width: 480px) {
    .container {
      padding: 10px; /* reduce padding on smaller screens */
    }
    .input-section input {
      font-size: 16px; /* reduce font size on smaller screens */
    }
    .todos-list {
      max-height: 30vh; /* reduce max height on smaller screens */
    }
    .todo-item {
      padding: 5px; /* reduce padding on smaller screens */
    }
    .todo-item p {
      font-size: 14px; /* reduce font size on smaller screens */
    }
  }