html,
body {
    height: 100%;
    margin: 0;
    color: #0b030d;

}

@font-face {
    font-family: LobsterTwo;
    src: url('LobsterTwo-Regular.ttf') format('opentype');
}

body {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
    background-image: url('img/catto.png');
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: url(/img/ZingerBugCursor.gif), auto !important;
    background-repeat: no-repeat;
    font-size: 3.5vmin;
    font-family: LobsterTwo;
}

.card {
    height: 62.5vmin;
    width: 100vmin;
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.page {
    height: 100%;
    width: 50%;
    position: absolute;
    left: 25%;
    cursor: pointer;
    transition: transform 1s, left 1s;
    transform-origin: 0;
    transform-style: preserve-3d;
}

.flipped {
    transform: rotateY(-180deg);
}

.front,
.back {
    width: 100%;
    height: 100%;
    /* Ensure this is within a container with defined height */
    box-shadow: 0 0 10px 0 #777;
    position: absolute;
    backface-visibility: hidden;
    background-color: #2a2929;
    /* Fallback color */
    background-image: url('img/texture.jpg');
    /* Path to your texture image */
    background-size: cover;
    /* Adjust as needed */
    background-repeat: no-repeat;
    /* Prevent repeating texture */
    background-position: center;
    /* Center the texture */
}

.front {
    z-index: 2;
}

.back {
    transform: rotateY(180deg);
}

.flower {
    overflow: hidden;
    background-color: #f7dedc;
    background-image: url('img/quirk.gif');
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    outline: 10px ridge rgba(194, 139, 58, 0.749);
    border-radius: 0.2rem;
}

.control-panel {
    width: 50%;
    display: flex;
    justify-content: space-around;
}

.btn {
    cursor: pointer;
}

.btn:hover {
    transform: translate(10px, -10px);
    transition: all 0.5s ease-in-out;
}

.blank {
    background-color: #2a2929;
}

.page:not(.flipped) {
    z-index: 2;
}

.page:not(.flipped)~.page:not(.flipped) {
    z-index: 0;
}

.paragraph {
    margin: 0;
    padding: 1.5vmin 1.8vmin;
    font-size: 2.85vmin;
    line-height: 1.35;
    color: #85144b;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}