The styling for a video player container is defined with a set of CSS rules. The container is designed to be fully responsive, adjusting its width to 100% of the parent element and its height based on a calculated value to maintain a 16:9 aspect ratio. This calculation is performed by subtracting specific pixel values from a base width and then applying the aspect ratio. The background color is set to black, providing a uniform look before the video loads.
In addition, the video player container has a defined height for a specific breakpoint. When the viewport width is less than 768 pixels, the container’s height is adjusted to maintain the aspect ratio based on the viewport width. Margins are also added at the top and bottom for spacing within the widget.
The styling extends to various elements of a polls carousel, which is displayed as a flex container allowing items to be in a single row with horizontal scrolling. The preview card holder within the carousel has a set radius for its corners and is positioned relative to its container. It maintains a consistent width percentage across different screen sizes. The March Madness logo is positioned absolutely within this container, with specific dimensions and no background styling.
The content of the poll cards includes padding adjustments and the display of elements in a row with a flexbox layout. The poll options have hover and selected states that change the border color to enhance user interaction. When an option has been answered, it is styled differently to indicate the selection, with a lighter background and no additional pointer events.
Lastly, the layout for a betting section is detailed, which includes a flex container for displaying betting odds and expert data. The styling ensures the content is well-structured and visually appealing, with images, text, and call-to-action elements. The section is responsive, with adjustments to the layout and styles at a breakpoint of 768 pixels, ensuring the content remains accessible and readable on smaller screens. The call-to-action button is styled prominently, inviting users to engage further.