2022-09-18 18:19:13 -03:00

256 lines
4.2 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&family=Poppins:wght@300;400;500;600&display=swap');
html,
body {
width: 100%;
margin: 0;
padding: 0;
background-color: #f7f7f7;
background-color: #147246;
font: 400 1.2em sans-serif;
line-height: 1.2;
user-select: none;
}
.container {
width: fit-content;
height: 100%;
margin: 0 auto;
}
.card {
padding: 0;
margin: 2vmin;
width: 7.6vmin;
height: 11vmin;
box-shadow: inset 0px 0px 1vmin 0.2vmin #c3c6c6;
border-radius: 0.8vmin;
background-color: #f5f9fa;
font-family: Roboto;
}
.card-rank {
width: 48%;
float: left;
margin-left: 0.4vmin;
margin-right: 0.3vmin;
letter-spacing: -0.8vmin;
font-size: 4vmin;
font-weight: 500;
}
.card-suit-small {
width: 40%;
float: left;
font-size: 4vmin;
}
.card-suit-big {
width: 100%;
height: inherit;
line-height: 0.6;
font-size: 8vmin;
text-align: center;
}
@-moz-document url-prefix() {
.card-rank {
margin-right: 0.3vmin;
font-size: 4vmin;
}
.card-suit-small {
line-height: 1.6;
font-size: 3vmin;
}
.card-suit-big {
line-height: 0.8;
font-size: 7vmin;
}
}
.card.diamond .inner-info,
.card.heart .inner-info {
background: linear-gradient(to right, #c21f02, #ff2802, #c21f02, #ff2802, #c21f02);
-webkit-background-clip: text;
color: transparent;
}
.card.club .inner-info,
.card.spade .inner-info {
background: linear-gradient(to right, #242222, #534f51, #242222, #534f51, #242222);
-webkit-background-clip: text;
color: transparent;
}
.back {
box-shadow: inset 0px 0px 0.2vmin 0.2vmin #0a2f41;
background: linear-gradient(315deg, #242222, #534f51, #242222, #534f51, #242222);
background: linear-gradient(315deg, #0a3142, #104c66, #12506b, #1b7ca5, #2195ca);
}
.top-area {
padding-top: 2vmin;
width: 100vw;
height: 16vmin;
background-color: #1b4934;
}
.left-area,
.right-area {
display: flex;
place-content: center;
float: left;
}
.left-area {
width: 41vmin;
}
.right-area {
width: 57vmin;
}
.deck {
margin: 2vmin;
width: 7.6vmin;
height: 11vmin;
box-shadow: inset 0px 0px 0vmin 0.5vmin #c3c6c644;
border-radius: 0.8vmin;
background-color: #c3c6c60c;
position: relative;
}
.deck::before {
content: "⟲";
width: 100%;
height: inherit;
line-height: 1.6;
font-size: 7vmin;
text-align: center;
color: #c3c6c644;
position: absolute;
cursor: pointer;
}
.deck .card {
position: absolute;
transform: translateX(-2vmin) translateY(-2vmin);
cursor: pointer;
}
.top-cards {
width: 55%;
display: flex;
}
.top-cards .card {
margin-right: -5vmin;
}
.pile {
padding: 0;
margin: 2vmin;
width: 7.6vmin;
height: 11vmin;
box-shadow: inset 0px 0px 0vmin 0.5vmin #c3c6c644;
border-radius: 0.8vmin;
background-color: #c3c6c60c;
position: relative;
}
.pile span {
width: 100%;
height: inherit;
line-height: 1.4;
font-size: 8vmin;
text-align: center;
color: #c3c6c644;
position: absolute;
}
.pile .card {
position: absolute;
transform: translateX(-2vmin) translateY(-2vmin);
}
.bottom-area {
display: flex;
place-content: center;
width: 100vmin;
min-height: 100%;
height: fit-content;
padding-top: 4vmin;
padding-bottom: 10vmin;
}
.row {
display: grid;
margin-right: 1%;
width: 12%;
height: 100%;
position: relative;
}
.row::before {
content: "";
width: 7.6vmin;
height: 11vmin;
box-shadow: inset 0px 0px 0vmin 0.5vmin #c3c6c644;
border-radius: 0.8vmin;
background-color: #c3c6c60c;
transform: translateX(2vmin) translateY(2vmin);
position: absolute;
}
.row .card {
position: relative;
}
.row .card:not(:first-child) {
margin-top: -8vmin;
}
footer {
position: fixed;
bottom: 0;
width: 100%;
height: fit-content;
margin-top: 25vmin;
padding: 1vmin 0;
background-color: #1e1f26;
font-size: 1.6vmin;
}
footer p {
margin: 1vmin;
text-align: center;
color: #F5F5F5;
font-family: Poppins;
}
footer a:link {
color: #b3a290;
}
footer a:visited {
color: #91d4d0;
}
footer a:hover {
color: #ff3300;
}
footer a:active {
color: #ff3300;
}
.name-dark {
color: #91d4d0;
text-decoration: none;
background: linear-gradient(to right, #91d4d0 50%, #ff3300 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}