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

.gallery{
  display: flex;
 flex-wrap: wrap;
 gap: 24px;
   padding: 100px 256px;
 justify-content : center;
}
.gallery img{
  width : 360px;
  height: 300px;
  object-fit: cover;
  margin-top: 48px;
}
.item{
  border-radius: 8px;
padding: 16px;
width: 392px;
height: 264px;
background: #f6f6fe;
list-style-type: none;
margin-top: 24px;
}
.list{
padding: 0;
margin-top: 16px;
}

#categories h2{
font-weight: 600;
font-size: 24px;
line-height: 133%;
letter-spacing: 0.04em;
color: #2e2f42;
margin: 0;
}

.element{
   list-style-type: none;
  width: 360px;
height: 40px;
font-weight: 400;
font-size: 16px;
line-height: 150%;
letter-spacing: 0.04em;
color: #2e2f42;
border: 1px solid #808080;
border-radius: 4px;
width: 360px;
height: 40px;
display: flex;
align-items: center;
padding-left: 16px;
margin-bottom: 8px;

}

.title-task-3{
font-weight: 600;
font-size: 24px;
line-height: 133%;
letter-spacing: 0.04em;
color: #2e2f42;
}
#name-input {
font-weight: 400;
font-size: 16px;
line-height: 150%;
letter-spacing: 0.04em;
color: #2e2f42;
border: 1px solid #808080;
border-radius: 4px;
width: 360px;
height: 40px;
}


.input-form
{border: 1px solid #808080;
border-radius: 4px;
width: 360px;
height: 40px;
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

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

.input-form:active{
border: 1px solid #808080;

}

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

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

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

.background-p{
font-weight: 400;
font-size: 16px;
line-height: 150%;
letter-spacing: 0.04em;
color: #2e2f42;
}

.widget{
  display: flex;
  flex-direction: column;
  align-items: center;
}