@import 'https://fonts.googleapis.com/css?family=Raleway';

* {
    outline: none;
    user-select: none;
}

/*body,
html {
    margin: 0;
    background: #ddd;
    color: #7a7b7c;
}

body {
    font-family: "Raleway", "Microsoft JhengHei", Arial, sans-serif;
}*/

/*#videobg {
    width: 100%;
    height: 130%;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}*/

.profile {
    width: 330px;
    height: 100px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px;
    background-color: #fafafa;
    box-shadow: 0 0 2rem #babbbc;
    animation: show-profile 0.5s forwards ease-in-out;
}

@keyframes show-profile {
    0% {
        width: 0;
    }
}

.profile .photo,
.profile .content {
    box-sizing: border-box;
}

.profile .photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fafafa;
    background-color: #fafafa;
    margin-left: -50px;
    box-shadow: 0 0 0.5rem #babbbc;
    animation: rotate-photo 0.5s forwards ease-in-out;
}

@keyframes rotate-photo {
    100% {
        transform: rotate(-360deg);
    }
}

.profile .photo img {
    width: 100%;
}

.profile .content {
    padding: 10px;
    overflow: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.profile .content::before {
    content: "";
    position: absolute;
    width: 230px;
    height: 150px;
    background-color: #e9f3e6;
    left: 0;
    top: -20px;
    z-index: -1;
    transform: rotate(-8deg);
}

.profile .content .text {
    margin-top: 20px;
    margin-left: 50px;
}

.profile .content .text h3,
.profile .content .text h6 {
    font-weight: normal;
    margin: 3px 0;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.profile .content .btn {
    background-color: #abc;
    width: 50px;
    height: 50px;
    position: absolute;
    right: 25px;
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    cursor: pointer;
    transition-duration: 0.3s;
    animation: pop-btn 0.3s both ease-in-out 0.5s;
}

@keyframes pop-btn {
    0% {
        transform: scale(0);
    }
    80% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.profile .content .btn:hover {
    box-shadow: 0 0 0 5px rgba(170, 187, 204, 0.5);
}

.profile .content .btn span {
    width: 60%;
    height: 2px;
    position: absolute;
    background-color: linear-gradient(top, #ff3232 0%, #fcf528 16%, #28fc28 32%, #28fcf8 50%, #272ef9 66%, #ff28fb 82%, #ff3232 100%);
    top: 50%;
    left: 20%;
    transform: translateY(-50%);
    animation: to-hamburger 0.3s forwards ease-in-out;
}

.profile .content .btn span::before,
.profile .content .btn span::after {
    content: "";
    width: 100%;
    height: 2px;
    position: absolute;
    background-color: white;
    transition-duration: 0.3s;
    transform: rotate(0deg);
    right: 0;
}

.profile .content .btn span::before {
    margin-top: -7px;
}

.profile .content .btn span::after {
    margin-top: 7px;
}

.profile .content .btn.active span {
    animation: to-arrow 0.3s forwards ease-in-out;
}

.profile .content .btn.active span::before,
.profile .content .btn.active span::after {
    width: 60%;
    right: -1px;
}

.profile .content .btn.active span::before {
    transform: rotate(45deg);
}

.profile .content .btn.active span::after {
    transform: rotate(-45deg);
}

@keyframes to-hamburger {
    from {
        transform: translateY(-50%) rotate(-180deg);
    }
}

@keyframes to-arrow {
    from {
        transform: translateY(-50%) rotate(0deg);
    }
    to {
        transform: translateY(-50%) rotate(180deg);
    }
}

.profile .box {
    width: 150px;
    height: 150px;
    opacity: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    position: absolute;
    top: 50%;
    right: -40%;
    transform: translate(-50%, -50%);
    transition-duration: 0.3s;
}

.profile .box a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ececec;
    font-size: 26px;
    text-align: center;
    line-height: 50px;
    position: absolute;
    left: 18px;
    top: calc(75px - 50px / 2);
    box-shadow: 0 0 0.5rem #babbbc;
    transition-duration: 0.3s;
}

.profile .box a:hover {
    transition-delay: initial !important;
    box-shadow: 0 0 0 5px #babbbc;
}

.profile .box.open {
    opacity: 1;
}

.profile .box.open a {
    left: 60px;
}

.profile .box.open a:nth-of-type(1) {
    transform: rotate(-90deg) translateX(120px) rotate(90deg);
    transition-delay: 0s;
}

.profile .box.open a:nth-of-type(2) {
    transform: rotate(-45deg) translateX(120px) rotate(45deg);
    transition-delay: 0.1s;
}

.profile .box.open a:nth-of-type(3) {
    transform: rotate(0deg) translateX(120px) rotate(0deg);
    transition-delay: 0.2s;
}

.profile .box.open a:nth-of-type(4) {
    transform: rotate(45deg) translateX(120px) rotate(-45deg);
    transition-delay: 0.3s;
}

.profile .box.open a:nth-of-type(5) {
    transform: rotate(90deg) translateX(120px) rotate(-90deg);
    transition-delay: 0.4s;
}

.text span {
    animation-delay: 0s;
    color: #444;
    text-shadow: 0 0 0 #444;
    animation: start 1s ease-in-out infinite alternate;
    font-size: 38px;

}
/* index_text 字体闪烁*/

.index_text span {
    animation-delay: 0s;
    color: #444;
    text-shadow: 0 0 0 #444;
    animation: start 1s ease-in-out infinite alternate;
    /*font-size: 38px;*/
}

@keyframes start {
    to {
        text-shadow: 0 0 5px #fff,
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 18px #126fcc,
        0 0 20px #126fcc,
        0 0 40px #126fcc;
        color: #fff;
    }
}

.index_text span:nth-child(1) {
    animation-delay: 0.1s;
}

.index_text span:nth-child(2) {
    animation-delay: 0.2s;
}

.index_text span:nth-child(3) {
    animation-delay: 0.3s;
}

.index_text span:nth-child(4) {
    animation-delay: 0.4s;
}

.index_text span:nth-child(5) {
    animation-delay: 0.5s;
}

.index_text span:nth-child(6) {
    animation-delay: 0.6s;
}

.index_text span:nth-child(7) {
    animation-delay: 0.7s;
}

.index_text span:nth-child(8) {
    animation-delay: 0.8s;
}

.index_text span:nth-child(9) {
    animation-delay: 0.9s;
}

.index_text span:nth-child(10) {
    animation-delay: 1s;
}

.index_text span:nth-child(11) {
    animation-delay: 1.1s;
}

.index_text span:nth-child(12) {
    animation-delay: 1.2s;
}
