:root {
  --ff-primary: Raleway, 'Open Sans', sans-serif;
  --ff-secondary: Raleway, 'Open Sans', sans-serif;
  --ff-accent: Raleway, 'Open Sans', sans-serif;
}

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--ff-secondary);
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}
html {
  background: rgba(115, 185, 239, 0.6);
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  font-size: clamp(2rem, 5vw + 1rem, 5rem);
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--ff-primary);
  font-size: 1rem;
}

.top-header {
  background: rgba(0, 0, 0, 1);
  color: #fff;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0px;
  width: 100%;
  padding: 10px;
}

a {
  display: inline-block;
  color: rgba(15, 83, 136, 1);
  font-size: 1.2rem;
  -webkit-transition: .6s background;
  transition: .6s background;
  text-decoration: none;
  padding: 4px 8px;
}

a:hover {
  color: rgba(255, 255, 255, 0.6);
  background: rgba(115, 185, 239, 1);
  background: rgba(15, 83, 136, 0.7)
}

.container {
  max-width: 100rem;
  margin-inline: auto;
  padding-inline: 2rem;
}

div {
  background: rgba(115, 185, 239, 0.6);
}

.divider {
  font-weight: 100;
  background: rgba(15, 83, 136, 0.5);
  color: #fff;
  padding: 1rem;
  margin: 0.5rem;
  font-size: 1.2rem;
  line-height: 1.6rem;
}
ul,li {
  list-style: none;
  /* text-transform: uppercase; */
  font-size: 2rem;
  letter-spacing: .1rem;
  font-weight: 400;
  line-height: 2rem;
  text-align: center;

  a {
    font-size: 2rem;
    color: rgba(255, 211, 65, 1);  
  }
}
h1 {
  color: rgba(255, 255, 255, 0.6);
  font-size: 3rem;
  text-transform: uppercase;
  margin-top: 0;
  letter-spacing: .3rem;
}
.title {
  font-weight: 500;
  text-align: center;
}
.sub-title {
  font-weight: 500;
  font-size: 1rem;
  color: rgb(0, 0, 0)
}

.stacked {
  display: grid;
}

.stacked > * {
  grid-column: 1 / 2;
  /* grid-row: 1 / 2; */
}

.product-grid {
  display: grid;
  gap: 0.125rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  /* aspect-ratio: 1 / 1.5; */
  border: 8px solid #222;
  border-color: rgba(255, 255, 255, 0.6);
  margin: 4px;
}

.card__content {
  background: rgba(255, 116, 28, 0.8);
  background-color: rgba(115, 185, 239, 0.6);
  align-self: end;
  position: relative;
  padding: 0.5rem;
  box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 0.1);
}

.card__title {
  font-size: 1.25rem;
  line-height: 1.1;
  color: rgb(0, 0, 0);
  width: 200px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.card__title_featured {
  font-size: 1.25rem;
  line-height: 1.1;
  color: rgb(0, 0, 0);
  overflow: hidden;
}

.card__description {
  line-height: 130%;
  font-size: 1rem;
  line-height: 150%;
  text-align: right;
}

.card__price {
  font-size: 1.75rem;
  font-weight: 500;
  text-align: right;
  color: rgb(255, 255, 255);
}

.card__bid button {
  width: 60px;
    position: absolute;
    bottom: 10px;;
  background: rgba(255, 255, 255, 0.4);
  color: rgb(0, 0, 0);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 500;
  cursor: pointer;
}

.pagination {
  color: rgba(255, 255, 255, 1);
  display: flex;
  position: relative;
  bottom: 1rem;
  justify-content: center;
  margin: 3rem;

  .pagination__item {
    cursor: pointer;
    padding: 0 32px;
    font-size: 1.5rem;
    color: rgba(255, 116, 28, 0.8);
  }
}

.card__img {
  width: 100%;
  aspect-ratio: 1 / 1.25;
  object-fit: cover;
}

@media (min-width: 60em) {
  .card.featured {
    grid-row: span 2;
    grid-column: span 2;
  }

  .card.featured .card__img {
    aspect-ratio: 1 / 1.25;
  }

  .card.featured .card__title {
    font-size: 1.75rem;
  }
}

.main-title {
  font-size: clamp(2rem, 5vw + 1rem, 5rem);
  line-height: 1;
  color: white;
  background: linear-gradient(-45deg, blue, red);
  padding: 0.125em 0.5em;
  margin-bottom: 1em;

  width: fit-content;
}

p.max-content {
  width: max-content;
}

p.min-content {
  width: min-content;
}
