@charset "utf-8";

/*브라우저 초기화*/
* {
    margin: 0;
    padding: 0;
    text-align: center;
    text-decoration: none;
    letter-spacing: -0.5px;
}

html {
    font-size: 10px;
}

.hidden {
    visibility: hidden;
    width: 0;
    height: 0;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

li {
    list-style: none;
}


#wrap {
    width: 100%;
}

/*헤더*/
#header {
    height: 100vh;
    overflow: hidden;
    background: url(../img/background_img.jpg)center no-repeat;
    background-size: cover;
}

/*배경 애니메이션*/
#bgline {
    position: absolute;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    opacity: 0.8;}

.line {
    position: absolute;
}

#line_1 {
    width: 400px;
    animation-name: line1;
    animation-duration: 10s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    top: -30px;
    left: 10px;

}

#line_2 {
    width: 910px;
    animation-name: line2;
    animation-duration: 30s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    bottom: -300px;
    left: -100px;
}

#line_3 {
    width: 950px;
    animation-name: line3;
    animation-duration: 20s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    top: -500px;
    right: -400px;
}

#line_4 {
    width: 590px;
    animation-name: line4;
    animation-duration: 12s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    bottom: -200px;
    right: 200px;
    transform: rotate(-80deg);

}

@keyframes line1 {
    from {
        top: -30px;
        left: 10px;
    }

    to {
        top: 0px;
        left: 170px;
        transform: rotate(30deg);
    }
}

@keyframes line2 {
    from {
        bottom: -300px;
        left: -100px;
    }

    to {
        bottom: -300px;
        left: -200px;
        transform: rotate(-90deg);
    }
}

@keyframes line3 {
    from {
        top: -500px;
        right: -400px;
    }

    to {
        top: -400px;
        right: -10px;
        transform: rotate(-50deg);
    }
}

@keyframes line4 {
    from {
        bottom: -200px;
        right: 300px;
        transform: rotate(-80deg);
        width: 600px;
    }

    to {
        bottom: -50px;
        right: 0px;
        transform: rotate(30deg);
    }
}





/*헤더 포트폴리오 제목 텍스트*/
#title {
    position: relative;
    top: 40%;
    transform: translateY(-50%);
}

#t1 {
    font: 400 2.6rem/1.5 'Work Sans';
    color: #3c59f8;
    letter-spacing: 1px;
    margin-bottom: 20px;
    animation-name: title;
    animation-duration: 3s;
}

#t2 {
    font: 600 10rem/1.2 'Noto Sans KR';
    color: #fff;
    letter-spacing: -5px;
    animation-name: title;
    animation-duration: 3s;
}

@keyframes title {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#t3 {
    font: 300 2rem/2 'Noto Sans KR';
    color: #fff;
    margin-top: 50px;
    animation-name: text;
    animation-duration: 2s;
}

@keyframes text {
    from {
        opacity: 0;
        position: relative;
        top: 200px;
    }

    to {
        opacity: 1;
        position: relative;
        top: 0px;
    }
}

/*정보-이름,메일,번호*/
#info {
    width: 100%;
    height: 50px;
    margin: 0 auto;
    position: absolute;
    bottom: 170px;
    left: 50%;
    transform: translateX(-50%);
}

#info > ul {
    display: flex;
    justify-content: space-between;
}

#info > ul > li {
    float: left;
    width: 33.333333%;
    height: 50px;
}

#info > ul > li > p {}

#info1 {
    font: 600 1.6rem/1.8 'Noto Sans KR';
    color: #000;
}

#info1 > p {
    font: 400 1.6rem/1.8 'Rubik';
    color: #3c59f8;
    letter-spacing: 0px;
    font-family: 'Rubik', 'Noto Sans KR'
}

#info2 {
    font: 600 1.6rem/1.8 'Noto Sans KR';
    color: #3c59f8;
}

#info2 > p {
    font: 400 1.6rem/1.8 'Rubik';
    color: #000;
    letter-spacing: 0px;
}

#info3 {
    font: 600 1.6rem/1.8 'Noto Sans KR';
    color: #000;
}

#info3 > p {
    font: 400 1.6rem/1.8 'Rubik';
    color: #3c59f8;
    letter-spacing: 0px;
}


/*하단 버튼*/
#btn {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

#btn > a {
    display: block;
    width: 50px;
    height: 50px;
}

#btn > a {
    animation-duration: 1s;
    animation-name: updown;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

@keyframes updown {
    from {
        margin-top: -40%;
    }

    to {
        margin-left: 0%;
        opacity: 0.2;
    }
}

#btn > a > img {
    width: 100%;
}











/*컨텐츠 영역*/
#contentwrap {
    overflow: hidden;
    background-color: #ffffff;
}

#portfolio {
    display: grid;
    grid-gap: 0px;
    grid-template-columns: auto auto auto auto auto;
}

#portfolio > li {
    position: relative;
}

#portfolio > li:after {
    content: "";
    display: block;
    padding-bottom: 100%;
}

.category {
    font: 500 1.6rem/1.8 'Work Sans';
    color: #3c59f8;
}

.catext {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.category img {
    width: 20%;
    margin-top: 10px;
}




#portfolio > li > div {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#portfolio > li:hover .text {
    display: block;
}

.text {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    /*    background-color: rgba(255, 248, 199, 0.85);*/
    padding: 100% 0;
    display: none;
}

#portfolio > li:nth-child(2) .text,
#portfolio > li:nth-child(3) .text,
#portfolio > li:nth-child(4) .text,
#portfolio > li:nth-child(5) .text {
    background-color: rgba(255, 253, 203, 0.85);
}

#portfolio > li:nth-child(7) .text,
#portfolio > li:nth-child(8) .text,
#portfolio > li:nth-child(9) .text,
#portfolio > li:nth-child(10) .text {
    background-color: rgba(243, 236, 255, 0.85);
}

#portfolio > li:nth-child(12) .text,
#portfolio > li:nth-child(13) .text {
    background-color: rgba(212, 252, 255, 0.85);
}




.text > h3 {
    font: 500 2rem/1.4 'Noto Sans KR';
    letter-spacing: -1px;
}

.text > h3 > p {
    margin: 10px 0px 20px 0px;
    font: 400 1.6rem/1.8 'Work Sans';
    letter-spacing: 0px;
}

.text > button {
    width: 35%;
    height: 30px;
    outline: none;
    border: 2px solid #3c59f8;
    background-color: rgba(255, 255, 255, 0);
    margin-right: 5px;
}

.text > button:hover {
    border-color: #ff3198;

}

.text > button:hover a {
    color: #ff3198;

}

.text > button:last-child {
    margin-right: 0px;
}

.text > button > a {
    display: block;
    width: 100%;
    height: 100%;
    color: #3c59f8;
    font: 500 1.5rem/26px 'Work Sans';
    letter-spacing: 0.5px;
}

#aladin3 {
    margin-top: 8px;
}

#btn1,
#btn2,
#btn3,
#btn4
{
    background-color: #3c59f8;
    
}
#btn1:hover,
#btn2:hover,
#btn3:hover,
#btn4:hover {
    background-color: #ff3198;
}

#btn1 > a ,
#btn2 > a,
#btn3 > a,
#btn4 > a
{
    color: #fff;
}



/*웹디자인*/
#portfolio > li:nth-child(1) {
    background-color: #fffdcb;
}

#portfolio > li:nth-child(2) {
    background: url(../img/mainbanner-02.jpg)center no-repeat;
    background-size: cover;
}

#portfolio > li:nth-child(3) {
    background: url(../img/mainbanner-03.jpg)center no-repeat;
    background-size: cover;
}

#portfolio > li:nth-child(4) {
    background: url(../img/mainbanner-04.jpg)center no-repeat;
    background-size: cover;
}

#portfolio > li:nth-child(5) {
    background: url(../img/mainbanner-05.jpg)center no-repeat;
    background-size: cover;
}

/*시각디자인*/
#portfolio > li:nth-child(6) {
    background-color: #f3ecff;
}

#portfolio > li:nth-child(7) {
    background: url(../img/mainbanner-07.jpg)center no-repeat;
    background-size: cover;
}

#portfolio > li:nth-child(8) {
    background: url(../img/mainbanner-08.jpg)center no-repeat;
    background-size: cover;
}

#portfolio > li:nth-child(9) {
    background: url(../img/mainbanner-09.jpg)center no-repeat;
    background-size: cover;
}

#portfolio > li:nth-child(10) {
    background: url(../img/mainbanner-10.jpg)center no-repeat;
    background-size: cover;
}

/*가구리빙*/
#portfolio > li:nth-child(11) {
    background-color: #d4fcff;
}

#portfolio > li:nth-child(12) {
    background: url(../img/mainbanner-12.jpg)center no-repeat;
    background-size: cover;
}

#portfolio > li:nth-child(13) {
    background: url(../img/mainbanner-13.jpg)center no-repeat;
    background-size: cover;
}

/*내정보*/
#portfolio > li:nth-child(14) {
    background: url(../img/white_img.jpg)center no-repeat;
    background-size: cover;
}

#portfolio > li:nth-child(15) {
    background: url(../img/profile.jpg)center no-repeat;
    background-size: cover;
    background-color: #b3b3b3;
}
























/*푸터*/
#footer {
    width: 100%;
    height: 220px;
    background-color: #4b4b4b;
    background: url(../img/background_img.jpg)center no-repeat;
    background-size: cover;
}
#footer > div {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

#thank1 {
    font: 600 2rem/1.8 'Noto Sans';
    color: #3c59f8;
    color: #fff;
}
#thank2 {
    font: 300 1.6rem/1.8 'Work Sans';
    letter-spacing: 0.5px;
    color: #3c59f8;
    color: #fff;
}














/*태블릿 설정(1023px 이하)*/
@media all and (max-width:1023px) {
    html {
        font-size: 8.5px;
    }

    #header {
        /*    height: 60vh;*/
    }

    #portfolio {
        grid-template-columns: auto auto auto;
    }

    #portfolio > li:nth-child(5) {}

    #portfolio > li:nth-child(6) {}

    #portfolio > li:nth-child(14) {
        grid-column: 3;
        grid-row: 2;
    }

    #portfolio > li:nth-child(15) {
        grid-column: 3;
        grid-row: 3;
    }
}


/*모바일 설정 (767px 이하)*/
@media all and (max-width:767px) {
    html {
        font-size: 7px;
    }

    #t1 {
        width: 241px;
        margin: 0 auto 20px auto;
    }

    #t2 {
        width: 201px;
        margin: 0 auto;
        font: 600 8rem/1.2 'Noto Sans KR';
    }

    #t3 {
        width: 335px;
        margin: 0 auto;
        margin-top: 30px;
    }

    #info {
        width: 90%;
        height: 50px;
        margin: 0 auto;
        position: absolute;
        bottom: 100px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    
/*    컨텐츠 텍스트*/
    .text > h3 {
        font: 500 2rem/1.4 'Noto Sans KR';
        letter-spacing: -1px;
        margin-bottom: 10px;
    }

    .text > h3 > p {
        margin: 5px 0px 10px 0px;
        font: 400 0rem/0 'Work Sans';
        letter-spacing: 0px;
        display: none;
    }

    .text > button {
        width: 35%;
        height: 22px;
        outline: none;
        border: 2px solid #3c59f8;
        background-color: rgba(255, 255, 255, 0);
        margin-right: 5px;
    }

    .text > button:hover {
        border-color: #ff3198;

    }

    .text > button:hover a {
        color: #ff3198;

    }

    .text > button:last-child {
        margin-right: 0px;
    }

    .text > button > a {
        display: block;
        width: 100%;
        height: 100%;
        color: #3c59f8;
        font: 500 1.5rem/20px 'Work Sans';
    }




























}
