@import url("./gen.css");

.about {
    display: flex;
    font-size: 4vw;
    font-family: "AstroSpace";
    background: var(--abtcon-color);
    justify-content: space-evenly;
    align-items: center;
}

.about-txt {
    display: grid;
    width: 50%;
    height: 50%;
    grid-template-rows: [row1-start] 33% [row1-end row2-start] 67% [row2-end];
}

.about-heading {
    grid-row: 1;
    position: sticky;
    align-self: center;
}

.about-desc {
    grid-row: 2 / span 3;
    align-self: start;
    font-family: "Prototype";
    font-size: 2.5vw;
    text-shadow: 2px 2px var(--black-sub);
    color: white;
    /* transform: translateY(-100%); */
    letter-spacing: .25vh;
}

.card {
    position: static;
    top: 50%;
    right: 50%;
    width: 20vw;
    height: 20vw;
    /* float: left; */
    perspective: 500px;
}

.card .content {
    position: absolute;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 15px var(--black-sub);
    transition: transform 1s;
    transform-style: preserve-3d;
    border-radius: 50%;
}

.card:hover .content {
    transform: rotate3d(1, 1, 0, 180deg);
    transition: transform 1s;
}

.front,
.back {
    position: absolute;
    height: 100%;
    width: 100%;
    line-height: 10px;
    text-align: center;
    border-radius: 50%;
    backface-visibility: hidden;
}

.front {
    background-image: url(./images/portrait.jpeg);
    background-size: 20vw;
    background-position: center;
}

.back {
    background-image: url(./images/photoCade.JPG);
    background-size: 20vw;
    background-position: 45% 50%;
    transform: rotate3d(1, 1, 0, 180deg);
}

.portrait {
    size: 10px 10px;
}

#pulse {
    cursor: alias;
    text-shadow: 2px 2px var(--black-sub);
    animation: pulsate 3s ease-out;
    animation-iteration-count: infinite;
    animation-delay: calc(var(--order) * 200ms);
}

@keyframes pulsate {
    0% {
        opacity: 0.25;
    }

    50% {
        opacity: 1.0;
        color: #ffea00;
    }

    100% {
        opacity: 0.25;
    }
}

#changer {
    opacity: 1;
    transition: opacity .5s;
}

.hide {
    opacity: 0 !important;
}

@media screen and (max-width: 1400px) {
    .about {
        font-size: 4vh;
        flex-direction: column;
    }

    .about-desc {
        font-size: 2.5vh;
    }

    .card {
        height: 20vh;
        width: 20vh;
    }
    
    .front {
        background-size: 100%;
    }

    .back {
        background-size: 150%;
    }
}