

body {
  /* background: radial-gradient(circle at top left, #0a0f1f, #020409 70%); */
  background-image: url(../img/main_bg.svg);
  background-size: cover;
  background-repeat: no-repeat;
}


.main_body_wrap{
    display: flex;
    flex-direction: row;
    width: 100%;
    height: calc(100% - 80px);
    overflow: hidden;
    justify-content: center;
}

.main_container {
    display: flex;
    align-items: center;
    width: 95%;
    /* max-width: 1200px; */
    gap: 5%;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
}

.text_box {
  /* flex: 1; */
      min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.text_box h1 {
  font-size: 3.2rem;
  line-height: 1.4;
  /* margin-bottom: 40px; */
  color: #fff;
  font-weight: 500;
  font-family: 'daki_b';
}
.text_box h2 {
    color: #ffffff82;
    font-size: 1.5rem;
    padding-bottom: 40px;
  font-family: 'daki_b';
}

.btn-group {
  display: flex;
  gap: 15px;
}

.btn1, .btn2 {
width: 174px;
  background: #3570F0;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 20px 0px;
  font-size: 1.3rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.btn1 {
    width: 220px;
    background: #3570F0;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 18.5px 0px;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn1:hover {
  background: #2d64da;
}

.btn1 img{
  padding-left: 16px;
}
.btn2 {
  background: #fff;
  color: #3570F0;
}

.btn2:hover{
  background: #ffffffcb;
}

.code_box {
  position: relative;
  background-color: #000;
/* backdrop-filter:blur(10px); */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  
    width: auto;
    min-width: 750px;
  min-height: 390px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}
.code_box_title{
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
}

.code_header {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  font-size: 1rem;
  color: #fff;
}

.code_box pre {
  color: #fff;
  font-size: 0.95rem;
  white-space: pre-wrap;
    letter-spacing: 0.5px;
  word-break: break-word;
  line-height: 2;
  padding: 20px;
}


.code_box_bg{
position: absolute;
top: 40%;
right: -8%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 350px;
  height: 280px;
  border-radius: 10px;
      z-index: -10;
}


.copy_btn {
  
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.3s;
}

.copy_btn:hover {
  background: rgba(255,255,255,0.2);
}

#cursor {
  display: inline-block;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}






  .typing {
    font-family: 'UbuntuMono';
    white-space: pre;
    font-size: 22px;
    line-height: 1.8;
    padding: 20px;
    color: #fff; 
  }

  /* 줄 색상 */
  .line1 { color: #fff; }
  .line2,.property { color: #fff; }
  .line3 { color: #FFAB61; }
  .line4 { color: #ffcb6b; }

  /* 문법 하이라이트 */
  .keyword { color: #FFAB61; }     /* 보라색 */
  .string { color: #3570F0; }      /* 하늘색 */
  .symbol { color: #fff; }         /* 기본 */

  /* 커서 */
  .cursor {
    display: inline-block;
    width: 2px;
    height: 20px;
    background-color: #fff;
    margin-left: 2px;
    animation: blink 0.8s infinite;
    vertical-align: middle;
  }
  @keyframes blink {
    50% { opacity: 0; }
  }


  /* 반응형 */
@media (max-width: 1365px) {
  .main_container {
    align-content: center;
  }
  .text_box {
    align-items: center;
  }
}



/* 반응형 */
@media (max-width: 1080px) {
  .main_container {
    width: 98%;
    justify-content: center;
  }
  .text_box {
    flex: none;
    text-align: center;
}

  .btn-group {
    display: flex;
    justify-content: center;
}

.main_body_wrap{
    height: calc(100% - 112px);
}

  
}


/* 반응형 */
@media (max-width: 768px) {

  .main_header{
    background: radial-gradient(circle at top left, #10294f, #1c3649 70%);
  }
  .container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

      .main_container {
        gap: 10px;
        padding-top: 10px;
    }
    .text_box{
              flex: 1;
        padding: 20px 0;
    }

  .text_box h1 {
    font-size: 1.8rem;
  }
.text_box h2 {
    font-size: 1.2rem;
    line-height: 1.5;
    word-break: keep-all;
    padding-bottom: 20px;
}

  
  .code_box {
    width: 94%;
    min-width: auto;
    padding:5px;
  }
  .typing {
    white-space: pre-line;
    font-size: 1.2rem;
  }

  .btn1, .btn2{
    min-width: 80px;
        width: auto;
    padding: 15px 20px;
    font-size: 1rem;
  }

  .main_body_wrap{
    height: auto;
    padding-top: 56px;
}
body {
    background-repeat: repeat;
}


}



@media (max-height: 375px) {
    .main_body_wrap{
        height: auto;
        padding-bottom: 50px;
    }
}



/* 1950px 이상일 때 비율 확대 */
@media (min-width: 1950px) {
    .main_container {
        max-width: 1800px;
    }
    .text_box h1{
            font-size: 4rem;
    }
    .text_box h2 {
    font-size: 1.8rem;
    }
    .code_box{
        width: 55%;
        height: auto;
        max-height: 650px;
    }
    .code_box_title{
      padding: 25px 20px;
    }
    .cursor {
    height: 35px;
    }
    .typing {
        font-size: 2.4rem;
      padding: 25px 20px;
    }
    .code_box_bg {
    top: 75%;
        width: 350px;
    height: 230px;
}

}