body {
    background-color: #eee;
    padding-bottom: 150px;
}

/* Waiting div overlay */
.waiting {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 100000;
    font-size: 40px;
    text-align: center;
}

.waiting .icon-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    display: table;
}

.waiting .glyphicon {
    display: table-cell;
    vertical-align: middle;
}

/* CSS animation for authentication method buttons in the RAP main page. */
@keyframes home_pulse {
    from {
        transform: scale(1, 1);
    }

    to {
        transform: scale(1.07, 1.07);
    }
}

/* Box containing one or more authentication methods in the RAP main page. */
.home-box {
    display: inline-block;
    vertical-align: top;
    width: 240px;
    height: 165px;
    margin: 10px;
    border-radius: 15px;
    border: 1px solid #ccc;
    background-color: #fff;
    padding: 4px 8px 8px 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
}

.home-box .img-wrapper {
    width: 100%;
    height: 80px;
    text-align: center;
    display: table;
}

.home-box .img-wrapper a {
    display: table-cell;
    vertical-align: middle;
}

.home-box .img-wrapper a:hover {
    animation-duration: 0.2s;
    animation-fill-mode: both;
    animation-name: home_pulse;
    animation-timing-function: ease-in;
}

#main-header {
    background-image: url('../img/rap-background.jpg');
    background-position: center; 
    background-repeat: repeat-x;
    height: 90px;
    position: relative;
    border-bottom: 1px #9c9c9c solid;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
    text-shadow: 0 2px 3px rgba(0,0,0,.6);
}

.credits {
    position: absolute;
    top: 66px;
    bottom: 0;
    right: 11px;
    left: 0;
    text-align: right;
    font-size: 12px;
    color: #fff;    
}

.page-title-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}

.page-title-wrapper h1 {
    color: #fff;
    font-weight: bold;
    font-size: 42px;
}

.page-title-wrapper a, .page-title-wrapper a:visited {
    color: #fff;
}

#main-footer-wrapper {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: #eee;
}

#main-footer {
    color: #666;
    border-top: 1px #d4d4d4 solid;
    background-color: #f8f8f8;
    padding: 5px 0;
}

#footer-credits {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px
}

.page-title {
    margin-top: 0;
    font-weight: bold;
    color: #24388e;
    text-shadow: 0 2px 3px rgba(0,0,0,.35);
}

.panel {
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
}

.panel-default {
    border-color: #ccc
}

.panel-default > .panel-heading {
    background-image: linear-gradient(to bottom,#f5f5f5 0,#ccc 100%);
}

.table-like {
    display: table;
    width: 100%;
}

.table-like .table-row {
    display: table-row;
}

.table-row .table-cell {
    display: table-cell;
    vertical-align: middle;
}

.join-icon-cell {
    min-width: 100px;
    text-align: center;
    font-size: 30px;
}

.primary-identity-icon {
    font-size: 17px;
    color: #4ea64e;
}
.primary-identity-icon a {
    color: #ddd;
}
.primary-identity-icon a:hover {
    color: #888;
}

.services-list-wrapper {
    font-size: 18px;
}
.services-list-wrapper .btn-link {
    font-size: 17px;
}
.service-logo {
    padding-right: 10px;
    max-height: 50px;
}

#token-issuer-btn {
    margin-top: 20px;
    margin-bottom: 20px;
}

.circle-wrapper {
    text-align: center;
    position: relative;
}

.circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    font-size: 25px;
    color: #fff;
    line-height: 30px;
    text-align: center;
    background: red;
    transform: rotate(-20deg);
    padding-top: 6px;
    border: 3px yellow solid;
    font-weight: bold;
    position: absolute;
    left: 27px;
    top: 0px;
}

.inline {
    display: inline;
}
