header {
  position: absolute;
  width: 100%;
  z-index: 100;
}

header div a {
  float: left;
  margin: 2rem 8rem;
}

header div a:link, a:visited {
  color: white;
}

header span {
  float: right;
  font-size: 5rem;
  margin: 1.5rem 10%;
  cursor: pointer;
  opacity: 0.8;
  transition: 0.7s;
  color: #fff;
}

header span:hover {
  opacity: 1.0;
  transition: 0.7s;
}


header nav {
  position: absolute;
  width: 0%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  overflow-x: hidden;
  z-index: 1;
  transition: 0.3s;
}

nav :first-child {
  float: right;
  font-size: 2rem;
  text-decoration:none;
  margin: 2rem 10%;
  cursor: pointer;
}

nav a:link:first-child {
  color: white;
}

nav a:not(:first-child) {
  clear: both;
  color: white;
  display: block;
  padding: 1.4rem;
  text-align: center;
  text-decoration:none;
}

nav a:link {
  color: white;
  font-size: 2.5rem;
  transition: 0.6s;
}

nav a:not(:first-child):hover {
  background: #ddd;
  color: black;
}

.search-box,.close-icon,.search-wrapper {
	padding: 10px 20px;
}
.search-wrapper {
  position: absolute;
	width: 400px;
  top: 3.5rem;
  right: 16rem;
}
.search-box {
	width: 100%;
	border: 1px solid #ccc;
  outline: 0;
  border-radius: 15px;
  background: none;
}
.search-box:focus {
	box-shadow: 0 0 15px 1px #fff;
	border: 2px solid #bebede;
}

.search-box:not(:valid) ~ .close-icon {
	display: none;
}

header input::placeholder {
  color: #ddd;
}
