The media queries are not complete(*), but anyway they are probably overridden by Bootstrap. To test if that is the case, try make your declarations !important;. N.B. only as a test to find out if the rules work.
Then, whether you tested or not, use your browser’s inspect tool to see what rule is overriding so you can find how to apply the background color change.
Please post what you find.
(*) They are lacking the @-rule’s curly brackets:
@media screen and (min-width:982px){
.container {
background-color: darkgray;
}
}