* {
  box-sizing: border-box;
}

body {
  margin: 16px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #fafafa;
  color: #212121;
  line-height: 1.5;
}

/* /-------------------------------TASK-1----------------------------/ */

#categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-header {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.33333;
  letter-spacing: 0.04em;
  color: #2e2f42;
  margin-top: 16px;
  margin-bottom: 16px;
}

.item {
  border-radius: 8px;
  padding: 16px;
  width: 392px;
  background-color: #f6f6fe;
  list-style: none;
}

.item:not(:last-child) {
  margin-bottom: 24px;
}

.box {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.box-items {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #2e2f42;
  list-style: none;
  border: 1px solid #808080;
  border-radius: 4px;
  width: 360px;
  height: 40px;
  padding: 8px 16px;
  box-sizing: border-box;
}

/* ----------------------------------TASK-2----------------------------------- */

.gallery {
  display: flex;
  gap: 24px;
  row-gap: 48px;
  flex-wrap: wrap;
  list-style: none;
}

img {
  width: 360px;
  height: 300px;
}

/* --------------------------------------TASK-3------------------------------------- */
#name-input {
  border: 1px solid #808080;
  border-radius: 4px;
  width: 360px;
  height: 40px;
  padding: 8px 16px;
  margin-bottom: 16px;
}

::placeholder {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #2e2f42;
}

.answer {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.33333;
  letter-spacing: 0.04em;
  color: #2e2f42;
  margin-top: 0;
}

/* -------------------------------------------TASK-4---------------------------------------- */

.login-form {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 8px;
  padding: 24px;
  width: 408px;
  height: 256px;
}

.form-label {
  display: flex;
  flex-direction: column;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #2e2f42;
  gap: 8px;
  margin-bottom: 8px;
}

.input {
  width: 340px;
  height: 40px;
  padding: 8px 16px;
  outline: none;
}

.input:hover {
  border: 1px solid #000;
  border-radius: 4px;
}

.input:active {
  border: 1px solid #808080;
  border-radius: 4px;
}

.button {
  border-radius: 8px;
  padding: 8px 16px;
  width: 86px;
  height: 40px;
  background-color: #4e75ff;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #fff;
  border: none;
  margin-top: 16px;
}

.button:hover {
  background-color: #6c8cff;
  cursor: pointer;
}

/* ----------------------------------------------TASK-5----------------------------------------- */
.widget {
  border-radius: 8px;
  padding: 100px 88px;
  width: 345px;
  height: 280px;
  background-color: #fff;
}
.text {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #2e2f42;
}

.change-color {
  border: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #fff;
  border-radius: 8px;
  padding: 8px 16px;
  width: 148px;
  height: 40px;
  background-color: #4e75ff;
}

.change-color:hover {
  background-color: #6c8cff;
  cursor: pointer;
}
