*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
    letter-spacing: normal;
    line-height: 1.6;
}
body{
    background-color: #B2BEB522;
}

header{
  display: flex;
  justify-content: space-between;
  height: 80px;
  align-items: center;
  background-color: #223;
  padding: 10px;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1;
   
}
.nav-show{
	opacity: 0;
}
header > *{
  padding: 5px 4%;
}

header h3{
  font-weight: 900;
  font-size: 1.7rem;
  color: red;
  font-family: "Helvetica";
  position: relative;
}
header .logo span{
  font-family: "Helvetica";
}

header h3::after{
  content: "";
  position: absolute;
  width: 70%;
  height: 4px;
  background-color: green;
  bottom: -1px;
  left: 0;
  right: 0;
  margin-inline: auto;
}

header .logo span{
  color: #f5f5f5;
}


/* .toggle .line-1{
  width: 30px;
}

.toggle .line-2{
  width: 50px;
}

.toggle .line-3{
  width: 70px;
} */



header .menu{
  display: flex;
  gap: 1.5rem;
  background-color: #223;
}


header a{
  border: 1px solid #ddd;
  text-decoration: none;
  padding: 4px 9px;
  border-radius: 5px;
  color: #fff;
}

header a:hover{
  background-color: #00800033;
}

h1{
  text-align: center;
  color: #333;
  display: block;
  width: 95%;
  margin: 50px auto;
}

.queries{
    display: flex;
    justify-content: center;
    margin: 50px 2%;
    align-items: center;
    gap: 2rem;
    color: #333;
}
.queries label{
    font-size: 1.2rem;
    font-weight: bold;
}
.queries input{
    height: 35px;
    font-size: 1.1rem;
    padding: 0 5px;
    border: 2px solid #121212;
    border-radius: 3px;
}
.queries input[type= "number"] {
  width: 80px;
}


.queries button{
    padding: 2px 8px;
    font-size: 1.3rem;
    cursor: pointer;
    outline: none;
    border: none;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
}

.queries button:hover{
  background-color:#222;
}
.queries button[disabled]{
  background-color: gray;
}
#results {
    width: 100%;
    margin: 50px auto;
    color: #121212;
  }

  .card {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 30px;
    background-color: #fff;
    max-width: 75%;
    width: 95%;
    margin: 50px auto;
  }

  .card img {
    margin-bottom: 8px;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
  }

  .card h2 {
    font-size: 24px;
    margin-bottom: 8px;
    white-space: pre-wrap;
    overflow-wrap: break-word;
  }

  .card p {
    margin-bottom: 8px;
    white-space: pre-wrap;
    overflow-wrap: break-word;
  }

  .card pre {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    margin-bottom: 20px;
    font-weight: 400;

  }

  .card a {
    width: max-content;
    color: #f2f2f2;
    text-decoration: none;
    border: 1px solid lightgray;
    padding: 5px;
    border-radius: 5px;
    background-color: #007bff;
    margin-top: 25px;
    margin-bottom: 25px;
  }

 .hamburger {
	display: none;
}

.hamburger div{
	width: 30px;
	height: 3px;
	background: #dbdbdb;
	margin: 5px;
	transition:all 0.3s ease;
}

.toggle .line1{
	transform: rotate(-45deg) translate(-5px,6px);
}

.toggle .line2{
	opacity: 0;
}

.toggle .line3{
	transform: rotate(45deg) translate(-5px,-6px);
}

@keyframes navLinkFade{
	from{
		opacity:0;
		transform: translatex(50px);
	}
	to{
		opacity: 1;
		transform:translatex(0px);
	}
}



.reset-wrapper{
  display: grid;
  place-items: center;
  margin: 30px 0;
}
#reset-button{
  padding: 3px 6px;
  font-size: 1rem;
  border: none;
  background-color: #333;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}




  @media (width <= 873px){
    
    .card{
      max-width: 90%;
      padding: 10px;
    }

    .queries{
      display: block;
      margin: 3px;
    }
    .queries > *{
      margin: 20px;
    }
    .queries input{
      width: 100%;
    }
    .queries input[type= "number"] {
     width: 100%;
}

  }

  @media (width <= 648px){
   

    .toggle{
      display: block;
    }
    .menu{
		position:fixed;
		top: 0px;
		right:0;
		width:50%;
		height: 100vh;
		display:flex;
		flex-direction: column;
		align-items: center;
		justify-content:space-evenly;
		transform:translateX(100%);
		transition: transform 0.5s ease-in;
		z-index: -1;
	}
	.hamburger{
		position:absolute;
		top: 19px;
		right: 3%;
		display: block;
		cursor:pointer;
		z-index: 5;
	}	
	/*
	.hamburger:hover{
	  border: 1px solid #fff;
	  transform: scale(1.1);
	}
	*/
	
	header .menu a{
		opacity:0;
	}
	

.nav-active{
	transform:translatex(0%);
}
    
    
    
    
    
      
   
   
    
  }
