.alert { position: relative; padding: .75rem 1.25rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: .25rem; } .alert-success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; } .alert-danger { background-color: #f2dede; border-color: #ebccd1; color: #a94442; } .closebtn { float: right; font-size: 1.5rem; margin-left: 15px; color: inherit; font-weight: bold; line-height: 0.7; cursor: pointer; transition: 0.3s; } .closebtn:hover { color: black; }