.dream_1{
    background-color: #F7F7F8;
    padding-top: 20px;
}
.dream_1 .sub_img_box4.col2>li .img_box{
    height: 280px;
}
.dream_1 .sub_img_box4.col4>li .img_box {
    height: 180px;
}
.dream_1 .sub_img_box4.col4> .new_layout .img_box{
    height: 200px;
    margin-bottom: 0;
}
.dream_1 .s_txt1{
    margin-top: 20px;
}
.dream_text_box{
    background-color: #F7F7F8;
    padding: 11px 25px 10px 25px;
    text-align: left;
}
.dream_text_box .s_txt3{
    border-bottom: solid 1px #C9C9C9;
    padding-bottom: 10px;
}
.dream_1 .dream_text_box .s_txt1{
    margin-top: 10px;
}
.mo_none{
    display: block;
}
@media screen and (max-width:768px){
.mo_none{
    display: none;
}
.dream_text_box{
    min-height: 155px;
}
}








.paper_sec{
    margin: 150px 0;
    font-family: 'Noto Sans KR';
    padding-bottom: 50px;
}
.paper_sec input[type="text"]{

}
.paper_sec input[type="text"]{
    width: 100%;
    box-sizing: border-box;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: 'Noto Sans KR';
    font-weight: 400;
}
.paper_sec input[type="text"]:focus,
.paper_sec input[type="text"]:active{
    outline: none !important;
    border: none !important;
    box-shadow: none;
}

.paper_w{
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}
.paper_sec .top{
    padding-left: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.paper_sec .top >.nemo{
    min-width: 10px;
    width: 10px;
    height: 10px;
    background-color: #333;
    display: block;
}
.paper_sec .top > p{
    font-size: 14px;
    color: #333;
}
.paper_sec .top > p >span{
    color: #0d09ff;
}
.paper_box_layout{
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.paper_title{
    font-size: 30px;
    font-weight: 700;
    margin-top: 30px;
    text-align: center;
    font-size: 20px;
}
.paper_box{
    width: 100%;
    border-top: solid 1px #000;
    border-bottom: solid 1px #000;
    display: flex;
}
.paper_box label{
    font-size: 18px;
    line-height: 1.4;
    font-weight: 400;
}
.paper_box .input_box{
    margin-top: 5px;
}

.paper_box .box_title{
    text-align: center;
    width: 15%;
    border-right: solid 1px #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 500;
}

.paper_box .box_writing{
    width: 85%;
}
.paper_box .box_writing .dep_2{
    display: flex;
}
.paper_box .box_writing .dep_1:nth-child(1){
    border-top: 0;
}
.dep_2 .long{
    width: 70%;
    border-right: solid 1px #000;
    padding: 5px 8px;
    box-sizing: border-box;
}
.dep_2 .short{
    width: 30%;
    padding: 5px 8px;
    box-sizing: border-box;
}
.paper_box .box_writing .dep_1{
    padding: 5px 8px;
    box-sizing: border-box;
    border-top: solid 1px #000;
}
.paper_box .box_writing .dep_1 p{
    font-size: 16px;
    font-weight: 400;
}
.paper_bottom{
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    border-bottom: solid 2px #000;
    padding-bottom: 20px;
    box-sizing: border-box;
}
.paper_sec .paper_bottom ._1 p{
    font-size: 16px;
    font-weight: 400;
}
.paper_sec .paper_bottom ._1 input[type="text"]{
    max-width: 80px;
}
.paper_sec .paper_bottom ._2 .date_list{
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.paper_sec .paper_bottom ._2 .date_list >li{
    display: flex;
    gap: 5px;
}
.paper_sec .paper_bottom ._2 .date_list >li > .input_box{
    max-width: 100px;
}
.paper_sec .paper_bottom ._2 .date_list >li > .input_box input[type="text"]{
    text-align: right;
}
.paper_sec .paper_bottom ._2 .date_list >li span{
    font-size: 16px;
    font-family: 'Noto Sans KR';
    font-weight: 400;
}
.paper_sec .paper_bottom ._3{
    display: flex;
    align-items: center;
    justify-content: right;
    position: relative;
    gap: 15px;
}
.paper_sec .paper_bottom ._3 > label{
    font-size: 16px;
    font-family: 'Noto Sans KR';
    font-weight: 400;
}
.paper_sec .paper_bottom ._3 .input_box{
    max-width: 160px;
    position: relative;
}
.paper_sec .paper_bottom ._3 .input_box .sign{
    /* position: absolute;
    right: 0;
    top: 4px; */
    display: inline-block;
    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    color: #a5a5a5;
}
.border_b{
    border-bottom: solid 1px #000;
}
.paper_sec .tip{
    margin-top: 30px;
    text-align: right;
    font-size: 12px;
}
#a4_img.paper_sec{
    overflow-x: scroll;
    /* -ms-overflow-style: none; */
}

#a4_img.paper_sec .paper_w{
    min-width: 900px;
    max-width: 900px;
    padding: 50px;
    box-sizing: border-box;
    width: 100%;
  
}
@media screen and (min-width:768px){
#a4_img.paper_sec::-webkit-scrollbar{
    display:none;
  }
}
@media screen and (max-width:900px){
    .paper_w{
        width: 90%;
    }
}
@media screen and (max-width:768px){

    #a4_img.paper_sec::-webkit-scrollbar {
        width: 8px; /* 스크롤바 너비를 설정 */
        height: 8px; /* 가로 스크롤바 높이를 설정 */
      }
    
      #a4_img.paper_sec::-webkit-scrollbar-thumb {
        background: #ccc; /* 스크롤바의 색상 */
        border-radius: 4px; /* 스크롤바 모서리 둥글게 */
      }
    
      #a4_img.paper_sec::-webkit-scrollbar-track {
        background: #f1f1f1; /* 스크롤 트랙의 색상 */
      }
    .paper_sec{
        margin: 100px 0;
    }
    #no_a4 .paper_box{
        flex-direction: column;
    }
    #no_a4 .paper_box >.box_title{
        width: 100%;
        border-right: 0;
        border-bottom: solid 1px #000;
        padding: 8px 10px;
    }
    #no_a4 .paper_box .box_writing{
        width: 100%;
    }
    #no_a4 .paper_box .box_writing .dep_2{
        flex-direction: column;
        width: 100%;
    }
    #no_a4 .paper_box .box_writing .dep_2 .long{
        border-right: 0;
        border-bottom: solid 1px #000;
    }
    #no_a4 .paper_box .box_writing .dep_2 .long,
    #no_a4 .paper_box .box_writing .dep_2 .short{
        width: 100%;
    }
    #no_a4 .paper_title{
        margin-top: 15px;
    }
    #no_a4 .paper_box_layout{
        margin-top: 15px;
    }
    #no_a4 .paper_box label{
        font-size: 16px;
    }
    #no_a4 .paper_box .box_writing .dep_1 p{
        font-size: 14px;
    }
    #no_a4 .paper_bottom{
        margin-top: 25px;
        gap: 20px;
    }
    #no_a4 .paper_sec .paper_bottom ._1 p{
        font-size: 14px;
    }
    #no_a4 .paper_sec .paper_bottom ._2 .date_list >li > .input_box input[type="text"]{
        font-size: 14px;
    }
    #no_a4 .paper_sec .paper_bottom ._1 input[type="text"]{
        max-width: 50px;
    }
    #no_a4 .paper_sec input[type="text"]{
        font-size: 14px;
    }
    #no_a4 .paper_sec .paper_bottom ._2 .date_list >li > .input_box{
        max-width: 50px;
    }
    #no_a4 .paper_sec .paper_bottom ._2 .date_list >li span{
        font-size: 14px;
    }
    #no_a4 .paper_sec .paper_bottom ._3 > label{
        font-size: 14px;
    }
    #no_a4 .paper_sec .paper_bottom ._3 .input_box .sign{
        font-size: 12px;
        top: 6px;
    }
}


/* 모달 기본 스타일 */
.modal {
  display: none; /* 기본적으로 숨김 */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 반투명 배경 */
  overflow: auto;
}

/* 모달 콘텐츠 스타일 */
.modal-content {
  background-color: #fff;
  margin: 15% auto; /* 중앙 정렬 */
  padding: 20px;
  border: 1px solid #888;
  max-width: 700px;
  width: 100%; /* 모달 크기 */
}
.modal_img{
  text-align: center;
}
.modal_img img {
  max-width: 100%;
}

/* 닫기 버튼 스타일 */
.modal-content >p{
  text-align: right;
}
.modal .close {
  display: inline-block;
  color: #aaa;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  float: none;
}

.modal .close:hover,
.modal .close:focus {
  color: black;
  text-decoration: none;
}




/* paper_1.php */
._3 > label{
  left: 50%;
}
#signPreview{
  width: 150px; 
  height: 70px; 
  display: none; 
}

canvas {
  border: 1px solid #000;
  cursor: crosshair;
}

.paper_f{
  max-width: 900px;
  margin: 100px auto;
  width: 100%;
  /* display: flex; */
  flex-direction: column;
  gap: 3px;
}

.box_title_{
  text-align: center;
  width: 25%;
  border-right: solid 1px #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 500;
}

.box_writing_{
  width:100%;
  padding: 5px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}

.box_writing_e{
  width:100%;
  padding: 5px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

#email{
  width: 80%;
}

.save{
  /* position: absolute;
  right: 0; */
  margin-left: 4px;
  border: 1px solid #055592;
  background: #055592;
  color: #fff;
  border-radius: 3px;
  font-size: 15px;
  cursor: pointer;
  width: 100px;
  height: 40px;
}

#agree_name{
  text-align:center;
}

.red{
  color: red;
  display: contents;
}

.thumbnail_btn{
  text-decoration: underline;
  cursor: pointer;
  font-size: small;
}

@media screen and (max-width:900px){
  .paper_f{
      width: 90%;
  }

  .box_writing_{
      width:100%;
      padding: 5px;
      display: flex;
      flex-wrap: nowrap;
  }
  ._d{
      flex-direction: column;
      font-size: 2em;
  }

  .box_title_{
      width: 100%;
      border-right: 0;
      border-bottom: solid 1px #000;
      padding: 10px;
      font-size: 40px;
  }

  .paper_boxf{
    width: 100%;
    border-top: solid 1px #000;
    border-bottom: solid 1px #000;
    display: block;
  }
  #idcard{
      padding: 10px;
      font-size: 2em;
  }
  .paper_boxf label {
    font-size: 30px;
    line-height: 1.4;
    font-weight: 400;
    padding-left: 10px;
  }
  
  .optSign > button {
    font-size: 25px !important;
  }
  button {
      padding: 0;
      border: 0;
      cursor: pointer;
      background: none;
      vertical-align: middle;
      font-size: 23px;
      appearance: none;
      border: 0;
      outline: none;
  }
  .thumbnail_btn {
      text-decoration: underline;
      cursor: pointer;
      font-size: 25px;
  }
  #email {
      width: 85%;
      font-size: 25px;
  }

  .optSign { 
    position: relative;
  }

  #canvas {
    position: absolute;
    width: 100%;
    height: 100%;
  }
  .save{
    width: 100%;
    height: 60px;
    font-size: 23px;
  }

  .small{
    color: #666;
  }

}

.optSign{
  display : none;
}
.optFile{
  display : none;
}

.small{
  color: #666;
  font-size: 14px;
}

.optSign > button{
  font-size: 17px;
}

.optSign > button:nth-child(3){
  font-weight: bold;
}