.w3-modal { z-index: 30000; padding-top: 100px; position: fixed; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.4); } .w3-modal-content { margin: auto; background-color: #fff; position: relative; padding: 0; outline: 0; max-width: 600px; } .w3-container, .w3-panel { padding: 3em; background: #121f38; text-align: center; color: #fff; } .w3-container h2, .w3-container h3 { color: #fff; } .w3-container h3 { font-size: 18px; text-align: left; } span.w3-button.w3-display-topright { float: right; font-size: 3em; font-weight: bold; line-height: 1em; }