* {
  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 {
  list-style: none;
  padding: 0;
  margin: 0;
}

p {
  margin: 0;
}
/* ==================Task-1=================*/
h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 133%;
  letter-spacing: 0.04em;
  color: #2e2f42;
  margin: 0;
}
a {
  display: inline-block;
  text-decoration: none;
  padding: 8px 16px;
  background-color: #1e88e52d;
  color: #2e2f42;
  border-radius: 12px;
  position: relative;
  margin-bottom: 18px;
}

a::after,
a::before {
  content: '';
  position: absolute;
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, #1e88e56c, #1e88e52d);
  bottom: 1px;
  left: 6px;

  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}

a::before {
  top: 1px;
  transform-origin: left;
}

a:hover::after,
a:hover::before {
  transform: scaleX(1);
}
#categories {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 16px;
  align-items: center;
}
.item {
  background: #f6f6fe;
  border-radius: 8px;
  padding: 16px;
  width: 392px;
}
.item ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.item ul > li {
  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;
}
/* ==================Task-2==================*/
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.gallery img {
  border-radius: 8px;
  display: block;
}

/* ++++++++++Add Animation++++++++*/
.gallery img:hover,
.gallery img:focus {
  transform: scale(1.05);
  transition: transform 0.5s ease-in-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ==================Task-3==================*/
.super-input {
  padding-left: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-right: 140px;
  border: 1px solid #808080;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #2e2f42;
}
/* ==================Task-4=================*/
.login-form {
  display: flex;
  flex-direction: column;
  width: 360px;
  gap: 8px;
}
.login-form-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-btn {
  border-radius: 8px;
  padding: 8px 16px;
  width: 86px;
  height: 40px;
  background: #4e75ff;
  color: #fff;
  border: none;
}
.login-form-input {
  border: 1px solid #808080;
  border-radius: 4px;
  width: 360px;
  height: 40px;
}
/* ==================Task-5 ===================*/
.widget {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50%;
  margin: 0 auto;
  gap: 16px;
}
.change-color {
  padding: 8px 16px;
  border: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #fff;
  border-radius: 8px;
  background-color: #4e75ff;
}
