@font-face { font-family: "Futura"; src: url("../../FuturaLT-Heavy.ttf") format("truetype"); } .flag { display: block; position: relative; top: 0; left: 0; overflow: hidden; height: 95%; width: 95%; object-fit: cover; } .coat { display: block; position: relative; margin: auto auto; overflow: hidden; height: 90%; width: auto; object-fit: cover; padding: 5px; } .map { width: 100%; height: auto; object-fit: contain; filter: brightness(0); } .parent { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); grid-column-gap: 0px; grid-row-gap: 0px; } .div1 { grid-area: 1 / 1 / 2 / 2; } .div2 { grid-area: 2 / 1 / 3 / 2; } .profiles{ --size: 200px; --img-clip: "M 0 -50 L 200 -50 L 200 150 C 100 150 0 250 0 150 Z"; /* unfortunatly it isn't possible (as far as I know) to use custom properties in clip paths */ --img-shadow: drop-shadow(5px 5px 2px rgba(0 0 0 / 0.5)); --name-txt-clr: #9c6868; --bg-blur: 0; /* background image default blur */ --bg-blur-hover: 5px; /* background image blur on hover */ font-family: 'Ubuntu', sans-serif; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15%; margin: auto auto; width: auto; } @media (min-width: 500px){ .profiles{ --grid-cols: 3 ; margin: 23px 20%; } } .avatar{ position: relative; width: var(--size); height: var(--size); /* for older browsers */ aspect-ratio: 1; } .avatar-img { clip-path: path(var(--img-clip)); } .avatar-img::before{ content: ''; position: absolute; display: blocl; inset: 50% 0 0 0; z-index: -1; border-radius: 20px; background-color: var(--bg-clr); /* fallback if image not defined as custom property */ background-image: var(--bg-img); background-size: cover; background-position: center; filter: blur(var(--bg-blur)); transition: filter 300ms ease-in-out; } .avatar-img > img{ width: 100%; height: 100%; object-fit: cover; transition: scale 300ms, filter 300ms; transform-origin: bottom; scale: var(--img-scale, .9); filter: var(--img-shadow); } .avatar > p{ text-align: right; font-size: .9rem; color: var(--name-txt-clr); bottom: .5rem; right: 0; translate: 0 var(--name-y,-50px); opacity: var(--name-opacity,0); z-index: -1; transition-name: translate, opacity; transition-delay: 150ms; transition-duration: 300ms; transition-timing-function: cubic-bezier(0.47, 1.64, 0.41, 0.8), ease-in-out; } /* all hover effects as custom properties */ .avatar:hover{ --img-scale: 1.2; --img-shadow: drop-shadow(10px 15px 4px rgba(0 0 0 / 0.5)); --name-y: 0; --name-opacity: 1; --bg-blur: var(--bg-blur-hover); } body { display: grid; grid-template-areas: "coat name info" "middle middle right" "heads heads heads" ; grid-template-rows: 22% 1fr 50px; grid-template-columns: 15% 1fr calc(20vw + 20px); grid-gap: 0px; height: 100vh; margin: 0px; } right { background-color:#000000; margin: auto auto; } coat { grid-area: coat; } name { grid-area: name; text-align: center; font-family: Futura; text-transform: uppercase; margin-top: auto; margin-bottom: auto; font-size: calc(3vw + 20px); background: url(https://upload.wikimedia.org/wikipedia/en/b/ba/Flag_of_Germany.svg); background-size: auto 100%; background-repeat: repeat; box-decoration-break: clone; -webkit-background-clip: text; -webkit-text-fill-color: transparent; } info { grid-area: info; margin-left: 2.5%; margin-right: 2.5%; } header { background: #707070; grid-area: header; } nav { background: #C9BFBF; grid-area: nav; } middle { background: #ABABAB; grid-area: middle; } aside { background: #C9C9C9; grid-area: aside; } heads { grid-area: heads; } header, nav, section, aside, footer { padding: 5px; } footer { font-size: medium; font-weight: bold; } .logo { height: 20px; } th { text-align: center; padding-top: 0px; padding-bottom: 0px; border-bottom: 1px solid #ddd; } table{ width: 90%; } .table-data { color: #000000; font-size: 25px; font-family: Futura; } .table-description { color: #ABABAB; background-color: transparent; text-decoration: none; font-size: 15px; } /* unvisited link */ a:link { color: #000000; background-color: transparent; text-decoration: none; } /* visited link */ a:visited { color: #000000; background-color: transparent; text-decoration: none; } /* mouse over link */ a:hover { color: #000000; background-color: transparent; text-decoration: none; } /* selected link */ a:active { color: #000000; background-color: transparent; text-decoration: none; } .info-text { font-family: Futura; color: #000000; text-align: center; padding-left: 5%; padding-right: 5%; font-size: 20px; }