body { display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; font-family: 'Poppins', sans-serif; background: url('bar.png') center/cover no-repeat; /* Set the background image */ background-size: 300% 300%; animation: gradientAnimation 10s infinite linear; /* Gradient animation */ } /* Optional: Create a semi-transparent overlay on top of the background */ body::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(255, 255, 255, 0.2); /* White overlay with 20% transparency */ pointer-events: none; /* Ensures it doesn't interfere with clicking */ } /* Adjusting the logo size for the front */ .card-front .logo { width: 150px; /* Adjust the size as needed */ height: 130px; /* Ensure it maintains proportional dimensions */ margin-bottom: 10px; /* Adjust spacing below the logo */ margin-left: -250px; } /* Adjusting the logo size for the back */ .card-back .logo { width: 90px; /* Smaller size for the back */ height: 70px; /* Ensure it maintains proportional dimensions */ margin-top: -20px; /* Adjust spacing above the logo */ margin-bottom: 10px; /* Adjust spacing below the logo */ margin-left: -300px; /* Adjust this to align the logo to the left */ } /* Card */ .card-container { width: 100%; max-width: 600px; padding: 20px; margin-top: -2%; } .card-wrapper { perspective: 1000px; } .card { position: relative; width: 70%; height: 230px; transform-style: preserve-3d; transition: transform 0.8s; margin-left: 70px; margin-right: 30px; } .card-front, .card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); border: 1px solid #585858; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 10px; transition: transform 0.6s; } .card-front { background: url("front.png") no-repeat center center / cover; } .card-back { background: url("back.png") no-repeat center center / cover; transform: rotateY(180deg); margin-left: -40px; } .icon { width: 24px; /* Default size for icons */ height: 24px; margin-top: 2px; } .icon.phone { width: 22px; /* Bigger size for the phone icon */ height: 22px; margin-top: 3px; } .icon.email { width: 22px; /* Different size for email icon */ height: 22px; margin-top: 2px; } .icon.web { width: 22px; /* Icon size */ height: 22px; /* Icon size */ margin-top: 2px; } .link { position: absolute; bottom: 10px; right: 20px; cursor: pointer; font-size: 16px; text-transform: uppercase; font-weight: 600; color: #fff; transition: color 0.3s ease; text-decoration: none; } .link:hover { color: #9e3a2b; } @keyframes gradientAnimation { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } } /* Align the list items */ .info-list { list-style-type: none; padding: 0; margin: 0; text-align: left; /* Aligns the list items to the left */ width: 100%; /* Ensures the list takes up the full width of the container */ margin-top: -10px; /* Optional: Adjust if needed */ } .info-list li { display: flex; align-items: center; /* Align the icon and text vertically */ margin-bottom: 0px; /* Add some space between items */ text-align: left; } .info-list a { text-decoration: none; /* Remove link decoration */ color: inherit; /* Inherit the color of the text */ } .icon { width: 20px; /* Adjust icon size */ height: 20px; /* Adjust icon size */ margin-right: 10px; /* Space between icon and text */ } .info-list li span { font-size: 0.1em; /* Make the text a little smaller */ color: #333; /* Optional: Change text color */ } .header { font-size: 1.1em; color: #0b1f39; margin-bottom: 15px; /* Adjust space between header and list */ text-align: center; /* Center the header */ margin-top: 0; } /* Adjust the ul to have margin on the left and stack the li elements */ ul { list-style-type: none; padding: 0; margin-left: 10px; /* Adds margin to the left */ } ul li { display: block; /* Makes sure the li elements stack vertically */ margin-bottom: 0px; /* Optional: Adds space between list items */ font-size: 0.9em; } @media only screen and (max-width: 636px) { .header { margin-bottom:10px; margin-top:0px; } .icon { width: 22px; /* Default size for icons */ height: 22px; margin-top: 2px; } .icon.phone { width: 20px; /* Bigger size for the phone icon */ height: 20px; margin-top: 3px; } .icon.email { width: 20px; /* Different size for email icon */ height: 20px; margin-top: 2px; } .icon.web { width: 20px; /* Icon size */ height: 20px; /* Icon size */ margin-top: 2px; } /* Adjusting the logo size for the back */ .card-back .logo { margin-left: -270px; margin-top: -15px; width: 80px; /* Icon size */ height: 60px; } .card-front .logo { margin-bottom: 10px; /* Adjust spacing below the logo */ margin-left: -180px; } .link { position: absolute; bottom: 15px; right: 20px; font-size: 14px; } } @media only screen and (max-width: 528px) { .card { margin-left: 40px; margin-right: 40px; } /* Adjusting the logo size for the back */ .card-back .logo { width: 80px; /* Smaller size for the back */ height: 60px; /* Ensure it maintains proportional dimensions */ margin-left: -230px; margin-top: -15px; } .card-front .logo { width: 140px; /* Adjust the size as needed */ height: 120px; /* Ensure it maintains proportional dimensions */ margin-bottom: 10px; /* Adjust spacing below the logo */ margin-left: -180px; } } @media only screen and (max-width: 493px) { /* Adjusting the logo size for the back */ .card-back .logo { width: 80px; /* Smaller size for the back */ height: 60px; /* Ensure it maintains proportional dimensions */ margin-left: -230px; margin-top: -20px; } ul li { display: block; /* Makes sure the li elements stack vertically */ margin-bottom: 0px; /* Optional: Adds space between list items */ font-size: 0.8em; } .link { right: 10px; font-size: 13px; } } @media only screen and (max-width: 445px) { .header { font-size: 1em; } /* Adjusting the logo size for the back */ .card-back .logo { width: 80px; /* Smaller size for the back */ height: 60px; /* Ensure it maintains proportional dimensions */ margin-left: -240px; margin-top: -15px; } .card-front .logo { width: 130px; /* Adjust the size as needed */ height: 110px; /* Ensure it maintains proportional dimensions */ margin-bottom: 10px; /* Adjust spacing below the logo */ margin-left: -160px; } ul li { display: block; /* Makes sure the li elements stack vertically */ margin-bottom: -5px; /* Optional: Adds space between list items */ font-size: 0.8em; } .card { position: relative; width: 90%; height: 250px; transform-style: preserve-3d; transition: transform 0.8s; margin-left: 0px; margin-right: 3px; } } @media only screen and (max-width: 376px) { .card { position: relative; width: 99%; height: 250px; transform-style: preserve-3d; transition: transform 0.8s; margin-left: -10px; margin-right: 33px; } .card-back { width: 99%; margin-left: -20px; /* Adjust this to align the logo to the left */ } /* Adjusting the logo size for the back */ .card-back .logo { width: 80px; /* Smaller size for the back */ height: 60px; /* Ensure it maintains proportional dimensions */ margin-left: -200px; margin-top: -20px; } .header { font-size: 0.9em; } }