ft_transcendence/frontend/src/carousel.css
2025-12-22 17:37:25 +01:00

104 lines
1.6 KiB
CSS

.flip-btn {
position: relative;
width: 60px;
height: 40px;
border: none;
background: #333;
color: white;
font-size: 1.5rem;
border-radius: 8px;
cursor: pointer;
perspective: 600px;
/* Enables 3D effect */
}
.arrow {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
transition: transform 0.5s;
backface-visibility: hidden;
/* Hide the back when rotated */
}
.front {
transform: translate(-50%, -50%) rotateY(0deg);
}
.back {
transform: translate(-50%, -50%) rotateY(180deg);
}
.flip-btn.flipped .front {
transform: translate(-50%, -50%) rotateY(180deg);
}
.flip-btn.flipped .back {
transform: translate(-50%, -50%) rotateY(360deg);
}
@import 'tailwindcss';
:root {
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}
body {
margin: 0;
display: flex;
place-items: center;
}
h1 {
font-size: 3.2em;
line-height: 1.1;
}
#app {
max-width: 1280px;
margin: 0 auto;
text-align: center;
}
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: filter 300ms;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vanilla:hover {
filter: drop-shadow(0 0 2em #3178c6aa);
}
.card {
padding: 2em;
}
.read-the-docs {
color: #888;
}