:root {
    --blue: #0F212F;
    --grey: #E3E3E3;
}

body {
    font-family: "Cairo", sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--grey);
}

h1 {
    color: var(--blue);
    font-weight: 700;
    font-size: 3rem;
    margin: 30px 0;
    text-shadow: 0 4px 4px #ffffff;
}

#blue-bg {
    background-color: var(--blue);
    width: 350px;
    height: fit-content;
    border-radius: 10px;
    
}

#grey-bg{
    background-color: var(--grey);
    width: 320px;
    height: 500px;
    margin: 20px auto;
    position: relative;
}

svg {
    position: absolute;
    cursor: pointer;
    filter: drop-shadow(3px 2px 3px rgb(0 0 0 / 0.5));
}

svg:hover {
    filter: drop-shadow(3px 2px 3px rgb(0 0 0 / 0.9));
}

#plus-icon {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
}

/* Add task form */

#x-mark {
    width: 25px;
    height: 25px;
    right: 8px;
    top: 8px;
}

form {
    position: absolute;
    top: 25px;
    left: 30px;
}

label {
    display: block;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--blue);
    
}

input {
    height: 25px;
}

.text-input{
    width: 250px;
    border: none;
    box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.25);
    margin: 0 0 20px 0;
}

.button-30 {
    margin-left: 55px;
    align-items: center;
    appearance: none;
    background-color: #FCFCFD;
    border-radius: 4px;
    border-width: 0;
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset;
    box-sizing: border-box;
    color: var(--blue);
    cursor: pointer;
    display: inline-flex;
    height: 35px;
    width: 150px;
    justify-content: center;
    line-height: 1;
    list-style: none;
    overflow: hidden;
    padding-left: 16px;
    padding-right: 16px;
    position: relative;
    text-align: left;
    text-decoration: none;
    transition: box-shadow .15s,transform .15s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: nowrap;
    will-change: box-shadow,transform;
    font-size: 18px;
}
  
.button-30:focus {
    box-shadow: #D6D6E7 0 0 0 1.5px inset, rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
}
  
.button-30:hover {
    box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
    transform: translateY(-2px);
}
  
.button-30:active {
    box-shadow: #D6D6E7 0 3px 7px inset;
    transform: translateY(2px);
}

/* tasks container */

#tasks-container {
    position: relative;
    top: 55px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
}

.task-container {
    width: 280px;
    height: 100px;
    margin: 0 10px 10px;
    padding: 10px 10px;
    background-color: var(--blue);
    color: white;
    border-radius: 5px;
    display: block;
}

.task-container p {
    margin: 0px;
    padding: 0px;
    font-weight: 300;
}

.task-container svg {
    width: 20px;
    height: 20px;
}

#svg-edit {
    position: relative;
    top: -90px;
    right: -250px;
}

#svg-delete {
    position: relative;
    top: -90px;
    right: -200px;
}

/* dialog */

dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 250px;
    height: 130px;
    border-radius: 20px;
    border: 4px solid white;
    background-color: var(--blue);
    color: white;
}


dialog p {
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0 0 20px;
}

#dialog-btn {
    display: flex;
    justify-content: space-around;
}

#cancel-btn, #discard-btn {
    font-size: 1.2rem;
    width: 75px;
    padding: 0;
    margin: 0;
}

#description-text {
    max-height: 50px;  /* Adjust as needed */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

}

/* general classes */
.hidden {
    display: none !important;
}

form label, form input, form textarea {
    border-radius: 10px;
    padding: 5px 10px;
}

