dialog { &[open] { &::backdrop { background: hsl(340deg, 35%, 15%, 90%); mix-blend-mode: multiply; } ~ .page { filter: blur(15px); } place-self: center; display: grid; grid-template: "icon header" "icon text" "icon buttons" / 1fr 3fr; gap: 0.5em 1.5em; place-items: center; place-content: center; min-height: 20vh; max-width: 30em; padding: 1.5em 3em 2em; background: var(--background); border: var(--border); border-radius: var(--border-radius); box-shadow: 0 0 50px #fff6; } color: var(--text-col); h1 { margin: 0; grid-area: header; } img { grid-area: icon; } div { grid-area: text; text-align: center; font-size: 125%; } form { grid-area: buttons; display: flex; justify-content: center; margin-top: 1em; > * { margin: 0 1em; } } button { border: none; border-radius: 0.75em; padding: 0.5em 1em; font-family: Muller; font-weight: 600; font-size: inherit; color: black; position: relative; cursor: pointer; a { inset: 0; width: max-content; text-decoration: none; } } .yes { background: hsl(100deg, 70%, 80%); } .no { background: hsl(5deg, 70%, 80%); } p { text-align: left; -ms-hyphens: none; hyphens: none; } strong { font-weight: 800; } } @media (pointer: coarse) { button { font-size: 150%; } }