html,
body {
margin: 0;
padding: 0;
font-family: “Arial”, sans-serif;
line-height: 30px;
}
body {
min-width: 550px;
min-height: 290px;
padding: 10px;
}
.two-cards {
width: 350px;
height: 250px;
padding: 10px;
text-align: center;
}
/верхняя двойка/
.two-spade::before {
background: url(“spade.svg”) no-repeat 50% 50%;
background-size: 25px;
position:absolute;
left:5px;
top:5px;
padding-bottom:45px;
content:“2”;
color:black;
font-size:25px;
font-weight: bold;
}
/нижняя двойка/
.two-spade::after {
content:“2”;
background: url(“spade.svg”) no-repeat 50% 50%;
background-size: 25px;
position:absolute;
right:5px;
bottom:5px;
padding-bottom:45px;
color:black;
font-size:25px;
font-weight: bold;
}
/верний туз/
.ace-heart::before {
background: url(“heart.svg”) no-repeat 50% 50%;
background-size: 25px;
position:absolute;
left:5px;
top:5px;
padding-bottom:45px;
content:“A”;
color:red;
font-size:25px;
font-weight: bold;
}
/нижний туз/
.ace-heart::after {
position:absolute;
content:“A”;
color:red;
background:url(“heart.svg”) no-repeat 50% 100%;
background-size: 25px auto;
right:5px;
bottom:5px;
padding-bottom:20px;
font-size:25px;
font-weight: bold;
}
/большое сердце/
.ace-heart {
background: url(“heart.svg”) no-repeat 50% 50%;
background-size: 50px;
position: relative;
display: inline-block;
width: 120px;
height: 180px;
margin: 0 10px;
margin-top: 30px;
vertical-align: middle;
background-color: white;
border-radius: 5px;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8);
}
/большая пика/
.two-spade {
background: url(“spade.svg”) no-repeat 50% 50%;
background-size: 50px;
position: relative;
display: inline-block;
width: 120px;
height: 180px;
margin: 0 10px;
margin-top: 30px;
vertical-align: middle;
background-color: white;
border-radius: 5px;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8);
}
/* Ширина иконок, не изменяйте */
.two-cards div::before,
.two-cards div::after {
width: 20px;
}
/* Поворот нижней иконки */
.two-cards div::after {
transform: rotate(180deg);
}