// global imports @import '../../../styles/global.colors.scss'; @import '../../../styles/global.fonts.scss'; @import '../../../styles/mixins'; @include mobile() { // Your mobile-specific styles here .modal, .overlay { width: 100vw; height: 100vh; top: 0; left: 0; position: fixed; background-color: white; // Adjust z-index as needed } .exit { color: black; } .overlay { background-color: #00000090; } .modalContent { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; line-height: 1.4; background: white; padding: 14px 28px; border-radius: 3px; max-width: 700px; min-width: 300px; max-height: 100%; // Adjusted to full height overflow-y: scroll; .exit { color: $primary-blue-color; font-size: 40px; position: absolute; top: 0; left: 0; margin-top: 20px; margin-left: 20px; } .close { float: right; } } } .modal, .overlay { width: 100vw; height: 100vh; top: 0; left: 0; position: fixed; } .overlay { background-color: #00000080; } .modalContent { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%); line-height: 1.4; background: #f1f1f1; padding: 14px 28px; border-radius: 3px; max-width: 700px; min-width: 300px; max-height: 400px; overflow-y: scroll; .close { float: right; } }