* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #fff;
  --dark: #000;
  --blue: rgb(0, 130, 206);
  --gray: #ededed;
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  font-family: 'Roboto', sans-serif;
  background-color: var(--gray);
  display: flex;
  flex-direction: column;
}

.logo {
  background-image: url('../assets/svg/logo.svg');
  background-size: contain;
  background-repeat: no-repeat;
  transition: 0.5s ease-in-out;
  width: 50px;
  height: 40px;
  z-index: 1;
}

.app-title {
  z-index: 1;
  color: var(--blue);
}

.header {
  flex: 0 0 auto;
}

.main-content {
  flex: 1 0 auto;
}

.footer {
  flex: 0 0 auto;
}

.container {
  max-width: 100%;
  padding: 0px 60px;
}

.header__items {
  position: fixed;
  width: 100%;
  display: flex;
  min-height: 8vh;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  z-index: 1;
  background-color: var(--white);
}

.search {
  display: flex;
  justify-content: center;
}

input {
  padding: 0.6rem;
  outline: none;
  font-size: 1rem;
  cursor: auto;
}

.btn {
  position: relative;
  border: none;
  outline: none;
  cursor: pointer;
  width: 40px;
  box-shadow: none !important;
  height: 41.2px;
  background-color: var(--blue);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.btn:hover {
  background-color: rgb(2 102 161);
  transition: all 0.3s ease;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 90px 0px 30px 0px;
}

.gallery__item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

img {
  padding: 10px 10px;
  cursor: pointer;
}

.gallery__item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background-color: var(--white);
  box-shadow: 0px 6px 10px rgb(0 0 0 / 25%);
}

.image-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0px 10px 10px;
}

.like-group {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.like-icon {
  background-image: url('../assets/svg/like.svg');
  background-size: contain;
  background-repeat: no-repeat;
  width: 40px;
  height: 40px;
}

.like-count {
  font-size: 20px;
  color: var(--blue);
}

.author-name::before {
  content: 'Author: ';
  font-size: 18px;
  font-weight: 600;
  color: var(--blue);
}

.picture-description::before {
  content: 'Description: ';
  font-size: 18px;
  font-weight: 600;
  color: var(--blue);
}

.picture-description {
  max-width: 320px;
}

.input-group {
  position: relative;
}

.search-bar__cross {
  position: absolute;
  top: 20%;
  left: 80%;
  background: #fff url('../assets/svg/cross.svg') center center no-repeat;
  border: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  outline: none;
  cursor: pointer;
  width: 42px;
  height: 25px;
}

span.search-icon {
  position: absolute;
  top: 5px;
  right: 5px;
  background: url('../assets/svg/search-icon.svg') center center no-repeat;
  border: none;
  outline: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  background-size: 100%;
}

/* ------- footer ------- */
.footer {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.footer-data {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-size: 20px;
}

.footer__item:nth-child(2),
.footer__item:nth-child(3) {
  margin-left: 25px;
}

.school-link {
  padding-left: 10px;
}

.github__icon {
  width: 100px;
}

.rs-school__icon {
  width: 100px;
}

@media (max-width: 1200px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0px 30px;
  }

  .header__items {
    position: inherit;
    flex-direction: column;
    row-gap: 10px;
  }

  .header__items.container {
    padding: 0px 0px 10px 0px;
  }

  .gallery {
    padding: 15px 0px 30px 0px;
  }

  .search {
    flex-direction: row;
  }
}
