.wrap-modal { max-width: 600px; margin: 0 auto; } .modal { position: fixed; width: 100%; height: 100%; left: 0; top: 0; right: 0; bottom: 0; background: rgba(14,27,43,.8); z-index: 10; opacity: 0; visibility: hidden; &.active { visibility: visible; opacity: 1; transition: all .3s ease-in-out 0s; } } .modal-banner { z-index: 20; background: rgba(6,13,22,.95); width: 100%; color: #fff; padding: 50px 0; margin: 15% 0 0 0; float: left; }