@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');
* {
    /* border: 1px dashed red; */
    box-sizing: border-box;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 400;
    font-style: normal; 
}

@media only screen and (max-width: 600px) {
  .card {
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
  }

}

body {
    background-color: #F8F7FF;
    margin: 0;
}

h1 {
    color: #ffffff;
    font-weight: 600;
    margin-right: auto;
    padding-left: 1em;
}

nav {
    background-color: #B8B8FF;
    display: flex;
    gap: 1em;
    justify-content: right;
    border-bottom: #9f91e4 0.25em solid;
    box-shadow: 0px 10px 100px rgb(208, 199, 164);
}

nav > * {
    display : inline;
    box-sizing: border-box;
}

.due_date
{
    font-weight: bold;
}

.error {
    border: 1px solid red;
}

.add, .delete, .dropdown-btn {
    background-color: rgba(0, 0, 0, 0);
    border: none;
    padding-right: 1em;
    transition: transform 250ms ease-in-out;
}

.controls {
    margin-left: auto;
    display: flex;
    gap: 0.5em;
}

.dropdown-btn, .delete 
{
    padding: 0;
}

.dropdown-btn.open{
    transform: rotateZ(180deg);
}

.add:hover, .delete:hover, .dropdown-btn:hover {
    transform: scale(1.2);
}

.dropdown-btn.open:hover{
    transform: rotateZ(180deg) scale(1.2);
}

.add:active, .delete:active, .dropdown-btn:active {
    transform: scale(0.9);
}

.dropdown-btn.open:active{
    transform: rotateZ(180deg) scale(0.9);
}

.dropdown.open {
    padding-top: 1em;
    visibility: visible;
}

.dropdown {
    padding-top: 1em;
    visibility: hidden;
}

.dropdown > .assignment_notes {
    position: absolute;
}

.dropdown.open > .assignment_notes {
    position: relative;
}

.add-svg {
    width: 3em;
}

.delete-svg, .dropdown-svg {
    width: 1.5em;
}

.complete {
    transform: translateX(-100%);
}

.assignment.deleting {
    background-color: rgb(227, 227, 227)
}

.assignments {
    padding-top: 1em;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.assignment {
    background-color: white;
    border: 0.25em solid #9f91e4;
    border-radius: 0.5em;
    box-shadow: 0px 10px 100px rgb(172, 171, 165);
    padding: 1em;
    transition: transform 1s ease-in-out;
}

.progress-bar {
    background-color: rgb(190, 191, 191);
    width: 100%;
    height: 10px;
}

.progress {
    height: 100%;
    width: 0%;
    background-color: #9f91e4;
}

.overdue {
    border: 1px solid red;
    background-color: #e4919f;
}

.card {
    display: flex;
    gap: 1em;
}

.complete-container {
    border: 0.2em solid #9f91e4;
}

.checkbox:hover {
      background-color: #e6e6e9;
}

.checkbox:checked:hover {
      background-color: #c7bcff;
}

.checkbox:checked {
  background-color: #b5a8f8;
  background-image: url(src/check.svg);
  background-size: 100%;
}

.checkbox {
    width: 20px;
    height: 100%;
    appearance: none;
    padding: 0;
    margin: 0; 
}


.assignment_name {
    padding-left: 0.5em;
    border-left: 0.1em solid #9f91e4;
}

.assignment_notes {
    padding-bottom: 1em;
    display: inline-block;
    word-wrap: break-word;
    width: 100%;
}

footer {
    color: rgb(125, 123, 120);
    padding-left: 0.5em;
    padding-bottom: 0.5em;
    position: absolute;
    bottom : 0;
}