body {
    margin: 0;
    /*background: radial-gradient(circle at center, #2b214d, #090b1d);*/
    background: radial-gradient(circle, #2a2150, #080b1c);
    color: #f4e7c1;
    font-family: Georgia, serif;
    overflow: auto;
}

h1,
p,
button {
    text-align: center;
    padding: 0px 20px 0 20px;
}

button {
    position: relative;
    font-family: Georgia, serif;
    padding: 10px 20px 10px 20px;
    border-radius: 30px;
}

.fan {
    /*margin-top: 20px;*/

    position: relative;
    left: 50%;
    width: 950px;
    height: 250px;
    transform: translateX(-50%)
}

.card {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 150px;
    height: 220px;
    margin-left: -75px;
    /*background: linear-gradient(#1a1d52, #12153d);*/
    background: linear-gradient(#20275c, #11163a);
    border: 2px solid #d9b56d;
    border-radius: 16px;
    transform-origin: center 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    transition:
        transform .7s ease,
        opacity .5s;
}

.card:hover {
    filter: brightness(1.2);
    translate: 0 -20px;
    box-shadow: 0 0 25px gold
}

.stars {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: .3;
    animation: drift 30s linear infinite
}

.card.selected{

    transform:
        translateY(350px)
        rotate(0deg)
        scale(1.7);

    z-index:999;
}

.fade{

    position: absolute;
    left: -1px;
    bottom: -1px;
    opacity:.6;
    width:100%;
    height:100%;
    /*background: linear-gradient(#1a1d52, #12153d);*/
    background: linear-gradient(#20275c, #11163a);
    border: 2px solid #665431;
    border-radius: 16px;
}

.card-inner{

    position:relative;

    width:100%;
    height:100%;

    transform-style:preserve-3d;

    transition:transform .8s;
}

.card.flip .card-inner{

    transform:rotateY(180deg);
}

.card-front,
.card-back{

    position:absolute;

    width:100%;
    height:100%;

    backface-visibility:hidden;

    border-radius:16px;
}

.card-front{

    background-image: url("./card_background.png");
    background-size: contain;
}

.card-back{

    transform:rotateY(180deg);
}

.card-back h2 {
    text-align: center;
    margin-left: 2px;
    margin-right: 2px;
    font-size: 18px;

}
.card-back p {
    margin-left: 2px;
    margin-right: 2px;
    font-size: 16px;
}

@media (max-width:992px){
    .card {
        width: 202.5px;
        height: 297px;
        margin-left: -101px;
        transform-origin: center 450px;
    }
    .fan {
        width: 600px;
        height: 350px;
    }
    h1 {
        font-size: 4em;
    }
    p {
        font-size: 3.2em;
    }
    .card-back h2 {
        font-size: 2em; /* zoom 2.5 */
    }
    .card-back p {
        font-size: 1.3em;  /* zoom 2.5 */
    }
    button {
        font-size: 1.4em;
    }
    
    .card.selected{

        transform:
            translateY(700px)
            rotate(0deg)
            scale(2.5);

        z-index:999;
    }
}
