main{
    background-image: url('/image/background.jpg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    padding-top: 93px;
}
.main-grid{
    width: 100%;
    max-width: 1150px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 0 auto;
}
.main-text-box{
    width: 100%;
    color: white;

    display: flex;
    flex-direction: column;
    align-items: end;
}
.main-text-box p{
    padding: 50px 0 5px 0;
    font-family: 'esamanru', sans-serif;
    font-size: 300;
}
.main-text-box h1{
    font-size: 60px;
    font-weight: bold;
    line-height: 1;
    font-family: 'esamanru', sans-serif;
}
.main-text-box span{
    display: inline-block;
    line-height: 1.5;
    padding-top: 10px;
    padding-bottom: 15px;
    font-family: 'esamanru', sans-serif;
    font-size: 300;
}
.main-btn{
    display: flex;
    gap: 5px;
    align-items: center;
}
.main-btn-img{
    display: block;
    width: 200px;
}

.main-img img{
    width: 500px;
}

.company-intro{
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
}

.company-title{
    text-align: center;
    padding-top: 100px;
}
.company-title h2{
    color: white;
    font-size: 50px;
    line-height: 1.2;
    font-weight: bold;
    padding-bottom: 15px;
    font-family: 'esamanru', sans-serif;
    font-size: 700;
}
.company-title .neon-text{
    color: white;
    font-size: 20px;
    text-shadow:
    0 0 3px #f051c0,
    0 0 8px #f051c0,
    0 0 12px #f051c0,
    0 0 20px #ff4b9f,
    0 0 30px #ff4b9f;
    padding-bottom: 30px;
    font-family: 'esamanru', sans-serif;
    font-size: 300;
}

.company-img{
    width: 100%;
    display: flex;
    justify-content: center;
}

.company-img img{
    width: 80%;
    padding-bottom: 20px;
}

.company-text-box{
    width: 80%;
    margin: 0 auto;
    color: white;
    text-align: center;

    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        inset 0 0 30px rgba(255, 255, 255, 0.03),
        0 10px 40px rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.company-text-box h2{
    font-size: 50px;
    font-weight: bold;
    color: #fd0380;
    padding: 20px 0;
    font-family: 'esamanru', sans-serif;
    font-size: 700;
}

.company-text-box p{
    font-size: 20px;
    line-height: 1.2;
    padding-bottom: 20px;
    font-family: 'esamanru', sans-serif;
    font-size: 300;
}

.game-container{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;

}
.game-grid-box{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.game-item{
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #ff0092;
    box-shadow: 0 1px 15px 1px #ff0092;
    border-radius: 15px;

}


.game-image{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.game-image img{
    width: 100%;
    height: 100%;
    border-bottom-left-radius: 15px;
    border-top-left-radius: 15px;
}
.game-text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}
.game-text-english{
    background: linear-gradient(to bottom, white, #ffcce0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 30px;
    font-family: 'esamanru', sans-serif;
    font-weight: 400;
    padding-bottom: 10px;
}
.game-text-korean{
    background: linear-gradient(to bottom, white, #ffcce0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 65px;
    font-family: 'esamanru', sans-serif;
    font-weight: 700;
    padding-bottom: 10px;
}
.game-text-btn{
    color: white;
    font-family: 'esamanru', sans-serif;
    font-weight: 300;
    font-size: 17px;
    padding: 10px 0;
    margin: 0 30px;

    background: linear-gradient(to bottom, #ff0092, #640021);
    position: relative;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease;
}
.game-text-btn:hover{
    transform: scale(1.05);
}

 .popup-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  gap: 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 20px;
}

.popup {
  text-align: center;
  width: 300px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.popup img {
    display: block;
    width: 100%;
    height: auto;
}

.close-popup {
    display: block;
    width: 100%;
    padding: 16px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.close-popup:hover {
    background-color: #fd0380;
    color: white;
}

@media (max-width: 768px) {
  .popup-wrapper {
    width: calc(100% - 40px);
    justify-content: center;
    gap: 0;
  }

  .popup {
    display: none;
  }

  .popup.active {
    display: block;
  }
}

.reason{
    color: white;
    width: 100%;
    height: 100%;
}
.reason-title{
    text-align: start;
    font-family: 'esamanru', sans-serif;
    font-weight: 400;
    font-size: 25px;
    color: #f051c0;
    padding-top: 50px;
    padding-bottom: 20px;
}
.reason-text{
    font-family: 'esamanru', sans-serif;
    text-align: start;
    font-weight: 300;
    line-height: 1.3;
    font-size: 18px;
    /* padding-bottom: 50px; */
}

.advantage-box{
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-bottom: 100px;
}
.advantage-info-box{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    color: white;
}
.advantage-text-box{
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    box-shadow:
        inset 0 0 30px rgba(255, 255, 255, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 20px;
    margin-top: 20px;
}
.advantage-point{
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 13px;
    font-size: 18px;
    font-family: 'esamanru', sans-serif;
    font-weight: 300;

    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    box-shadow:
        inset 0 0 30px rgba(255, 255, 255, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.6);
    color: black;
}
.advantage-point strong{
    color: #fd0380;
    font-weight: 700;
}
.advantage-text-title{
    font-size: 25px;
    font-family: 'esamanru', sans-serif;
    font-weight: 700;
    padding: 30px 0 20px 0;
}
.advantage-text-subtitle{
    font-family: 'esamanru', sans-serif;
    font-weight: 300;
    padding: 20px;
}
.advantage-img {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.advantage-img img{
    width: 100%;
}
.upbtn {
  padding: 10px;
  position: fixed;
  right: 20px;
  bottom: 20px;
  background-color: rgba(204, 204, 204, 0.5); /* 반투명 */
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.upbtn:hover {
  background-color: #555; 
  transform: scale(1.1);
  color: white;
}

.footer{
    position: relative;
    width: 100%;
    border-top: 1px solid #f051c0;
    box-shadow: 0 1px 20px 1px #f051c0;
    z-index: 9;
    text-align: center;
}
.footer-logo{
    padding-top: 50px;
}
.footer-title{
    display: block;
    color:  white;
    padding-top: 20px;
    font-family: 'esamanru', sans-serif;
    font-size: 300;
}
.footer ul{
    display: flex;
    gap: 40px;
    justify-content: center;
    padding: 50px 0;
}
.footer-text{
    display: block;
    color: #ccc;
    padding-bottom: 50px;
}

@media screen and (max-width: 1100px) {
    main{
    background-size: cover;
    background-position: left;
}
.main-grid{
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}
.main-text-box{
    width: calc(100% - 40px);
    padding: 0 20px;
    align-items: center;
}
.main-text-box p{
    padding: 30px 0 5px 0;
}
.main-text-box h1{
    font-size: 50px;
}
.main-text-box span{
    font-size: 14px;
}
.main-btn-img{
    width: 150px;
}

.main-img img{
    width: calc(100% - 40px);
    padding: 0 20px;
}

.company-intro{
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
}

.company-title{
    width: calc(100% - 40px);
    padding: 0 20px;
    text-align: center;
    padding-top: 100px;
}
.company-title h2{
    max-width: 14ch;
    font-size: 30px;
    margin: 0 auto;
}
.company-title .neon-text{
    font-size: 18px;
    padding-bottom: 20px;
    line-height: 1.2;
}

.company-img{
    width: 100%;
    display: flex;
    justify-content: center;
}

.company-img img{
    width: calc(100% - 40px);
    padding: 0 20px;
    padding-bottom: 20px;
}

.company-text-box{
    width: calc(100% - 80px);
    padding: 0 20px;
    border-radius: 0;
    margin: 0 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    box-shadow:
        inset 0 0 30px rgba(255, 255, 255, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.6);
}

.company-text-box h2{
    max-width: 11ch;
    font-size: 35px;
    line-height: 1.2;
    margin: 0 auto;
    text-align: center;
}

.company-text-box p{
    font-size: 16px;
    line-height: 1.2;
    padding-bottom: 20px;
}
.pc-br{
    display: none;
}

.game-container{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;

}
.game-grid-box{
    width: calc(100% - 40px);
    padding: 0 20px;
    grid-template-columns: 1fr;
}
.game-text-english{
    font-size: 20px;
}
.game-text-korean{
    font-size: 35px;
}
.game-text-btn{
    font-size: 17px;
    margin: 0 10px;
}

.reason-title{
    font-size: 20px;
    padding-bottom: 20px;
    padding-top: 30px;
}
.reason-text{
    line-height: 1.3;
    font-size: 14px;
}

.advantage-box{
    grid-template-columns: 1fr;
    padding-bottom: 100px;
    background-image: url(../image/advantage.png);
    background-size: cover;
}
.advantage-info-box{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    color: white;
}
.advantage-text-box{
    position: relative;
    width: calc(100% - 40px);
    padding: 20px;
    margin-top: 20px;
}
.advantage-point{
    padding: 10px 20px;
    font-size: 18px;
}
.advantage-text-title{
    font-size: 25px;
    font-family: 'esamanru', sans-serif;
    font-weight: 700;
    padding: 30px 0 20px 0;
}
.advantage-text-subtitle{
    font-family: 'esamanru', sans-serif;
    font-weight: 300;
    padding: 20px;
}
.advantage-img {
    display: none;
}






.upbtn {
  padding: 6px;
}

.footer{
    width: calc(100% - 40px);
    padding: 0 20px;
}
.footer-logo{
    padding-top: 30px;
}
.footer-title{
    font-size: 12px;
    padding-top: 30px;
}
.footer ul{
    gap: 20px;
    font-size: 10px;
    padding: 30px 0;
}
.footer-text{
    font-size: 12px;
    padding-bottom: 30px;
}
}