@import url("https://fonts.googleapis.com/css?family=Orbitron");

@keyframes ani {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

body {
    font-family: "Orbitron";
}

#wrap {
    width: 100%;
    height: 100%;
    position: absolute;
    perspective: 1300px;
    overflow: hidden;
}

#wrap video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

#contents {
    position: absolute;
    width: 600px;
    height: 800px;

    left: 38%;
    top: 21%;

    transform-style: preserve-3d;
    animation: ani 20s linear 0s infinite forwards;
}

#contents .article {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

#contents .article > h2 {
    font-size: 30px;
    color: white;
    height: 5%;
}

#contents ul {
    width: 100%;
    height: 95%;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    box-sizing: border-box;
}

#contents .article .article-content-row li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 48%;
    height: 30%;
    color: white;

    padding: 5px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.5s;
}

#contents .article li i {
    font-size: 150px;
    margin-bottom: 30px;
}

#contents .article li:hover {
    color: lightcyan;
    text-shadow: 0px 0px 10px aqua;
    transform: scale(1.1);
    opacity: 1;
}

#contents .article .article-content-all li {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.15);
    font-size: 20px;
    padding: 50px 30px;
    color: white;

    box-sizing: border-box;
    overflow: hidden;
}

#contents .article .article-content-all img {
    margin: 30px 0px 50px 0px;
    width: 100%;
}
#contents .article .article-content-all p {
    margin-bottom: 15px;
    font-size: 16px;
}

#contents .article:nth-child(1) {
    transform: rotateY(45deg) translateZ(-750px);
}

#contents .article:nth-child(2) {
    transform: rotateY(90deg) translateZ(-750px);
}

#contents .article:nth-child(3) {
    transform: rotateY(135deg) translateZ(-750px);
}

#contents .article:nth-child(4) {
    transform: rotateY(180deg) translateZ(-750px);
}

#contents .article:nth-child(5) {
    transform: rotateY(225deg) translateZ(-750px);
}

#contents .article:nth-child(6) {
    transform: rotateY(270deg) translateZ(-750px);
}

#contents .article:nth-child(7) {
    transform: rotateY(315deg) translateZ(-750px);
}

#contents .article:nth-child(8) {
    transform: rotateY(0deg) translateZ(-750px);
}
