.entry-text { cursor: pointer; } .popup { position: fixed; inset: 0; overflow: hidden; opacity: 0; z-index: -1; border: unset; transition: all cubic-bezier(0.65, 0.05, 0.36, 1) 0.3s; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 1.2rem; .wrapper { display: flex; flex-flow: column nowrap; align-items: stretch; max-width: 480px; height: fit-content; margin: 0 auto; background-color: var(--root-background-color); border: 1px solid var(--border-color); padding: 2rem; } .title { font-size: 3rem; font-weight: 700; display: flex; flex-direction: row; place-content: center space-between; align-items: center; text-transform: uppercase; font-family: Geometos, 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans', sans-serif; .return-button { color: var(--button-color); transition: color cubic-bezier(0.65, 0.05, 0.36, 1) 0.3s; &:hover { color: var(--text-color); } } } .text { flex-grow: 1; margin-right: 3rem; } .content { line-height: 1.3em; padding: 1rem 1rem 0; user-select: text; } .overlay { position: absolute; inset: 0; z-index: -1; opacity: 0; background-color: var(--root-background-color); transition: all cubic-bezier(0.65, 0.05, 0.36, 1) 0.3s; &.active { opacity: 0.5; visibility: visible; } } &.active { opacity: 1; z-index: 10; } @media (width <= 768px) { .title { font-size: 2rem; } .content { font-size: 1rem; } .return-button { transform: scale(0.8); } } }