@font-face {
    font-family: 'PyeojinGothic-regular';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2504-1@1.0/PyeojinGothic-Bold.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'SBAggroB';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroB.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
html, body{
    background-color: rgb(227, 233, 255);
    /*padding: 50px;*/
    font-family: 'PyeojinGothic-Bold';
    height: 100%;
    margin: 0;
    padding: 0;
}
#containner{
    /*margin: 0 auto;*/
    /*width: 1700px;*/
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.contents{
    flex: 1;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
ul{
    list-style: none;
}
a{
    text-decoration: none;
}
header{
    width: 100%;
    height: 100px;
}
nav{
    float: right;
    width: 900px;
    height: 100px;
    padding-top: 40px;
}
#top_menu > li{
    float: left;
    position: relative;
}
#top_menu > li > a{
    display: block;
    padding: 20px 50px; 
    color: rgb(136, 136, 136);
    font-size: 1.1em;
    font-weight: 500;
    transition: transform 0.15s;
}
#top_menu > li > a:hover{
    color: rgb(221, 63, 221);
    transform: scale(1.1);
    text-shadow: 0 -1px rgb(136, 136, 136);
}
footer{
    background-color: rgb(255, 255, 255);
    width: 100%;
    /*position: relative;
    left: 0;
    bottom: 0;*/
    color: darkgray;
    text-align: center;
    font-size: 0.8em;
    line-height: 1.5em;
    padding: 20px;
}
h2{
    font-size: 2em;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.1em;
    margin-top: 20px;
}
.main_text{
    width: 100%;
    height: 200px;
    margin: 10px auto;
    text-align: center;
    margin-top: 50px;
}
.main_text > p{
    font-size: 1.5em;
    font-weight: 300em;
    color: gray;
    letter-spacing: 0.1em;
    padding: 10px;
}
.main_text > h1{
    font-family: 'SBAggroB';
    font-size: 4em;
    letter-spacing: 0.2em;
    color: rgb(37, 37, 37);
    margin-top: 1px;
    animation: ani_title 3s;
}
.ct_text{
    color: rgb(37, 37, 37);
    font-weight: bold;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    margin: 50px;
}
.ct_box{
    width: 400px;
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    margin: 20px auto;
    text-align: center;
    box-shadow: rgba(223, 232, 255, 0.16) 0px 3px 6px, rgba(107, 107, 107, 0.23) 0px 3px 6px;
}
.ct_box > p{
    font-size: 1.2em;
    line-height: 2em;
}   
.ct_img{
    width: 500px;
    padding: 30px;
    margin: 30px auto;
    text-align: center;
}
.ct_img > img{
    width: 100%;
    height: auto;
}
.about{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 50px;
    height: 900px;
    padding: auto;
}
.left{
    grid-row: span 4;
    margin: auto;
    text-align: center;
    align-items: center;
    justify-content: center;
}
.left > img{
    width: 300px;
    height: auto;
    border-radius: 100%;
    margin-bottom: 30px;
}
.about_text{
    background-color: rgba(255, 255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;    color: #333;
    width: 350px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}
h4{
    display: block;
    padding: 3px;
    font-size: 1.1em;
    font-weight: bold;
}
.vision{
    color: rgb(94, 72, 173);
    font-size: 20px;
    line-height: 35px;
    margin: 30px;
    font-family: 'SBAggroB';
}
.right{
    background-color: rgb(244, 243, 255);
    border-radius: 15px;
    padding: 20px;
    color: #333;
}
.right > h3{
    font-size: 1.2em;
    padding-bottom: 15px;
}
.right > p{
    line-height: 2em;
    padding-left: 15px;
}
.skill{
    position: relative;
    float: left;
}
.skill > ul{
    padding: 0;
    margin: 0;
    display: flex;
}
.skill > ul > li{
    margin: 5px;
    text-align: center;
}
.skill > ul > li > img{
    width: 40%;
    height: auto;

}
#work{
    max-width: 1000px;
    margin: 20px auto;
    width: 100%;
}
.work_list{
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    
}
.work_list li{
    padding: 0;
    margin: 10px;
    overflow: hidden;
    flex-basis: calc(33.333% - 20px);
    position: relative;
}
.work_list img{
    width: 100%;
    height: auto;
    z-index: 5;
}
.work_list .caption{
    position: absolute;
    top: 200px;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: all 0.6s ease-in-out;
    z-index: 10;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}
.work_list li:hover .caption{
    opacity: 1;
    color: #fff;
    transform: translateY(-200px);
}
.cp_title{
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 20px;
}
.caption > p{
    color: white;
    text-align: center;
    font-size: 1em;
    line-height: 2em;

}
/* 모달창을 띄워서 보여주는 work페이지*/
.work2{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    /*max-width: 1400px;*/
    margin: 0 auto;
}
.img_box{
    position: relative;
    width: 300px;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    margin: 40px;
    margin-top: 150px;
}
.img_box img{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}
.img_box .hover_img{
    opacity: 0;
}
.img_box:hover .hover_img{
    opacity: 1;
}
.modal{
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.modal_content{
    background-color: rgb(227, 233, 255);
    margin: 5% auto;
    padding: 20px;
    border: 1px solid rgb(37, 53, 109);
    width: 100%;
    max-width: 60%;
}
.modal_content img{
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.close{
    color: rgb(37, 53, 109);
    float: right;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 30px;
}
.close:hover, .close:focus{
    color: rgb(97, 125, 224);
    text-decoration: none;
    cursor: pointer;
}
iframe{
    display: block;
    margin: 0 auto;
    text-align: center;
    width: 1200px;
    height: 800px;
}
@keyframes ani_title{
    from{opacity: 0.0;}
    to{opacity: 1.0;}
}
.main_img{
    width: 100%;
    height: 400px;
    text-align: center;
    margin-bottom: 250px;
}
.main_img > img{
    width: 20%;
    height: auto;
}