/* 폰트 */
/* 프리텐다드 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");

/* 초기화 코드 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
ul, li {
  list-style: none;
}
a {
  text-decoration: none;
}
body {
  width: 100%;
  font-family: "Pretendard Variable",'Pretendard', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}
body::-webkit-scrollbar {
  display: none;
}

img {
  width: 100%;
}
input {
  outline: none;
  font-family: 'Pretendard';
}
input:focus {
  outline: auto;
}
textarea {
  outline: none;
  resize: none;
  font-family: 'Pretendard';
}
textarea::-webkit-scrollbar {
  background-color: #d6d6d6;
  width: 6px;
}
textarea::-webkit-scrollbar-thumb {
  background-color: #666;
  border-radius: 50px;
}
select {
  outline: none;
  font-family: 'Pretendard';
}

/* 페이지별 전체 영역 */
.frame {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 65px 0 0 0; /* 고정 헤더 높이 */
}

/* 헤더 */
header {
  width: 100%;
  height: 65px;
  background-color: #000;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.headerInner {
  width: 90%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: 200px;
  display: flex;
  align-items: center;
}

.langBtn {
  display: flex;
  color: #fff;
  border: 1px solid #fff;
  width: 85px;
  height: 35px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 600;
  font-size: 15px;
}

.langIcon {
  width: 22px;
  height: 22px;
}

/* 배너 영역 */
.bannerArt {
  width: 100%;
  height: 800px;
}

/* 슬라이드 영역 */
.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.slides {
  display: flex;
  transition:  transform 0.5s ease;
}
.slide {
  width: 100%;
  height: 800px;
  flex-shrink: 0;
}
.slide img {
  width: 100%;
  height: 100%;
}

/* 슬라이드 버튼 영역 */
.slideBtns {
  position: absolute;
  z-index: 9;
  right: 10%;
  bottom: 5%;
  display: flex;
  padding: 0 10px;
  height: 32px;
  justify-content: center;
  background-color: rgba(0, 0, 0, 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: #ccc;
  font-weight: 500;
}
.slideNowTxt {
  color: #fff;
  width: 10px;
  font-weight: 600;
}

/* NEWS */
.newsArt {
  width: 100%;
  height: 600px;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pageTit {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
}

.newsInner .pageTit {
  color: #fff;
}

.newsInner {
  width: 70%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1400px;
}

.newsDiv {
  display: flex;
  align-items: center;
  gap: 10px;
}

.newsBox {
  width: 450px;
  background-color: #999;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.newsImg {
  width: 100%;
  height: 250px;
  border-radius: 10px 10px 0 0;
}

.newsImg > img {
  width: 100%;
  height: 100%;
  border-radius: 10px 10px 0 0;
}

.newsTxts {
  min-height: 110px;
  background-color: #fff;
  border-radius: 0 0 10px 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  word-break: keep-all;
}
.newsTit {
  font-size: 16px;
  color: #222;
  font-weight: 600;
}

.newsSubTxt {
  font-size: 14px;
  color: #444;
  line-height: 18px;
  font-weight: 500;
}

.newsDays {
  font-size: 14px;
  color: #999;
  font-weight: 500;
}

/* Games */
.gamesArt {
  width: 100%;
  height: 800px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gamesInner {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.gameDiv {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.gameBox {
  width: 450px;
  height: 250px;
  border-radius: 10px;
  cursor: pointer;
}
.gameBox > img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.gameTitBox {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
}
.gameTitBox .pageTit {
  color: #E50011;
}
.gameTitBox .pageSubTxt {
  color: #333;
  font-weight: 500;
}

/* HISTORY */
.historyArt {
  width: 100%;
  padding: 100px 0;
  background-color: #F8F8F8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.historyInner {
  width: 70%;
  display: flex;
  justify-content: center;
  gap: 30px;
  color: #E50011;
}

.historyTitBox {
  width: 40%;
  text-align: center;
  font-weight: 800;
  font-size: 30px;
}

.historyTxts {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.historyBox {
  display: flex;
  gap: 30px;
}

.historyL {
  font-size: 22px;
  font-weight: 700;
}

.historyRTxt {
  font-size: 17px;
  height: 25px;
  display: flex;
  align-items: center;
  font-weight: 600;
  gap: 10px;
}

.historyR {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* LOCATION */
.locaArt {
  width: 100%;
  padding: 100px 0;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.locaInner {
  width: 70%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1400px;
}

.locaDiv {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
}

.locaR {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.locaDiv > div {
  width: 50%;
}

.locaL {
  height: 350px;
}
.locaL > img {
  width: 100%;
  height: 100%;
}

.locaLogo {
  width: 100%;
}
.locaLogo > img {
  width: 100%;
}

.locaTxts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  color: #222;
}

.locaTit {
  font-size: 24px;
  font-weight: 800;
  line-height: 40px;
}

.locaTxt {
  width: 100%;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 7px;
  word-break: keep-all;
}

footer {
  padding: 20px 0;
  background-color: #F4F4F4;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footerInner {
  width: 50%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}

.footerTop {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 50px;
  justify-content: center;
}

.footerLogo {
  width: 240px;
}

.footerTxts {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
}
.footerTxts > p:first-child {
  color: #333;
  font-weight: 600;
}
.footerTxts > p:nth-child(2) {
  color: #666;
  font-weight: 500;
}

.footerBottom {
  font-size: 13px;
  color: #666;
}


/* 팝업 스타일 */
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.popup-content {
  padding: 20px;
  width: 80%;
  max-width: 1200px;
  text-align: center;
  position: relative;
  border-radius: 10px;
  display: flex;
  gap: 10px;

}

#popup-media {
  padding: 5px;
  border-radius: 5px;
  background-color: #fff;
  flex: 1;
}
.popup-content img, .popup-content video {
  max-width: 100%;
  height: auto;
}
.popup-close {
  width: 50px;
  height: 50px;
  cursor: pointer;
}
.popup-close > img {
  width: 100%;
  height: 100%;
}

.bannerM {
  display: none;
}

/* 반응형 */
@media screen and (max-width: 1440px) {    
  .bannerArt {
    height: 600px;
  }
  .slide {
    height: 600px;
  }

  .newsInner {
    width: 80%;
  }

  .gameBox {
    width: 300px;
    height: 180px;
  }
}

@media screen and (max-width: 1200px) {    
  .bannerArt {
    height: 500px;
  }
  .slide {
    height: 500px;
  }

  .newsTit {
    font-size: 16px;
  }

  .newsInner {width: 90%;}

  .newsImg {
    height: 200px;
  }

  .historyL {
    font-size: 20px;
  }

  .historyRTxt {
    font-size: 15px;
    gap: 5px;
  }
  .historyR {
    gap: 5px;
  }

  .gamesArt {
    padding: 50px 0;
  }
}

@media screen and (max-width: 1000px) {  
  .gameDiv {
    grid-template-columns: 1fr 1fr;
  }

  .historyInner {
    width: 90%;
  }
  .historyTitBox {
    width: 30%;
    font-size: 25px;
  }

  .pageTit {
    font-size: 25px;
  }

  .gameTitBox .pageSubTxt {
    font-size: 14px;
  }

  .newsImg {
    height: 250px;
  }

  .newsDiv {
    flex-direction: column;
  }

  .newsArt {
    padding: 50px 0;
    height: auto;
  }

}

@media screen and (max-width: 800px) { 
  .bannerArt {
    height: 600px;
  }
  .bannerPC {
    display: none;
  }
  .bannerM {
    display: block;
  }

  .gameDiv {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 600px) { 
  .slide {
    height: 400px;
  }

  .newsBox {
    width: 300px
  }
  .newsImg {
    height: 200px;
  }

  .gamesArt {
    height: auto;
  }
  .gameDiv {
    grid-template-columns: 1fr;
  }

  .historyInner {
    width: 95%;
    flex-direction: column;
    margin: 0 auto;
  }

  .historyBox {
    gap: 15px;
  }

  .historyArt {
    padding: 50px 0;
  }
  
  .historyL{
    font-size: 16px;
    
  }
  .historyRTxt {
    font-size: 12px;
  }



  .historyTitBox {
    text-align: left;
  }

  .locaDiv {
    flex-direction: column;
  }

  .locaDiv > div {
    width: 100%;
  }

  .locaL {
    height: 200px;
  }

  .locaTit {
    font-size: 16px;
  }

  .locaTxt {
    font-size: 13px;
  }

  .footerTop {
    flex-direction: column;
    gap: 10px;
  }

  .footerLogo {
    width: 180px;
  }

  .footerTxts {
    text-align: center;
    font-size: 13px;
  }

  .footerInner {
    width: 80%;
  }

  .locaArt {

    padding: 50px 0; 
  }

  .locaInner {
    width: 90%;
  }
  .bannerArt {
    height: auto;
  }

  .popup-close {
    width: 24px;
    height: 24px;
  }

  .popup-content {
    width: 100%;
    flex-direction: column-reverse;
    align-items: end;
  }
}

/* 추가 */
.popup-content:has(iframe) {
  height: 70%;
  max-height: 650px;
}
#popup-media {
  width: 100%;
}

@media screen and (max-width: 1000px) {  
  .popup-content:has(iframe) {
    height: 45%;
  }
}