/* Scss Document */
@import url(https://fonts.googleapis.com/css?family=Bad+Script);
* {
    box-sizing: border-box;
    font-family: 'Bad Script', 'fot-klee-pro';
}

html {
    height: 100%;
}

body {
    overflow: hidden;
    position: fixed;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    font: normal 14px/1.618em "Roboto", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body:before {
    content: "";
    height: 0;
    padding: 0;
    border: 130em solid #313440;
    position: absolute;
    left: 50%;
    top: 100%;
    z-index: 2;
    display: block;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-animation: puff 0.5s 1.8s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards, borderRadius 0.2s 2.3s linear forwards;
    animation: puff 0.5s 1.8s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards, borderRadius 0.2s 2.3s linear forwards;
}

h1,
h2 {
    font-weight: 500;
    margin: 0 0 5px;
}

h1 {
    font-size: 24px;
}

h2 {
    font-size: 16px;
}

p {
    margin: 0;
}

.profile-card {
    width: 56px;
    height: 56px;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    overflow: hidden;
    opacity: 0;
    margin-top: 70px;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-border-radius: 50%;
    border-radius: 50%;
    -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    -webkit-animation: init 0.5s 0.2s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards, moveDown 1s 0.8s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards, moveUp 1s 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, materia 0.5s 2.7s cubic-bezier(0.86, 0, 0.07, 1) forwards;
    animation: init 0.5s 0.2s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards, moveDown 1s 0.8s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards, moveUp 1s 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, materia 0.5s 2.7s cubic-bezier(0.86, 0, 0.07, 1) forwards;
}

@-webkit-keyframes init {
    0% {
        width: 0;
        height: 0;
    }
    100% {
        width: 56px;
        height: 56px;
        margin-top: 0;
        opacity: 1;
    }
}

@keyframes init {
    0% {
        width: 0;
        height: 0;
    }
    100% {
        width: 56px;
        height: 56px;
        margin-top: 0;
        opacity: 1;
    }
}

@-webkit-keyframes puff {
    0% {
        top: 100%;
        height: 0;
        padding: 0;
    }
    100% {
        top: 50%;
        height: 100%;
        padding: 0 100%;
    }
}

@keyframes puff {
    0% {
        top: 100%;
        height: 0;
        padding: 0;
    }
    100% {
        top: 50%;
        height: 100%;
        padding: 0 100%;
    }
}

@-webkit-keyframes borderRadius {
    0% {
        -webkit-border-radius: 50%;
    }
    100% {
        -webkit-border-radius: 0;
    }
}

@keyframes borderRadius {
    0% {
        -webkit-border-radius: 50%;
    }
    100% {
        border-radius: 0;
    }
}

@-webkit-keyframes moveDown {
    0% {
        top: 50%;
    }
    50% {
        top: 40%;
    }
    100% {
        top: 100%;
    }
}

@keyframes moveDown {
    0% {
        top: 50%;
    }
    50% {
        top: 40%;
    }
    100% {
        top: 100%;
    }
}

@-webkit-keyframes moveUp {
    0% {
        top: 100%;
    }
    50% {
        top: 40%;
    }
    100% {
        top: 50%;
    }
}

@keyframes moveUp {
    0% {
        top: 100%;
    }
    50% {
        top: 40%;
    }
    100% {
        top: 50%;
    }
}

@-webkit-keyframes materia {
    0% {
    }
    50% {
        -webkit-border-radius: 4px;
    }
    100% {
        width: 440px;
        height: 280px;
        -webkit-border-radius: 4px;
    }
}

@keyframes materia {
    0% {
    }
    50% {
        border-radius: 4px;
    }
    100% {
        width: 440px;
        height: 280px;
        border-radius: 4px;
    }
}

@-webkit-keyframes moveIn {
    0% {
        margin-top: 50px;
        opacity: 0;
    }
    100% {
        opacity: 1;
        margin-top: -20px;
    }
}

@keyframes moveIn {
    0% {
        margin-top: 50px;
        opacity: 0;
    }
    100% {
        opacity: 1;
        margin-top: -20px;
    }
}

@-webkit-keyframes scaleIn {
    0% {
        -webkit-transform: scale(0);
    }
    100% {
        -webkit-transform: scale(1);
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@-webkit-keyframes ripple {
    0% {
        transform: scale3d(0, 0, 0);
    }
    100%,
    50% {
        -webkit-transform: scale3d(1, 1, 1);
    }
    100% {
        opacity: 0;
    }
}

@keyframes ripple {
    0% {
        transform: scale3d(0, 0, 0);
    }
    100%,
    50% {
        transform: scale3d(1, 1, 1);
    }
    100% {
        opacity: 0;
    }
}

@media screen and (min-aspect-ratio: 4 / 3) {
    body {
        background-size: cover;
    }
    body:before {
        width: 0;
    }
    @-webkit-keyframes puff {
        0% {
            top: 100%;
            width: 0;
            padding-bottom: 0;
        }
        100% {
            top: 50%;
            width: 100%;
            padding-bottom: 100%;
        }
    }
    @keyframes puff {
        0% {
            top: 100%;
            width: 0;
            padding-bottom: 0;
        }
        100% {
            top: 50%;
            width: 100%;
            padding-bottom: 100%;
        }
    }
}

@media screen and (min-height: 480px) {
    @-webkit-keyframes materia {
        0% {
        }
        50% {
            -webkit-border-radius: 4px;
        }
        100% {
            width: 500px;
            height: 720px;
            -webkit-border-radius: 4px;
        }
    }
    @keyframes materia {
        0% {
        }
        50% {
            border-radius: 4px;
        }
        100% {
            width: 500px;
            height: 720px;
            border-radius: 4px;
        }
    }
}

@media screen and (max-width: 500px) {
    @-webkit-keyframes materia {
        0% {
        }
        50% {
            -webkit-border-radius: 4px;
        }
        100% {
            width: 100%;
            height: 100%;
            -webkit-border-radius: 4px;
        }
    }
    @keyframes materia {
        0% {
        }
        50% {
            border-radius: 4px;
        }
        100% {
            width: 100%;
            height: 100%;
            border-radius: 4px;
        }
    }
}

@media (max-height: 720px) and (min-width: 520px) {
    @-webkit-keyframes materia {
        0% {
        }
        50% {
            -webkit-border-radius: 4px;
        }
        100% {
            width: 520px;
            height: 100%;
            -webkit-border-radius: 4px;
        }
    }
    @keyframes materia {
        0% {
        }
        50% {
            border-radius: 4px;
        }
        100% {
            width: 520px;
            height: 100%;
            border-radius: 4px;
        }
    }
}

.card .front {
    border-radius: 10px;
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.card .front {
    transform: rotateY(0deg);
    overflow: hidden;
    z-index: 1;
}

.card .front .arrow {
    position: absolute;
    height: 50px;
    line-height: 50px;
    font-size: 30px;
    z-index: 10;
    top: 0;
    right: 80px;
    color: rgba(255, 255, 255, 0.5);
    animation: arrowWiggle 1s ease-in-out infinite;
}

.card .front .top-pic {
    height: 35%;
    width: 100%;
    background-size: cover;
}

.card .front #keiko-top-pic {
    background-image: url("../img/profile-bg.jpg");
}

.card .front #dai-top-pic {
    background-image: url("../img/profile-bg2.jpg");
}

.card .front #koko-top-pic {
    background-image: url("../img/profile-bg3.jpg");
}

.card .front .avatar {
    width: 114px;
    height: 114px;
    top: 35%;
    left: 50%;
    margin: -77px 0 0 -57px;
    border-radius: 100%;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8), 0 4px 5px rgba(107, 5, 0, 0.6), 0 0 50px 50px rgba(255, 255, 255, 0.25);
    background-size: contain;
    position: absolute;
    z-index: 1;
}

.card .front #keiko-avatar {
    background-image: url("../img/keiko-profile.jpg");
}

.card .front #dai-avatar {
    background-image: url("../img/dai-profile.jpg");
}

.card .front #koko-avatar {
    background-image: url("../img/koko-profile.jpg");
}

.card .front .info-box {
    height: 65%;
    width: 100%;
    position: relative;
    display: table;
    left: 0;
    bottom: 0;
    padding: 50px;
}

.card .front #keiko-info-box {
    background: rgba(255, 187, 233, 0.35);
}

.card .front #dai-info-box {
    background: rgba(160, 229, 253, 0.35);
}

.card .front #koko-info-box {
    background: rgba(255, 220, 181, 0.35);
}

.card .front #keiko-social-bar a {
    color: #fdbaed;
}

.card .front #dai-social-bar a {
    color: #96caff;
}

.card .front #koko-social-bar a {
    color: #fcdcba;
}

.card .front .social-bar {
    height: 50px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    line-height: 50px;
    font-size: 18px;
    text-align: center;
}

.card .front .social-bar a {
    display: inline-block;
    text-decoration: none;
    padding: 5px;
    line-height: 18px;
    border-radius: 5px;
    transition: 0.5s ease-in-out;
}

.card .front .social-bar a:hover {
    color: #450300;
    background: rgba(255, 255, 255, 0.3);
    transition: 0.25s ease-in-out;
}

.card .front .social-bar a .fab {
    font-size: 25px;
}

.card .info {
    display: table-cell;
    height: 100%;
    vertical-align: middle;
    text-align: center;
}

#background {
    position: fixed;
    background-color: black;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

#background #background-image {
    height: calc(100% + 60px);
    width: calc(100% + 60px);
    position: absolute;
    top: -30px;
    left: -30px;
    -webkit-filter: blur(10px);
    background-image: url("../img/profile-bg.jpg");
    background-size: cover;
}

@keyframes arrowWiggle {
    0% {
        right: 80px;
    }
    50% {
        right: 65px;
    }
    100% {
        right: 80px;
    }
}

.filter-btn {
    position: absolute;
    z-index: 2;
    right: 0;
    width: 40px;
    height: 40px;
    transition: all 0.4s ease-in-out 0s;
}

.filter-btn span {
    width: 40px;
    height: 40px;
    background: #fdc872;
    display: block;
    position: absolute;
    right: 25px;
    top: -46px;
    text-align: center;
    color: #fff;
    line-height: 40px;
    border-radius: 50%;
    font-size: 22px;
    z-index: 999;
}

.filter-btn a {
    display: none;
    position: absolute;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    right: 25px;
    top: -46px;
    color: #fff;
    z-index: 99;
    font-size: 22px;
    transition: all 0.4s cubic-bezier(0.68, 1, 0.265, 1);
}

span.toggle-btn.ion-android-funnel:hover {
    cursor: pointer;
}

.filter-btn:after {
    height: 170px;
    width: 170px;
    content: '"\f38b"';
    background-color: rgba(0, 0, 0, 0.68);
    position: absolute;
    top: -110px;
    right: -40px;
    border-radius: 50%;
    transform: scale(0);
    transition: all 0.3s ease-in-out 0s;
}

.filter-btn.open span.toggle-btn.ion-android-funnel {
    background-color: #fdbaed;
}

.filter-btn.open .ion-android-funnel:before {
    content: "\f2d7";
}

.open:after {
    transform: scale(1);
}

.filter-btn.open a:nth-child(1) {
    transform: translate(9px, -62px);
}

.filter-btn.open a:nth-child(2) {
    transform: translate(-50px, -34px);
}

.filter-btn.open a:nth-child(3) {
    transform: translate(-56px, 25px);
}

.filter-btn.open a:nth-child(4) {
    transform: translate(5px, 61px);
}

.bottom {
    min-height: 303px;
    z-index: 1;
    padding: 25px;
    position: relative;
    color: #222;
    padding-top: 0;
}

.bottom .title {
    margin-bottom: 30px;
}

.bottom .title h3 {
    font-size: 30px;
    margin-bottom: 5px;
}

.bottom .title small {
    font-size: 10px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bottom .profile-item i {
    font-size: 20px;
    color: #fff;
}

.bottom .profile-item span {
    font-size: 16px;
    display: inline-block;
    margin-bottom: 12px;
    margin-left: 10px;
    color: #fff;
}

.bottom .bg-black {
    height: 270px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 13px;
    box-shadow: 1px 1px 32px #ffffffba;
}

.bottom .memories {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 20px;
    margin-top: 10px;
}

.bottom #dai-favorite-item,
.bottom #dai-gallery-item,
.bottom #dai-message-item,
.bottom #keiko-favorite-item,
.bottom #keiko-gallery-item,
.bottom #keiko-message-item,
.bottom #koko-favorite-item,
.bottom #koko-gallery-item,
.bottom #koko-message-item {
    display: none;
}

#dai-profile,
#koko-profile {
    display: none;
}

#keiko-profile h3,
#keiko-profile p,
#keiko-profile span {
    text-shadow: 1px 1px 4px #fdb7ecd6;
}

#dai-profile h3,
#dai-profile p,
#dai-profile span {
    text-shadow: 1px 1px 4px rgba(191, 216, 249, 0.84);
}

#koko-profile h3,
#koko-profile p,
#koko-profile span {
    text-shadow: 1px 1px 4px rgba(253, 220, 183, 0.83);
}

.nav {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 0;
}

.nav a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    display: block;
    box-sizing: border-box;
    background-color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.14);
}

.nav a.contact {
    width: 60px;
    height: 60px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
}

.nav a.contact {
    text-decoration: none;
}

.nav a.contact i,
.nav a.contact img {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.nav a.contact i {
    font-size: 38px;
    color: #5d5d5d;
}

.nav a.keiko-nav {
    position: absolute;
    left: 113px;
    top: -5px;
    background-image: url("../img/keiko-profile.jpg");
    background-size: cover;
}

.nav a.dai-nav {
    position: absolute;
    left: 115px;
    top: 59px;
    background-image: url("../img/dai-profile.jpg");
    background-size: cover;
}

.nav a.koko-nav {
    position: absolute;
    left: 65px;
    top: 106px;
    background-image: url("../img/koko-profile.jpg");
    background-size: cover;
    background-position: top;
}

.nav a.logo-nav {
    position: absolute;
    top: 114px;
    left: 0;
    background-image: url("../img/the-border-logo.png");
    background-size: cover;
}

.nav .item {
    display: none;
}

.contact.active .open,
.contact:not(.active) .close {
    display: none;
}

.contact.active .close,
.contact:not(.active) .open {
    display: block;
}

@media (max-width: 420px) {
    .info-box .bottom {
        padding: 0;
    }
    .info-box .bottom h3 {
        font-size: 22px;
    }
    .info-box .bottom .title {
        margin-bottom: 15px;
    }
    .info-box .bottom .profiles .profile-item span {
        font-size: 14px;
    }
}
