
body {
    margin: 0;
    font-family: Verdana, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
    background-color: #ffffff;
}

#content {
    width: 99%;
}
#header {
    width: 100%;
    border-bottom: 1px solid #dee2e6;
    padding-left: 10px;
    padding-top: 6px;
    padding-bottom: 12px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
}
#header-menu {
    display: flex;
    flex-basis: auto;
    justify-content: flex-end;
    align-items: center;
    flex-grow: 1;
}
#header-menu a {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

#idpSelect {
    width: 100%;
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
}
/* Top level is idpSelectIdPSelector */
#idpSelectIdPSelector {
    min-width: 30rem; 
    text-align: left;
    color: #6c757d;
    background-color: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
    padding: 20px;
    padding-top: 15px;
}

/* Next down are the idpSelectPreferredIdPTile, idpSelectIdPEntryTile & idpSelectIdPListTile */

#idpSelectIdPEntryTile form {
    margin-bottom: 10px;
}

#idpSelectIdPListTile form {
    margin-bottom: 10px;
}
select#idpSelectSelector {
    color: #212529;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
    font-size: 94%;
    line-height: 1.1;
    padding: 6px;
}
select#idpSelectSelector option {
    background-color: white;
    color: #212529;
}

/** 
 * The preferred IdP tile (if present) has a specified height, so
 * we can fit the preselected * IdPs in there
 */
#idpSelectPreferredIdPTile {
    display: none;
    height:138px; /* Force the height so that the  selector box
                   * goes below when there is only one preslect 
                   */
}
#idpSelectPreferredIdPTileNoImg {
    height:60px;
}

/***
 *  The preselect buttons
 */
div.IdPSelectPreferredIdPButton {
    margin: 3px;
    width: 120px;  /* Make absolute because 3 of these must fit inside 
                      div.IdPSelect{width} with not much each side. */
    float: left;
}

/*
 *  Make the entire box look like a hyperlink
 */
div.IdPSelectPreferredIdPButton a {
    float: left;
    width: 99%; /* Need a specified width otherwise we'll fit
                   the contents which we don't want because
                   they have auto margins */
    
}
div.IdPSelectTextDiv{
    height: 3.5ex; /* Add some height to separate the text from the boxes */
    /*font-size: 15px;*/
    clear: left;
}

div.IdPSelectPreferredIdPImg
{
/*  max-width: 95%; */
    height: 69px; /* We need the absolute height to force all buttons to the same size */
    margin: 2px;
}

img.IdPSelectIdPImg {
   width:auto;
}

div.IdPSelectautoDispatchTile {
    display: block;
}

div.IdPSelectautoDispatchArea {
    margin-top: 30px ;
}

div.IdPSelectPreferredIdPButton img
{
    display: block;    /* Block display to allow auto centring */
    max-width:  114px; /* Specify max to allow scaling, percent does work */
    max-height: 64px;  /* Specify max to allow scaling, percent doesn't work */
    margin-top: 3px ;
    margin-bottom: 3px ;
    border: solid 0px #000000;  /* Strip any embellishments the brower may give us */
    margin-left: auto; /* Auto centring */
    margin-right: auto;  /* Auto centring */

}

div.IdPSelectPreferredIdPButton div.IdPSelectTextDiv
{
    text-align: center;
    font-size: 12px;
    font-weight: normal;
    max-width: 95%;
    height: 30px;       /* Specify max height to allow two lines.  The 
                         * Javascript controlls the max length of the
                         * strings 
                         */
}

/*
 * Force the size of the selectors and the buttons
 */
#idpSelectSelector {
    width: 21rem;
}
#idpSelectInput {
    width: 20rem;
}

input#idpSelectInput {
    font-size: 100%;
    height: 1.3rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(0, 0, 0, 0.125);

}
input#idpSelectInput:focus {
    border-color: #ff9900;
    outline: none;
}

#idpSelectSelectButton, #idpSelectListButton {
    color: #212529;
    background-color: #99cc33;
    border-width: 1px;
    border-radius: 0.25rem;
    border-color: rgba(0, 0, 0, 0.125);
    margin-left: 5px;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 20px;
    padding-right: 20px;
}
/*
 * change underlining of HREFS
 */
a {
    color: #0099cc;
}

a:hover {
    color: #ff9900;
}

a, a:link, a:visited, a:hover, a:focus {
    text-decoration: none;
    outline: none;
}


/* 
 * Arrange to have the dropdown/list aref on the left and the 
 * help button on the right 
 */

a.IdPSelectDropDownToggle {
    display: inline-block;
    width: 80%;
}

a.IdPSelectHelpButton {
    display: inline-block;
    text-align: right;
    width: 20%;
}

/**
 * Drop down (incremental search) stuff - see the associated javascript for reference
 */
ul.IdPSelectDropDown {
    -moz-box-sizing: border-box;
    font-size: small;
    box-sizing: border-box;
    list-style: none;
    padding-left: 0px;
    border: 1px solid rgba(0, 0, 0, 0.125);
    z-index: 6;
    position: absolute;   
}

ul.IdPSelectDropDown li {
    background-color: white;
    cursor: default;
    padding: 0px 3px;
}
ul.IdPSelectDropDown li img {
    display: none;
}

ul.IdPSelectDropDown li.IdPSelectCurrent {
    background-color: #ff9900;
}

