@charset "utf-8";

* {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
    padding: 0;
}

a:any-link {
    text-decoration: none;
}

html,
body {
    height: 100%;
}

html {
    /*          background: #83C1FF;*/
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
}




/* 소개말 */
 h2 {
        width: 100%;
        text-align: center;
        font-size: 1.5em;
        font-family: "pre";
        font-weight: bold;
        position: absolute;
        top: 9%;
        color: #000; 
        opacity: 1; 
        transition: opacity 0.5s ease;
    }

/*
    .intro {
        animation: blink-animation 1s steps(2, start) infinite;
    }

    @keyframes blink-animation {
        to {
            visibility: hidden;
        }
    }
*/




/* 먼지 */
.box {
    width: 100%;
    height: 100%;
    max-width: 100%;
    background: lighten(#f0f4c3, 10%);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wave {
    position: relative;
    width: 25%;
    margin-bottom: 80px;
}

.wave::after {
    display: block;
    content: "";
    padding-bottom: 100%;
}

.wave {
    opacity: .5;
    position: absolute;
    background: #000000;
    transform-origin: 50% 48%;
    border-radius: 43%;
    animation: drift 000ms infinite linear;
}

.wave.-three {
    animation: drift 5000ms infinite linear;
}

.wave.-two {
    animation: drift 7000ms infinite linear;
}


@keyframes drift {
    from {
        transform: rotate(0deg);
    }

    from {
        transform: rotate(360deg);
    }
}





/* 먼지 눈알 */
.eyes {
    position: absolute;
    width: 18%;
    height: 9vw;
    display: grid;
    grid-template-columns: auto auto;
    grid-gap: 5%;
    animation: blink 5s ease infinite;
    margin-bottom: 80px;

}

@keyframes blink {

    0%,
    98% {
        height: 9vw;
    }

    99% {
        height: 1vh;
    }

    100% {
        height: 9vw;
    }
}

.left,
.right {
    background-color: #fff;
    border-radius: 50%;
    overflow: hidden;
    height: 100%;
}

.left p,
.right p {
    width: 100%;
    height: 50%;
    margin: 35% auto;
    animation: bar 3s infinite;
    animation-direction: alternate;
}


@keyframes bar {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(180deg);
    }
}


.left span,
.right span {
    background-color: #000;
    width: 50%;
    height: 100%;
    position: absolute;
    border-radius: 50%;
    animation: eyes 3s infinite;
    animation-direction: alternate;
}

@keyframes eyes {
    0% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(0);
    }
}





/* 프로젝트 */
.text {
    font-family: "pre";
    font-size: 0.8em;
    line-height: 1.5em;
    text-align: center;
}

.text a {
    color: #000;
}

.text a:hover {
    color: #ddd;
}


.pro {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(4, auto);
    grid-gap: 50px;
    left: 50%;
    bottom: 5%;
    transform: translateX(-50%);
    justify-content: center;
}


.pro li:hover img {
	opacity: 1;
	-webkit-animation: flash 1.5s;
	animation: flash 1.5s;
}
@-webkit-keyframes flash {
	0% {
		opacity: .4;
	}
	100% {
		opacity: 1;
	}
}
@keyframes flash {
	0% {
		opacity: .4;
	}
	100% {
		opacity: 1;
	}
}






/* 모바일 추가 */
@media all and (max-width:767px) {
    .pro {
        grid-template-columns: auto auto;
        grid-gap: 20px;
    }

}






/*움직이는 텍스트*/
/*
.animated-title {
    font-size: 3em;
    font-family: sans-serif;
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 100%;
    max-width: 100%;
    height: auto;
    padding-top: 60px;
    overflow: hidden;
}

.animated-title .track {
    position: absolute;
    white-space: nowrap;
    will-change: transform;
    animation: ys 60s linear infinite;
}

@keyframes ys {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (hover: hover) and (min-width: 700px) {
    .animated-title .content {
        -webkit-transform: translateY(calc(100% - 8rem));
        transform: translateY(calc(100% - 8rem));
    }
}*/