@font-face {
  font-family: "eunice";
  src: url('font/eunice.otf');
}
@font-face {
  font-family: "decomart";
  src: url('font/decomart.ttf');
}

@font-face {
  font-family: "radnes";
  src: url('font/radenes.ttf');
}
@font-face {
  font-family: "gidole";
  src: url('font/gidole.ttf');
}



body{
  margin: 0;
  font-family: sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #2b2424;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: rgb(0, 0, 0);
}

.contaniner{
  background-image: url('images/background.jpg');
  width: 100%;
  height: 100vh;
  padding-left: 8%;
  padding-right: 8%;
  background-size: cover;
  background-position: center;
  box-sizing: border-box;
}

.front-page{
  height: 100vh;
}



/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: rgb(44, 44, 44);
}
.navbar{
  width: 100%;
  padding-top: 2%;
  display: flex;
  align-items :center;
  box-sizing: border-box;

}

.logo-name{
  color: #86C232;
  margin-top: 0;
  margin: 10px;
  font-family:'eunice', Courier, monospace;
  width: 150px;
  cursor: pointer;
  font-size: 27px;
  display: block;
  
}
.menu-icon{
  width: 27px;
  display: block;
  cursor: pointer;
  color: white;
  display: none;
}
nav{
  flex: 1;
  text-align: right;
}
nav ul li{
  list-style: none;
  display: inline-block;
  margin-right: 30px;
}
nav ul li a{
  text-decoration: none;
  color: #86C232;
  font-weight: bold;
  font-family: monospace;
  font-size: 15px;
}

a::after{
  content: '';
  width:0;
  height: 3px;
  background-color: rgb(209, 189, 135);
  display: block;
  transition: .5s ease-in-out;
}

a:hover::after{
  width: 100%;
}


.title{
  flex-basis: 60%;
  position: relative;
  margin-left: 50px;;
}
.row{
  display: flex;
  height: 80vh;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.algo-text{
  color: rgb(255, 253, 253);
  font-size: 80px;
  font-family: "decomart" ;
  margin-top: 53px;
  margin-bottom: 0px;
}
.algo-text2{
  color: rgb(255, 253, 253);
  font-family: "gidole" ;
  padding: 5px;
  border-radius: 4px;
  margin-bottom: 60px;
  transition: background-color 250ms;
}

.algo-text2:hover{
  background-color: #222629;
}

.algo-text3{
  color: #827f85;
  font-family: 'eunice' ;
  font-size: 20px;
  
}
.down-gif{
  
  margin-top: 50px ;
}

.non-body{
  margin-top: 0px;
 
  padding: 5%;
  background: linear-gradient(#221e1e,#353636);
}
.content{
  height: fit-content;
  /* background-color: #7a00f5; */
  margin: 0% 2%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items:center;
  
}

.searching-div
{
  height: fit-content ;
  width: 90%;
  border-radius: 15px;
  padding-bottom: 20px;
  padding-top: 10px;
  background :radial-gradient(#221e1e,#353636) ;
  /* background :radial-gradient(rgb(200,200,220),rgb(150,150,150)) ; */
}
.sorting-div
{
  height: 60vh ;
  width: 80%;
  /* background-color: #46641c; */
}

.search-title{
  height: 50px ;
  width: 100%;
  /* background-color: #e63535; */
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.search-title h2{
  text-align: center;
  color: rgb(240, 248, 255);
  margin: 0;
  font-family: monospace;
  font-size: 25px;
}

.search-content{
  /* background-color: aqua; */
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  place-items: center;
  justify-content: center;
  
}

.algo{
  width:350px;
  height: 200px;
  margin: 10px;
  
  /* background-color: #827f85; */
}

.dfs-algo{
  width:350px;
  height: 200px;
  margin: 10px;
  padding-bottom: 10px;
  background-color: rgb(53, 53, 53); 
  /* background:linear-gradient(rgb(120, 150, 200),#131818); */
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 10px;
  justify-items: center;
  border: rgb(66, 65, 65);
  border-style: solid;
  transition: box-shadow .2s ease-in-out;;
  
}

.dfs-title{
  width: 100%;
  height: fit-content;
  margin: 4% 2% 0% 2%;
  /* background-color: #353636; */
}

.dfs-title h4{
  font-size: 20px;
  margin: 2%;
  color: rgb(255, 229, 191);
  padding-left: 10px;
}

.dfs-content{
  /* background-color: rgb(53, 67, 80); */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-around;
}

.text-content{
  width: 100%;
  height: 100px;
  /* background-color:bisque; */
  
}
.text-content p{
  font-size: 14px;
  text-align: center;
  padding: 10px;
  font-family: monospace;
  word-wrap: break-word;
  color:aliceblue;
}

.button-content{
  width: 100%;
  height: 55px;
  /* background-color:rgb(238, 197, 146); */
  
  display: flex;
  align-items: center;
  justify-content: center;
}

.button-content button{
  width: 80%;
  height: 80%;
  background-color: #141617;
  color: aliceblue;
  font-family: sans-serif;
  border-radius: 4px;
  border-style: solid;
}

.button-content button:hover{
  background-color: #1f2020;
  cursor: pointer;
}

.button-content button:active{
  background-color: #020202;
  box-shadow: 0px 0px 5px 1px rgb(255, 229, 191);
}


ul {
  list-style-type: none;
  margin: 0;
}

ul li{
  border-width: 2px;
  padding: 2px;
  border-radius: 10px;
  margin: 10px 0px 10px 0px ;
}

ul li a{
  color:#86C232;
  text-decoration: none;
  padding: 5px 0 5px 0;
  border-radius: 5px;
}



.dfs-algo:hover{
  box-shadow: 0px 0px 10px 2px rgb(197, 197, 197);
}

.pop-menu{
  /* background-color: #827f85; */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  position: absolute;
  right: 4rem;
  top: 60px;
  text-align: center;
  padding-right: 40px;
  border-radius: 10px;
  transition: height 2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: none;
  height: 0;
  z-index: 1;
}

.pop-menu.open{
  display: block;
  height: auto;
}




/* and (min-width:400) */

@media only screen and (max-width:700px){
  .dfs-algo{
    width:300px;
    height: 160px;
  }
  
  .algo-text{
    font-size: 60px;
  }
  .text-content{
    height: 60px;
  }

  .algo-text2{
    font-size: 20px;
    
  }

  .way-txt{
    display: inline-block;
    width: 100%;
  }

  .algo-text3{
    font-size: 17px;
  }
  .text-content p{
    font-size: 12px;
    margin: 0;

  }
  
  .searching-div{
    width: 100%;
  }
}

@media only screen and (max-width:400px)  {
  .logo-name{
    font-size: 15px;
  }
  nav ul li a{
    font-size: 10px;
  }
  .dfs-algo{
    width:230px;
    height: 200px;
  }
  .search-title h2{
    font-size: 18px ;
  }
  .algo-text{
    font-size: 40px;
  }

  .title{
    margin: 0;
  }

  

  .algo-text2{
    font-size: 10px;
    margin-top: 0;
  }
  .algo-text3{
    font-size: 17px;
  }
  .text-content p{
    font-size: 12px;
  }
  
  /* .button-content{
    margin-top: 10px;
  } */

  .dfs-title h4{
    font-size: 15px;
  }
  .searching-div{
    width: 95%;
  }
  
}

@media only screen and (max-width:550px) {
  .algo-text{
    font-size: 40px;
  }
  .algo-text2{
    font-size: 15px;
    margin-top: 0;
  }

  .menu-icon{
    display: block;
  }
  
  .navbar nav{
    display: none;
  }
  .navbar{
    justify-content: space-between;
  }

  .algo-text3{
    font-size: 15px;
  }
  .searching-div{
    width: 100%;
  }

}