body {
  margin: 0;
  font-family: Arial, sans-serif;
}

header {
  background-color: #222;
  color: #f44336;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#menu-btn {
  border: none;
  background-color: #222;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

h1 {
  margin: 0;
  font-size: 24px;
}

nav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  left: 0;
  background-color: #f2f2f2;
  overflow-x: hidden;
  transition: 0.5s;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

nav ul li {
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

nav ul li#active {
  background-color: #ff4000;
}

nav ul li a {
  display: block;
  font-size: 20px;
  color: #222;
  text-decoration: none;
  padding: 16px;
  transition: 0.3s;
}

nav ul li a:hover {
  background-color: #ddd;
}

nav ul li#active a:hover {
  background-color: #ff0000;
}

main {
  padding: 16px;
}

.task h1 {
  margin: 0;
}

.task p {
  margin-top: 0;
}

.task {
  display: grid;
  grid-template-columns: 1fr .2fr;
  align-items: center;
  margin-bottom: 1.5em;
}

.task .points {
  justify-self: right;
}

.task .tags,
.task .dateAdded {
  grid-column: 1/3;
  font-size: small;
}

.task .description, .task a {
    grid-column: 1/3;
}

/* Basic button styles */
.button {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  background-color: #ff0000;
  color: white;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;

}

/* Hover state */
.button:hover {
  background-color: #ff4000;
}

/* Active state */
.button:active {
  background-color: #ff4000;
}

#filterToggleBtn {
  width: 100%;
  margin-bottom: .5em;
}

.filter {
  display: none;
}

.filter {
  display: none;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.filter button.filterBtn {
  grid-column: 1/3;
}

.filter * {
  margin: .5em 0;
}

.filter label {
  margin-right: 0.5rem;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 4px;
  color: #333;
  font-size: 16px;
  padding: 10px 20px;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
}

select:focus {
  border-color: #007bff;
  outline: none;
}

select::-ms-expand {
  display: none;
}

button.filterBtn {
  background-color: red;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  font-size: 16px;
  padding: 10px 20px;
  transition: background-color 0.2s;
}

button.filterBtn:hover {
  background-color: darkred;
}

.selectedTags,
.selectedUsers {
  display: flex;
  grid-column: 1/3;
  overflow: scroll;
}

.selectedTags .tag,
.selectedUsers .tag {
  background-color: #007bff;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 5px 10px;
  margin-right: 10px;
  margin-bottom: 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/**
Ranking page
*/

.ranking-board {
  width: 90%;
  margin: 0 auto;
  border: 1px solid #ccc;
  background-color: #f5f5f5;
  border-radius: 10px;
  overflow: hidden;
}

.ranking-item {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: white;
  transition: background-color 0.3s ease;
}

.ranking-item:hover {
  background-color: #f5f5f5;
}

.rank {
  display: inline-block;
  width: 30px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}

.avatar {
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
}

.name {
  flex-grow: 1;
  font-size: 18px;
}

.score {
  font-size: 20px;
  font-weight: bold;
}

/**
add task form
*/

.task-form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #f5f5f5;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

label {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

input[type="text"],
input[type="number"],
input[type="password"],
textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  margin-top: 5px;
}

form .selectedTags {
  margin: 1em 0;
}

textarea {
  height: 100px;
  resize: none;
}

button[type="submit"] {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  background-color: #ff0000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #ff4000;
}

/**
Profile page
*/
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

.name {
  margin-bottom: 10px;
}

.editForm {
  display: none;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.editForm h2 {
  margin-bottom: 10px;
}

.editForm label {
  margin-top: 10px;
}

.editForm input {
  width: 100%;
  margin-top: 5px;
  margin-bottom: 10px;
  padding: 5px;
  border: none;
  border-bottom: 1px solid gray;
}

.editForm button.submit {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #ff0000;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

.editForm button.submit:hover {
  background-color: #ff4000;
}

.file-upload {
  position: relative;
  overflow: hidden;
  display: inline-block;
  margin-bottom: 1em;
  width: 100%;
}

.file-upload input[type=file] {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  padding: 0;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  filter: alpha(opacity=0);
}

.file-upload-button {
  background-color: red;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-button:hover {
  background-color: #ff2e2e;
}

.file-upload-text {
  font-size: 16px;
  font-weight: bold;
  margin-right: 10px;
}

@media (max-width: 480px) {
  .avatar {
    width: 100px;
    height: 100px;
  }
}
