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

body {
    font-family: Arial, sans-serif;
    background-color: #f0f4f8;
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    max-width: 600px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
    margin: 10px;
}

/* Input Section */
.todo-input {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.todo-input input[type="text"] {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

.todo-input button {
    padding: 10px 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.todo-input button:hover {
    background-color: #45a049;
}

/* Task List */
.todo-list {
    list-style: none;
    padding: 0;
}

.todo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fafafa;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    flex-wrap: wrap;
}

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

.todo-item .task-text {
    flex: 1;
    font-size: 16px;
    padding: 5px;
    margin-right: 10px;
    outline: none;
}

.task-text-input {
    flex: 1;
    font-size: 16px;
    padding: 5px;
    margin-right: 10px;
    outline: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    display: inline-block;
    min-height: 32px;
    line-height: 20px;
    cursor: text;
}


.edit-btn,
.delete-btn,
.Edit-done {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 6px 10px;
    margin-left: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    transition: background 0.3s;
}

.Edit-done{
    background-color: darkgreen;
    display: none;
}

.Edit-done:hover{
    background-color: rgb(11, 135, 11);
}

.edit-btn:hover {
    background-color: #0b7dda;
}

.delete-btn {
    background-color: #f44336;
}

.delete-btn:hover {
    background-color: #da190b;
}

/* Signup form */

.form-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 300px;
    z-index: 96;
    display: none;

}

.form-container h2 {
    margin-bottom: 20px;
    text-align: center;
}

.form-container input[type="email"],
.form-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-container button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.form-container button:hover {
    background-color: #0056b3;
}

#jump-to-signup,
#jump-to-login {
    text-decoration: underline;
    text-align: center;
    margin-block: 10px;
    cursor: pointer;
}

.fa-xmark{
    color: black;
    font-size: 2rem;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

#alert-box{
    height: 200px;
    width: 100%;
    max-width: 400px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50% , -50%);
    background-color: rgb(0, 0, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 10px;
    border-radius: 10px;
    display: none;
    z-index: 99;
}

#alert-message{
    text-align: center;
    font-size: 1.2rem;
    color: white;
}

#alert-close-btn{
    font-size: 1.3rem;
    padding: 7px 20px;
    background-color: green;
    color: white;
    border: 2px solid white;
    border-radius: 10px;
    cursor: pointer;
}

#verificattion-box{
    height: 100vh;
    width: 100vw;
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    gap: 20px;
    top: 0px;
    left: 0px;
    display: none;
    z-index: 97;
}

#verification-message{
    font-size: 2rem;
    font-weight: bolder;
}

#get-verification-link-btn{
    font-size: 1.6rem;
    padding: 10px 20px;
    background-color: black;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 10px;
}

#get-verification-link-btn:hover{
    background-color: rgb(60, 58, 58);
}

nav{
    display: flex;
    height: 70px;
    background-color: black;
    color: white;
    gap: 20px;
    align-items: center;
    padding: 10px;
    position: relative;
    z-index: 98;
}

nav > div{
    font-size: 1.2rem;
    font-weight: bolder;
    cursor: pointer;
    display: none;
}

#loader-container{
    position: absolute;
    height: 100vh;
    width: 100vw;
    top: 0px;
    left: 0px;
    background-color: transparent;
    perspective: 900px;
    z-index: 100;
}

#loader{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50% , -50%);
    height: 100px;
    width: 100px;
    border: 10px solid black;
    animation: loader 3s linear infinite;
    border-radius: 10px;
}

@keyframes loader {
    from{
        transform: translate(-50% , -50%) rotateX(0deg) rotateY(0deg);
    }
    to{
        transform: translate(-50% , -50%) rotateX(360deg) rotate(360deg);
    }
}