#systemFLOATmessage {
    display: grid;
    justify-items: stretch;
    grid-template-columns: 20% 20% 20% 20% 20%;
    grid-template-rows: auto;

    font-family: var(--system-font);
    text-decoration: none;
    color: #111;
    text-align: left;
    vertical-align: middle;
    z-index: 1520;
    clear: none;
    float: none;
/*    overflow: hidden; */
    visibility: visible;
    box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.5);
    border-radius: var(--skin-radius);
    padding: 0px;
    border: 1px solid #555;
    position: static;
    margin:auto;
    box-sizing: border-box;
    background-color: #fefefe;
}
#systemFLOATmessage:not(.window) {
    font-size: 12px;
}

#systemFLOATmessage h1,
#systemFLOATmessage h2,
#systemFLOATmessage h3,
#systemFLOATmessage h4,
#systemFLOATmessage h5,
#systemFLOATmessage h6 {
    font-family: var(--system-font);
}

#systemFLOATmessage > div.header {

    grid-area: header;

    font-size: 1.4em;
    text-align: left;

    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.75);

    font-weight: normal;

    position: relative;

    overflow: hidden;

    margin: 0;
    padding: 0;

    clear: none;

}
/*
#systemFLOATmessage > div.header:not(:empty) {
    padding: 1px;
}
*/
#systemFLOATmessage > div.header button.close {
    padding: 0em;

    background-color: rgba(255,255,255,0.2);
    background: rgb(242, 242, 242);

    background: -moz-linear-gradient(90deg, rgb(242, 242, 242) 49%, rgb(173, 173, 173) 100%);
    background: -webkit-linear-gradient(90deg, rgb(242, 242, 242) 49%, rgb(173, 173, 173) 100%);
    background: -o-linear-gradient(90deg, rgb(242, 242, 242) 49%, rgb(173, 173, 173) 100%);
    background: -ms-linear-gradient(90deg, rgb(242, 242, 242) 49%, rgb(173, 173, 173) 100%);
    background: linear-gradient(180deg, rgb(242, 242, 242) 49%, rgb(173, 173, 173) 100%);

    margin: 0em;

    font-size: 0.8em;
    box-shadow: inset 1px 1px 10px 0px rgba(255, 255, 255, 0.75);

    border-radius: var(--skin-radius);

    border: 2px solid #ccc;
    float: right;

    color: #666;

    text-shadow: 2px 2px 1px #fff;

}
#systemFLOATmessage > div.header button.close:hover {
    cursor: pointer;

    background-color: rgba(255,0,0,0.7);
    background: rgba(255,0,0,0.7);

    color: #FFF;

    text-shadow: 1px 1px 1px #000, -1px -1px 1px #fff;

}
#systemFLOATmessage > div.header button.close span {
    margin: 0;
    padding: 6px 5px 3px 6px;
    display: inline-block;

}

#systemFLOATmessage div.icon {
    grid-area: icon;
    text-transform: none;
    display: flex;
    align-items: start;
    justify-content: center;
}
#systemFLOATmessage div.icon:after {
    font-size: 18px;
    border-radius: 50%;
    border: 5px solid #ddd;
    color: #FFF;
    background-color: transparent;
    display: flex;
    
    font-family: "Arial";
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9);
    padding: 0.8em;
    height: 0.5em;
    aspect-ratio: 1;

    align-self: start;
    justify-content: center;
    align-items: center;    
    
}
#systemFLOATmessage > div.msg {

    grid-area: msg;

/*    overflow: hidden; */

    display: block;

    padding: 0.75em;

    color: #666;
    position: relative;

    /*
            -webkit-box-shadow: 0px -2px 16px rgba(0, 0, 0, 0.3);
            -moz-box-shadow: 0px -2px 16px rgba(0, 0, 0, 0.3);
            box-shadow: 0px -2px 16px rgba(0, 0, 0, 0.3);
    */
    /*	-webkit-box-shadow: inset 1px 1px 5px rgba(0, 0, 0, 0.5);
            -moz-box-shadow: inset 1px 1px 5px rgba(0, 0, 0, 0.5);
            box-shadow: inset 1px 1px 5px rgba(0, 0, 0, 0.5);	
    */
}
#systemFLOATmessage.error > div.msg {
    line-break: anywhere;
}

#systemFLOATmessage > div.msg > .title:not(:empty) {
    overflow: hidden;
    font-size: 1.4em;
    margin: 0;
    font-weight: bold;
    padding: 0px 10px;
    text-transform: uppercase;
}
#systemFLOATmessage > div.msg > .title::first-letter {
    text-transform: uppercase;
}

#systemFLOATmessage > div.msg > .title.window:not(:empty) {
    font-size: 1.2em;
    padding: 0.75rem 1rem;
    color: #000;
    font-weight: normal;
}
#systemFLOATmessage.title > div.header:not(:empty) {
    padding: 0.75rem 1rem;
    font-size: 1.2em;
}

#systemFLOATmessage > div.msg .body:not(:empty){
   overflow: auto;
    padding: 1em 0.5em;
    width: 100%;
    max-height: 94vh;
}
#systemFLOATmessage > div.msg .body > p {
    margin-top: 0;
}
#systemFLOATmessage > div.msg .body pre {
    white-space: break-spaces;
}



#systemFLOATmessage > div.msg .body > h1,
#systemFLOATmessage > div.msg .body > h2,
#systemFLOATmessage > div.msg .body > h3,
#systemFLOATmessage > div.msg .body > h4,
#systemFLOATmessage > div.msg .body > h5,
#systemFLOATmessage > div.msg .body > h6 {
    margin-top: 0;
}

/* notify */
#systemFLOATmessage.notify {

    grid-template-areas: 
        "header header header header header"
        "msg msg msg msg msg"
        "buttons buttons buttons buttons buttons";

    font-size: 13px;

    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
    position: fixed;
    right: 0;
    bottom: 0;

    padding: 0px;
    margin: -1px;

    -webkit-box-shadow: -3px -3px 15px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: -3px -3px 15px rgba(0, 0, 0, 0.5);
    box-shadow: -3px -3px 15px rgba(0, 0, 0, 0.5);

}
#systemFLOATmessage.notify div.msg {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;

    padding: 1em 2em;
    margin: 3px -1px -1px 3px;

    background-color: #eee;

    color: #000;

    text-shadow: 1px 1px 1px #fff -1px -1px 1px #888;
}

/* notice */
#systemFLOATmessage.notice {
    grid-template-areas: 
        "header header header header header"
        "msg msg msg msg msg"
        "buttons buttons buttons buttons buttons";

    z-index: 5001;
}
#systemFLOATmessage.notice div.icon {

}
/* show */
#systemFLOATmessage.show {
    grid-template-areas: 
        "header header header header header"
        "msg msg msg msg msg"
        "buttons buttons buttons buttons buttons";
}
#systemFLOATmessage.show div.icon {

}

/* info */
#systemFLOATmessage.info {
    grid-template-areas: 
        "icon header header header header"
        "icon msg msg msg msg"
        "icon buttons buttons buttons buttons";
}
#systemFLOATmessage.info div.icon {
    background-color: #6DE8F5;
}
#systemFLOATmessage.info div.icon:after {
    content: "i";
    border-color: #5CBDD1;
    font-weight: bold;
}
/* success */
#systemFLOATmessage.success {
    grid-template-areas: 
        "icon header header header header"
        "icon msg msg msg msg"
        "icon buttons buttons buttons buttons";

}
#systemFLOATmessage.success div.icon {
    background-color: #a7d155;
}
#systemFLOATmessage.success div.icon:after {
    content: "✔";
    border-color: #8fb14f;
}
/* warning */
#systemFLOATmessage.warning {
    grid-template-areas: 
        "icon header header header header"
        "icon msg msg msg msg"
        "icon buttons buttons buttons buttons";
}
#systemFLOATmessage.warning div.icon {
    background-color: #f1e472;
}
#systemFLOATmessage.warning div.icon:after {
    content: "!";
    border-color: #cec260;
    color: #333;
    font-weight: bold;
}
/* error */
#systemFLOATmessage.error {
    grid-template-areas: 
        "icon header header header header"
        "icon msg msg msg msg"
        "icon buttons buttons buttons buttons";

}
#systemFLOATmessage.error div.icon {
    background-color: #e34f4f;
}
#systemFLOATmessage.error div.icon:after {
    content: "✖";
    border-color: #c14343;
}

/* confirm */
#systemFLOATmessage.confirm {
    grid-template-areas: 
        "icon header header header header"
        "icon msg msg msg msg"
        "icon buttons buttons buttons buttons";
    
    grid-template-columns: 80px auto  auto  auto  auto;

}
#systemFLOATmessage.confirm div.icon {
    background-color: #09F;
}
#systemFLOATmessage.confirm div.icon:after {
    content: "?";
    border-color: #0079CA;
}
/* window */
#systemFLOATmessage.window {
    grid-template-areas: 
        "header header header header header"
        "msg msg msg msg msg"
        "buttons buttons buttons buttons buttons";

}
#systemFLOATmessage.window div.icon {
    background-color: #333;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.8);
}
#systemFLOATmessage.window > div.header {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1521;
}
#systemFLOATmessage.window > div.msg {
    padding: 0;
    margin: 0;
}
#systemFLOATmessage.window div.msg .title {

}
#systemFLOATmessage.window div.msg div.title.window:not(:empty) + div.body {
    padding-top: 0 !important;
}
#systemFLOATmessage.window > div.msg .body {
    overflow: hidden;
    padding: 0;
}
#systemFLOATmessage.window > div.msg .body a img {
    vertical-align: bottom
}


/* buttons */
/*
#systemFLOATmessage div.buttons button:hover {
    color: #000;
}
*/
#systemFLOATmessage div.buttons {

    grid-area: buttons;

    padding: 6px;

    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #aaaaaa;
    background-color: rgba(50,50,50,0.1);
    box-shadow: inset 0px 2px 2px rgba(50, 50, 50, 0.1);

    text-align: center;
    clear: both;
}
#systemFLOATmessage:not(.window) div.buttons {
    display:flex;
    justify-content: space-between;
}

/*
#systemFLOATmessage div.buttons button {
    font-family: var(--system-font);
    border: 1px solid #999;
    cursor: pointer;
    -webkit-box-shadow: 0px 0px 2px rgba(255, 255, 255, 0.5);
    -moz-box-shadow: 0px 0px 2px rgba(255, 255, 255, 0.5);
    box-shadow: 0px 0px 2px rgba(255, 255, 255, 0.5);
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    background-color: #f9f9f9;

    background: rgb(242, 242, 242);
    background: -moz-linear-gradient(90deg, rgb(242, 242, 242) 20%, rgb(201, 201, 201) 80%);
    background: -webkit-linear-gradient(90deg, rgb(242, 242, 242) 20%, rgb(201, 201, 201) 80%);
    background: -o-linear-gradient(90deg, rgb(242, 242, 242) 20%, rgb(201, 201, 201) 80%);
    background: -ms-linear-gradient(90deg, rgb(242, 242, 242) 20%, rgb(201, 201, 201) 80%);
    background: linear-gradient(180deg, rgb(242, 242, 242) 20%, rgb(201, 201, 201) 80%);

    color: #777;
    margin-top: 0.1em;
    margin-right: 0.3em;
    margin-bottom: 0.1em;
    margin-left: 0.3em;
    padding-top: 0.1em;
    padding-right: 0.9em;
    padding-bottom: 0.2em;
    padding-left: 0.9em;

    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6);	
}
*/

@media screen
and (max-width: 360px) {
    #systemFLOATmessage {
        display: block;
        left: 0;
        right: 0;
        margin: 1em;
    }
    #systemFLOATmessage div.header {
        position: absolute;
        right: 0;
    }
    #systemFLOATmessage div.header button.close {
        font-size: 1.5em;
    }
    #systemFLOATmessage div.buttons button {
        font-size: 1.5em;
    }
    #systemFLOATmessage div.icon:after {
        margin: 1em;
    }    
}

@media screen
and (min-width: 361px)
and (max-width: 768px) {
    #systemFLOATmessage {
        display: block;
        left: 0;
        right: 0;
        margin: 1em;
    }
    #systemFLOATmessage div.header {
        position: absolute;
        right: 0;
    }
    #systemFLOATmessage div.header button.close {
        font-size: 1.5em;
    }
    #systemFLOATmessage div.buttons button {
        font-size: 1.5em;
    }
    #systemFLOATmessage div.icon:after {
        margin: 1em;
    }    
}

@media only screen
and (min-width : 769px) 
and (max-width : 993px) {
    #systemFLOATmessage {
        max-width: 95%;
        min-width: 320px;
    }
    #systemFLOATmessage:not(.window) {
       /* max-width: 400px; */
    }
    #systemFLOATmessage div.icon:after {
        margin: 1em;
    }    

}

@media only screen
and (min-width : 994px)
and (max-width : 1169px) {
    #systemFLOATmessage {
        max-width: 95%;
        min-width: 320px;
    }
    #systemFLOATmessage:not(.window) {
       /* max-width: 540px; */
    }
    #systemFLOATmessage.window {
        max-width: max-content;
    }
    #systemFLOATmessage div.icon:after {
        margin: 1em;
    }    
}
@media only screen
and (min-width : 1170px) {
    #systemFLOATmessage {
        max-width: 95%;
        min-width: 320px;
    }
    #systemFLOATmessage:not(.window) {
    /*        max-width: 650px; */
    }
    #systemFLOATmessage.window {
        max-width: max-content;
    }
    #systemFLOATmessage div.icon:after {
        margin: 1em;
    }

}
