body {
    margin: 0 auto;
    background-color: #000c18;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    flex-direction: column;
    font-size: 20px;
}

main {
    margin: auto;
    background-color: #060621;
    width: 50%;
}

@media screen and (max-width: 1000px) {
    main {
      width: 60%;
    }

    label {
        font-size: 0px;
    }
}

@media screen and (max-width: 900px) {
    main {
      width: 70%;
    }
}

@media screen and (max-width: 800px) {
    main {
      width: 80%;
    }
}

@media screen and (max-width: 700px) {
    main {
      width: 90%;
    }
}

@media screen and (max-width: 600px) {
    main {
      width: 100%;
      font-size: 16px;
    }

    #footer {
        font-size: 16px;
    }
}

#title {
    user-select: none;
    text-align: center;
    font-weight: bold;
    font-size: 5vw;
}

#counter {
    display: inline;
    color: #cbcb41;
}

#features-section {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    background-color: #060621;
}

#control-section {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    background-color: #10192c;
}

#text-input {
    all: unset;
    background-color: #051336;
    padding: 1%;
    margin: 1%;
    flex-grow: 2;
}

#text-input:focus {
    box-shadow: inset 0px 0px 0px 1px #585858;
}

label {
    padding: 1% 0;
    display: flex;
    align-items: center;
    user-select: none;
}

select {
    all: unset;
    background-color: white;
    color: black;
    background: url('./br_down.webp') no-repeat 80% #ddd;
    font-weight: bold;
    padding: 1% 4%;
    margin: 1%;
}

button {
    all: unset;
    background-color: #d7ba7d;
    padding: 1% 2%;
    margin: 1%;
    color: black;
    font-weight: bold;
    user-select: none;
}

button:hover {
    background-color: #dec48d;
    color: rgb(44, 44, 44);
    cursor: pointer;
}

button:active {
    background-color: #c9ac70;
    cursor: pointer;
    color: rgb(44, 44, 44);
}

.todo-container {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #585858;
}

.todo-text{
    width: 40%;
    text-align: left;
    padding: 2%;
    display: flex;
    align-items: center;
    word-break: break-word;
}

.edit-input {
    all: unset;
    background-color: #051336;
    width: 100%; 
}

.edit-input:focus {
    box-shadow: inset 0px 0px 0px 1px #585858;
}

.todo-priority {
    width: 4%;
    background-color: #152037;
    padding: 2%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yellow-text{color: yellow;}
.orange-text{color: orange;}
.red-text{color: orangered;}

.todo-created-at {
    width: 40%;
    padding: 2%;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}

.delete-button {
    all: unset;
    background-color: #ff4242;
    padding: 1% 1.5%;
    margin: 1%;
    color: black;
    font-weight: bold;
    user-select: none;
    max-height: 1em;
}

.delete-button:hover {
    background-color: #fb5b5b;
    color: rgb(44, 44, 44);
    cursor: pointer;
}

.delete-button:active {
    background-color: #cf4343;
    color: rgb(44, 44, 44);
    cursor: pointer;
}

#footer {
    background-color: white;
    position: fixed;
    width: 100%;
    bottom: 0;
    text-align: center;
    color: black;
    font-weight: bold;
}

#spinner {
    visibility: hidden;
    display: inline-block;
    width: 80px;
    height: 80px;
  }
#spinner:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    position: absolute;
    top:0;
    bottom:0;
    left:0;
    right: 0;
    margin: auto;
    border-radius: 50%;
    border: 6px solid #fff;
    border-color: #fff transparent #fff transparent;
    animation: spin 1.2s linear infinite;
  }
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  #spinner.show {
    visibility: visible;
  }