I'm facing an issue with my flexbox that is causing my items to constantly shrink instead of moving to a new row. I've tried various solutions but nothing seems to work. I have removed the CSS for elements like headers that I believe are unrelated to the problem.
.store-row {
display: flex;
justify-content: center;
align-items: center;
min-height: 60vh;
flex-direction: row;
flex-flow: wrap;
}
.card {
position: relative;
width: 320px;
height: 480px;
/* background: #191919; */
border-radius: 20px;
overflow: hidden;
margin: 3%;
flex-basis: 20%;
}
.card::before {
content: "";
position: absolute;
top: -50%;
width: 100%;
height: 100%;
background: rgb(255, 255, 255);
transform: skewY(345deg);
transition: 0.5s;
}
.card:hover::before {
top: -70%;
transform: skewY(390deg);
}
<div class="store-row">
<div class="card" id="netflix">
<div class="imgBox">
<img src="images/netflixlogo.png" class="mouse">
</div>
<div class="contentBox">
<h3>NETFLIX PREMIUM 12 MESECI</h3>
<h2 class="price">20.<small>00</small> €</h2>
<a href="#" class="buy">Buy Now</a>
</div>
</div>
<div class="card" id="spotify">
<div class="imgBox">
<img src="images/spotify.png" class="mouse">
</div>
<div class="contentBox">
<h3>SPOTIFY PREMIUM 12 MESECI</h3>
<h2 class="price">15.<small>00</small> €</h2>
<a href="#" class="buy">Buy Now</a>
</div>
</div>
<div class="card" id="nordvpn">
<div class="imgBox">
<img src="images/nordvpn.jpg" class="mouse">
</div>
<div class="contentBox">
<h3>NORDVPN PREMIUM 12 MESECI</h3>
<h2 class="price">10.<small>00</small> €</h2>
<a href="#" class="buy">Buy Now</a>
</div>
</div>
</div>