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

body, html {
    height: 100%; /* Ensures the parent takes the full height of the viewport */
    background-color: #707070;
    font-family: Cambria, 'Times New Roman', serif;
}

.top_text {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #fff;
}

.parent {
    display: grid;
    place-items: center; /* Centers both horizontally and vertically */
    min-height: 100%;
}

.input_text, .checkbox, .task, .deleteTask, #addTask {
    border-radius: 5px;
}

.panel_button {
    padding: 15px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.input_text {
    width: 100%;
    padding: 15px;
    border: none;
    font-size: 1rem;
}

#task_form {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.main_container {
    width: 40rem;
   
}

#panel_button {
    display: flex;
}

.task_container {
    background-color: #FFF;
    height: 400px;
    overflow: hidden;
    overflow-y: auto;
    padding: 5px;
    border-radius: 0 0 5px 5px;
}

.checkbox {
    width: 20px;
    height: 20px;
  }
  
.checkbox, #addTask, .deleteTask {
    cursor: pointer;
    border: none;
}

.task {
    background-color: #E9E9ED;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 5px;
    font-size: 1.2rem;
    gap: 10px;
    flex-wrap: wrap;
    overflow-x: auto;
    color: #000;
}

#addTask {
    font-size: 2rem;
    padding: 10px 20px;
}

.deleteTask {
    font-size: 1.5rem;
    padding: 3px 12px;
}

.deleteTask {
    color: #fff;
    background-color: #FF4D49;
}

#noTask {
    display: grid;
    place-items: center;
    height: 50%;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .main_container {
        width: 26rem; /* Set the width to 26rem for screens 768px and wider */
    }
}