/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#9f7ae2+0,6b41bb+17,5a37ad+33,2d2483+67,290e44+83,251643+100 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    height: 100vh;
    font-family: "Encode Sans Condensed", serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: #91A6FD;
}
.home{
    position: relative;
    bottom: 2vh;
    left: 44vw;
    margin: 1rem;
}
.house-img{
    width: 3rem;
    height: 3rem;
}
.house-img:hover{
    transform: scale(1.2);
}
.container {
    width: 400px;
    height: 500px;
    text-align: center;
    margin-top: 1rem;
    perspective: 1000px;
}

.container:hover .container-inner {
    transform: rotateY(180deg);
}

.container-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.front,
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.front{
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(159, 122, 226, 1) 0%, rgba(107, 65, 187, 1) 17%, rgba(90, 55, 173, 1) 33%, rgba(45, 36, 131, 1) 67%, rgba(41, 14, 68, 1) 83%, rgba(37, 22, 67, 1) 100%);
    box-shadow: -1em 2em 2em #130a8bd7;
}
.back {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(159, 122, 226, 1) 0%, rgba(107, 65, 187, 1) 17%, rgba(90, 55, 173, 1) 33%, rgba(45, 36, 131, 1) 67%, rgba(41, 14, 68, 1) 83%, rgba(37, 22, 67, 1) 100%);
    color: white;
    transform: rotateY(180deg);
    box-shadow: 1em 2em 2em #130a8bd7;
}
.item img {
    height: 200px;
    border-radius: 50%;
    margin-bottom: 1rem;
}
@keyframes cursor{
    0% {left:280px; top: -200px;}
    100%{left:0; top: 0;}
}
svg{
    width:2rem;
    height: 2rem;
    fill: white;
    position: relative;
    left: 280px;
    top: -200px;
    animation-name: cursor;
    animation-duration: 3s;
    animation-delay: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}
.title {
    font-family: "Style Script", serif;
    font-size: 3rem;
}
li {
    list-style: none;
}

.subtitle {
    font-weight: 400;
    margin: 0 0 .8rem 0;
}

a{
    color: white;
    
}

@media (max-width: 700px) {
    body{
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }
    .container {
        width: 300px;
        height: 400px;
    }
    .home{
        top: 10vh;
        left: 0;
        bottom: 0;
    }
    .title {
        font-size: 2rem;
    }
    .subtitle {
        font-size: 1rem;
    }
    .item img {
        height: 150px;
    }

    @keyframes cursor{
        0% {left:200px; top: -100px;}
        100%{left:0; top: 0;}

    }
    svg{
        width:1.5rem;
        height: 1.5rem;
        left: 200px;
        top: -100px;
    }
}

@media (min-width:701px) and (max-width: 1024px){
    .home{
        left: 0;
        bottom: 0;
        top:4vh;
    }
}