/* Shared layout */
.games-header,
.product-list {
  max-width: 1600px;
  width: var(--large-screen-width);
  margin: var(--centering);
}

.games-main h1 {
  font-size: 2em;
}

/* Filters */
.games-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
}

.filters {
  display: flex;
  gap: 20px;
}

.filters-styling {
  font-family: "alexandria", Helvetica, sans-serif, arial;
  appearance: none;
  background-color: var(--pink);
  background-image: url(../assets/images/down.svg);
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  color: white;
  padding: 8px 10px;
  border-radius: var(--border-radius-big);
  width: 140px;
}

/* Products */
.product-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-gap: 2em;
}

.products {
  display: grid;
  grid-template-areas:
    "cover cover"
    "header header"
    "price button";
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px;
}

.products img {
  border-radius: var(--border-radius-big);
  width: var(--scalable-width);
  object-fit: cover;
  margin-top: 30px;
  margin-bottom: 10px;
}

.products h2 {
  grid-area: header;
  font-size: 20px;
  margin-bottom: 10px;
}

.products p {
  grid-area: price;
  font-size: 20px;
}

.game-cover {
  grid-area: cover;
}

.small-button {
  font-size: 14px;
  padding: 10px 20px;
}

/* specific games page*/
.specififc-game-main {
  display: flex;
  gap: 40px;
  margin: var(--centering);
  margin-top: 150px;
  margin-bottom: 100px;
  height: 630px;
}

/* thumbnail section */
fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

legend {
  display: none;
}

.thumbnail-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.thumbnail {
  width: 120px;
  height: 125px;
  object-fit: cover;
  border-radius: var(--border-radius-small);
  cursor: pointer;
  opacity: 0.5; /* 50% opacity */
  transition: opacity 0.3s ease-in-out; /* smooth transition over 0.3 seconds */
}

.thumbnail:hover {
  opacity: 1; /* full opacity when hovered */
}

/* slideshow section */
.slideshow-section {
  position: relative;
  max-width: 600px;
  height: 630px;
  overflow: hidden;
}

.slideshow {
  display: none;
}

.slides {
  width: 600px;
  height: 630px;
  object-fit: cover;
  border-radius: var(--border-radius-big);
}

/* show the slide when the correct radio button is checked */
#radio1:checked ~ .first,
#radio2:checked ~ .slideshow:nth-of-type(2),
#radio3:checked ~ .slideshow:nth-of-type(3) {
  display: block;
}

input[type="radio"] {
  display: none;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  color: rgb(225, 225, 225, 0.8);
  font-size: 35px;
  cursor: pointer;
  user-select: none;
  display: none;
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

.prev:hover,
.next:hover {
  color: var(--dark-pink);
}

/* show/hide arrows based on the checked state */
#radio1:checked ~ .prev1,
#radio2:checked ~ .prev2,
#radio3:checked ~ .prev3 {
  display: block;
}

#radio1:checked ~ .next1,
#radio2:checked ~ .next2,
#radio3:checked ~ .next3 {
  display: block;
}

/* text section */
.text-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 40px;
}

.text-section h1 {
  font-size: 2.5em;
  font-weight: var(--font-medium);
  max-width: 300px;
  margin-bottom: 5px;
}

.tags-container {
  display: flex;
  gap: 10px;
}

.tags_section {
  display: flex;
  gap: 10px;
}

.tags {
  font-size: 0.7em;
  padding: 2px 7px;
  border-radius: var(--border-radius-medium);
}

.rating {
  margin-top: 3px;
  font-size: 1.1em;
}

.margin-bottom {
  margin-bottom: 20px;
}

.game-title_paragraph {
  width: 350px;
}

.price-styling {
  font-size: 1.3em;
  font-weight: var(--font-regular);
}
.counter {
  padding: 10px 15px;
  border-radius: var(--border-radius-big);
  display: flex;
  gap: 20px;
  width: fit-content;
  align-items: center;
}

.bold-text-style {
  font-weight: var(--font-regular);
  font-size: 1em;
}

.fa-plus,
.fa-minus {
  font-size: 15px;
  cursor: pointer;
}

.tags,
.counter {
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  border: 0.3px solid rgba(255, 255, 255, 0.3);
}
