User:KurwaAntics/common.css

.greyout { background: rgba(0, 0, 0, 0.5); width: 100%; height: 100%; z-index: 9; position: fixed; transition-duration: 0.25s; } .mymodal { position: fixed; z-index: 9; background: white; transform: translate(-50%, -50%); top: 50%; left: 50%; box-shadow: 0 5px 30px rgba(0,0,0,0.5); padding: 10px; transition-duration: 0.25s; } .close-modal { float: right; color: white; font-size: 30px; margin: 32px; line-height: 24px; font-weight: bold; font-family: arial; width: 24px; text-align: center; cursor: pointer; transition-duration: 0.25s; } .close-modal:hover { text-shadow: 0 0 10px white; }