.custom-select-container { position: relative; flex: 0 0 calc(10% - 20px); border-bottom: 1px solid; } .options-list-container { width: 100%; max-width: 100%; flex: 1 1 100%; max-height: 60vh; overflow-y: scroll; position: absolute; margin-top: 55px; z-index: 1; } .custom-select { border-radius: 5px; cursor: pointer; font-size: 1.3rem; font-family: var(--mg-sans); font-stretch: 75%; } .custom-select:after { content: "▼"; float: right; margin-top: -2px; } .options-list { /*position: absolute;*/ display: flex; margin-top: -100vh; top: 100%; left: 0; width: 100%; max-height: 100vh; overflow-y: auto; border-radius: 5px; background-color: var(--color-anthracite); z-index: 1000; /*border: 1px solid #ffffff4f;*/ column-gap: 5px; box-shadow: 0px 0px 100px 50px black; transition: margin-top 0.5s ease; padding: 5px 0px 25px 0px; flex-wrap: wrap; } .options-list.active { margin-top: 20px; } .options-list ul { list-style-type: none; padding: 0; margin: 0; font-weight: bold; flex: 1 1 calc(33.333% - 5px); box-sizing: border-box; padding-bottom: 15px; } .options-list ul:not(:last-child) { border-bottom: 1px solid gray; } .options-list li { padding: 0px 5px 0px 5px; cursor: pointer; border-radius: 5px; margin-top: 3px; transition: background-color 0.5s ease; font-family: var(--mg-sans); font-stretch: 75%; } .options-list li:last-child { border-bottom: none; } .options-list li:hover, .options-list ul li:first-child:hover~.subcategory { background-color: var(--color-gray); border-radius: unset; } .options-list .subcategory { margin-left: 20px; font-weight: normal; font-size: 0.9rem; } .options-list ul li.selected, .options-list ul li:first-child.selected~.subcategory { background-color: var(--color-purple); color: white; } .selected-options { /*padding: 10px;*/ border-radius: 5px; flex: 1 1 100%; margin-top: 10px; } .option-tag { display: inline-block; background-color: var(--color-purple); color: white; padding: 5px 10px; margin: 5px; border-radius: 3px; position: relative; } @media screen and (max-width: 768px) { .option-tag { font-size: 0.8rem; margin: 2px; } } .option-tag .remove { margin-left: 10px; cursor: pointer; color: white; font-weight: bold; } @media screen and (max-width: 768px) { .custom-select-container { flex: 0 0 calc(50% - 20px); margin-bottom: 15px; } .custom-select { font-size: 1rem; height: 100%; padding: 5px 5px 0px 10px; } .options-list ul { flex: 1 1 calc(50% - 5px); padding-bottom: 15px; } }