@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@200;300;400;500;600;700;800&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Mukta', 'Rubik', sans-serif;

}

html {
  font-family: 'Mukta', 'Rubik', sans-serif;
  width: 100%;
  -webkit-text-size-adjust: none;
}

body {
  width: 100%;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  margin: 3% 2%;
  background-color: #de3233;
  border: none;
  border-radius: 4px;
  color: #fff;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #e17055;
}

input {
      font-family: 'Mukta', 'Rubik', sans-serif;
      font-size: 16px;
}

#header {
  text-align: center;
  color: #fff;
  background: #de3233;
  padding: 10px;
  font-weight: bold;
  font-size: 20px;
}

#navigation ul {
  list-style: none;
  text-align: center;
  background: #de3233;
  padding: 10px 0;
}

#navigation ul li {
  margin: 0 10px;
  display: inline-block;
  color: #fff;
}

#navigation ul li a {
  color: inherit;
}

#content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 10px;
}

#content #card,
#results #card {
  flex: 1 1 calc(45% - 20px);
  margin: 10px;
  padding: 15px;
  color: #d63031;
  background: #fff;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

#content #card:hover,
#results #card:hover {
  transform: translateY(-5px);
  background-color: #f9f9f9;
}

#content #card p,
#results #card p {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
}

/* Detail Card Styling */
#content #detail_card {
  margin: 20px auto;
  padding: 20px;
  max-width: 90%; /* Ensure proper sizing on smaller screens */
  background: #fff;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  display: flex;
  flex-direction: column; /* Ensure vertical alignment */
  align-items: center;    /* Center children horizontally */
  justify-content: center; /* Center children vertically if needed */
}

#content #detail_card h2 {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  color: #d63031;
  border-bottom: 3px dashed #eee;
  margin-bottom: 20px;
}

#content #detail_card p {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  color: #d63031;
}

#footer {
  background: #de3233;
  text-align: center;
  color: #fff;
  padding: 10px;
}

/* Responsive Layouts */
@media (max-width: 768px) {
  #content #card,
  #results #card,
  #content #detail_card {
    flex: 1 1 calc(100% - 20px);
    /*margin: 10px 0;*/
  }
  
  #content #card p,
  #results #card p,
  #content #detail_card p {
    font-size: 19px;
  }

  input#search {
    font-size: 16px;
    padding: 10px;
  }

  button {
    font-size: 14px;
    padding: 8px 10px;
  }

  #header, #footer {
    font-size: 18px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  #content #card,
  #results #card,
  #content #detail_card {
    flex: 1 1 calc(100% - 20px);
    /*margin: 10px 0;*/
  }

  #content #card p,
  #results #card p,
  #content #detail_card p {
    font-size: 19px;
  }

  input#search {
    font-size: 14px;
    padding: 8px;
  }

  button {
    font-size: 12px;
    padding: 6px 8px;
  }

  #header, #footer {
    font-size: 16px;
    padding: 8px;
  }
}
