body {
  @media screen and (max-width: 767px) {
    padding: 10px 10px;
  }
}

/* Content styles */

#content {
  width: -webkit-fill-available;
  position: relative;
  padding: 64px;
  background-color: #FFFFFF80;
  border: 1px solid #AF4231;
  border-radius: 16px 0 16px 16px;

  @media screen and (max-width: 767px) {
    border-top-right-radius: 16px;
    padding: 16px;
  }
}

.page-title-container {
  position: relative;
  display: flex;
  width: 100%;
}

.page-title-container > #title {
  @media screen and (min-width: 933px) {
    position: absolute;
    top: -160px;
  }

  @media screen and (min-width: 768px) and (max-width: 932px) {
    position: absolute;
    top: -160px;
    width: 40%;
  }

  @media screen and (max-width: 767px) {
    width: 55%;
  }
}

#content > #entries {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}

/* Cartridge styles */

:root {
  --cartridge-light-color: #a7a9ac;
  --cartridge-medium-color: #939598;
  --cartridge-dark-color: #828487;
}

#content > #entries > a {
  position: relative;

  @media screen and (max-width: 300px) {
    width: 100%;
  }
}

.cartridge {
  width: 250px;
  aspect-ratio: 0.88;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  

  @media screen and (max-width: 300px) {
    width: 100%;
  }
}

.cartridge:hover > .shadow {
  position: absolute;
  z-index: -1;
  bottom: 0;
  box-shadow: 0 4px 20px var(--secondary-color);
  width: 250px;
  aspect-ratio: 0.9;
}

.cartridge > .top-border {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.cartridge > .top-border > .clipped {
  width: 91%;
  aspect-ratio: 17.3;
  background-color: var(--cartridge-light-color);
  border-radius: 3px 3px 0 0;
}

.cartridge > .branding {
  width: 100%;
  aspect-ratio: 5;
  background-color: var(--cartridge-light-color);
  position: relative;
  display: flex;
  justify-content: center;
  border-top-right-radius: 3px;
}

.cartridge > .branding > .lines {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2% 0;
  gap: 3px;
}

.cartridge > .branding > .lines > .line {
  height: 6px;
  width: 100%;
  background-color: var(--cartridge-dark-color);
}

.cartridge > .branding > .game-type {
  background-color: var(--cartridge-medium-color);
  width: 200px;
  aspect-ratio: 3.7;
  border: 4px solid var(--cartridge-light-color);
  border-radius: 30px;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cartridge > .branding > .game-type > p {
  color: var(--cartridge-light-color);
  margin: 0;
  font-family: Gill Sans, Gill Sans MT, Calibri, sans-serif;
  font-style: italic; 
}

.cartridge > .central-area {
  width: 100%;
  aspect-ratio: 1.5;
  background-color: var(--cartridge-light-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

.cartridge > .central-area > .game-image {
  width: 77%;
  aspect-ratio: 1.1;
  background-color: var(--cartridge-medium-color);
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cartridge > .central-area > .game-image > img {
  object-fit: cover;
  padding: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border-radius: 4px;
}

.cartridge > .details {
  position: relative;
  width: 100%;
  aspect-ratio: 7.6;
  background-color: var(--cartridge-light-color);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0 0 3px 3px;
}

.cartridge > .details > .left {
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: var(--cartridge-medium-color);
  width: 2.6%;
  aspect-ratio: 0.04;
}

.cartridge > .details > .right {
  position: absolute;
  right: 0;
  bottom: 0;
  background-color: var(--cartridge-medium-color);
  width: 2.6%;
  aspect-ratio: 0.04;
}

.cartridge > .details > .bottom-arrow {
  border: 20px solid transparent;
  border-top: 20px solid var(--cartridge-medium-color);
  border-bottom: none;
  width: 0;
  height: 0;
}

a > .new-highlight {
  position: absolute;
  z-index: 1;
  left: 8px;
  top: -8px;
}

/* Decoration */

#gameboy {
  position: fixed;
  z-index: -1;
  bottom: 0;
  right: 0;
  width: 400px;
  
  @media screen and (max-width: 767px) {
    width: 40%;
  }
}

#background-img {
  position: fixed;
  z-index: -2;
  height: 100vh;
  mix-blend-mode: soft-light;
  top: -32px;
}