* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: "Nunito", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}
:root {
    --white-color: #fffafa;
    --black-color: #000000;
    --red-color: #dc143c;
}
body {
    width: 100%;
    height: 100vh;
    background-color: wheat;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
}
.card {
    position: relative;
    width: 300px;
    height: 400px;
    border-radius: 10px;
    background-color: var(--white-color);
    /* box-shadow: 0px 0px 20px 10px var(--red-color); */
}
.card .face {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    padding: 30px;
}
.card .face1 {
    text-align: center;
    color: var(--black-color);
    margin-top: 30px;
}
.card .face1 h2 {
    font-size: 30px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 1px;
}
.card .face1 h2 span {
    font-size: 30px;
    font-weight: 900;
    font-style: italic;
    color: var(--red-color);
    text-transform: capitalize;
}
.card .face1 p {
    margin-top: 20px;
    font-weight: 700;
    line-height: 1.6;
}
.card .face1 p span {
    font-weight: 900;
    font-style: italic;
}
.card .face1 a {
    text-decoration: none;
}
.card .face1 a p{
    font-size: 20px;
    color: var(--white-color);
    background-color: black;
    text-transform: capitalize;
    padding: 6px 12px;
    transition: all 0.5s ease;
    border: none;
    border-radius: 10px;
}
.card .face1 a:hover p {
    color: var(--red-color);
    background-color: var(--black-color);
}
.card .face2 {
    background-color: #000000;
    transition: all 0.5s ease;
    border-radius: 10px;
    position: absolute;
    border: 2px solid var(--red-color);
}
.card .two{
    background-color: rgb(176, 14, 122);
}
.card .three{
    background-color: rgb(38, 14, 176);
}
.card .face2 img {
    width: 150px;
    transition: all 0.5s ease;
}
.card:hover .face2 img {
    width: 40px;
}
.card:hover .face2 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--black-color);
    border: 2px solid var(--red-color);
}
.card:hover .two {
    background-color: rgb(176, 14, 122);
}
.card:hover .three {
    background-color: rgb(38, 14, 176);
}
.card .face2 p {
    font-size: 120px;
    color: var(--white-color);
    transition: all 0.5s ease;
}
.card:hover .face2 p {
    font-size: 25px;
}