* {
  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;
}

ul,
li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.all-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 400px;
  margin: 0 auto;
  padding: 0;
}

.item {
  background-color: #f8f7ff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

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

.item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-list-item {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 10px;
  background-color: #fff;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #2e2f42;
}

#name-input {
  display: block;
  width: 300px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #2e2f42;
  margin-bottom: 20px;
}

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

.login-form {
  background-color: #fff;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 300px;
}

.login-form label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: #333;
  gap: 6px;
}

.login-form input {
  padding: 8px 10px;
  border: 1px solid #808080;
  border-radius: 4px;
  font-size: 14px;
}

.login-form input:hover {
  border-color: #000;
}

.login-form input:focus {
  border-color: #808080;
}

.login-form button {
  padding: 8px 12px;
  font-size: 14px;
  background-color: #2f6cff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.login-form button:hover {
  background-color: #6c8cff;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.gallery-item {
  flex-basis: calc(33.333% - 16px);
  box-sizing: border-box;
}

.gallery-img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

a {
  margin-bottom: 20px;
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.widget {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 300px;
}

.color {
  font-weight: bold;
}

.change-color {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #4e7eff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.change-color:hover {
  background-color: #3c66e0;
}
