#all-games {
  background: #01184e;
  padding: 1rem;
}

#schedule-header {
  padding: 2rem 0;
}

* {
  box-sizing: border-box;
}

.card-wrapper {
  all: unset;
  outline: revert;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  border-radius: 5px;
  display: inline-block;
}

.card-wrapper a {
  color: #ff4c00;
  font-weight: bold;
  text-decoration: underline;
}

.game-graphic {
  width: 100%;
  height: auto;
  transition: all 0.3s ease-in-out;
  z-index: 20;
  display: block;
}

.card-wrapper:hover .game-graphic,
.card-wrapper:focus .game-graphic,
.card-wrapper:active .game-graphic,
.card-wrapper:focus-within .game-graphic {
  filter: blur(2px);
  overflow: hidden;
  transition: all 0.3s ease;
}
.card-wrapper:hover .card-bottom,
.card-wrapper:focus .card-bottom,
.card-wrapper:active .card-bottom,
.card-wrapper:focus-within .card-bottom {
  transform: translate(0%, 0%);
  background-color: RGBA(4, 30, 65, 0.9);
  opacity: 1;
}

.card-top {
  position: relative;
  width: 100%;
  z-index: 1;
}

.card-bottom {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20;
  padding: 0.75em;
  color: #ffffff;
  transform: translate(0%, 100%);
  transition: all 0.8s ease;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  line-height: 1.15;
}

.card-bottom a {
	display: inline-block;
}

.top-text {
  font-size: 25px;
  line-height: 40px;
  font-weight: bold;
}

.bottom-text {
  font-size: 1em;
}

.button {
  position: relative;
  display: block;
  outline: none;
  cursor: pointer;
  border: none;
  border-radius: 3px;
  background-color: #f8961e;
  color: #ffffff;
  padding: 5px 20px;
}

/* --------------------------------------------- */

.games-wrapper {
  background: url(https://cloud.edmontonoilers.com/tickets/single-games/2022/bg-blue.jpg)
    center center/cover no-repeat;
  background: none;
}

.games-header {
  background: url(https://cloud.edmontonoilers.com/tickets/single-games/2022/bg-white.jpg)
    center center/cover no-repeat;
  background: none;
  padding: 0 1em 2.5%;
}

.games-header img {
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
  max-width: 1000px;
  position: relative;
}

/* .games-header:before {
  content: "";
  display: block;
  width: 100%;
  height: 60px;
  max-width: 845px;
  background: url(https://cloud.edmontonoilers.com/tickets/single-games/2022/dots-blue.png?)
    center top no-repeat;
  position: relative;
  margin: auto auto 2em;
  top: 0em;
} */

.games-footer {
  background: url(https://cloud.edmontonoilers.com/tickets/single-games/2022/bg-white.jpg)
    center bottom/cover no-repeat;
  background: none;
}

/* .games-footer:before {
  content: "";
  display: block;
  width: 100%;
  height: 40px;
  max-width: 916px;
  background: url(https://cloud.edmontonoilers.com/tickets/single-games/2022/dots-orange.png?)
    center center no-repeat;
  position: relative;
  margin: auto;
  bottom: 0;
} */

.games-container {
  padding: 0.5em;
  background: rgba(40, 62, 111, 0.55);
  background: none;
}

.games {
  display: flex;
  width: 100%;
  margin: 0 auto;
  flex-direction: column;
  gap: 1em;
}

.game-graphic:hover {
  filter: brightness(1.25);
}

.game-graphic img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200/180;
  object-fit: fill;
}

@media screen and (min-width: 900px) {
  .games {
    /* -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
    -webkit-column-break-after: always;
    -moz-column-break-after: always;
    break-after: always;
    -webkit-column-break-inside: avoid;
    -moz-column-break-inside: avoid;
    break-inside: avoid;
    page-break-inside: avoid; */

    display: grid;
    grid-auto-columns: 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
  }
}

/* Safari Only */
@supports (background: -webkit-named-image(i)) {
  .game-graphic {
    display: block !important;
    margin: 0 0 1rem !important;
    width: 100% !important;
    box-shadow: none !important;
  }
}
