/* chivo-mono-regular - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Chivo Mono';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/chivo-mono-v9-latin-regular.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* chivo-mono-700 - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Chivo Mono';
  font-style: normal;
  font-weight: 700;
  src: url('./fonts/chivo-mono-v9-latin-700.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* babylonica-regular - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Babylonica';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/babylonica-v5-latin-regular.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* common */

html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}

*,
::after,
::before {
  box-sizing: inherit;
  transition: all 0.5s ease 0.1s;
  margin: 0;
  padding: 0;
}

body {
  color: #000;
  font-family: 'Chivo Mono', sans-serif;
  font-style: normal;
  font-weight: 400;
}

/* header search */

.header {
  margin: 10px auto;
  margin-bottom: 20px;
  border-bottom: 5px solid red;
}

.wrapper {
  max-width: 1920px;
  margin: 0 auto;
}

.header__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 60px;
}

.logo-img {
  width: 50px;
  height: auto;
  margin: 5px 10px;
}

.header__title {
  font-family: 'Chivo Mono';
  font-style: normal;
  font-weight: 700;
  display: flex;
  white-space: nowrap;
  font-size: 2rem;
  margin: 5px 5px;
}

.header__search {
  position: relative;
  width: 400px;
  display: flex;
  margin: 5px 10px;
}

.header__input {
  position: relative;
  font-family: 'Chivo Mono';
  font-style: normal;
  width: 100%;
  font-size: 1.2rem;
  padding: 5px 12px;
  outline: none;
  border-radius: 25px;
  border: 2px solid #DDDDDD;
}

.rm-ico {
  position: absolute;
  width: 7%;
  display: flex;
  top: 12%;
  right: 2%;
  cursor: pointer;
}

.header__input:active,
.header__input:hover,
.header__input:focus {
  box-shadow: 0 0 5px orange;
}

.rm-ico:active,
.rm-ico:hover,
.rm-ico:focus {
  transform: rotate(180deg);
}

/* image gallery */

.grid__box {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  /* margin-bottom: 20px; */
}

.img__wrapper {
  background-position: center;
  background-size: cover;
  border-radius: 20px;
  margin-right: 10px;
  margin-bottom: 10px;
}

.img {
  width: 380px;
  height: 214px;
  object-fit: cover;
  cursor: pointer;
}

.resize {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  transition: width 2s;
}

.resize-active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.resize-img {
  width: 200px;
  margin: 0 auto
}

.modal__card {
  background-color: #ffffff;
max-width: 600px;
padding: 16px;
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.5);
background-color: #1a191f;
color: #ffffff;
display: flex;
flex-direction: column;
}

.close-btn {
  padding: 5px;
  margin: 10px;
  align-self: center;
}

/* footer */

.footer {
  max-width: 60%;
  margin: 0 auto;
}

.footer__wrapper {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  color: #020202;
  text-align: center;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 2px;
}

.footer__link {
  color: #020202;
  font-family: 'Babylonica', sans-serif;
  font-style: normal;
  font-weight: 400;
  transition: 0.9s;
  font-size: 30px;
  text-decoration: none;
}

.footer__link img {
  width: 30%;
  filter: invert(76%) sepia(15%) saturate(638%) hue-rotate(140deg) brightness(92%) contrast(87%);
}

.footer__link:active,
.footer__link:focus,
.footer__link:hover {
  opacity: 0.75;
  color: #020202;
}