/*! 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 {
  src:
    url(./vendor/Inter-Regular.woff) format('woff'),
    url(./vendor/Inter-Regular.woff2) format('woff2');
  font-family: 'Inter';
  font-weight: 400;
  font-style: normal;
}

@font-face {
  src:
    url(./vendor/Inter-Medium.woff) format('woff'),
    url(./vendor/Inter-Medium.woff2) format('woff2');
  font-family: 'Inter';
  font-weight: 500;
  font-style: medium;
}

@font-face {
  src:
    url(./vendor/Inter-Black.woff) format('woff'),
    url(./vendor/Inter-Black.woff2) format('woff2');
  font-family: 'Inter';
  font-weight: 900;
  font-style: bold;
}

.page {
  max-width: 1280px;
  min-width: 320px;
  background-color: #000;
  position: relative;
  margin: 0px auto;
  font-family: 'Inter', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.root {
  padding: 0px 2px;
}

.content {
  max-width: 888px;
  margin: 0px auto;
}

.header__logo {
  object-position: center;
  object-fit: cover;
  width: 142px;
  height: 34px;
}


@media (max-width: 700px) {
  .header__logo {
    width: 103px;
    height: 25px;
  }
}

.header {
  margin: 0px auto;
  max-width: 888px;
  padding: 45px 0px 40px 0px;
  border-bottom: 1px solid rgba(84, 84, 84, .7);
}


@media (max-width:700px) {
  .header {
    padding: 28px 0 31px 27px;
  }
}

.profile__avatar {
  min-width: 125px;
  height: 125px;
  /* background-image: url(../../../images/avatar.jpeg); */
  border-radius: 50%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  object-fit: cover;
  opacity: 1;
  position: relative;
}

/* .profile__avatar:hover {
  opacity: 0.6;
  transition: opacity, .6s, ease-in-out;
} */

@media (max-width:700px) {
  .profile__avatar {
    margin: 38px 0px 10px 0px;
  }
}

.profile__info {
display: flex;
flex-direction: column;
justify-content: space-around;
margin-left: 30px;
}

@media (max-width: 700px) {
  .profile__info {
    margin-left: 0px;
  }
}

.profile__title {
  font-style: normal;
  font-weight: 500;
  font-size: 42px;
  line-height: 56px;
  color: #FFF;
  margin: 0px;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 350px;

}

@media (max-width: 700px) {
  .profile__title {
    font-size: 27px;
    line-height: 56px;
    margin: 0px 7px 0px 0px;
    max-width: 256px;
    text-align: center;
  }
}

.profile__job-description {
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 22px;
  color: #FFFFFF;
  margin: 0px;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 350px;
}

@media (max-width: 700px) {
  .profile__job-description {
    text-align: center;
    font-size: 14px;
    line-height: 17px;
    max-width: none;
  }
}

.profile__image {
  position: relative;
  z-index: 1;
}
.profile__edit-button {
width:24px;
height: 24px;
align-self: center;
border: 1px solid #FFFFFF;
box-sizing: border-box;
background-color: black;
background-image: url(./images/edit-pencil.svg);
background-size: 10px 10px;
background-repeat: no-repeat;
background-position: center;
margin-left: 17px;
}

.profile__edit-button:hover {
  cursor: pointer;
  opacity: .6;
}

@media (max-width: 700px) {
  .profile__edit-button {
    margin-left: 1px;
    width: 18px;
    height: 18px;
  }
}

.profile__edit-avatar {
  background-image: url(./images/pencil.png);
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: 50%;
  border: 0px;
  cursor: pointer;
  opacity: 0;
  outline: none;
}


.profile__edit-avatar:hover{
  opacity: 1;
  background-color: rgba(0,0,0,.8);
  transition: opacity 0.2s linear;
}

@media (max-width:700px) {
  .profile__edit-avatar:hover {
    height: 125px;
    margin-top: 38px;
  }
}
.profile__row {
  display: flex;
}

@media (max-width: 700px) {
  .profile__row{
    align-self: center;
  }
}

.profile__add-button {
  width: 150px;
  height: 50px;
  border: 2px solid #FFFFFF;
  border-radius: 2px;
  background-color: #000000;
  background-image: url(./images/add-element.svg);
  background-position: center;
  background-repeat: no-repeat;
  align-self: center;
  margin-left: auto;
}

.profile__add-button:hover:hover {
  cursor: pointer;
  opacity: .6;
}

@media (max-width: 700px) {
  .profile__add-button {
    width: 282px;
    margin: 36px 0px auto;
  }
}

.profile {
  display: flex;
  padding-top: 36px;
}


@media (max-width: 700px) {
  .profile {
    padding-top: 0;
    flex-direction: column;
    align-items: center;
  }
}

.elements {
  display: grid;
  grid-template-columns: repeat(auto-fit, 282px);
  grid-column-gap: 18px;
  grid-row-gap: 20px;
  justify-content: center;
  padding-top: 47px;
}


@media (max-width: 700px) {
  .elements {
    padding-top: 36px;
  }
}

.element__photo {
  width: 100%;
  height: 282px;
  border-radius: 10px 10px 0px 0px;
  object-position: center;
  object-fit: cover;
  display: block;
}

.element__photo:hover {
  opacity: .8;
  transition: opacity .2s ease-in-out;
}
.element__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.element__title {
  max-width: 210px;
  font-size: 24px;
  line-height: 29px;
  color: #000000;
  margin-left: 21px;
  margin-top: 25px;
  margin-bottom: 31px;
  font-weight: bold;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.element__like-section {
  display: flex;
  flex-direction: column;
  width: 20px;
  margin-right: 20px;
}
.element__like-counter {
  max-width: 9px;
  font-weight: 400;
  font-size: 13px;
  line-height: 16px;
  align-self: center;
  margin-top: 3px;
  color: #000;
}
.element__like {
  background-image: url(./images/icon_like_unset.svg);
  width: 20px;
  height: 18px;
  background-size: contain;
  background-position: center;
  background-color: #FFF;
  border: none;
}

.element__like:hover {
  cursor: pointer;
  opacity: .6;
}

.element__like:focus {
  outline: none;
}

.element__like_active {
  background-image: url(./images/icon_like_set.svg);
}

.element__trash {
  width: 18px;
  height: 19px;
  position: absolute;
  top: 18px;
  right: 15px;
  background-color: transparent;
  background-image: url(./images/icon-trash.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 0px;
  display: none;

}

/* 
.element__trash:hover {
  cursor: pointer;
  opacity: .6;
  transform: scale(1.5);
} */

.element__trash_type_active{
  display:block;
}


.element__trash_type_active:hover {
  cursor: pointer;
  opacity: .6;
  transform: scale(1.5);
  transition: all 0.2s cubic-bezier(0.075, 0.82, 0.165, 1);
}
.element {
  background: white;
  border-radius: 10px;
  position: relative;
  max-height: 361px;
}

.footer__copyrigth {
  margin: 66px 0px 60px;
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 22px;
  color: #545454;
}

@media (max-width:320px) {
  .footer__copyrigth {
    margin: 48px 19px 36px;
    font-size: 14px;
    line-height: 17px;
  }
}

.footer {
  margin: 0px auto;
  max-width: 888px;
}

.popup__container {
  position: relative;
  margin: 0 auto;
  align-self: center;
  width: 100%;
  max-width: 430px;
  background-color: #fff;
  border-radius: 10px;
}

@media (max-width: 500px) {
  .popup__container {
    max-width: 300px;
  }
}

.popup__close {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 40px;
  height: 40px;
  z-index: 100;
  background-color: transparent;
  background-image: url(./images/close-icon.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;
  border:none;
}

.popup__close:hover {
  cursor: pointer;
  opacity: .6;
}

.popup__close:focus {
  outline: none;
}

@media (max-width: 500px) {
  .popup__close {
      right: -10px;
  }
}

.popup__title {
  font-style: normal;
  font-weight: 900;
  font-size: 24px;
  line-height: 29px;
  color: #000000;
  margin: 34px 36px 0px;
  position: relative;
}


@media (max-width:500px) {
  .popup__title {
    font-size: 20px;
    line-height: 22px;
  }
}

.popup__input {
  margin-top: 54px;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, .2);
  width: 100%;
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  line-height: 17px;
  padding-bottom: 13px;
}

.popup__input:focus {
  outline: none;
}

.popup__input:last-of-type {
  margin-top: 30px;
}

.popup__inputs {
  display: flex;
  flex-direction: column;
  width: calc(100% - 72px);
  margin: 0 auto;
  border: none
}

.popup__submit {
  width: calc(100% - 72px);
  height: 50px;
  background-color: black;
  color: #fff;
  margin: 48px 36px 36px;
  font-weight: normal;
  font-size: 18px;
  line-height: 22px;
  text-align: center;
  border-radius: 2px;
  border:none;
}

.popup__submit:hover {
  cursor: pointer;
  background-color: rgba(0, 0, 0, .8);
}

.popup__image-container{
  position: relative;
  align-self: center;
}

.popup__image {
  max-width: 75vw;
  max-height: 75vh;
  object-fit: cover;
}

.popup__image-title {
  font-style: normal;
  font-weight: normal;
  font-size: 12px;
  line-height: 15px;
  color: #fff;
}

.popup__error {
  font-size: 12px;
  line-height: 15px;
  color: #FF0000;
  visibility: hidden;
  opacity: 0;
}

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

.popup__submit_disabled {
  border: 1px solid #C4C4C4;
  background: transparent;
  color: #C4C4C4;
  box-sizing: border-box;
  border-radius: 2px;
  pointer-events: none;
}

.popup__input_type_error {
  border-bottom: 1px solid red;
}

.popup {
  display: flex;
  width: 100%;
  min-height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  align-content: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, .5);
  visibility: hidden;
  opacity: 0;
  z-index: 10;
  -moz-transition: visibility 1s, opacity .5s linear;
  transition: visibility .5s, opacity .5s linear;
}

.popup_active {
  visibility: visible;
  opacity: 1;
  -moz-transition: visibility 1s, opacity .5s linear ;
  transition: visibility .5s, opacity .5s linear;
}




