/*
    Daniel Song
    stylesheet for contact page
*/ 

#content {
    display:flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin-left: -20%; 
}
.scene {
    perspective: 500px; 
    width: 400px;
    height: 220px;
    transition: transform 0.4s ease; 
    cursor: crosshair; 
}

.card {

    margin: 0px;
    padding: 0px;
    width: 400px;
    height: 220px; 
    transform-style: preserve-3d; 
    position: relative; 
    transition: transform 0.75s ease; 
}

#card_img {
    position: absolute;
    bottom: 10px;
    right: 25px;
    max-width: 30%;
}

.scene:hover {
    transform: scale(1.02)
}



.front {
    border-radius: 7px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: absolute;
    background-color: var(--bgcolor2); 
    width: 100%;
    height: 100%;
    backface-visibility: hidden
}


.back {
    border-radius: 7px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position:absolute; 
    background-color: var(--bgcolor2); 
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform: rotateY(180deg);

}

.front, .back {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
}

.front #name {
    font-size: 1.3rem; 
    color: var(--text0); 

}

figcaption {
    opacity: 0;
    font-size: 0.75rem;
    color: var(--text2);
    margin-top: 6px;
    animation: fadein 2s ease forwards;
    animation-delay: 0.8s; 
}

#subtitle {
    margin-top: 1%;
    color: var(--text2);

}

hr {
    margin-top: 1%;
    border: none;
    border-top: 0.5px solid var(--text1)
}

.row {
    display: flex;
}


.label {
    min-width: 100px;
    color: var(--text2); 
}

#city {
    margin-top: auto;
    font-size: 0.75rem; 
    color: var(--text2);
}


.card.flipped {
    transform: rotateY(-180deg);
    animation : none; 
}

@keyframes slidein {
    from { 
        opacity: 0; 
        transform: translateX(-70px) rotate(8deg); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0) rotate(0deg); 
    }
}

@keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#card_wrapper {
    animation: slidein 0.6s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

#pencil {
    rotate: 10deg; 

    opacity: 0;
    max-width: 20%;
    margin-left: 5%;
    margin-bottom: 20%; 
    animation: fadein 1s ease forwards; 
    animation-delay: 1s; 
    filter: opacity(0.2) sepia(0.3);
    transition: transform 0.8s ease; 
}

#paperclip {
    rotate: 0deg; 
    opacity: 0; 
    max-width: 3%;
    animation: fadein 1s ease forwards; 
    animation-delay: 1.5s; 
    margin-bottom: 10%; 
    animation-delay: 0.5s; 
    filter: opacity(0.6) sepia(0.3);
    margin-left: -30%;
    transition: transform 0.7s ease;
}


@media (prefers-color-scheme: dark) {
    #pencil {
        filter: invert(1) opacity(0.4) sepia(0.3);
    }
    #paperclip {
        filter: invert(1) opacity(0.6) sepia(0.3);
    }
}



