Skip to content

Commit

Permalink
Update moon.css
Browse files Browse the repository at this point in the history
  • Loading branch information
Html-Czllt authored Jul 27, 2024
1 parent 2527b36 commit 9a5d10f
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions moon.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,85 @@ main {
padding: 20px;
}

.main-content {
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

}

.card-container {
display: flex;
flex-wrap: wrap;
gap: 100px; /* Espaçamento entre os cards */
justify-content: center; /* Alinha os cards horizontalmente */
margin-bottom: 2%;
margin-top: 1%;
}

.card {
perspective: 1000px;
width: 300px; /* Ajuste conforme necessário */
height: 200px; /* Ajuste conforme necessário */
}

.card-inner {
position: relative;
width: 100%;
height: 100%;
transition: transform 0.6s;
transform-style: preserve-3d;
}



.card:hover .card-inner {
transform: rotateX(180deg);
}


.card-front, .card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
border-radius: 10px;
overflow: hidden;
}

.card-front {
background-color: #fff;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
border: rgb(0, 0, 0) solid 1px;
}

.card-back {
background-color: #333;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
transform: rotateX(180deg);
text-align: center;
}

.card-image1 img {
width: 100%;
height: auto;
}

.card-image2 {
width: 118%;
height: auto;
}

.card-image3 {
width: 100%;
height: auto;
transform: scaleX(-1);
}

.container {
display: flex;
flex-direction: column;
Expand Down

0 comments on commit 9a5d10f

Please sign in to comment.