@font-face {
  font-family: Comfortaa;
  src: url("fonts/Comfortaa-Regular.ttf");
  font-weight: 400;
}

@font-face {
  font-family: ComfortaaBold;
  src: url("fonts/Comfortaa-Bold.ttf");
  font-weight: 700;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Comfortaa', cursive;
  margin: 0;
  color: #444;
  height: 100vh;
}

a {
  color: #000;
}

a:hover {
  color: #ff0000;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px;
}

header {
  border-bottom: 1px solid #ddd;
  box-shadow: 1px 5px 10px #ddd;
}

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

.logo {
  width: 40px;
  height: 40px;
}

.logo img {
  filter: invert(8%) sepia(100%) saturate(6481%) hue-rotate(344deg) brightness(102%) contrast(143%);
}

.header h2 {
  margin-left: 20px;
  margin-right: auto;
}

.search {
  position: relative;
  width: 100%;
  max-width: 350px;
  margin-left: 20px;
}

.search-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 25px;
  outline: none;
  transition: all 0.3s;
  border: 1px solid #ddd;
  font-size: 16px;
}

.search-input:focus {
  background: #ededed;
  color: #ff0000;
}

.search .button-search {
  position: absolute;
  cursor: pointer;
  top: 12px;
  right: 20px;
  transition: 0.2s;
  height: 20px;
  width: 20px;
}

.search .clear-search {
  position: absolute;
  cursor: pointer;
  top: 12px;
  right: 42px;
  transition: 0.2s;
  height: 20px;
  width: 20px;
}

.search i+i {
  border-left: 1px solid #ddd;
  padding-left: 10px;
}

.search .button-search::before {
  content: "\f002";
}

.search .clear-search::before {
  content: "\f00d";
}

.search .button-search:hover {
  color: #ff0000;
}

.search .clear-search:hover {
  color: #ff0000;
}

.images {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  margin: 10px 0;
  min-height: 500px;
}

.images {
  flex-flow: row wrap;
}

.images::after {
  content: "";
  width: 340px;
}

.gallery-img {
  width: 340px;
  height: 200px;
  background-size: 110% !important;
  background-position: center !important;
  overflow: hidden;
  box-shadow: 1px 1px 5px #ddd;
  border-radius: 5px;
  transition: all 0.5s;
  position: relative;
}

.gallery-img:hover {
  background-size: 130%;
  box-shadow: 0px 0px 10px #444;
  transform: scale(1.5);
  z-index: 2;
}

.title {
  color: #fff;
  background: rgb(0, 0, 0, 0.5);
  position: absolute;
  width: 100%;
  bottom: 0;
  padding: 10px;
  text-align: center;
  transition: all 0.2s;
  transform: translateY(101%);
}

.gallery-img:hover .title {
  transform: translateY(0);
}

.no-images {
  text-align: center;
  background: url("image/nothing-found.jpg") center no-repeat;
  height: 300px;
  width: 100%;
  margin-top: 40px;
  background-size: auto;
}

footer {
  background: #000;
  bottom: 0;
  width: 100%;
}

.footer-container {
  height: 100px;
  display: flex;
  box-sizing: border-box;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  color: #fff;
}

.footer-container a {
  text-decoration: none;
  color: #ff0000;
}

.copyright {
  margin: 0 20px;
}

.copyright span+span {
  margin-left: 20px;
}

.rs-school {
  margin-right: 12px;
}

.rs-school a {
  background: url(image/rs_school.svg) center no-repeat;
  filter: invert(8%) sepia(100%) saturate(6481%) hue-rotate(344deg) brightness(102%) contrast(143%);
  display: block;
  width: 100px;
  height: 50px;
}

@media (max-width: 768px) {
  .header {
    justify-content: center;
  }

  .header h2 {
    margin-right: 0;
  }

  .images {
    justify-content: center;
  }
}