:root {
    --max-width: 1560px;

    --roboto-font: 'Roboto', sans-serif;
    --Inter-font: 'Inter', sans-serif;

    --font-size-xsmall: 10px;
    --font-size-small: 12px;
    --font-size-smedium: 15px;
    --font-size-medium: 16px;
    --font-size-large: 20px;
    --font-size-x-large: 24px;
}

body{
    margin: 0;
}

img {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

[onclick], 
[role="button"],
button,
a {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.text-header-inter{
    font-family: var(--Inter-font);
    font-weight: 600;
    font-size: var(--font-size-medium);
    color: #fff;
}

.text-xs-white{
    font-family: var(--roboto-font);
    font-size: var(--font-size-xsmall);
    color: #fff;
}

.text-sm-white{
    font-family: var(--roboto-font);
    font-size: var(--font-size-smedium);
    color: #fff;
}

.text-m-white{
    font-family: var(--roboto-font);
    font-size: var(--font-size-medium);
    color: #fff;
}

.text-l-black-b{
    font-family: var(--Inter-font);
    font-weight: 700;
    font-size: var(--font-size-large);
    color: #000;
}

.text-m-black-b{
  font-family: var(--Inter-font);
  font-weight: 700;
  font-size: var(--font-size-medium);
  color: #000;
}

.text-sm-black{
  font-family: var(--roboto-font);
  font-size: var(--font-size-smedium);
  color: #000;
}

.header {
    width: 100%;
    background-color: #3E005F;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s linear;
  }
  
  .header-float{
    width: calc(100% - 20px);
    background-color: #3E005F; 
    position: fixed;
    top: 10px;
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    border-radius: 10px; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
  }
  
  .header .header-inner{
    padding: 20px;
  }
  
  .header-float .header-inner{
    padding: 10px 20px;
  }
  
  .header-inner {
    width: 100%;
    max-width: var(--max-width);
    height: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    justify-content: space-between;
    position: relative;
  }
  
  .header-logo {
    height: 35px;
  }
  
  .header-logo img {
    height: 100%;
    width: auto;
  }

.language-down{
  position: absolute;
  right: 0;
  bottom: -490px;
  background-color: rgb(255, 255, 255, 0.95);
  width: 400px;
  border-radius: 10px;
  padding: 20px;
  display: none; /* grid */
  grid-template-columns: 1fr 1fr;
  box-sizing: border-box;
  gap: 20px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.language-down .lang-inner-div{
  padding: 5px 10px;
  border-radius: 5px;
  box-sizing: border-box;
}

.language-down .lang-inner-div:hover{
  background-color: #F6ebff;
}

.pop-up-arrow{
  position: absolute;
  right: 30px;
  top: -20px;
}

.content {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .pc-header-menu {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
  }
  
  .pc-header-menu a{
    text-decoration: none;
  }
  
  .pc-lang{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
  }
  
  .lang-flag{
    width: 30px;
  }
  
  .drop-btn{
    width: 10px;
  }
  
  .mb-header-menu{
    display: none;
    width: 30px;
  }
  
  .mb-header-menu img{
    width: 100%;
    height: auto; 
  }

  @media screen and (max-width: 720px) {
    .pc-header-menu{
      display: none;
    }
  
    .mb-header-menu{
      display: flex;
    }
}

.main{
    margin: 90px auto 30px auto;
    max-width: var(--max-width);
    display: flex;
    flex-direction: column;
}

.search-div{
    display: flex;
    margin: 30px 0;
    padding: 0 20px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.search-area{
    display: flex;
    position: relative;
    align-items: center;
}

.search-input{
    width: 250px;
    height: 45px;
    border-radius: 60px;
    border: 1px solid #B8B8B8;
    box-sizing: border-box;
    --webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1);
    outline: none; 
    padding: 0 16% 0 6%;
}

.search-icon{
    width: 20px;
    height: 20px;
    position: absolute;
    right: 6%;
}

@media screen and (max-width: 720px) {
    .search-div{
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 20px;
    }
    
    .search-input{
        width: 180px;
        height: 35px;
    }

    .search-icon{
        width: 18px;
        height: 18px;
    }
}


.pc-games-div{
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .pc-games-div {
      grid-template-columns: repeat(3, 1fr); 
    }
  }
  
  @media (min-width: 1024px) {
    .pc-games-div {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  
  @media (min-width: 1280px) {
    .pc-games-div {
      grid-template-columns: repeat(5, 1fr); 
    }
  }

.game-swiper-slide {
    /* min-width: 300px; */
    width: auto;
    height: auto;
    text-align: center;
    /* margin: 0 10px; */
    /* background-color: pink; */
    box-sizing: border-box;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
  }


.game-swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease; 
  }
  
  .game-info{
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%); 
    transform: translateY(40px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  }
  
  .play-btn {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center; 
    align-items: center;
  }
  
  .game-swiper-slide:hover .game-info {
    transform: translateY(0); 
  }
  
  /* Zoom-in effect on hover */
  .game-swiper-slide:hover img {
    transform: scale(1.1); /* Zoom in by 10% */
  }
  
  .game-details{
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 10px;
    box-sizing: border-box;
    align-items: flex-start;
    gap: 10px;
  }
  
  .game-details .hr{
    width: 100%;
    height: 1px;
    background-color: #FFFFFF;
  }
  
  .grid-details{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr ;
    gap: 10px;
  }
  
  .grid-details-inner{
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

.mb-games-div{
    display: none;
    grid-template-columns: repeat(3, 1fr); 
    padding: 0 10px;
    cursor: pointer;
    gap: 10px;
}

.mb-games{
    display: flex;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.mb-games:hover{
    transform: scale(1.05); 
}

.mb-games img{
    width: 100%;
    height: 100%;
    display: block;
}

@media screen and (max-width: 720px) {
    .pc-games-div{
        display: none;
    }

    .mb-games-div{
        display: grid;
    }
}


@media screen and (max-width: 540px) {
    .mb-games-div{
        grid-template-columns: repeat(2, 1fr); 
    }
    
}

/* mb pop up */
.option-div{
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  height: 100%;
  width: 100%;
  background-color: #F8F8F8;
}

.opt-header{
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.opt-header-logo{
  height: 35px;
  cursor: pointer;
}

.opt-header-close{
  width: 30px;
  cursor: pointer;
}

.opt-hr{
  width: calc(100% - 40px);
  border: none;
  height: 1px;
  background-color: #B5B5B5;
  margin: 0 auto;
}

.opt-main{
  display: flex;
  padding: 30px;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-direction: column;

}

.opt-main-hr{
  width: 150px;
  border: none;
  height: 1px;
  background-color: #B5B5B5;
  margin: 0 auto;
}

.opt-main div{
  cursor: pointer;
}

.opt-lang{
  display: flex;
  padding: 30px;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-direction: column;
}

.lang-title{
  display: flex;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
  gap: 5px;
}

.lang-drop-icon{
  width: 13px;
  height: 13px;
}

.lang-opt-div{
  width: 90%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;

}

.lang-inner-div{
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
  cursor: pointer;
}

.lang-inner-div img{
  width: 35px;
}


.game-pop{
  position: fixed;
  z-index: 1000;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  background-color: rgb(0, 0, 0, 0.7);
  display: none;
}

.game-pop-bg{
  width: 100%;
  height: 100%;
}

.game-pop-inner{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 50px;
  width: 80%;
}

.game-pop-close{
  width: 50px;
  height: 50px;
  cursor: pointer;
}

.game-pop-close img{
  width: 100%;
  height: 100%;
}

.game-pop-info{
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%); 
}