* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100vw;
  height: 100vh;
}

:root {
  --title-font: "Pacifico", cursive;
  --open-sans: "Open Sans", sans-serif;
}

.container {
  width: 100%;
  height: 100%;
  position: relative;
}

/* header part  */
header {
  height: 70px;
  display: flex;
  justify-content: space-between;
  background: #43c6ac;
  background: -webkit-linear-gradient(to right, #f8ffae, #43c6ac);
  background: linear-gradient(to right, #f8ffae, #43c6ac);
  padding: 0 5px;
}

.logo {
  height: 100%;
}

.title {
  display: none;
  font-family: var(--open-sans);
  color: #2f3640;
  margin-left: 125px;
}

.header-right-side {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.categories {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  font-size: 1rem;
  font-family: var(--open-sans);
  font-weight: bold;
  color: #2a2a2a;
  cursor: pointer;
}

.categories-options {
  width: 170px;
  position: absolute;
  top: 100%;
  left: 0;
  font-family: var(--open-sans);
  font-size: 0.9rem;
  background-color: #e2eee2;
  box-shadow: 3px 3px 3px #535050;
  z-index: 1000;
  display: none;
}

.categories-options > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
  border-bottom: 1px solid #d6d2d2;
  height: 40px;
}

.categories-options > div:hover {
  background-color: #6aefce;
}

.categories-options > div img {
  width: 8vw;
}

.notification,
.avatar {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.notification img {
  height: 35%;
}

.avatar img {
  background-color: #eafbae;
  height: 65%;
  border-radius: 50%;
  border: 2px solid #646665;
}

/* main part  */
main {
  height: calc(100vh - 15vh);
  overflow: auto;
}

.gallery-section {
  width: 100%;
  background-color: #fff;
  overflow: auto;
}

.search-photo {
  width: 100%;
  height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url(../assets/images/pexels-gsn-travel-28518085.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-blend-mode: overlay;
  background-color: rgba(36, 34, 34, 0.498);
  position: relative;
  padding: 0 5px;
}

#search {
  width: 65%;
  padding: 15px;
  border: 1px solid #9f9d9d;
  outline: none;
  border-top-left-radius: 50px;
  border-bottom-left-radius: 50px;
  background-color: #f6f0f0;
  font-family: var(--open-sans);
  font-weight: 800;
}

.search-btn {
  padding: 15px 35px;
  border: none;
  border-top-right-radius: 25px;
  border-bottom-right-radius: 25px;
  cursor: pointer;
  font-family: var(--open-sans);
  font-size: 0.9rem;
  font-weight: bold;
  background-color: #56ccac;
  color: #000000;
  transition: background-color 1s;
}

.search-btn:hover {
  background-color: #0cb185;
}

.photos-section {
  height: calc(100% - 15%);
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 2px;
}

.photo-container {
  width: 90%;
  height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #eaf0ea;
  border-radius: 10px;
  margin-top: 15px;
  font-family: var(--open-sans);
  box-shadow: 2px 2px 2px #c4c2c2;
  transition: all 1s;
  cursor: pointer;
  overflow: hidden;
}

.photo-container:hover {
  scale: 1.01;
  box-shadow: 3px 3px 3px #c4c2c2;
}

.photo-container .photo {
  width: 100%;
  height: 70%;
}

.photo-container .photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.photo-utilities {
  width: 100%;
  height: 25%;
  display: flex;
  justify-content: space-between;
  padding: 0 5px;
}

.user-info {
  height: 100%;
  width: 58%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 10px;
}

.user-info img {
  height: 60%;
  border-radius: 50%;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 700;
}

.location {
  font-size: 0.8rem;
  font-weight: 500;
}

.photo-info {
  width: 40%;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.likes {
  height: 50%;
  display: flex;
  align-items: center;
  gap: 5px;
}

.likes img {
  height: 60%;
}

.likes-amount {
  font-family: var(--open-sans);
  font-weight: 600;
  font-size: 0.8rem;
}

.created-time {
  height: 50%;
  display: flex;
  align-items: center;
  gap: 5px;
}

.created-time img {
  height: 60%;
}

.created-time p {
  font-weight: 600;
  font-size: 0.7rem;
}

.switch-gallery {
  width: 100%;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.switch-gallery button {
  background-color: #292828;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 5px;
  border: none;
  outline: none;
  cursor: pointer;
}

.switch-gallery button:disabled {
  background-color: #c3c3c3;
  cursor: not-allowed;
}

.switch-gallery button.active {
  background-color: #4fcaac;
}

.toast-message-container {
  width: 250px;
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px;
  font-family: var(--open-sans);
  font-weight: bold;
  text-align: center;
  background-color: red;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  visibility: hidden;
  opacity: 0;
  scale: 0;
}

@keyframes showAnim {
  from {
    opacity: 0;
    scale: 0;
  }

  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes hideAnim {
  from {
    visibility: visible;
    opacity: 1;
    scale: 1;
  }

  to {
    visibility: hidden;
    opacity: 0;
    scale: 0;
  }
}

::-webkit-scrollbar {
  width: 5px;
  background-color: #fff;
}

::-webkit-scrollbar-thumb {
  background-color: #54cbac;
}

@media (min-width: 480px) {
  .categories-options > div img {
    width: 4vw;
  }

  .photo-container {
    height: 550px;
  }

  .user-info {
    width: 55%;
  }

  .user-name {
    font-size: 1.1rem;
  }

  .location {
    font-size: 0.9rem;
  }

  .likes-amount {
    font-size: 1.1rem;
  }
  .created-time p {
    font-size: 1.1rem;
  }
}

@media (min-width: 768px) {
  header {
    padding: 0 15px;
  }

  .title {
    display: flex;
    align-items: center;
  }

  .photo-container {
    width: 48%;
  }

  .user-name {
    font-size: 1.08rem;
  }

  .user-info {
    width: 58%;
  }

  .photo-info {
    width: 40%;
    justify-content: space-evenly;
  }
}

@media (min-width: 992px) {
  .categories-options > div img {
    width: 2vw;
  }
  .notification img {
    height: 45%;
  }
  .avatar img {
    height: 85%;
  }
  #search {
    width: 40%;
  }
  .photo-container {
    width: 32%;
    height: 550px;
  }

  .photo-info {
    justify-content: space-evenly;
  }
}

@media (min-width: 1024px) {
  .user-name {
    font-size: 1.2rem;
  }

  .photo-info img {
    height: 40%;
  }

  .likes-amount,
  .created-time p {
    font-size: 1rem;
  }
}

@media (min-width: 1480px) {
  .container {
    width: 1440px;
    margin: 0 auto;
  }
}
