@charset 'utf-8';
@import url('https://fonts.googleapis.com/css?family=Play');
@import url('https://fonts.googleapis.com/css?family=Monoton');

*{
    margin:0;
    padding: 0;
    color:inherit;
    text-decoration: none;
    font-style: normal;
    list-style: none;
}

img{vertical-align: top;}

#wrap{}
figure{
    background-color:#333;
    position: fixed;
    width: 100%;
    height: 100%;
    top:0;
    left: 0;
}
figure video{
    width: 100%;
    min-width: 1600px;
    /*최소너비
    <-> max-width
    모니터들마다 보는 화면을 동일하게 보여주기 위해 설정해주는 최소값 / 최대값
    */
}

header{
    width: 700px;
    background-image: linear-gradient(-45deg, #e6fc55, #b9fb05,#97e031);
    height: 100%;
    position: fixed;
    transform: skewX(-40deg);
    left:-420px;
    top:0;  
}
h1{
    transform: skewX(40deg);
    width:280px;
    position: fixed;
    left:200px;
    /*header가 skew로 누워있어서*/
    top:40px;
    
}/*일으켜세우기
    브라우저의 왼쪽에서 40px, 위에서 40px 되는 지점에 위치 시키기
    */
h1 img{
    width:100%;
    height: auto;
}

#gnb{
    position: absolute;
    top:150px;
    right: 0;
    width: 220px;
}

#gnb>li{}
#gnb>li>a{
    display: block;
    width: 220px;
    height: 50px;
    font-weight: bold;
    font-size: 18px;
    color:#222;
    font-family: play;
    text-align: right;
    padding-right: 40px;
    box-sizing: border-box;
    line-height: 50px;
}
#gnb span{
    transform: skewX(40deg);
    display: block;
    font-style: italic;
}

#gnb span i{
    margin-right: 3px;
}

#gnb>li>a:hover{
    background-color:#111;
    color:#fff;
}

#gnb>li.on a{
    background-color:#111;
    color:#fff;
}


#gnb>li{
    position: relative;
}
#gnb .sub{
    position: absolute;
    left:0;
    top:0;
    opacity: 0;
    transition: all 0.4s;
    
}
#gnb .sub li{
    margin-bottom: 3px;
}
#gnb .sub li a{
    display: block;
    width:150px;
    height: 40px;
    background-color:#222;
    font-weight: bold;
    font-size: 16px;
    font-family: arial;
    color:#fff;
    text-align: center;
    line-height: 40px;
    border-bottom: 1px solid #b9fb05;
    transition: all 0.5s;
}
#gnb>li:hover .sub{
    left:205px;
    opacity: 0.8;
}
#gnb>li.on .sub{
    left: 205px;
    opacity: 0.8;
}


#gnb .sub li a:hover{
    background-color:#b9fb05;
    color:#333;
}

/*
depth2번 메뉴에 마우스를 올리면
백그라운드색#b9fb05
글자색상 #333

트랜지션 0.5초
*/










#sns{
    color:#b9fb05;
    position: fixed;
    top:60px;
    right: 50px;
    font-size: 25px;
}
#sns li{ 
    float: left;
    margin-left: 30px;
    opacity: 0.5;
    transition: all 0.5s;}

#sns li:hover{
    transform: scale(1.4);
    opacity: 1;
}

article{
    position: fixed;
    top:200px;
    right: 70px;
}
article .txt1{
    font-size: 160px;
    line-height: 1;
    /*
    line-height에 단위를 붙이지 않으면
    폰트사이즈의 배수로 적용된다.
    */
    color:#b9fb05;
    font-family: monoton;
    letter-spacing: -1px;
}
article .txt1 span{
    color:#bbb;
    font-size: 50px;
    font-family: play;
    font-style: italic;
}
article .txt2{
    font-size: 34px;
    color:#bbb;
    font-family: play;
    letter-spacing: -2px;
}
article .txt2 span{
    color:#b9fb05;
    font-family: arial;
    font-weight: bold;
    margin-left: 20px;
}

section{
    width:800px;
    height: 100%;
    transform: skewX(-40deg);
    background-color:#111;
    position: fixed;
    opacity: 0.5;
    right: -800px;
    bottom: 0;
    transition: all 0.5s
}


section .con{
    width:400px;
    height: 100%;
    position: absolute;
    left:150px;
    bottom: 0;
    background:#000;
    transition: all 1s

}



/*
마우스 올리면->
section: 오른쪽에서 -500px, 투명도 80%
         0.5s동안 움직이게 만들기

con: 왼쪽: 50px
        1s동안 움직이게 만들기


*/

section:hover{
    right: -500px;
    opacity: 0.8;
}

section:hover .btn{
    display: none;
}

section:hover .con{
    left: 50px;
}

section .con .con_wrap{
    position: absolute;
    bottom:50px;
    left:50px;
}
section .con p{
    margin-bottom:10px;
    transform:translateX(200px);
    opacity: 0.3;
}

section:hover .con p{
    transform: translateX(0);
    opacity: 1;
}

section .con p:nth-child(1){
    transition: all 0.4s;
}

section .con p:nth-child(2){
    transition: all 0.8s;
}
 
section .con p:nth-child(3){
    transition: all 1.2s;
}







section .con p span{
    color:#a0bd50;
    transform: skewX(40deg);
    display: block;
    font-size: 16px;
    font-family: arial;
    font-weight: bold;
    line-height: 1.7;
}
section .con p a{}
section .con p a img{
    width:300px;
    height: 70px;
}

.btn{
    position: absolute;
    bottom:40px;
    left:100px;
    transform: skewX(40deg);
    width:150px;
}
.btn i{
    font-size: 60px;
    color:#b9fb05;
    position: absolute;
    bottom:0;
    right: 0;
    opacity: 1;
    animation: ani1 1.5s infinite linear;
}
.btn i:nth-child(1){
    animation-delay:0s
}
.btn i:nth-child(2){
       animation-delay:0.5s
 
}
.btn i:nth-child(3){
        animation-delay:1s

}



@keyframes ani1{
    0%{
        opacity: 1;
        right: 0;
    }
    100%{
        opacity: 0;
        right: 100px;
        transform: scale(1.5);
    }

}


/*
애니메이션을 만들자! 이름은 ani1로 통일

시작지점: rigt:0, opacity:1
끝지점 : 크기가 1.5배로 커지면서 오른쪽에서 100px지점으로 이동한 다음, opacity가 0이되어 사라짐

(시간: 1.5s 짜리 애니메이션 / 무한반복시켜주기 / 일정한 시간으로 플레이되게 만들기)

*/







