body {
    overflow: hidden;
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #222;
    color: #ccc;
    cursor: url(../images/default.cur), auto ;
}

.index {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    /* display: none; */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    background-color: #222;
    transition: transform 1s;
}

.avatar {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-color: #434860;
    /* color: #7988e6; */
}

.mask {
    overflow: hidden;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 200px;
    /* background-color: pink; */
    border-radius: 0 0 80px 80px;
}

.mask img {
    width: 160px;
    height: 160px;
    margin-top: 40px;
    transform-origin: center bottom;
    transition: all .3s;
}

.avatar:hover img {
    transform: scale(1.4);
}

.avatar:hover {
    border: 2px solid rgba(255, 255, 255, .1);
    box-shadow: 0 0 10px 2px rgba(0, 0, 0, .5) inset;
}

.desc {
    margin-top: 30px;
    font-size: 30px;
    color: #666b8d;
    /* font-family: 'Great Vibes', cursive; */
    /* font-family: 'Courgette', cursive; */
    font-family: 'Caveat', cursive;
}

.desc:hover {
    color: #a7aed4;
}

.name {
    display: flex;
}

.name li {
    margin: 0 10px;
    font-size: 90px;
    font-weight: bold;
    font-family: 'Fredoka One', cursive;
    color: #fff;
    cursor: url(../images/default.cur), auto;
    text-shadow: 3px 4px 0 rgba(255, 255, 255, .5),
                4px 5px 0 rgba(255, 255, 255, .2);
    /* animation: dance 3s linear infinite; */
}

.name li:hover {
    animation: dance .5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes dance {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.contact {
    display: flex;
    margin-top: 30px;
    background-color: rgba(255, 255, 255, .1);
    border-radius: 20px;
    border: 1px solid #aaa;
    color: #ccc;
    transition: border .3s;
}

.contact:hover {
    border-color: #fff;
}

.contact li {
    margin: 10px;
    /* background-color: red; */
    cursor: url(../images/pointer.cur), auto;
}

.contact li a {
    font-size: 24px;
    color: #ccc;
    transition: color .3s;
}

.contact li a:hover {
    color: #fff;
    /* filter: brightness(2); */
}

.arrow {
    position: absolute;
    bottom: 20px;
    font-size: 20px;
    animation: twinkle 2s linear infinite;
}

@keyframes twinkle {
    0%,
    100% {
        opacity: 0;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(5px);
    }
}

.other {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    /* display: none; */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    transform: translateY(30vh);
    transition: all .5s;
}

.link {
    overflow: hidden;
    position: relative;
    width: 100px;
    height: 100px;
    max-width: 100px;
    border-radius: 50%;
    border: 3px solid #ccc;
    transition: all .6s;
}

.link:hover {
    border-color: #fff;
}

.title {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 30px;
    font-family: 'Arvo', serif;
    transition: all .3s;
    transform: translate(-50%, -50%);
}

.link:hover .title {
    color: #fff;
}

.link-list {
    display: none;
}

.link-list li {
    width: 100px;
    height: 100px;
    margin: 0 20px;
    padding: 10px 20px;
    border-bottom: 2px solid transparent;
    transition: all .3s;
    cursor: url(../images//pointer.cur), auto;
}

.link-list li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ccc;
}

.link-list li a .icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.link-list li a .text {
    font-family: 'Fredoka One', cursive;
    font-size: 18px;
}

.link-list li:hover {
    border-color: #ccc;
    /* background-color: rgba(255, 255, 255, .1); */
    
}

.link-list li:hover a {
    color: #fff;
}

.link-list li:hover .icon {
    animation: dance .5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.active {
    width: auto;
    max-width: 600px;
    height: auto;
    border-radius: 20px;
    padding: 50px ;
}

.active .link-list {
    display: flex;
    /* width: auto; */
}

.active .title {
    display: none;
}

footer {
    position: absolute;
    bottom: 20px;
    font-family: 'Abril Fatface', cursive;
    font-size: 16px;
    color: #ccc;
}

.transition-mask {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    background-color: #000;
    transition: transform 1s;
    transition-delay: .2s;
}

.up .index {
    transform: translateY(-200vh);
    /* box-shadow: 0 10px 40px 2px rgba(255, 255, 255, .5); */
}

.up .other {
    transform: translateY(0);
}

.up .transition-mask {
    transform: translateY(-200vh);
}