.buttonbar
{
    flex: 1;
    flex-grow: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}
.buttonbar[align="left"]
{
    justify-content: flex-start;
}

.buttonbar > div
{
    flex: 1;
    flex-grow: 0;
    box-sizing: border-box;
}
.defaultbutton
{
    
  border: none;
  text-decoration: none;
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  text-align: center;
  white-space: nowrap;
  transition: all 0.15s ease;
  background: #e1e1d0;
  color: black;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 13px;
  padding-left: 10px;
  padding-right: 40px;
  font-size: 0.9em;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  width: fit-content !important;
  min-width: 200px;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 1.25em;
  border-radius: 3px;
  margin: 4px;
  border: 1px solid silver;
  
}

@media only screen and (max-width: 800px) 
{
    .defaultbutton
    {
        min-height: 1em;
        padding: 8px;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 0.8em;
    }
}

.defaultbutton:hover
{
    border-color: gray;
}

.defaultbutton:active
{
    box-shadow: none;
}
.defaultbutton[visible="0"]
{
    display: none;
}
.defaultbutton[static="1"]
{
    pointer-events: none;
}
.defaultbutton[imgonly="1"] > img
{
    height: 1.2em;
    display: block;
    margin: 0px;
}

.defaultbutton > div
{
    flex: 1;
    flex-grow: 1;
    box-sizing: border-box;
}
.defaultbutton > div:first-child
{
    flex-grow: 0;
}
.defaultbutton[enabled="0"]
{
    filter: grayscale(100%);
    pointer-events: none;
    outline-color: silver !important;
    color: gray;
    opacity: 0.5;
}

.defaultbutton[enabled="0"] > img
{
    opacity: 0.5;
    
}
.defaultbutton[color="red"]
{
    background: #ffc2b3;
    
}
.defaultbutton[color="red"]:hover
{
    background: #ff9980;
    
}

.defaultbutton[color="green"]
{
    background: #adebad;
    border-color: #608000;
}

.defaultbutton[color="green"]:hover
{
    background: #5bd75b;
}


.defaultbutton[visible="0"]
{
    display: none;
}

.defaultbutton > div
{
    flex-grow: 1;
    
}
.defaultbutton > div > img
{
    height: 0.9em;
    float: left;
    display: block;
    opacity: 0.5;
    margin-right: 10px !important;
    
}

.defaultbutton:hover
{
    background: #afaf83;
    
}
.defaultbutton:active
{
    transition: none;
    filter: invert(100%);
}


.defaultbutton:hover > div > img
{
    opacity: 1;
}


