I have been attempting to apply module.css to one of my components by following the instructions provided in this tutorial https://nextjs.org/learn/basics/assets-metadata-css/layout-component.
/*/components/Livestream/App.js*/
import styles from './App.module.css';
...
return (
<div className={styles.container}>
<main>
<div className='live-stream'>
...
export default App;
/*/components/Livestream/App.module.css*/
.container main {
align-items: center;
display: flex;
height: 100vh;
justify-content: center;
}
.container main .live-stream {
background-color: #000615;
display: flex;
height: 100%;
overflow: hidden;
position: relative;
width: 100%;
}
However, only the main tag is receiving the css styling and not the class live-stream: