/* Handle loggedin visibility on remote sites */
body.handling-nomad-events .login-button,
body.handling-nomad-events .hide-if-in,
body.handling-nomad-events .logout-button,
body.handling-nomad-events .hide-if-not-in {
    display:none; !important;
}
body.handling-nomad-events.remote-auth-off .hide-if-in,body.handling-nomad-events.remote-auth-off .login-button {
    display:inline-block;
}
body.handling-nomad-events.remote-auth-on .hide-if-not-in,body.handling-nomad-events.remote-auth-on .logout-button {
    display:inline-block;
}

/* for dropdowns that use all.js, conference-news-service and login menu */
ul.menu-items{
    min-width:300px;
}

ul.menu-items .name-badge {
    margin: 0;
    padding: 1.2em;
    background: #DDD;
    color: #555;
    text-align: center;
    border: 1px solid #ccc
}

ul.news-items {
    max-width:70em;
    margin:.8em auto;
    padding:0;
}
ul.news-items li.news-item{
    display:block;
    margin:.8em .1em;
    padding:.8em;
    border: 2px solid rgba(240, 157, 25,.5);
}

.dropdown-container .dropdown-body {
    border: 1px solid #ddd;
    box-shadow:-2px 2px 3px #aaa;
}
.backdrop {
    background:rgba(0,0,0,.2);
}
/* drop down, styling the iframe dropdowns invoked with nomadit.co.uk/conference/js/all.js */
.dropdown-container.zoom-in {
    animation-name: zoom-in;
    animation-duration: 0.75s;
}
.dropdown-container.wide-box {
    animation-name: zoom-in;
    animation-duration: .9s;
}
.dropdown-container.wide-fade-box {
    animation-name: fade-in;
    animation-duration: .4s;
}
.dropdown-container {
    position: fixed;
    z-index: 301;
    animation-name: drop-down;
    animation-duration: 0.45s;
    -webkit-animation-name: drop-down;
    -webkit-animation-duration: 0.45s;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}
.dropdown-container .dropdown-top,
.dropdown-container .dropdown-foot {
    padding: 0.8em;
}
.dropdown-container .dropdown-body {
    position: absolute;
    top:60px;
    left: 50%;
    transform: translate(-50%, 0);
    padding: 0;
    background: #fefefe;
    color:#222;
    width: 500px;
    max-width: 100%;
    margin: 0 auto;
}
.dropdown-container .dropdown-body a:not(.btn) {
    color:#229;
}
.dropdown-container .dropdown-body a:not(.btn):hover, .dropdown-container .dropdown-body a:not(.btn):focus {
    color:#33A;
}
.dropdown-container.wide-box  .dropdown-body ,.dropdown-container.wide-fade-box  .dropdown-body {
    width: 950px;
}

.dropdown-container .dropdown-body iframe {
    width: 100%;
    margin: 0 auto;
    background: #fefefe;
    color: #222;
    border: none;
    height: 650px;
}

.dropdown-container.wide-box .dropdown-body iframe ,.dropdown-container.wide-fade-box .dropdown-body iframe {
    height: calc(100vh - 160px);
}

@media (max-height: 720px) {
    .dropdown-container .dropdown-body iframe {
        height: calc(100vh - 120px);
    }
    .dropdown-container {
        overflow-y: scroll;
    }
}
.dropdown-container.full-page {
    overflow-y: scroll;
    padding: 1em;
}
.dropdown-container.full-page .dropdown-body {
    padding: 1.5em 0;
    max-width: 100%;
    width: 75em;
    position: static;
    transform: translate(0, 0);
}
.dropdown-dialog-container {
    position: fixed;
    z-index: 301;
    animation-name: zoom-in;
    animation-duration: 0.4s;
    -webkit-animation-name: zoom-in;
    -webkit-animation-duration: 0.4s;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}
.dropdown-dialog-container .dropdown-head,
.dropdown-dialog-container .dropdown-foot {
    padding: 0.8em;
}
.dropdown-dialog-container .dropdown-dialog {
    position: absolute;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
    background: #fefefe;
    color: #222;
    width: 500px;
    max-width: 96%;
    margin: 0 auto;
}
@keyframes drop-down {
    from {
        top: -100%
    }
    to {
        top: 0
    }
}

@keyframes zoom-in {
    from {
        transform: scale(0)
    }
    to {
        transform: scale(1)
    }
}
@keyframes fade-in {
    from {
        opacity:0;
    }
    to {
        opacity:1
    }
}

.caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    vertical-align: middle;
    border-top: 4px solid;
    border-bottom: none;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transition: transform 0.5s;
}

*[aria-expanded="true"]>.caret {
    transform: scale(-1);
}
