.FlashcardPracticeUI { width: 100%; height: 100%; display: flex; align-items: center; } .FlashcardPracticeUI-remove, .FlashcardPracticeUI-check { position: absolute; display: flex; width: 30; height: 30; align-items: center; border-radius: 5px; justify-content: center; color: rgba(255, 255, 255, 0.5); background: rgba(0, 0, 0, 0.1); &:hover { color: white; } } .FlashcardPracticeUI-practice { position: absolute; width: 100%; pointer-events: none; .FlashcardPracticeUI-remove { left: 52%; pointer-events: all; } .FlashcardPracticeUI-check { right: 52%; pointer-events: all; } } .FlashcardPracticeUI-menu { position: absolute; flex-direction: column; align-items: center; display: flex; top: 0px; left: 0px; width: 30; transform-origin: top left; border-radius: 5px; color: rgba(255, 255, 255, 0.5); pointer-events: all; background: rgba(0, 0, 0, 0.1); .FlashcardPracticeUI-practiceModes { width: 100%; display: flex; flex-direction: column; top: 0; position: relative; .FlashcardPracticeUI-quiz, .FlashcardPracticeUI-practice { position: relative; display: flex; height: 20px; align-items: center; margin: auto; padding: 3px; &:hover { color: white; } & > svg { height: 100%; width: 100%; } } } } .FlashcardPracticeUI-message { z-index: 100; position: relative; margin: auto; align-content: center; width: max-content; }