My form is currently inside a flexbox card with two sides - left and right. The left side displays a picture, while the right side contains the actual input fields. I'm looking to add more space between the different inputs as they feel too cramped at the moment. I've attempted using flexbox properties like justify-content: space-around and space-between, but neither yielded the desired results.
I've also experimented with adding margin and padding to both the form and its elements, but I believe there must be a more effective solution out there. To provide better context, I have attached an image along with the JSFiddle link for reference.
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
body {
margin: 0;
padding: 0;
font-family: Roboto;
font-size: 0.9em;
background-color: #ccf2f4;
}
img {
width: 200px;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.card {
width: 75vw;
margin: 10px;
background-color: #a4ebf3;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-around;
}
.card-right {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
}
.card-left,
.card-right {
padding: 10%;
}
<div class="card">
<div class="card-left">
<img src="https://media.bleacherreport.com/f_auto,w_800,h_533,q_auto,c_fill/br-img-slides/004/431/800/ca7761a4360ae26cb69ee014607228b7_crop_exact.jpg" alt="" />
</div>
<div class="card-right">
<form action="">
<div class="name">
<label for="name" placeholder="Name">Name</label>
<input type="text" id="name" required />
</div>
<div class="seat">
<label for="seat">Select your seat</label>
<select name="seat" id="seat">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</div>
<div class="handicapped">
<label for="handicap">Handicapped?</label>
<input type="checkbox" value="Handicapped" />
</div>
<div class="wrestler">
<label for="wrestler">Select for favorite superstar</label>
<select name="wrestler" id="wrestler">
<option value="asaka">Asaka</option>
<option value="mcintyre">Drew Mcintyre</option>
<option value="zayne">Sami Zayne</option>
<option value="reigns">Roman Reigns</option>
<option value="flair">Charlotte Flair</option>
</select>
</div>
<div class="submit">
<button>Sign Up!</button>
</div>
</form>
</div>
</div>
While my primary expertise lies in JavaScript, I've been actively working on projects to enhance my CSS skills and expand my knowledge base. Your assistance and time are greatly appreciated. You can view a screenshot here.