tarotcard.css/tarotcard.css

50 lines
775 B
CSS

:root {
--tarot-card-title-background-color: rgb(234, 191, 99);
}
.tarot-card {
aspect-ratio: 7 / 12;
max-height: 80vh;
max-width: 80vw;
border: 1em solid white;
}
.tarot-card__section {
border-left: 0.4rem solid black;
border-right: 0.4rem solid black;
border-bottom: 0.4rem solid black;
}
.tarot-card__section:nth-child(1) {
border-top: 0.4rem solid black;
}
.tarot-card__section--art {
height: 90%;
}
.tarot-card__art {
height: 100%;
width: 100%;
object-fit: cover;
}
.tarot-card__section--title {
height: 10%;
display: grid;
place-items: center;
background: var(--tarot-card-title-background-color);
}
.tarot-card__title {
margin: 0;
font-family: monospace;
font-weight: 900;
}