.flex {
display: flex;
justify-content: center;
align-items: center;
}
h1 {
font-family: "Agbalumo", sans-serif;
font-size: 3rem;
background-color: rgba(255, 255, 255, 0.3);
padding: 0 .5em;
}
.text {
color: var(--font-color-main);
text-shadow: 2px 2px black;
border-radius: 20px;
}
.card {
position: relative;
background-color: var(--jeopardy-blue);
width: 400px;
height: 200px;
text-align: center;
padding: 1em;
text-transform: uppercase;
transform-style: preserve-3d;
transition: all 4s;
}
.card-front {
position: absolute;
margin: 1em;
}
.card:hover {
transform: rotateY(180deg);
}
.card-front {
backface-visibility: hidden;
}
.card:hover .card-front {
backface-visibility: hidden;
}
.card-back {
transform: rotateY(180deg);
backface-visibility: hidden;
}
body, html {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
body {
background-image: url("bg-img.jpg");
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
}
:root {
--jeopardy-blue: #060CE9;
--font-color-main: #fff;
}