/* 메인페이지 */

body::-webkit-scrollbar {
  background-color: #d6d6d6;
  width: 10px;
}
body::-webkit-scrollbar-thumb {
  background-color: #9247EE;
  border-radius: 50px;
}

/* 배너 영역 */
.bannerArt {
  width: 100%;
  height: 550px;
}

.bannerM {
  display: none;
}

/* 슬라이드 영역 */
.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.slides {
  display: flex;
  transition:  transform 0.5s ease;
}
.slide {
  width: 100%;
  height: 550px;
  flex-shrink: 0;
}
.slide img {
  width: 100%;
  height: 100%;
}

/* 슬라이드 버튼 영역 */
.slideBtns {
  position: absolute;
  z-index: 9;
  right: 10%;
  bottom: 5%;
  display: flex;
  padding: 0 8px;
  height: 32px;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  gap: 5px;
  align-items: center;
}
.slideBtns button {
  border: none;
  cursor: pointer;
  background: none;
  width: 15px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slideBtns button > i {
  color: #707070;
  font-weight: 600;
}


.slideList {
  display: flex;
  align-items: center;
  gap: 5px;
}

.slideBtnBox {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  cursor: default;
  color: #414141;
  font-weight: 500;
}
.slideNowTxt {
  color: var(--mainColor);
  font-weight: 600;
}

/* 검색바 */
.searchArt {
  width: 100%;
  height: 170px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.searchForm {
  width: 60%;
}

.searchBox {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  border:4px solid transparent ;
  border-radius:10px;
  background-image:linear-gradient(#fff, #fff), linear-gradient(to right ,#26A6D5, #7426D5);
  background-origin:border-box; 
  background-clip:padding-box, border-box;
  border-radius: 50px;
}
.searchBox > input {
  width: 94%;
  height: 50px;
  border: none;
  border-radius: 50px 0 0 50px;
  padding: 0 0 0 25px;
  font-size: 15px;
  font-family: 'Pretendard';
}
.searchBox > input:focus {
  outline: none;
}
.searchBtn {
  width: 5%;
  height: 60px;
  background: none;
  border: none;
}
.searchBtn > i {
  color: var(--mainColor);
  cursor: pointer;
  font-size: 30px;
}

/* 메뉴 바로가기 영역 */
.menuArt {
  width: 100%;
  padding: 60px 0 100px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menuDiv {
  width: max-content;
  display: flex;
  margin: 0 auto;
  gap: 30px;
}

.menuBox {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.artTit {
  text-align: center;
  font-size: 21px;
  color: var(--titColor);
  font-weight: 700;
}

.menus {
  width: 400px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-radius: var(--borderRadius);
}
.menus > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
  color: var(--titColor);
}

.menuIcon {
  width: 180px;
  height: 180px;
}
.menuIcon > img {
  width: 100%;
  height: 100%;
}

/* 색상 지정 */
.menuDiv > div:first-child > .menus {
  background-color: #E1F9FF;
}
.menuDiv > div:nth-child(2) > .menus {
  background-color: #E1FFE1;
}
.menuDiv > div:nth-child(3) > .menus {
  background-color: #FFF9E1;
}

.menuTxt {
  font-size: 17px;
  line-height: 27px;
  font-weight: 400;
}
.menuSubTxt {
  font-size: 15px;
  border-bottom: 1px solid var(--titColor);
  font-weight: 700;
}

/* 게임 바로가기 영역 */
.gameArt {
  width: 100%;
  padding: 100px 0;
  background-color: #EFFFF6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10% 0;
}

.gameDiv {
  width: 75%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 상단 타이틀 & 메뉴 */
.gameTop {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gameTopTit {
  display: flex;
  flex-direction: column;
  gap: 15px;
} 
.gameSubTixt {
  font-size: 17px;
}
.gameTopTit .artTit {
  text-align: left;
  font-size: 32px;
  line-height: 42px;
  font-weight: 700;
}

.gameIcon {
  width: 200px;
  height: 200px;
}
.gameIcon > img {
  width: 100%;
  height: 100%;
}

/* 게임 메뉴 */
.gameMenus {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gameMenus > li {
  background-color: var(--subColor);
  padding: 5px 18px;
  font-size: 15px;
  border-radius: 50px;
  color: var(--mainColor);
  cursor: pointer;
}
.gameMenus > li.on {
  background-color: #7426D5;
  color: var(--whiteColor);
}

/* 게임 리스트 영역 */
.gameContent {
  width: 100%;
  height: 380px;
  display: flex;
}

.gameTap {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  justify-content: space-between;
}

.gameTap.on {
  display: flex;
}

/* 게임 항목 슬라이드 */
.gameListBox {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gameSlideBtns {
  width: 4%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.backBtn {
  padding: 0 2px 0 0;
}
.nextBtn {
  padding: 0 0 0 2px;
}


.gameSlide {
  flex: 1;
  overflow: hidden;
}

.games {
  display: flex;
  height: 100%;
  transition:  transform 0.5s;
  gap: 20px;
}

.gameBox {
  width: 350px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
}

.gameBox:hover > .gameNameTit {
  color: var(--mainColor);
}

.gameImg {
  width: 100%;
  height: 200px;
  border-radius: 10px;
}
.gameImg > img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.gameNameTit {
  font-size: 19px;
  color: var(--titColor);
  font-weight: 700;
}
.gameTxt {
  font-size: 15px;
  color: var(--txtColor);
  line-height: 21px;
  word-break: keep-all;
  font-weight: 500;
  width: 100%;
  max-height: 50px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.gameSlideBtns > button {
  width: 40px;
  height: 40px;
  background-color: rgba(243, 233, 255, 0.7);
  border: 2px solid var(--whiteColor);
  border-radius: 80px;
  cursor: pointer;
}
.gameSlideBtns > button > i {
  color: var(--mainColor);
  font-weight: 700;
  font-size: 16px;
}

.gameSlideBtns button:active{/**버튼을 클릭하는 동안 색을 바꾼다.**/
  background:var(--subColor);
}
.gameSlideBtns button:disabled{/**버튼 속성이 disabled되면 색을 바꾼다.**/
  background: #eee;
  border: 2px solid #eee;
}

/* 더 알아보기 버튼 */
.gameMoreBtn {
  width: 140px;
  height: 40px;
  border-radius: 50px;
  background-color: var(--whiteColor);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--subColor);
  gap: 8px;
  color: var(--mainColor);
  font-weight: 700;
  font-size: 15px;
}
.gameMoreBtn > span {
  font-size: 15px;
}
.gameMoreBtn > i {
  font-size: 18px;
}
.gameMoreBtn:hover {
  background-color: var(--subColor);
  transition: 0.2s;
}




/* 공지사항 영역 */
.noticeArt {
  width: 100%;
  padding: 50px 0 150px 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--whiteColor);
  gap: 40px;
}
.noticeTopTit {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}
.noticeSubTit {
  font-size: 17px;
  color: var(--txt9Color);
}

.noticeTopTit .artTit {
  font-size: 32px;
}

.noticeMoreBtn {
  width: 140px;
  height: 40px;
  border-radius: 50px;
  background-color: var(--whiteColor);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--subColor);
  gap: 8px;
  font-weight: 700;
  color: var(--mainColor);
  font-size: 15px;
}

.noticeMoreBtn:hover {
  background-color: var(--subColor);
  transition: 0.2s;
}

.noticeListBox {
  width: 60%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.noticeList {
  background-color: var(--borderBack);
  padding: 20px 35px;
  display: flex;
  justify-content: space-between;
  border-radius: 50px;
}

.noticeList:hover {
  background-color: var(--anColor);
}

.noticeListTit {
  width: 85%;
  text-align: left;
  font-size: 15px;
  color: var(--txtColor);
  max-height: 50px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  font-weight: 500;
}

.noticeListDay {
  width: 10%;
  color: var(--txt6Color);
  font-size: 15px;
  text-align: right;
}

/* 테스트 운영 팝업 */
.popup_back {
  position: fixed;
  width: 100%;
  height: 100vh;
  z-index: 999;
  padding: 1%;
  display: none;
}

.popup_box {
  width: 20%;
  height: fit-content;
  max-width: 350px;
  min-width: 350px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
  background-color: var(--whiteColor);
}

.popup_Inner {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  font-size: 15px;
  color: var(--titColor);
  font-weight: 500;
}

.popup_bottom {
  display: flex;
  align-items: center;
  height: 40px;
  gap: 1px;
}
.popup_bottom > div {
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background-color: var(--txtColor);
  color: var(--whiteColor);
  cursor: pointer;
}

.popup_bottom > div label {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.today_none_box input[type=checkbox] {
  display: none;
}

/* 반응형 */
@media screen and (max-width: 1440px) {

  /* 배너 영역 */
  .bannerArt {
    height: 450px;
  }
  .slide {
    height: 450px;
  }
  .slideBtns {
    height: 30px;
  }
  .slideBtns button {
    width: 15px;
    height: 15px;
  }
  .slideBtnBox {
    font-size: 12px;
  }

  /* 메뉴 바로가기 영역 */
  .menus {
    width: 350px;
    height: 350px;
  }

  /* 게임 바로가기 영역 */
  .gameDiv {
    width: 90%;
  }

}

@media screen and (max-width: 1300px) {
  .bannerArt {
    height: 400px;
  }

  .slide {
    height: 400px;
  }

  /* 검색창 */
  .searchArt {
    height: 150px;
  }

  .searchBox {
    height: 50px;
  }
  .searchBox > input {
    height: 40px;
    font-size: 15px;
  }
  .searchBtn {
    height: 50px;
  }
  .searchBtn > i {
    font-size: 25px;
  }

  /* 메뉴 바로가기 */
  .menuArt {
    padding: 40px 0 60px 0;
  }

  .artTit {
    font-size: 19px;
  }
  .menuDiv {
    gap: 20px;
  }
  .menus {
    width: 320px;
    height: 320px;
  }
  .menus > div {
    gap: 12px;
  }
  .menuIcon {
    width: 120px;
    height: 120px;
  }
  .menuTxt {
    font-size: 15px;
    line-height: 25px;
  }
  .menuSubTxt {
    font-size: 13px;
  }

  /* 게임 콘텐츠 영역 */
  .gameArt {
    padding: 50px 0;
    margin: 0 0 15% 0;
  }
  .gameSubTixt {
    font-size: 15px;
  }
  .gameTopTit .artTit {
    font-size: 26px;
    line-height: 35px;
  }

  .gameMenus > li {
    font-size: 14px;
    padding: 6px 18px;
  }
  .gameIcon {
    width: 180px;
    height: 180px;
  }
  .gameDiv {
    gap: 20px;
  }

  .gameBox {
    width: 330px;
  }

  /* 공지사항 영역 */
  .noticeListBox {
    width: 75%;
  }

}

@media screen and (max-width: 1200px) {
  .bannerArt {
    height: 360px;
  }
  .slide {
    height: 360px;
  }

  .menus {
    width: 300px;
    height: 300px;
  }

  .noticeSubTit {
    font-size: 15px;
  }
  .noticeTopTit .artTit {
    font-size: 26px;
  }
  .noticeTopTit {
    gap: 10px;
  }

  .gameMoreBtn {
    width: 130px;
    height: 35px;
  }
  .gameMoreBtn > span {
    font-size: 14px;
  }

  .noticeMoreBtn {
    width: 130px;
    height: 35px;
    font-size: 14px;
  }

}

@media screen and (max-width: 1000px) { 
  .bannerArt {
    height: 600px;
  }
  .bannerPC {
    display: none;
  }
  .bannerM {
    display: block;
  }

  .slide {
    height: 600px;
  }

  /* 메뉴 바로가기 영역 */
  .menus {
    width: 280px;
    height: 280px;
  }
  .artTit {
    font-size: 17px;
  }
  .menus > div {
    gap: 10px
  }
  .menuIcon {
    width: 100px;
    height: 100px;
  }

  /* 게임 바로가기 영역 */
  .gameDiv {
    width: 80%;
    gap: 30px;
  }

  .gameListBox {
    height: auto;
  }
  .gameSlideBtns {
    display: none;
  }
  .games {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .gameContent {
    height: auto;
  }
  .gameTap {
    gap: 40px;
  }

  .gameTopTit {
    gap: 10px;
  }

  .gameSubTixt {
    font-size: 14px;
  }

  .gameTopTit .artTit {
    font-size: 22px;
    line-height: 30px;
  }

  .gameIcon {
    width: 140px;
    height: 140px;
  }

  .gameNameTit {
    font-size: 17px;
  }
  .gameTxt {
    font-size: 13px;
  }

  .noticeSubTit {
    font-size: 13px;
  }
  .noticeTopTit .artTit {
    font-size: 22px;
  }

}

@media screen and (max-width: 900px) {  
  .searchArt {
    height: 140px;
  }
  .searchForm {
    width: 80%;
  }

  .menuArt {
    padding: 20px 0 40px 0;
  }

  .menuDiv {
    width: 80%;
    flex-direction: column;
  }

  .menus {
    width: 100%;
  }

  .gameBox {
    width: 300px;
  }
}

@media screen and (max-width: 800px) {  
  .searchBtn {
    width: 50px;
  }

  .games {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 30px;
  }
  .gameBox {
    width: 400px;
  }
  .gameImg {
    height: 240px;
  }

  .noticeListBox {
    width: 80%;
  }
  .noticeListTit {
    font-size: 14px;
  }
  .noticeListDay {
    font-size: 13px;
  }
}

@media screen and (max-width: 600px) { 
  .bannerArt {
    height: 450px;
  }

  .slide {
    height: 450px;
  }

  .searchArt {
    height: 100px;
  }
  .searchBox {
    height: 40px;
  }
  .searchBox > input {
    height: 30px;
    font-size: 13px;
    padding: 0 0 0 12px;
  }

  .searchBtn {
    width: 55px;
    height: 25px;
  }

  .gameMenus > li {
    font-size: 13px;
  }
  .gameIcon {
    width: 120px;
    height: 120px;
  }
  .gameBox {
    width: 100%;
  }
  .gameImg {
    height: 260px;
  }

  .noticeArt {
    padding: 20px 0 50px 0;
  }
  .noticeList {
    padding: 15px 20px
  }
  .noticeListTit {
    width: 70%;
  }
  .noticeListDay {
    width: fit-content;
  }

  .menuTxt {
    font-size: 13px;
    line-height: 22px;
  }

}

@media screen and (max-width: 500px) { 
  .bannerArt {
    height: 250px;
  }

  .slide {
    height: 250px;
  }
  .slideBtns {
    height: 28px;
    right: 5%;
    bottom: 8%;
  }

  .menuSubTxt {
    display: none;
  }

  .gameSubTixt {
    font-size: 13px;
  }
  .gameTopTit .artTit {
    font-size: 19px;
    line-height: 30px;
    text-align: center;
  }
  .gameIcon {
    display: none;
  }
  .gameTop {
    justify-content: center;
    text-align: center;
  }

  .gameImg {
    height: 180px;
  }
  .gameMoreBtn {
    width: 110px;
    height: 32px;
    gap: 5px;
  }
  .gameMoreBtn > span {
    font-size: 13px;
  }
  .noticeMoreBtn {
    width: 110px;
    height: 32px;
    font-size: 13px;
  }

  .noticeSubTit {
    font-size: 13px;
  }
  .noticeTopTit .artTit {
    font-size: 19px;
  }

  .popup_back {
    padding: 2%;
  }
  
  .popup_box {
    width: 80%;
    margin: 0 auto;
  }
}