.overlay { position: fixed; display: flex; top: 0; left: 0; height: 100vh; width: 100vw; background-color: rgba(0, 0, 0, .7); z-index: 100; backdrop-filter: blur(10px); } .modal { z-index: 200; background-color: white; width: max-content; padding: 15px; } .modal.select { a { width: 100%; margin-bottom: 10px; text-align: center; } a:last-child { margin-bottom: unset; } } .modal.dialog { padding: unset; .body { max-height: 70vh; overflow: scroll; } .header { justify-content: space-between; background-color: #33691E; color: white; padding: 15px; h4 { margin: 0; } .icon-close { margin: -15px; padding: 10px; border-left: 1px solid rgba(0, 0, 0, .4); cursor: pointer; } .icon-close:hover { background: rgba(0, 0, 0, .4); } } } @media (max-width: 650px) { .modal.dialog { width: 100vw; height: 100vh; .body { max-height: 100vh; } } } @media (min-width: 651px) { .modal.dialog { width: 600px; } } .icon-close { content: url('data:image/svg+xml,'); }