@import url("../css/fonts.css");
header {
  width: 100%;
  height: 75px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: black;
}
header .logo {
  margin-left: 20px;
}
header .search {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 30px;
  width: 300px;
  background-color: #333;
  padding: 10px;
  border-radius: 50px;
}
header .search input {
  width: 85%;
  align-self: stretch;
  background: none;
  border: none;
  border-bottom: 1px solid #646464;
  color: white;
  font-size: 1.2em;
}
header .search input::-moz-placeholder {
  padding-left: 5px;
}
header .search input::placeholder {
  padding-left: 5px;
}
header .search input:focus {
  outline: none;
}
header .search button {
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #333;
  color: white;
}
header .nav-sidebar {
  display: none;
}
header .nav-fullscreen {
  display: flex;
  justify-content: space-between;
}
header .nav-fullscreen a {
  color: white;
  display: inline-block;
  margin-right: 55px;
  text-decoration: none;
  position: relative;
  font-family: "Montserrat";
}
header .nav-fullscreen a:active {
  color: red;
}
header .nav-fullscreen a::before {
  content: "";
  position: absolute;
  height: 1px;
  bottom: -2px;
  left: 50%;
  width: 0;
  background-color: white;
  transition: left 0.3s ease, width 0.3s ease;
}
header .nav-fullscreen a:hover > figure > img {
  transform: scale(1.2);
  transition: 0.7s;
}
header .nav-fullscreen a:hover::before {
  left: -10%;
  width: 120%;
}
header .nav-fullscreen a:link {
  color: white;
}
header .nav-fullscreen a img {
  margin-left: 8px;
  transform: scale(1);
  transition: transform 0.7s ease-out;
}
header .nav-fullscreen a figcaption {
  text-align: center;
}

@media screen and (max-width: 840px) {
  header .search {
    display: none;
  }
  header .nav-fullscreen {
    display: none;
  }
  header .nav-sidebar {
    display: block;
  }
  header .nav-sidebar .burger-menu {
    margin-right: 2vw;
  }
  header .nav-sidebar .sidebar-content {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: rgba(197, 197, 197, 0.562);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    box-shadow: 5px 5px 3px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }
  header .nav-sidebar .sidebar-content .close {
    padding-right: 100%;
    cursor: pointer;
  }
  header .nav-sidebar .sidebar-content a {
    text-decoration: none;
    margin: 30px 0 0 35px;
    color: #000;
  }
  header .nav-sidebar .sidebar-content a:active {
    color: red;
  }
  header .nav-sidebar .sidebar-content a figure {
    padding: 20px 0;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    transform: scale(1);
    transition: transform 0.4s ease-in-out;
  }
  header .nav-sidebar .sidebar-content a figure img:hover {
    transform: scale(1.4);
    transition: transform 0.4s ease-in-out;
  }
  header .nav-sidebar .sidebar-content a figure figcaption {
    font-size: 1.1rem;
    margin-left: 30px;
    font-family: "Nunito";
  }
}