/*; Main Styles */
/* #region Main */
* {
  box-sizing: border-box;
  list-style: none;
}

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: #b6e4ed;
  color: #212121;
  line-height: 1.5;
}

/* #endregion */

/*; Styles for Task 1 */
/* #region  task 1*/

.categories-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.categories-item-title {
  margin: 0;
  margin-bottom: 16px;

}

.categories-item-list {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;

}

.item {
  display: flex;
  flex-direction: column;
  list-style: none;
  border-radius: 8px;
  padding: 16px;
  width: 392px;
  background: #f3eac5;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.categories-item-list li {
  width: 100%;
  height: 40px;
  border: 1px solid #808080;
  border-radius: 4px;
  padding: 8px 16px;
}

/* #endregion */

/*; Styles for Task 2 */
/* #region task 2 */

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 100px;
  gap: 24px;
}

.image-list-item {
  flex-basis: calc((100% - 24px * 3)/6);
}

.image-item {
  border-radius: 8px;
  width: 360px;
  height: 300px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.image-item:hover {
  transform: scale(1.1)
}

/* #endregion */

/*; Styles for Task 3 */
/* #region task 3 */
.input-container {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  padding: 24px;
  width: 408px;
  height: auto;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
  display: block;
}

.input-item {
  border: 1px solid #808080;
  border-radius: 4px;
  width: 100%;
  height: 40px;
  padding: 8px 16px;
  margin-bottom: 16px;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.04em;
  color: #2e2f42;
}

.input-text {
  margin: 0;
}

#name-output {
  word-wrap: break-word
}

/* #endregion */

/*; Styles for Task 4 */
/* #region task 4 */

.login-form {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  border-radius: 8px;
  padding: 24px;
  width: 408px;
  height: 256px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
}

.form-label {
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.04em;
  color: #2e2f42;
  margin-bottom: 8px;
}

.form-label:nth-child(2) {
  margin-bottom: 16px;
}

.form-input {
  border: none;
  width: 100%;
  height: 40px;
  border: 1px solid #808080;
  border-radius: 4px;
  padding: 8px 16px;

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

.form-btn {
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  width: 86px;
  height: 40px;
  background: #4e75ff;

  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.04em;
  color: #fff;
  transition: 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
}

.form-btn:focus,
.form-btn:hover {
  background: #355ff6;
}

.form-btn:active {
  transform: scale(0.9);
  background: #4e75ff;
}

/* #endregion */

/*; Styles for Task 5 */
/* #region task 5 */

.body-section {
  transition: background-color 700ms cubic-bezier(0.075, 0.82, 0.165, 1);
}

.widget {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  border-radius: 8px;
  padding: 100px 88px;
  width: 345px;
  height: 280px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
  background-color: #ffffff9b;

}

.change-color {
  border: none;
  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;

}

.widget-text {
  border-radius: 8px;
  padding: 5px;
  text-align: center;
  min-width: 180px;
  min-height: 60px;
  background-color: #ffffff;
}

.change-color:focus,
.change-color:hover {
  background: #355ff6;
}

.change-color:active {
  transform: scale(0.9);
  background: #4e75ff;
}

/* #endregion */