CSS: timed notification messages

by gabrieleromanato

HTML

<input type="checkbox" class="fire-check" />
            <button class="fire">Activate</button>
            
            <section>
            
                <div class="tn-box tn-box-color-1">
                    <p>Your settings have been saved successfully!</p>
                    <div class="tn-progress"></div>
                </div>
                
                <div class="tn-box tn-box-color-2">
                    <p>Your settings have been saved successfully!</p>
                    <div class="tn-progress"></div>
                </div>
                
                <div class="tn-box tn-box-color-3">
                    <p>Your settings have been saved successfully!<p>
                    <div class="tn-progress"></div>
                </div>
                
            </section>

CSS

button.fire{
    color: #fff;
    display: block;
    margin: 5px auto 30px auto;
    border-radius: 4px;
    padding: 0px 15px;
    height: 30px;
    line-height: 30px;
    width: 160px;
    font-family: Cambria, Palatino, "Palatino Linotype", "Palatino LT STD", Georgia, serif;
    font-weight: bold;
    font-size: 13px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    border: 1px solid #377a90;
    background: #6fafc4; /* Old browsers */
    background: -moz-linear-gradient(top, #6fafc4 0%, #498ea5 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#6fafc4), color-stop(100%,#498ea5)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #6fafc4 0%,#498ea5 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #6fafc4 0%,#498ea5 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #6fafc4 0%,#498ea5 100%); /* IE10+ */
    background: linear-gradient(top, #6fafc4 0%,#498ea5 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6fafc4', endColorstr='#498ea5',GradientType=0 ); /* IE6-9 */
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    z-index: 10;
}
input.fire-check:hover + button.fire{
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
input.fire-check:checked + button.fire{
    color: #377a90;
    border-color: #4991a9;
    text-shadow: 0 1px 1px rgba(255,255,255,0.6);
    background: #94cde0;
    text-shadow: 0px 1px 1px rgba(255,255,255,0.4);
    box-shadow: 0px 1px 1px rgba(255, 255, 255, 0.5);
}
input.fire-check{
    width: 160px;
    position: absolute;
    left: 50%;
    margin-left: -80px;
    height: 35px;
    cursor: pointer;
    opacity: 0;
    z-index: 100;
}

.tn-box {
    width: 360px;
    position: relative;
    margin: 0 auto 20px auto;
    padding: 25px 15px;
    text-align: left;
    border-radius: 5px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.6);  
    opacity: 0;
   ...