/*
 General styles related to the Hershey Alert System
*/


section#alert-wrapper {
    background: #E81C2C;
    margin: 0;
    padding: 0;
    color: #fff;
    text-align: center;
    font-size: 1.2em;
    position: relative;
    z-index: 199;
}
section#alert-wrapper article {
    padding: .5% 50px;
    display: none;
}
section#alert-wrapper article:focus {
    text-decoration: underline;
}
section#alert-wrapper a {
    color: #3f000b;
    font-weight: bold;
    padding: 0 6px;
}
section#alert-wrapper a:hover, section#alert-wrapper a:focus {
    outline: #3f000b solid 2px;
    background: #fff;
    color: #3f000b;
}
section#alert-wrapper hr {
    margin: 0 auto;
    display: none;
    width: 80%;
}
section#alert-wrapper .alert-dismiss {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    margin: 10px;
    border: 2px solid #fff;
    display: inline-block;
    vertical-align: middle;
    position: absolute;
    text-align: left;
    text-indent: -9999px;
    direction: ltr;
    /*float: right;*/
    transform: rotate(45deg);
    display: none;
    background-color: #E81C2C;
    top:-5px;
	right:0;
}
section#alert-wrapper .alert-dismiss:before, section#alert-wrapper .alert-dismiss:after {
    content: ' ';
    width: 18px;
    height: 2px;
    box-shadow: inset 0 0 0 32px #fff;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}
section#alert-wrapper .alert-dismiss:after {
    width: 2px;
    height: 18px;
}
section#alert-wrapper .alert-dismiss:focus, section#alert-wrapper .alert-dismiss:hover {
    background: #3f000b;
    box-shadow: 0 0 0 2px #3f000b;
    outline: none;
}
section#alert-wrapper .alert-hidden {
    position: absolute;
    right: 6px;
    /*bottom: -52px;*/ top:-5px;
    padding: 10px;
    background: rgba(224, 0, 0, .7);
    text-align: center;
    width: 60px;
    border-radius: 5px;
    color: #fff;
    border: 1px solid #fff;
}
section#alert-wrapper .alert-hidden:hover, section#alert-wrapper .alert-hidden:focus {
    background: rgba(224, 0, 0, 1);
    box-shadow: 0 0 0 2px #3f000b;
    outline: none;
}
section#alert-wrapper .alert-hidden .alert-icon {
    width: 30px;
    margin: 2px 4px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    text-align: left;
    text-indent: -9999px;
    direction: ltr;
    border-bottom: 2px solid #fff;
    border-radius: 0 0 4px 4px;
    margin: 26px 2px 6px;
}
section#alert-wrapper .alert-hidden .alert-icon:before {
    content: ' ';
    position: absolute;
    width: 26px;
    height: 26px;
    left: 1px;
    top: -14px;
    border-width: 2px 0 0 2px;
    border-style: solid;
    border-color: #fff;
    border-radius: 4px 0;
    transform: rotate(45deg) skew(12deg,12deg);
}
section#alert-wrapper .alert-hidden .number {
    position: absolute;
    top: 29px;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: .7em;
}

@media only screen and (max-width: 767px) {
    
    section#alert-wrapper .alert-hidden {
        bottom: -39px;
        padding: 5px;
    }
    section#alert-wrapper .alert-hidden .number {
        top: 25px;
    }
}