@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap");

:root {
  --white: #fff;
  --black: #1c2b2d;
  --blue: #31326f;
  --light-blue: #005490;
  --color-primary: #9d0191;
  --color-sec: #db6400;
  --grey: #eee;
  --dark-grey: #222831;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 10px;
}

body {
  font-family: "Open Sans", sans-serif;
}

p {
  font-size: 1.6rem;
  line-height: 1.5;
}

img {
  width: 100%;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Start Here */
.main {
  height: 200rem;

}

header {
  background-color: var(--dark-grey);
  padding: 1.3rem 0;
  overflow-y: hidden;

}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
}

.search-box {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.fas {
  font-size: 2rem;
  cursor: pointer;
  /* color: var(--color-sec); */
}

.fa-times {
  position: absolute;
  transform: translateY(-200%);
  transition: all .3s;
}

.fa-search {
  transition: all 0.5s;
}

.search {
  position: absolute;
  top: 6rem;
  right: 2rem;
  width: 4.5rem;
  height: 4rem;
  background-color: var(--color-primary);
  padding: 5px 8px;
  border-radius: 5px;
  transform: translateX(200%);
  transition: all 1s ease-in-out;
}

.search input {
  width: 100%;
  height: 100%;
  font-size: 1.6rem;
  padding: 0 5px;
  border: none;
  outline: none;
  border-radius: 5px;
} 

.search .fa-search {
  color: var(--color-primary);
  position: absolute;
  right: 1rem;
  top: 1rem;
}