122 lines
2.1 KiB
CSS
122 lines
2.1 KiB
CSS
@charset "UTF-8";
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
text-decoration: none;
|
|
border: none;
|
|
outline: none;
|
|
}
|
|
|
|
a,
|
|
a:visited {
|
|
color: rgb(128, 128, 128);
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
body {
|
|
font-family: "Pacifico", cursive;
|
|
font-family: "Roboto", sans-serif;
|
|
background-image: url("../img/pattern-dark.png");
|
|
background-attachment: fixed;
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
height: 100vh;
|
|
margin: 0;
|
|
}
|
|
|
|
nav {
|
|
margin: auto;
|
|
display: flex;
|
|
max-width: 1024px;
|
|
padding: 1em;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-bottom: 1px solid rgb(0, 0, 0, 0.2);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 999;
|
|
background-image: url("../img/pattern-dark.png");
|
|
}
|
|
|
|
nav ul {
|
|
font-size: 1.2em;
|
|
font-weight: 800;
|
|
color: white;
|
|
display: inline-flex;
|
|
gap: 1em;
|
|
}
|
|
nav ul li {
|
|
display: flex;
|
|
align-items: center;
|
|
text-align: center;
|
|
gap: 2em;
|
|
}
|
|
|
|
.main_container {
|
|
margin: auto;
|
|
display: flex;
|
|
max-width: 1024px;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 2em;
|
|
gap: 4em;
|
|
}
|
|
|
|
.card {
|
|
width: 200px;
|
|
height: 300px;
|
|
perspective: 1000px;
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.card-inner {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 10px;
|
|
transform-style: preserve-3d;
|
|
transition: transform 0.5s, width 0.5s, height 0.5s;
|
|
}
|
|
|
|
.card:hover .card-inner {
|
|
transform: rotateY(180deg) translateX(10px) translateY(-15px);
|
|
width: 220px;
|
|
height: 330px;
|
|
box-shadow: 0 4px 8px rgba(2, 2, 2, 0.5);
|
|
}
|
|
|
|
.face {
|
|
width: 100%;
|
|
height: 100%;
|
|
position: absolute;
|
|
backface-visibility: hidden;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
color: #fff;
|
|
text-align: center;
|
|
}
|
|
|
|
.front {
|
|
border-radius: 10px;
|
|
background-image: url("../img/pattern-card.png");
|
|
background-repeat: repeat;
|
|
}
|
|
|
|
.back {
|
|
border-radius: 10px;
|
|
transform: rotateY(180deg);
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
}
|
|
|
|
.back a img {
|
|
max-height: 100%;
|
|
border-radius: 10px;
|
|
}
|