/* dark-voilet -- #2b2d42
light-voilet -- #8d99ae */
/* --border-color: purple;
--border-width: 5px;
--bottom-distance: 0px; */
* {
  margin: 0%;
  padding: 0%;
  box-sizing: border-box;
}

body {
  background-color: #fffff9;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  overflow-x: hidden;
}

.flex {
  display: flex;
  align-items: center;
  gap: var(--gap, 2rem);
}
.sr-only {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: -1px !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

/* view section*/
.view-section {
  position: relative;
  height: 25rem;
  width: 100%;
  background: radial-gradient(circle, transparent, #000),
    url("../media/images/img-51454235-d99a-4cef-8186-c0eec986d25c.png");
  background-size: cover;
  background-repeat: no-repeat;
}

/* filter section */
.filter-section {
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  /* background-color: lightgray; */
  height: 5rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
/* Dropdown Button */
.dropbtn {
  background-color: transparent;
  color: #000;
  height: 100%;
  width: 100%;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transform: translateX(-50%);
  left: 50%;
  position: absolute;
}
.dropbtn {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* Dropdown button on hover & focus */
.dropbtn:hover,
.dropbtn:focus {
  color: #fff;
  background-color: #000;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
  height: 50%;
  width: 25%;
  border: 2px solid #000;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  min-width: 100%;
  background-color: #f1f1f1;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  transform: translateX(-50%);
  top: 115%;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {
  display: block;
}

/* Card CSS */
.container {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}
.category-name {
  display: inline-block;
  width: 90%;
  margin: 2rem auto 0 auto;
  text-transform: uppercase;
}
.category-name::after {
  display: block;
  content: "";
  /* width: 6%; */
  border-bottom: solid 4px #000;
  transform: scaleX(1);
}
.card {
  padding: 0.5rem;
  margin: 1rem auto;
  border-bottom: 2px solid #000;
}
.card-img {
  position: relative;
  width: 100%;
  height: 21.25em;
  /* border: 1px solid #000; */
  background: linear-gradient(to top, #000, transparent),
    url("../media/images/rnd_test.png");
  background-size: cover;
}
.card-img > h3 {
  position: absolute;
  bottom: 0;
  padding: 1rem;
  font-size: 36px;
  color: #fff;
}
.card-text {
  margin: 1rem auto;
}
.line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.body-text {
  overflow: hidden;
}
.upload-date > h5 {
  margin: 0.5rem auto;
  letter-spacing: 2px;
}
.title-text {
  margin: 0.5rem auto;
  font-size: 24px;
}
.title-text a {
  display: inline-block; /* the underline expanding effect will only work if the display is inline block on the element you to apply otherwise it will grow all the way to 100%. */
  text-decoration: none;
  color: #000;
}
.detail-view-link {
  margin: 1.5rem auto;
}
.detail-view-link a {
  display: inline-block;
  text-decoration: none;
  border-radius: 0.25rem;
  color: #000;
  font-weight: 700;
}
.detail-view-link a:hover {
  color: #af7903;
}
a:after {
  display: block;
  content: "";
  /* width: 6%; */
  border-bottom: solid 2px #af7903;
  transform: scaleX(0);
  transition: transform 250ms ease-in-out;
}
a:hover:after {
  transform: scaleX(1);
}
.detail-view-link a span {
  margin: auto 0 auto 0.25rem;
  padding: 0.2rem auto;
}
@media (min-width: 35em) {
  .content {
    display: flex;
    flex-grow: 0;
  }
  .filter-section {
    flex-direction: row-reverse;
  }
  .dropdown {
    width: 10%;
  }
  .expanded {
    display: block;
    transform: translateX(0%);
  }
}
@media (max-width: 52em) and (min-width: 34em) {
  .card {
    margin: 1rem 1rem;
  }
  .content{
    display: flex;
    position: relative;
    flex-flow: row wrap;
    flex-basis: 25%;
  }
  .container{
    flex: 50%;
  }
}
