* {
    color-scheme: dark;
    font: menu;
    user-select: none;
    white-space: nowrap;
    text-overflow: ellipsis;
}

html {
    background-color: #2d2d2d;
    background-image: radial-gradient(#474646 0.7px, #2d2d2d 1px);
    background-size: 24px 24px;
}

body {
    margin: 0px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    }

body > div {
    width: 450px;
    margin: 10px;
    display: flex;
    flex-direction: column; 
    align-items: center;
    overflow: hidden;
    }

dialog {
    padding: 10px;
    width: max-content;
    position: fixed;
    transform: translate(0%, -50%);
}
dialog::backdrop {
	background: #000000c2;
}

dialog label {
	text-decoration: none;
}

dialog span {
	display: grid;
}

form > p:first-child{
    margin-top: 0px;
}

.moduleTitle {
    font-size: large;
    padding-left: 10px;
    margin-bottom: 8px;
    min-height: 30px;
    position: relative;
    display: flex;
    text-transform: uppercase;
    border-bottom: thin white solid;
    align-items: flex-end;
    width: -webkit-fill-available;
    } 


.row {
    width: -webkit-fill-available;
    padding: 1px 10px;
    display: flex;
}

.row > * {
    font-size: small;
    align-content: center;
}
/*
.row > .key {
    width: fit-content;
    min-width: 70px;
    }

.row > .value::before {
    content: ": "
    }
*/

.row > .value {
    padding-left: 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    align-content: center;
    }

#messageIdResult {
    width: 100%;
}
/*
#fcmListedEndpoints {
    flex-direction: row;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
    }
*/

@keyframes flareUpBlue {
    50% {box-shadow: 0px 0px 20px 20px blue;}
    }

.fcmEndpointUpdated {
    animation: flareUpBlue 2s ;
}

.presence {
    height: 11px;
    width: 11px;
    background-color: #808080;
    border-radius: 50%;
    display: inline-block;
    position: absolute;
    top: 5px;
    right: 6px;
}

fieldset {
    margin: 5px;
    padding: 3px 2px;
    border: thin solid gray;
    width: 320px;
    background-color: #353535;
    display: flex;
    flex-direction: column; 
    overflow: hidden;

}

fieldset > .row {
    display: inline-flex;
}

fieldset.expanded {
    position: absolute;
    background-color: black;
    top: 75px;
    height: 200px;
    left: 100px;
    right: 100px;
    box-shadow: 0px 0px 10px 2px black;
    z-index: 5;
}

fieldset.expanded > legend {
    color: #8a87ff;
    background-color: black;
    padding: 5px 40px 5px 15px;
    border: thin solid #8a87ff;
}

fieldset > legend {
    display: flex;
    width: -webkit-fill-available;
    position: relative;
    border: thin solid gray;
    margin-right: 30px;
    margin-left: 2px;
    padding: 1px 4px;
    background-image: radial-gradient(#3b3b3b 0.9px, #2d2d2d 0.9px);
    background-size: 6px 6px;
}

fieldset > legend > .label {
    font-size: small;
    font-weight: bold;
}


fieldset > legend > input {
    right: -30px;
    position: absolute;
    top: 0px;
    font-size: xx-small;
    height: 100%;
}


.fcmCurrentEndpoint {
    border: thin solid #8a87ff;
    }

.fcmCurrentEndpoint > legend {
    color: #8a87ff;
    }
/*
#fcmMessageCenter   {
    align-items: baseline;
    }
*/
#fcmInbox {
    display: flex;
    flex-direction: column;
    width: inherit;
    align-items: center;
    }

@keyframes swipingLeft {
    100% {
        border: 0px;
        height: 0px;
        margin: 0px;
        padding: 0px;
        left: 900px;
        }
    }

@keyframes swipingAborted {
    100%{
        left: 0px;
        color: white; 
        }
    }
    
.swiped {
    animation: swipingLeft 1s ;
    animation-fill-mode: forwards;
    color: red;
    border-left: 1px solid red;
    }

.swipeAborted {
    animation: swipingAborted 500ms;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(1, 0, 1, 1);
    }

.pushMessage {
    position: relative;
    }

p {display: flex;}

p > span:first-of-type {
     width: 50px;
}

.pushMessageTouchMe {
    background: rgba(76, 175, 80, 0);
    width: 100%;
    height: 100%; 
    left: 0px; 
    position: absolute; 
    z-index: 1; 
    }

.pushMessageClicked  {
    background-color: blue;
    }

@media only screen and (min-width: 751px){

    body {
        height: 100%;
        }

    body > div {
        min-height: auto;
        }

}    

@media only screen and (max-width: 750px){
/*
    #main {
        align-content: flex-start;
        }
    
    .row * {
        font-size: smaller;
    }

    tr * {
        font-size: smaller;
    }
*/
    body > div {
        width: 100%;
        margin: 10px 2px;
    }

    fieldset {
        width: -webkit-fill-available;
    }

    fieldset > .row {
        display: flex;
        width: -webkit-fill-available;
    }

}