mirror of
https://github.com/EthanPisani/ethanpisani.com.git
synced 2025-07-02 18:15:18 -04:00
73 lines
1.1 KiB
CSS
73 lines
1.1 KiB
CSS
|
|
body {
|
|
font-size: 3em;
|
|
background-color: #2c2c2c;
|
|
font-family: "Roboto", sans-serif;
|
|
margin: auto;
|
|
margin-top: 5vh;
|
|
text-align: center;
|
|
}
|
|
a{
|
|
background-color: #535353;
|
|
|
|
border: none;
|
|
border-radius: 0.5em;
|
|
color: white;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
padding: 10px;
|
|
cursor: pointer;
|
|
}
|
|
.scene {
|
|
width: 50vw;
|
|
height: 50vh;
|
|
margin: auto;
|
|
perspective: 70vh;
|
|
padding-bottom: 5vh;
|
|
}
|
|
|
|
.card {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
|
|
cursor: pointer;
|
|
transform-style: preserve-3d;
|
|
transform-origin: center right;
|
|
transition: transform 0.7s;
|
|
}
|
|
|
|
.card.is-flipped {
|
|
transform: rotateX(-180deg);
|
|
}
|
|
.cardtext{
|
|
padding-left: 20%;
|
|
padding-right: 20%;
|
|
padding-top: 10%;
|
|
}
|
|
.card__face {
|
|
border-radius: 75px;
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
color: white;
|
|
text-align: center;
|
|
font-weight: bold;
|
|
font-size: 40px;
|
|
backface-visibility: hidden;
|
|
}
|
|
.refresh{
|
|
border: #229100;
|
|
border-radius: 75px;
|
|
}
|
|
.card__face--front {
|
|
background: #229100;
|
|
|
|
}
|
|
|
|
.card__face--back {
|
|
background: black;
|
|
transform: rotateX(180deg);
|
|
}
|