when i apply flex property to my container , the button disappears…
i cant find the button , can anyone help me ???
HTML:::
<div class="msg-container">
<div class="msg">
<form action="">
<h1>Notice</h1>
<p>Lorem ipsum, dolor sit amet consectetur adipisicing. Lorem, ipsum dolor.</p>
<textarea name="" id="" placeholder="Message to the customer"></textarea>
<button class="">Accept</button>
</form>
</div>
</div>
CSS::
*, *::before, *::after{
padding: 0;
margin: 0;
box-sizing: border-box;
}
/* POP UP MESSAGE */
html,body{
height: 100%;
}
.msg-container{
height: 100vh;
width: 100%;
position: fixed;
top: 0;
display: none;
justify-content: center;
align-items: center;
overflow: hidden;
}
.msg-container::after{
content: " ";
display: block;
position: absolute;
height:100vh;
width: 100%;
background: rgb(0, 0, 0);
opacity: 0.7;
}
.msg button{
border-radius: 13px;
text-align: center;
width: 150px;
font-size: 35px;
border: none;
border: 1px solid black;
color: white;
/* box-shadow: 0px 12px 14px rgba( 0, 0, 0, 0.2 ); */
}
.msg button:hover{
cursor: pointer;
}
.accept{
background-color: #28a745;
}
.deny{
background-color: #dc3545;
}
.msg{
width: 80%;
margin: auto;
background: #fff;
height: 380px;
border-radius: 13px;
z-index: 2;
text-align: center;
}
.msg form{
height: 100%;
background: #324960;
display: flex;
flex-direction: column;
flex: 1;
}
.msg h1{
margin: 14px;
}
.msg p{
padding: 15px;
font-size: 24px;
}
.msg-container textarea{
width: 80%;
margin: auto;
font-size: 26px;
}