* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Nunito Sans", sans-serif;
}
html,
body {
  margin: 0;
  padding: 0;
}
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: white;
}
a {
  text-decoration-line: none;
  color: inherit;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 50px;
  box-shadow: 0px 0px 4px 1px black;
}
.left h1 {
  font-weight: 800;
}

.right {
  border: 2px solid black;
  padding: 9px 0;
  border-radius: 20px;
  height: 40px;
  width: 90px;
  text-align: center;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.right:hover {
  background-color: black;
  color: aliceblue;
}

.right p {
  font-weight: 800;
  font-size: 12px;
}
.all-cards {
  margin: 50px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
}
.card-container {
  width: 20vw;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px 0px rgba(0, 0, 0, 0.2);
  margin-bottom: 60px;
  padding-bottom: 80px;
  transition: all 0.3s ease-in-out;
}

.card-container:hover {
  transform: scale(1.04);
}
.text-area {
  display: flex;
  flex-direction: column;
  padding-left: 20px;
  padding-top: 20px;
  gap: 2px;
}
.card-container img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
}

.text-area h3 {
  padding-bottom: 20px;
  font-size: 28px;
}
.text-area p b {
  font-size: 22px;
  font-weight: 700;
}

.text-area p {
  font-size: 22px;
}

.search{
  display: flex;
  align-items: center;
  background-color: white;
  height: 60px;
  width: 400px;
  box-shadow:0 2px 4px 0px rgba(0, 0, 0, 0.5); ;
  padding: 20px;
  border-radius: 5px;
  margin-top: 30px;
  margin-left: 85px;
}
.search img{
  width: 30px;
  height: 30px;
}

.search input{
  border: none;
  margin: 10px;
  width: 100%;
  font-family: inherit;
  font-size: 20px;
}

.search input:focus {
  border: none; 
  outline: none; 
}

.upper-section{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sort-tag{
  background-color: white;
  height: 60px;
  width: 400px;
  box-shadow:0 2px 4px 0px rgba(0, 0, 0, 0.5); ;
  padding: 0 20px;
  border-radius: 5px;
  margin-top: 30px;
  margin-right: 85px;
  border: none;
  font-family: "Nunito Sans", sans-serif;
  font-size: 15px;
}
.sort-tag:focus{
  border: none;
  outline: none;
}

.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

.dark-mode header {
  background-color: #1a1a1a;
}

.dark-mode .nav-container {
  box-shadow: 0px 0px 4px 1px #ffffff;
}

.dark-mode .right {
  border: 2px solid #ffffff;
}

.dark-mode .right:hover {
  background-color: #ffffff;
  color: #121212;
}

.dark-mode .card-container {
  box-shadow: 0 2px 4px 0px rgba(255, 255, 255, 0.2);
}

.dark-mode .search,
.dark-mode .sort-tag {
  background-color: #1a1a1a;
  color: #ffffff;
  box-shadow: 0 2px 4px 0px rgba(255, 255, 255, 0.5);
}

.dark-mode input {
  background-color: #1a1a1a;
  color: white;
}

.dark-mode input::placeholder {
  color: lightgray;
}

.dark-mode input:focus {
  border: none;
  outline: none;
}