@import url('https://fonts.googleapis.com/css2?family=Arima:wght@100&family=Poppins&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@500;700;800&display=swap');
*{
  margin: 0px 0px 0px 0px ;
  padding: 0px 0px 0px 0px ;
  box-sizing: border-box;
}
:root {
  --blue: #b3c6ff;
  --white: #ffffff;
  --yellow: #fcde67;
  --black: linear-gradient(to top left, #182026, #2c3a36);
}
body{
  font-family: 'Hanken Grotesk', sans-serif;
  background-color: var(--white);
}
h1{
  text-align: center;
  /* color: #003e5c; */
  color: rgb(182, 100, 100);
  font-size: 35px;
  position: relative;
  padding-bottom: 50px;
  text-shadow: 2px 2px rgb(0, 0, 0);
}
#c-link{
  display: none;
}
.welcome{
  background-color: #011926;
}
header{
  display: flex;
  justify-content: space-between;
  padding: 10px;
  height: 100px;
}
header .logo a{
  text-decoration: none;
  font-size: 30px;
  position: relative;
  top: 8px;
  color: white;
  text-shadow: 2px 2px black;
}
header img{
  width: 50px;
  height: 50px;
  align-items: center;
  text-align: center;
}
header span{
  background: #ff0066;
  color: white;
  padding: 5px;
  text-align: center;
  display: inline;
  width: 50px;
  height: 50px;
  border-radius: 100px;
}
.overlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0, 0.9);
  overflow-x: hidden;
  transition: 0.5s;
}

.overlay-content {
  position: relative;
  top: 25%;
  width: 100%;
  margin-top: 30px;
}

.overlay a {
  padding: 8px;
  text-decoration: none;
  font-size: 20px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
  color: #f1f1f1;
}

.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
}

@media screen and (max-height: 450px) {
  .overlay a {font-size: 20px}
  .overlay .closebtn {
  font-size: 40px;
  top: 15px;
  right: 35px;
  }
}
main{
  width: 99%;
  padding: 10px;
  border-radius: 20px;
  margin: auto;
  position: relative;
  top: -50px;
  padding-bottom: 5px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  /* box-shadow: 1px 0px 5px 2px rgba(0,0,0, 0.1); */
}
main img{
  width: 50%;
  cursor: pointer;
}
.card{
  width: 100%;
/*  padding: 10px;*/
  min-height: 300px;
  padding-top: 20px;
  margin: auto;
  /*box-shadow: 1px 0px 5px 2px rgba(0,0,0, 0.5);*/
}
.view-box{
  height: 40px;
  top: 30px;
  margin:0 auto;
  width: 90%;
  border:1px solid #dcdcdc;
  box-shadow: 0px 0px 5px 2px rgba(0,0,0, 0.5);
}
.view-box:hover{
  box-shadow: 1px 1px 8px 1px rgba(0,0,0, 0.8);
}
.view-box input{
  width: 90%;
  height: 40px;
  padding: 20px;
  border:none;
  font-size:16px;
  outline: none;
  background: white;
  color: black;
}
.view-box input::placeholder {
  color: black;
  opacity: 1;
}

#close-icon{
  position: absolute;
  right: 18%;
  top: 20%;
  line-height: 35px;
  font-weight: 700;
  width:20px;
  height:20px;
  display: none;
  border: none;
  background: none;
  font-size: 15px;
  cursor: pointer;
}


.view-box form span{
  display: flex;
}
.view-box .search{
  right: -1px;
  position: absolute;
  top: -1px;
  color: #000;
  height: 41px;
  width: 15%;
  border: none;
  cursor: pointer;
  padding: 5px;
  text-align: center;
  background: #05386b;
}
.view-box .search img{
  position: absolute;
  left: 0;
  right: 0;
  top: 20%;
  margin: auto;
  width: 25px;
  height: 25px;
}
.w-m{
  text-align: center;
  /* background: var(--black); */
  box-shadow: 0px 0px 5px 2px rgba(0,0,0, 0.5);
  width: 50%;
  position: relative;
  color: #003e5c;
  min-height: 100px;
  margin: auto;
}
.w-m h3{
  /* background: #666699; */
  padding: 5px;
/*  display: flex;*/
  text-align: center;
  justify-content: center;
}
.w-m h3 span{
  padding-left: 5px;
  text-align: center;
}
#meaning{
  font-size: 18px;
  font-weight: 500;
}
#speech{
  display: none;
  text-align: center;
}
#speech img{
  width: 10%;
}
.w-m #speech .fa{
  font-size: 30px;
  cursor: pointer;
/*  animation: blinker 1s linear infinite;*/
}

#pop-up{
  width: 100%;
  left: 0;
  right: 0;
  top: -35%;
  position: absolute;
  height: 100vh;
  margin-left: auto; 
  margin-right: auto; 
  box-shadow: 1px 0px 5px 2px rgba(0,0,0, 0.5);
  display: none;
  background-color: rgba(0,0,0, 0.9);
  transition: 0.5s;
  z-index: 1;
}
#pop-up img{
  width: 20px;
  height: 20px;
}
#pop-up #forhistory, #pop-up #forfav{
  width: 50%;
  position: absolute;
  left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
/*    backdrop-filter: blur(5px);*/
  min-height: 200px;
  margin: auto; 
  padding: 10px;
  background: white;
}
#pop-up h4{
  padding-left: 5px;
}
#pop-up span{
  float: right;
  width: 30px;
  height: 30px;
  padding: 5px;
  text-align: center;
  cursor: pointer;
}
#pop-up #favorite-view, #pop-up #history-view{
  padding: 10px;
}
#forFav, #forhistory, #socialShare{
  display: none;
}
#pop-up li{
  list-style-type: none;
  counter-increment: step-counter;
  padding: 5px;
  cursor: pointer;
}
#pop-up li::before {
  content: counter(step-counter);
  margin-right: 5px;
  font-size: 80%;
  background-color: black;
  color: white;
  font-weight: bold;
  padding: 3px;
  border-radius: 100px;
}
#pop-up li:nth-child(odd) {
  background: #00bfff;
}
#pop-up li:nth-child(even) {
  background: #4dd2ff;
}


/*extra section*/
.extra-sec-row{
  display: flex;
  flex-wrap: wrap;
  margin: auto;
  position: relative;
  top: -60px;
}
.extra-sec-col{
  flex: 20%;
  padding: 20px;
  box-shadow: 1px 0px 5px 2px rgba(0,0,0, 0.8);
  margin: 3px;
  text-align: center;
  padding: 5px;
  cursor: pointer;
}
.extra-sec-col img{
  width: 50px;
}

@media screen and (max-width: 400px) {
  .view-box input{
    width: 100%;
  }
  .extra-sec-col{
    flex: 40%;
  }
  .extra-sec-col h4{
    font-size: 15px;
  }
  #pop-up #forhistory, #pop-up #forfav{
    width: 100%;
  }
}
@media screen and (max-width: 900px) and (min-width: 401px){
  .extra-sec-row{
    width: 50%;
    margin: auto;
  }
  .extra-sec-col{
    flex: 40%;
  }
}

.autocomplete {
  position: relative;
  display: inline-block;
}

.autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  /*position the autocomplete items to be the same width as the container:*/
  top: 100%;
  left: 0;
  right: 0;
  max-height: 150px;
  overflow: auto;
}

.autocomplete-items div {
  padding: 10px;
  cursor: pointer; 
  border-bottom: 1px solid #d4d4d4;
  background: #e6e6ff; 
}

/*when hovering an item:*/
.autocomplete-items div:hover {
  background-color: #e9e9e9; 
}

/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
  background-color: DodgerBlue !important; 
  color: #ffffff;
}
footer{
  text-align: center;
}
footer a{
  text-decoration: none;
  position: relative;
  top: -3px;
}
footer img{
  width: 18px;
}

/*mobile screen*/

@media (max-width: 600px) {
  .w-m{
    width: 100%;
  }
}