* {
  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;
  font-size: 16px;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.item {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 8px;
  background: #f6f6fe;
}

.item > h2 {
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0.96px;
  margin-bottom: 16px;
}

.item > ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  gap: 8px;
}

.item > ul > li {
  width: 360px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid #808080;
  padding: 8px 0px 8px 16px;
}

.gallery {
  display: flex;
  column-gap: 24px;
  row-gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.imageWrap {
  width: 360px;
}

#name-input {
  width: 360px;
  padding: 8px 0 8px 16px;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.login-form label {
  display: flex;
  flex-direction: column;
}

.login-form input:last-of-type {
  margin-bottom: 8px;
}

.login-form input {
  width: 360px;
  height: 40px;
  padding: 4px 0px 4px 16px;
}

.login-form button[type='submit'] {
  display: flex;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  background: #4e75ff;
  color: #fff;
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px; /* 150% */
  letter-spacing: 0.64px;
  border: none;
  width: 86px;
  height: 40px;
}

.change-color {
  color: #fff;
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px; /* 150% */
  letter-spacing: 0.64px;
  border-radius: 8px;
  background: #4e75ff;
  border: none;
  padding: 8px 16px;
}

.p-bg{
    background-color: #fff;
    border-radius: 6px;
    max-width: 200px;
    text-align: center;
}

#controls {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-bottom: 16px;
  padding: 32px;
  background-color: #f6f6fe;
}

#categories {
    list-style: none;
}

#controls input[type='number'] {
  padding: 8px 72px;
  border-radius: 8px;
  border: 1px solid #808080;
}

#controls button[data-create] {
  color: #fff;
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.64px;
  width: 120px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #4e75ff;
  border: none;
}

#controls button[data-destroy] {
  color: #fff;
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.64px;
  width: 120px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #ff4e4e;
  border: none;
}

#boxes {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 44px;
  background-color: #f6f6fe;
}