/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

 html {
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
  }
  
  /* Sections
     ========================================================================== */
  
  /**
   * Remove the margin in all browsers.
   */
  
  body {
    margin: 0;
  }
  
  /**
   * Render the `main` element consistently in IE.
   */
  
  main {
    display: block;
  }
  
  /**
   * Correct the font size and margin on `h1` elements within `section` and
   * `article` contexts in Chrome, Firefox, and Safari.
   */
  
  h1 {
    font-size: 2em;
    margin: 0.67em 0;
  }
  
  /* Grouping content
     ========================================================================== */
  
  /**
   * 1. Add the correct box sizing in Firefox.
   * 2. Show the overflow in Edge and IE.
   */
  
  hr {
    box-sizing: content-box; /* 1 */
    height: 0; /* 1 */
    overflow: visible; /* 2 */
  }
  
  /**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */
  
  pre {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
  }
  
  /* Text-level semantics
     ========================================================================== */
  
  /**
   * Remove the gray background on active links in IE 10.
   */
  
  a {
    background-color: transparent;
  }
  
  /**
   * 1. Remove the bottom border in Chrome 57-
   * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
   */
  
  abbr[title] {
    border-bottom: none; /* 1 */
    text-decoration: underline; /* 2 */
    text-decoration: underline dotted; /* 2 */
  }
  
  /**
   * Add the correct font weight in Chrome, Edge, and Safari.
   */
  
  b,
  strong {
    font-weight: bolder;
  }
  
  /**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */
  
  code,
  kbd,
  samp {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
  }
  
  /**
   * Add the correct font size in all browsers.
   */
  
  small {
    font-size: 80%;
  }
  
  /**
   * Prevent `sub` and `sup` elements from affecting the line height in
   * all browsers.
   */
  
  sub,
  sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  
  sub {
    bottom: -0.25em;
  }
  
  sup {
    top: -0.5em;
  }
  
  /* Embedded content
     ========================================================================== */
  
  /**
   * Remove the border on images inside links in IE 10.
   */
  
  img {
    border-style: none;
  }
  
  /* Forms
     ========================================================================== */
  
  /**
   * 1. Change the font styles in all browsers.
   * 2. Remove the margin in Firefox and Safari.
   */
  
  button,
  input,
  optgroup,
  select,
  textarea {
    font-family: inherit; /* 1 */
    font-size: 100%; /* 1 */
    line-height: 1.15; /* 1 */
    margin: 0; /* 2 */
  }
  
  /**
   * Show the overflow in IE.
   * 1. Show the overflow in Edge.
   */
  
  button,
  input {
    /* 1 */
    overflow: visible;
  }
  
  /**
   * Remove the inheritance of text transform in Edge, Firefox, and IE.
   * 1. Remove the inheritance of text transform in Firefox.
   */
  
  button,
  select {
    /* 1 */
    text-transform: none;
  }
  
  /**
   * Correct the inability to style clickable types in iOS and Safari.
   */
  
  button,
  [type="button"],
  [type="reset"],
  [type="submit"] {
    -webkit-appearance: button;
  }
  
  /**
   * Remove the inner border and padding in Firefox.
   */
  
  button::-moz-focus-inner,
  [type="button"]::-moz-focus-inner,
  [type="reset"]::-moz-focus-inner,
  [type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
  }
  
  /**
   * Restore the focus styles unset by the previous rule.
   */
  
  button:-moz-focusring,
  [type="button"]:-moz-focusring,
  [type="reset"]:-moz-focusring,
  [type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
  }
  
  /**
   * Correct the padding in Firefox.
   */
  
  fieldset {
    padding: 0.35em 0.75em 0.625em;
  }
  
  /**
   * 1. Correct the text wrapping in Edge and IE.
   * 2. Correct the color inheritance from `fieldset` elements in IE.
   * 3. Remove the padding so developers are not caught out when they zero out
   *    `fieldset` elements in all browsers.
   */
  
  legend {
    box-sizing: border-box; /* 1 */
    color: inherit; /* 2 */
    display: table; /* 1 */
    max-width: 100%; /* 1 */
    padding: 0; /* 3 */
    white-space: normal; /* 1 */
  }
  
  /**
   * Add the correct vertical alignment in Chrome, Firefox, and Opera.
   */
  
  progress {
    vertical-align: baseline;
  }
  
  /**
   * Remove the default vertical scrollbar in IE 10+.
   */
  
  textarea {
    overflow: auto;
  }
  
  /**
   * 1. Add the correct box sizing in IE 10.
   * 2. Remove the padding in IE 10.
   */
  
  [type="checkbox"],
  [type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
  }
  
  /**
   * Correct the cursor style of increment and decrement buttons in Chrome.
   */
  
  [type="number"]::-webkit-inner-spin-button,
  [type="number"]::-webkit-outer-spin-button {
    height: auto;
  }
  
  /**
   * 1. Correct the odd appearance in Chrome and Safari.
   * 2. Correct the outline style in Safari.
   */
  
  [type="search"] {
    -webkit-appearance: textfield; /* 1 */
    outline-offset: -2px; /* 2 */
  }
  
  /**
   * Remove the inner padding in Chrome and Safari on macOS.
   */
  
  [type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  
  /**
   * 1. Correct the inability to style clickable types in iOS and Safari.
   * 2. Change font properties to `inherit` in Safari.
   */
  
  ::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
  }
  
  /* Interactive
     ========================================================================== */
  
  /*
   * Add the correct display in Edge, IE 10+, and Firefox.
   */
  
  details {
    display: block;
  }
  
  /*
   * Add the correct display in all browsers.
   */
  
  summary {
    display: list-item;
  }
  
  /* Misc
     ========================================================================== */
  
  /**
   * Add the correct display in IE 10+.
   */
  
  template {
    display: none;
  }
  
  /**
   * Add the correct display in IE 10.
   */
  
  [hidden] {
    display: none;
  }
  
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  src: url(35d26b781dc5fda684cc.ttf) format("truetype");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  src: url(673ed42382ab264e0bf5.ttf) format("truetype");
}

.header {
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  background-color: #fff;
  padding: 10px 0;
  height: 46px;
  width: 100%;
}

.header__logo {
  width: 94px;
  height: 26px;
  padding: 0;
}

.page {
  background-color: #fcf5e5;
  color: #212121;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.page__section {
  max-width: 1280px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

.modal {
  visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background-color: rgba(33, 33, 33, 0.4);
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s ease-in;
  padding: 0 10px 0 10px;
}

.modal_opened {
  visibility: visible;
  opacity: 1;
}

.modal__container {
  display: flex;
  max-width: 730px;
  width: 100%;
  background-color: rgba(255, 255, 255, 1);
  border-radius: 8px;
  padding: 32px 50px;
  box-sizing: border-box;
}

.modal__form {
  margin: 0;
  width: 100%;
}

.modal__form-header {
  display: flex;
  justify-content: space-between;
}

.modal__header {
  font-weight: 500;
  font-size: 32px;
  padding-bottom: 32px;
}

.modal__close-button {
  background-image: url(dba18798529f242c4c6d.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  border: none;
  opacity: 0.4;
  width: 50px;
  height: 50px;
  padding: 0 0 24px 0;
  cursor: pointer;
}

.modal__close-button:hover {
  background-image: url(111974d662f564832149.png);
  opacity: 1;
}

.modal__label {
  padding-bottom: 8px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(33, 33, 33, 0.7);
}

.modal__inputs {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  line-height: 100%;
}

.modal__input {
  margin-bottom: 8px;
  padding: 16px 12px;
  font-size: 20px;
  border-radius: 8px;
  border: 1px solid rgba(33, 33, 33, 0.4);
}

/* INPUT ERROR STYLING  */

.modal__input-error {
  display: none;
  color: #ff0000b2;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 32px;
  line-height: 110%;
  padding: 0;
}

.modal__input-error_active {
  display: block;
}

.modal__save-button {
  width: 156px;
  height: 52px;
  border-radius: 8px;
  margin: 0;
  background-color: rgba(33, 33, 33, 1);
  color: rgba(252, 245, 229, 1);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.modal__save-button:hover {
  transition: opacity 0.5s;
}

.modal__save-button_inactive,
.modal__save-button:disabled {
  background-color: #212121;
  opacity: 0.5;
  cursor: not-allowed;
  color: #fcf5e5;
}

.modal__preview-container {
  position: relative;
}

.modal__link {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 8px;
}

.modal__caption {
  background-color: #212121;
  color: white;
  border-radius: 8px;
  width: fit-content;
  padding: 8px;
  font-size: 20px;
  font-weight: 500;
}

.modal__preview-close {
  background-image: url(e51e1d60b1bf3cffe700.png);
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  border: none;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: calc(100% + 12.5px);
}

.modal__preview-close:hover {
  background-image: url(5bd95dda1dd0f52af34e.png);
}

@media screen and (max-width: 668px) {
  .modal__container {
    margin: 10px;
    padding: 22px 12px 12px;
  }

  .modal__header {
    font-size: 20px;
  }
  .modal__save-button {
    width: 100%;
  }

  .modal__input {
    font-size: 16px;
    margin-bottom: 8px;
  }
}

@media screen and (max-width: 360px) {
  .modal__link {
    max-width: 288px;
  }

  .modal__preview-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .modal__preview-close {
    position: relative;
    top: -8px;
    left: calc(88%);
  }
}

.content {
  box-sizing: border-box;
  padding: 0 20px;
  flex-grow: 1;
}

@media screen and (max-width: 629px) {
  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
  }
}

.profile {
  display: flex;
  flex-direction: row;
  gap: 20px;
  border-bottom: solid 1px rgba(33, 33, 33, 0.4);
  padding: 34px 0 20px 0;
  width: 100%;
}

.profile__avatar {
  width: 190px;
  height: 190px;
  border-radius: 8px;
}

.profile__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile__name {
  margin: 0 0 12px 0;
  font-size: 32px;
  font-weight: 500;
  color: #212121;
  padding: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  max-width: 400px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.profile__description {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  max-width: 420px;
  color: #212121;
  opacity: 0.7;
  width: 100%;
  white-space: normal;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.profile__edit-button {
  margin-top: auto;
  padding: 0;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  background-color: transparent;
  border: none;
  font-weight: 500;
  font-size: 16px;
  opacity: 0.7;
  cursor: pointer;
  display: flex;
  gap: 8px;
  margin-right: 8px;
}

.profile__edit-button:hover {
  opacity: 1;
}

.profile__post-button {
  width: 149px;
  height: 52px;
  margin-top: auto;
  border-radius: 8px;
  margin-left: auto;
  background-color: #212121;
  color: #fcf5e5;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 16px;
  opacity: 1;
  cursor: pointer;
  border: none;
}

.profile__post-button:hover {
  opacity: 0.8;
}

.profile__plus {
  margin-right: 8px;
}

@media screen and (max-width: 629px) {
  .profile {
    flex-direction: column;
    max-width: 288px;
    padding: 20px 0 20px 0;
    text-align: center;
    align-items: center;
    gap: 0;
  }

  .profile__avatar {
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
  }

  .profile__name {
    margin: 0 0 6px;
    font-size: 20px;
  }

  .profile__description {
    margin-bottom: 32px;
    max-width: 288px;
    font-size: 16px;
  }

  .profile__column {
    align-items: center;
  }

  .profile__edit-button {
    margin: 0 0 20px;
  }
  .profile__post-button {
    margin: 0 auto;
    width: 100%;
  }
}

.cards__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, 413px);
  gap: 40px 20px;
  padding: 20px 0 40px;
  margin: 0;
  justify-content: center;
  border-bottom: solid rgba(33, 33, 33, 0.4) 1px;
}

@media screen and (max-width: 627px) {
  .cards__list {
    grid-template-columns: repeat(auto-fit, 288px);
    padding-bottom: 20px;
    gap: 20px;
  }
}

.card {
  width: 413px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  position: relative;
}

.card__delete-btn {
  background-image: url(f240b51345d11f2269f5.png);
  position: absolute;
  right: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  background-color: transparent;
  border: none;
  background-repeat: no-repeat;
}

.card__delete-btn:hover {
  background-image: url(326fb6b7d0be81855da0.png);
  cursor: pointer;
}

.card__image {
  width: 100%;
  height: 413px;
  margin-bottom: 12px;
  display: block;
  border-radius: 8px;
  cursor: pointer;
}

.card__name {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  font-size: 20px;
  line-height: 120%;
  font-weight: 500;
  color: rgb(33, 33, 33);
  max-width: 353px;
  margin: 0;
}

.card__caption {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.card__like-button {
  background-color: transparent;
  border: none;
  padding: 15px;
  width: 22px;
  height: 20px;
  opacity: 0.4;
  background-image: url(69134273483c4e5472ba.svg);
  background-repeat: no-repeat;
  cursor: pointer;
}

.card__like-button:hover {
  background-image: url(8845a24812c3a0df04d0.png);
  opacity: 1;
}

.card__like-button-clicked {
  background-color: transparent;
  border: none;
  padding: 15px;
  width: 22px;
  height: 20px;
  background-image: url(5ba14d29c8f0f8b51069.svg);
  background-color: transparent;
  background-repeat: no-repeat;
  cursor: pointer;
  opacity: 1;
}

.card__like-button-clicked:hover {
  background-image: url(e3de70783334a8df9a0f.svg);
}

@media screen and (max-width: 629px) {
  .card {
    width: 288px;
  }

  .card__name {
    max-width: 235px;
    line-height: 120%;
    font-size: 16px;
  }

  .card__image {
    height: 288px;
  }
}

.footer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 60px 0;
}

.footer__text {
  margin: 0 auto;
  font-size: 16px;
  color: rgba(33, 33, 33, 0.7);
  line-height: 100%;
  font-weight: 400;
}



