@import 'https://fonts.googleapis.com/css?family=Open+Sans|Roboto:300'; @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); * { box-sizing: border-box; } .poppins{ font-family: "Poppins", sans-serif; font-weight: 400; font-size: 11px; font-style: bold; } .Poppins-Con{ font-family: "Poppins", sans-serif; font-weight: 400; font-size: 12px; font-style: bold; } .Poppins-Con-gold{ color: #ce9e00; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 12px; font-style: bold; } .webtab:hover{ border: solid 2px #ce9e00; border-radius: 10%; } .container { perspective: 800px; /* Styling */ color: #fff; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 4px; /* Center it */ position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .card { /* Styling */ width: 700px; height: 400px; background: rgb(20,20,20); box-shadow: 17px 17px 6px rgba(0, 0, 0, 0.16), 17px 17px 6px rgba(0, 0, 0, 0.23); /* Card flipping effects */ transform-style: preserve-3d; transition: 0.6s; } .side { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; /* Fix Chrome rendering bug */ transform: rotate(0deg) translateZ(1px); } /* Flip the card on hover */ .container:hover .card, .back { transform: rotateY(-180deg) translateZ(1px); } /* Front styling */ .front { /* Center the name + outline (almost) */ line-height: 390px; /* Height - some (because visual center is a little higher than actual center) */ text-align: center; } .logo { outline: 1px solid #ffffff; display: inline-block; padding: 15px 40px; color: #ce9e00; text-transform: uppercase; font-family: 'Roboto', sans-serif; font-size: 1.4em; font-weight: bold; line-height: 32px; letter-spacing: 8px; } /* Back styling */ .back { background: #000000; padding: 30px; } .name { color: #ce9e00; } p { margin: 0.8em 0; } .info { color: #ce9e00; } .property { color: #ce9e00; } /* Make semi-responsive */ @media only screen and (min-width: 15px ) { .fotposi{ position: absolute; bottom: 0%; left: 50%; } .container { perspective: 800px; /* Styling */ color: #fff; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 4px; /* Center it */ position: absolute; top: 50%; left: 0%; transform: translate(-50%, -50%); } } @media only screen and (min-width: 768px ) { .fotposi{ position: relative; bottom: 0%; left: 0%; } .container { perspective: 800px; /* Styling */ color: #fff; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 4px; /* Center it */ position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } } @media (max-width:700px) { .card { transform: scale(.5); } .container:hover .card { transform: scale(.5) rotateY(-180deg) translateZ(1px); } }