@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@600;700&display=swap"); * { box-sizing: border-box; } .container { display: flex; min-height: 100vh; align-items: center; justify-content: center; background: #E7F3F1; border: 0.75em solid white; padding: 2em; font-family: "Open Sans", sans-serif; } .content{ text-align:center;} .card { display: flex; flex-direction: column; width: 12.75em; height: 17.00em; overflow: hidden; border-radius: 0.5em; text-decoration: none; background: white; margin: 1em; padding: 2.75em 2.5em; box-shadow: 0 1.5em 2.5em -0.5em rgba(0, 0, 0, 0.1); transition: transform 0.45s ease, background 0.45s ease; } .cardbottom { position: absolute; bottom: 10%; left: 50%; transform: translate(-50%, -50%);" flex-direction: row; width: 12.75em; height: 1.75em; overflow: hidden; border-radius: 0.5em; text-decoration: none; text-align:center; background: #ffffff00; margin: 1em; padding: 2.75em 2.75em; transition: transform 0.45s ease, background 0.45s ease; } .card h3 { color: #2E3C40; font-size: 1.4em; font-weight: 600; line-height: 1; padding-bottom: 0.5em; margin: 0 0 0.142857143em; border-bottom: 2px solid #753BBD; transition: color 0.45s ease, border 0.45s ease; } .card h4 { color: #627084; text-transform: uppercase; font-size: 1.125em; font-weight: 700; line-height: 1; letter-spacing: 0.1em; margin: 0 0 1.777777778em; transition: color 0.45s ease; } .card p { opacity: 0; color: #FFFFFF; font-weight: 600; line-height: 1.8; margin: 0 0 1.25em; transform: translateY(-1em); transition: opacity 0.45s ease, transform 0.5s ease; } .card .link-text { display: block; color: #753BBD; font-size: 1.125em; font-weight: 600; line-height: 1.2; margin: auto 0 0; transition: color 0.45s ease; } .card .link-text svg { margin-left: 0.5em; transition: transform 0.6s ease; } .card .link-text svg path { transition: fill 0.45s ease; } .card:hover { background: #00abf1; transform: scale(1.02); } .card:hover h3 { color: #FFFFFF; border-bottom-color: #A754C4; } .card:hover h4 { color: #FFFFFF; } .card:hover p { opacity: 1; transform: none; } .card:hover .link-text { color: #FFFFFF; } .card:hover .link-text svg { -webkit-animation: point 1.25s infinite alternate; animation: point 1.25s infinite alternate; } .card:hover .link-text svg path { fill: #FFFFFF; } @-webkit-keyframes point { 0% { transform: translateX(0); } 100% { transform: translateX(0.125em); } } @keyframes point { 0% { transform: translateX(0); } 100% { transform: translateX(0.125em); } }