/* 교육용 게임콘텐츠 소개 */

.gameList {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gameDiv {
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 15px;
  border: 1px solid var(--whiteColor);
}
.gameBox {
  width: 100%;
  display: flex;
  gap: 26px;
  align-items: center;
}
.gameDiv:hover {
  background-color: var(--anColor);
  border: 1px solid var(--subColor);
}

.gameDiv:hover .roundLineBtns {
  background-color: var(--whiteColor);
}

.gameDiv:hover .gameTime {
  background-color: var(--whiteColor);
}

.gameImgs {
  width: 300px;
  height: 180px;
  border-radius: 10px;
}
.gameImgs > img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.gameContents {
  flex: 1;
  height: 180px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 설명 */
.gameInfo {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.gameTxtBox {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gameTit {
  font-size: 19px;
  font-weight: 700;
  color: var(--titColor);
}

.gameCate {
  color: var(--mainColor);
  font-size: 15px;
  font-weight: 400;
  display: flex;
  gap: 10px;
}

.gameTxt {
  font-size: 13px;
  color: var(--txtGColor);
  line-height: 20px;
  width: 100%;
  font-weight: 400;
  word-break: keep-all;
}

/* 버튼 */
.gameBtns {
  display: flex;
  gap: 10px;
}

.gameBtns > .roundLineBtns {
  width: 120px;
}

.gameBtnMore > a:first-child {
  grid-area: startBtn;
  border-radius: 10px;
  width: 130px;
  height: 140px;
  flex-direction: column;
  gap: 10px;
}
.gameBtnMore > a:nth-child(2) {
  grid-area: appBtn;
}
.gameBtnMore > a:nth-child(3) {
  grid-area: pcDownBtn;
}
.gameBtnMore > a:nth-child(4) {
  grid-area: pcStartBtn;
}

.gameBtnMore {
  display: grid;
  grid-template-areas: 
  "startBtn appBtn"
  "startBtn pcDownBtn"
  "startBtn pcStartBtn";
  gap: 10px;
}
.gameBtnMore > a {
  width: 170px;
  text-align: center;
  word-break: keep-all;
}

.gameBtnMore > a.roundBtns {
  border: 1px solid var(--mainColor)
}


.roundLineBtns:hover {
  background-color: var(--subColor) !important;
  color: var(--mainColor);
  border: 1px solid var(--mainColor);
}

.resetPlay {
  border: 1px solid var(--warningColor);
  color: var(--warningColor);
}
.resetPlay:hover {
  border: 1px solid var(--warningColor);
  color: var(--warningColor);
  background-color: hsl(18, 100%, 94%) !important;
}

.appIcons {
  display: flex;
  gap: 5px;
  align-items: center;
}

.appIcons > div {
  width: 20px;
  height: 20px;
}

.gameBtns > a:nth-child(2) {
  border: 1px solid var(--mainColor);
  color: var(--mainColor);
}

.gameBtnMore .roundLineBtns {
  border: 1px solid var(--mainColor);
  color: var(--mainColor);
}

/* 플레이시간 */
.gameTimeBox {
  display: flex;
  align-items: center;
  height: 30px;
  gap: 10px;
  font-size: 13px;
}
.gameTimeBox > span {
  color: var(--titColor);
  font-weight: 500;
}
.gameTime {
  min-height: 30px;
  height: 100%;
  background-color: var(--anColor);
  border: 1px solid var(--subColor);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 13px;
  color: var(--txtColor);
}


/* 반응형 */
@media screen and (max-width: 1500px) {
  .gameBox {
    padding: 15px;
  }

  .roundLineBtns {
    font-size: 13px;
  }

  .gameImgs {
    width: 260px;
    height: 180px;
  }

  .gameTit {
    font-size: 18px;
  }
  .gameTxt {
    font-size: 14px;
    word-break: keep-all;
  }
}

@media screen and (max-width: 1300px) {
  .gameBtns > .roundLineBtns {
    width: 130px;
    font-size: 13px;
  }

  .gameBtnMore > a {
    font-size: 13px;
  }

  .gameImgs {
    width: 200px;
    height: 180px;
  }
  .gameTxtBox {
    gap: 6px;
  }

  .gameCate {
    font-size: 13px;
  }
  .gameTxt {
    width: 85%;
    font-size: 13px;
    line-height: 18px;
  }
}

@media screen and (max-width: 1200px) {
  .gameBtnMore {
    grid-template-areas: 
    "startBtn"
    "appBtn"
    "pcDownBtn"
    "pcStartBtn";
  }
  .gameBtnMore > a:first-child {
    width: 170px;
    height: auto;
    border-radius: 50px;
    flex-direction: row;
    gap: 5px
  }
}

@media screen and (max-width: 1000px) {
  /* PC버튼 숨기기 */
  .mbtnNone {
    display: none;
  }

  .gameBtnMore {
    grid-template-columns: 1fr;
  }
  .gameBtnMore > a {
    font-size: 13px;
  }

}

@media screen and (max-width: 800px) {
  .gameImgs {
    width: 100%;
    height: 360px;
  }
  .gameTimeBox {
    justify-content: center;
  }

  .gameBox {
    flex-direction: column;
    gap: 10px;
  }
  .gameBtnMore {
    grid-template-columns: 1fr;
  }
  .gameContents {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .gameInfo {
    width: 100%;
    height: auto;
    gap: 15px;
  }
  .gameCate {
    justify-content: center;
    align-items: center;
    gap: 6px;
  }
  .gameTxtBox {
    gap: 10px;
  }
  .gameBtns {
    justify-content: center;
  }
  .gameTxt {
    width: 100%;
  }
  .gameBtns > .roundLineBtns {
    font-size: 13px;
  }
}

@media screen and (max-width: 600px) {
  .gameImgs {
    height: 200px;
  }

  .gameTxt {
    width: 100%;
    margin: 0 auto;
    font-size: 13px;
  }

  .gameBtns {
    gap: 6px;
  }
  .gameBtnMore {
    gap: 6px;
  }
  .gameBtns > .roundLineBtns {
    padding: 8px 10px;
  }
  .gameBtnMore > a {
    padding: 8px 15px;
  }
  .gameTxtBox {
    gap: 6px;
  }

  .roundBtns {
    height: 35px !important;
  }
}