I have three different cards, I want to change the background color respective the card I hover on. I have tried .card-2:hover #landing {background-color: blue;} but that doesn't work. I want the entire body's background-color changed. Like here https://imgur.com/a/xEBiRIo
Landing screen
<div id="landing">
<div class="container d-flex justify-content-end align-items-center" style="height: 100vh !important;">
<div class="row row-cols-1 row-cols-md-3 g-4">
<div class="col">
<div class="card card-1 h-100">
<div class="card-body">
<h5 class="card-title">Purple</h5>
<p class="card-text">Hover over me to see purple bg</p>
</div>
</div>
</div>
<div class="col">
<div class="card card-2 h-100">
<div class="card-body">
<h5 class="card-title">Blue</h5>
<p class="card-text">Hover over me to see blue bg</p>
</div>
</div>
</div>
<div class="col">
<div class="card card-3 h-100">
<div class="card-body">
<h5 class="card-title">Red</h5>
<p class="card-text">Hover over me to see red bg</p>
</div>
</div>
</div>
</div>
</div>
</div>
#landing {
background-color: #202140;
height: 100vh;
}
.card, .list-group-item {
border-radius: 0px !important;
font-family: 'text-main' !important;
color: white !important;
text-shadow: rgba(0, 0, 0, 0.336) 0px 0 10px;
background-color: rgba(32, 33, 64, 0) !important;
-webkit-backdrop-filter: blur(100px) !important;
backdrop-filter: blur(100px) !important;
}
I am using bootstrap v5.2 and jquery 3.6.0