/*
Hamburger Menu
*/
.hamburger, 
.hamburger-x {
    padding: 15px 15px;
    display: inline-block;
    cursor: pointer;
    transition: opacity 300ms linear, transform 500ms ease-out;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    overflow: visible; 
}
.hamburger:hover, 
.hamburger-x:hover {
    opacity: 0.7; 
}

.hamburger-box, 
.hamburger-x-box {
    width: 40px;
    height: 24px;
    display: inline-block;
    position: relative; 
}

.hamburger-inner, 
.hamburger-x-inner {
    display: block;
    top: 50%;
    margin-top: -2px; 
}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    background-color:var(--main-colour);
}
.hamburger-x-inner, .hamburger-x-inner:before{
    background-color: var(--highlight-colour);
}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after,
.hamburger-x-inner, .hamburger-x-inner:before {
    width: 40px;
    height: 4px;
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease; 
}

.hamburger-inner::before, .hamburger-inner::after,
.hamburger-x-inner:before {
    content: "";
    display: block; 
}
.hamburger-inner::before {
    top: -10px; 
}
.hamburger-inner::after {
    bottom: -10px; 
}
.hamburger-x-inner{
transform:rotate(45deg)
}
.hamburger-x-inner:before{
transform: rotate(-90deg);
}
.block--hamburger, .block--hamburger-x {
    position: absolute;
    top: 17px;
    right: 0;
}

/*Logo*/
a.logo, .site-footer a.logo {
    box-shadow: none;
    line-height: 0;
}

a.logo img {
    height: 90px;
}

/*Header Logo and Animation*/
.block--logo-with-text {
    display: flex;
    justify-content: left;
    gap: 10px;
    align-items: center;
	max-width: calc(100% - 70px);
}

.block--logo-with-text h1,
.path-frontpage .slideOut .block--logo-with-text h1 {
    font-size: 1.8rem;
    line-height: 2.2rem;
    width: 200px;
    text-transform: uppercase;
    text-align: left;
}

.path-frontpage .block--logo-with-text{
    flex-direction:column;
	max-width:100%;
}
.path-frontpage .slideOut .block--logo-with-text{
    flex-direction: row;
	max-width: calc(100% - 70px);
}
.path-frontpage .block--logo-with-text h1 {
    font-size: 4rem;
    line-height: 4rem;
    width: 100%;
}

.path-frontpage .block--logo-with-text .logo img, 
.region-navigation .logo img {
    height: 140px; 
}

.path-frontpage .block--logo-with-text .logo{
    margin:0 auto;
    width: 120px;
    display: block;
}
.path-frontpage .slideOut .block--logo-with-text .logo{
    width:auto;
    margin:0;
}
.path-frontpage .block--logo-with-text h1 a {
    text-align: center;
    display: block;
}
.path-frontpage .slideOut .block--logo-with-text h1 a {
    text-align:left;

}
.path-frontpage .header--wrapper {
    min-height: 270px;
}
.header--wrapper{
    
    min-height:100px;
    padding: 5px;
    background-color: var(--bg_colour);
    box-sizing: border-box;
}
.path-frontpage .header--wrapper.slideOut{
    min-height: 100px;
}
.path-frontpage .header--wrapper.slideOut .block--logo-with-text .logo img{
    height:90px; 
}
.header--wrapper.slideOut{
    transition:transform 1000ms ease-in;
    position:absolute;
    top:0;
    transform:translate3d(0,-280px,0);
    box-shadow: 0 5px 5px rgba(0,0,0,0.5);
}
.path-frontpage #sticky-header-jump-fix.activate{
    height:280px;
}
#sticky-header-jump-fix.activate{
    height:100px;
}
.header--wrapper.slideOut.posFixed{
    position:fixed;
    z-index:10;
    width:100%;
	left:0;
}
.header--wrapper.slideOut.slideInDown{
    transform: translate3d(0,0,0);
    position:fixed;
    z-index:10;
}


/*Navigation and Animation*/
.region.region-navigation {
    background-color: var(--main-colour);
    position: fixed;
    width: 75%;
    max-width: 795px;
    top: 0;
    right: 0;
    transform: translate3d(100%, 0px, 0px);
    transition: transform 1s ease-in;
    z-index:20;
}
.region.region-navigation.open {
    transform:translate3d(0,0,0);
    box-shadow: 0 0 4px 4px rgba(0,0,0,0.8);
}

.region.region-navigation {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 100px;
}

.menu li.menu-item a {
    box-shadow: none;
    color: var(--highlight-colour);
    text-transform: uppercase;
    text-align: center;
    display: block;
    font-family: Marcellus, serif;
    font-size: 2rem;
    line-height: 5rem;
    text-shadow: none;
}
.menu li.menu-item a:hover{
    box-shadow: inset 0 1px 0.1px var(--main-colour), inset 0 -2px var(--highlight-colour);
    text-shadow: -0.8px -0.8px var(--main_colour), -0.8px 0.8px var(--main_colour), 0.8px -0.8px var(--main_colour), 0.8px 0.8px var(--main_colour);
  
}

.blur .content-wrapper {
    filter: grayscale(0.8) opacity(0.7);
}

.content-wrapper, .site-footer {
    transition: filter 1s ease-out;
}

.blur .header--wrapper, .blur .site-footer {
    filter: grayscale(0.8) brightness(1.2);
}
.region-header{
max-width:1366px;
position:relative;
margin:0 auto;
}
/*Buttons*/
.home-button--container {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    height: 170px;
}
button.button--dark, 
.more-link, .button.form-submit {
    background-color: var(--main-colour);
    padding:10px 10px 10px 35px;
    border:none;
    display:flex;
    justify-content:center;
    align-items:center;
    height:50px;
    position:relative;
    box-shadow: 2px 3px 3px rgba(0,0,0,0.5);
    min-width: 170px;
    max-width: 220px;
    transition: box-shadow 400ms ease-out;
}
.more-link {
    box-sizing: border-box;
    margin: 0 auto;
}
button a, button a:visited, button a:active, 
.more-link a, .more-link a:visited, .more-link a:active{
    box-shadow: none;
    text-shadow: none;
    color:var(--highlight-colour);
    font-family:'Marcellus', serif;
    font-size:2rem;
    text-transform:uppercase;
    display:block;
    padding-top: 2px;
    
}
button a:hover, 
.more-link a:hover, 
button a:visited:hover,
.more-link a:visited:hover{
    text-shadow: none;
    box-shadow: none;
    
}
button.button--dark:hover, 
.more-link:hover, .button.form-submit:hover{
    box-shadow: 1px 1px 2px rgba(0,0,0,0.9);
}
span.button_text--smaller {
    font-size: 1rem;
    display: block;

    line-height:0.6rem
}
.more-link a::before,
button.button--dark a::before{
    content: '';
    position:absolute;
    top: 12px;
    left: 5px;
    width: 26px;
    height: 26px;
    background-image:url(/themes/sacjf/images/SACJFstar.svg);
    background-repeat: no-repeat;
    transition:transform 400ms ease-out;
}
button.button--dark:hover a::before, 
.more-link:hover a::before{
transform:rotate(90deg);
}

.button.form-submit {
    color: var(--highlight-colour);
    font-family: 'Marcellus',serif;
    font-size: 2rem;
    text-transform: uppercase;
    display: block;
    padding-top: 2px;
    padding:10px;
}/*Forms*/
.form-actions {
    display: flex;
    justify-content: space-between;
}
.mailchimp-newsletter-mergefields .form-item, .contact-message-contact-us-form .form-item {    
display: flex;    
flex-direction: column;
}
/*
*******************
*Views Blocks*
*******************
*/
.block-views h2 {
    text-align: center;
    position:relative;
    margin-top:0;
}
.block-views h2::before{
    content:'';
    position:absolute;
    width:100%;
    height:2px;
    background-color:var(--highlight-colour);
    left:0;
    top:50%;
    z-index:0;
}
.block-views h2 span {
    background-color: var(--bg_colour);
    padding:1px 10px;
    position: relative;
}


.block-views {padding: 2px 0;
margin-top:25px
}
.block-views .view-content {
    display:flex;
    justify-content:space-around;
    flex-wrap:wrap
}
.block-views .view-content a{
    text-shadow:none
}
.views-home{
margin-bottom: 25px;
}.card a img {        transition: filter 400ms ease-out;}.card a:hover img {filter: grayscale(0.7);
}.card a img {        transition: filter 400ms ease-out;}.card a:hover img {filter: grayscale(0.7);}.views-justices h3, .views-justices h5, .card a h3{    transition:color 400ms ease-out;}.views-justices .card--justices a:hover h3{    color:var(--bg_colour);}.views-justices a:hover h5{    color:var(--highlight-colour);}.card a:hover h3{    color:var(--highlight-colour)}
/*Justices Block*/

#block-views-block-justices-block-1 {
    background-color: var(--main-colour);
    position: relative;
}
#block-views-block-justices-block-1 h2{
    margin-top:25px;
    color:var(--highlight-colour)
}
#block-views-block-justices-block-1 h2 span{
    background-color:var(--main-colour)
}
#block-views-block-justices-block-1::before {
    content: '';
    width: 100vw;
    height: 100%;
    position: absolute;
    z-index: -1;
    background-color: var(--main-colour);
    top: 0;
    left: calc(0px - (50vw - 50%));
}
.views-justices {
    width: 150px;
    
}

.views-justices h3 {
    color: var(--highlight-colour);
    text-align: center;
    margin: 0;
}
.view-display-id-page_1 .views-justices h3 {
	color: var(--main-colour);
}
.view-display-id-page_1 .views-justices .card--justices a:hover h3 {
	color: var(--highlight-colour);
}

h5.position {
    color: var(--bg_colour);
    text-align: center;
    margin: 0;
}
.view-display-id-page_1 .views-justices h5.position{
	color: var(--highlight-colour);
}
.view-display-id-page_1 .views-justices .card--justices a:hover h5.position{
	color: var(--main-colour);
}
.views-justices img {
    width: 130px;
    margin: 0 auto;
    border-radius: 50%;
}
.card .field--name-field-justice-portrait {
    width: 130px;
    margin: 0 auto;
}
.view-justices .view-content::after{
    content:'';
    width:150px;
}
.view-justices .view-footer h5 {
    text-align: center;
}

.view-justices .view-footer h5 a {
    text-shadow: none;
    color: var(--highlight-colour);
}

.view-justices .view-footer h5 a:hover {
    box-shadow: none;
}
/*News Block*/
#block-views-block-news-block-1::before {
    content: '';
    display: block;
    position: relative;
    width: 0;
    height: 100px;
    margin-top: -100px; 
}
.views-news {
    width: 270px;
}

.views-home h3 {
    margin: 0;
}
/*About Blocks*/

.views-about a {
    box-shadow: none;
    color: var(--highlight-colour);
    font-size: 2rem;
    font-family: 'Marcellus',serif;
    text-transform: uppercase;
    width: 260px;
    height: 145px;
    box-sizing: border-box;
    padding: 30px;
    background-color: var(--main-colour);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.views-about {
    box-shadow: 2px 3px 3px rgba(0,0,0,0.5);
    transition: box-shadow 400ms ease-out;
}
#block-views-block-about-us-pages-block-1::before {
    content: '';
    display: block;
    position: relative;
    width: 0;
    height: 100px;
    margin-top: -100px; 
}
.views-about a::before, .views-about a::after {
    content: '';
    width: 100%;
    height: 2px;
    background-color: var(--highlight-colour);
    transition: transform 400ms ease-out;
}
.views-about:hover{
    box-shadow: 1px 1px 2px rgba(0,0,0,0.9);
}
.views-about:hover a::before,
.views-about:hover a::after{
    transform:scaleX(0.9);
}
.views-about a div::before {
    content:'';
    display: block;
    /* float: left; */
    width: 26px;
    height: 26px;
    flex-shrink:0;
    background-image: url(/themes/sacjf/images/SACJFstar.svg);
    background-repeat: no-repeat;
    transition: transform 400ms ease-out;
    margin-right:26px;
    }
    .views-about a div{
        display:flex;
        justify-content:flex-start;
        align-items:center;
    }
    .views-about a:hover div::before{
        transform:rotate(90deg);
    }
/*Reports Block*/
#block-views-block-conference-reports-block-2::before {
    content: '';
    display: block;
    position: relative;
    width: 0;
    height: 100px;
    margin-top: -100px; 
}
.views-home.views-report {
    width: 230px;
    position: relative;
    margin-left: 30px;
}
.views-home.views-report::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    background-image: url(/themes/sacjf/images/SACJFLogo.svg);
    background-repeat: no-repeat;
    top: 6px;
    left: -30px;
}

/*Footer*/
footer.site-footer {
    background-color: var(--main-colour);
    transition:filter;
    padding: 1px;
    margin-top: 20px;
}
.blur .site-footer {
    filter: grayscale(0.7) brightness(1.2);
}
.block--footer {
    width:95%;
    max-width:920px;
    margin: 10px auto;
    border-top:2px solid var(--highlight-colour);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}
.site-footer p {
    color: var(--bg_colour);
    text-align: center;
}
.site-footer a, .site-footer a:visited {
    color: var(--bg_colour);
    text-decoration: none;
    box-shadow: inset 0 1px 0.1px var(--main-colour), inset 0 -2px var(--highlight-colour);
    text-shadow: -0.8px -0.8px var(--main-colour), -0.8px 0.8px var(--main-colour), 0.8px -0.8px var(--main-colour), 0.8px 0.8px var(--main-colour);
 }
.site-footer a:hover,.site-footer a:visited:hover{
    color:var(--highlight-colour);
    box-shadow: inset 0 -1px 0.1px var(--main-colour), inset 0 -2px var(--highlight-colour);
}
.column.footer-column {
    text-align: center;
}

.footer-column h3 {
    color: var(--bg_colour);
    margin: 15px auto 5px;
}

.column.footer-column:nth-child(2) {
    order: 2;
    margin: 20px;
}

/**************
/****Pages*****
**************/

/*Download Block*/
.download-block  {
    position: relative;
    margin-left: 30px;
    border-top: 2px solid var(--highlight-colour);
    margin-top: 11px;
    padding-top: 11px;
    width:230px;
}
.download-block::before  {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    background-image: url(/themes/sacjf/images/SACJFLogo.svg);
    background-repeat: no-repeat;
    top: -13px;
    left: -30px;
}

.download_button {
    margin: 15px 0;
}
/*Columns*/
.col_1 h2 {
    margin-top: 0;
}
/*Justices Page*/
.col_header.col_header--bio::after {
    content: '';
    position: absolute;
    top: -13px;
    left: calc(50% - 13px);
    width: 26px;
    height: 26px;
    background-image: url(/themes/sacjf/images/SACJFstar.svg);
    background-repeat: no-repeat;
}

.col_header.col_header--bio {
    position: relative;
    padding: 1px;
    order: 1;
}

.col_header.col_header--bio::before {
    content: '';
    height: 220px;
    width: 100vw;
    position: absolute;
    top: 0;
    left: calc(0px - (50vw - 50%));
    background-color: var(--main-colour);
    z-index: -1;
}

.col_header--bio h2 {
    color: var(--highlight-colour);
    text-align: center;
}

.node--type-bio {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.col_2--bio.col_2 {
    order: 2;
}

.col_1--bio.col_1 {
    order: 3;
}

.col_1 .field--name-field-position {
    font-family: 'Marcellus',sans-serif;
    text-transform: uppercase;
    font-size: 2rem;
    text-align: center;
    display: flex;
    height: 100px;
    justify-content: center;
    align-items: center;
    border-top: 2px solid var(--main-colour);
    border-bottom: 2px solid var(--main-colour);
    color: var(--main-colour);
    margin: 5px 0;
}
/*News Page*/
.node--type-news {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 2px solid var(--highlight-colour);
    padding: 10px 0;
    margin-top: 10px;
}
.col_1--news.col_1 {
    order: 2;
}

.col_2--news.col_2 {
    order: 1;
}

.download-block.download-block--news {
    order: 3;
}

/*About Pages*/

.node--type-about-pages {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 2px solid var(--highlight-colour);
    padding: 10px 0;
    margin-top: 10px;
}
.view-about-us-pages.view-display-id-block_2 {
    border-top: 2px solid var(--highlight-colour);
    padding-top: 20px;
}
/*Conference Report Pages*/
.node--type-report{
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 2px solid var(--highlight-colour);
    padding: 10px 0;
    margin-top: 10px;
}
/*Content Category Pages*/

.path-news .page-title, .path-conferencereports .page-title{
    text-align: center;
    margin-bottom: 25px;	position:relative;
}
.path-news .page-title span, .path-conferencereports .page-title span {
    background-color: var(--bg_colour);
    padding: 1px 10px;
    position: relative;
}
.path-news .page-title::before, .path-conferencereports .page-title::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--highlight-colour);
    left: 0;
    top: 50%;
    z-index: 0;
}
.path-news .view-content, .path-conferencereports .view-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

form#contact-message-contact-us-form {
    max-width: 640px;
}

/*Media Queries*/
@media only screen and (min-width: 600px){
    /*Home Blocks*/
    .views-justices {
        flex-basis: 33%;
    }
    
    .view-news .view-content {
        flex-direction: column;
        align-items: center;
    }
    
    .block-views .view-content::after {
        content: '';
        width: 230px;
    }
    .block-views .view-justices .view-content::after{
    	content:'';
        width:216px;
        flex:1;
    }
    .view-about-us-pages .view-content::after {
        width: 260px;
    }
    /*Pages*/
    .node--type-report, .node--type-about-pages, .node--type-news{
        align-items: flex-start;
    }
}
@media only screen and (min-width: 600px) and (orientation:landscape){
    ul.menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .region.region-navigation {
        padding-top: 60px;
    }
	.home-button--container {
    display: flex;
    justify-content: space-evenly;
	height:auto;
	flex-direction:row;
	}

}
@media only screen and (min-width: 768px){
    .block--footer {
        
        flex-direction: row;
        justify-content: space-between;

    }
    .column.footer-column:nth-child(2) {
        order: 0;
    }
    /*Home Blocks*/
    .view-news .view-content {
        flex-direction: row;
        align-items: flex-start;
    }
    .views-news {
        width: 230px;
    }
    .views-news img {
        width: 230px;
    }
	.home-button--container {
    display: flex;
    justify-content: space-evenly;
	height:auto;
	flex-direction:row;
	}
    /*Justice Page*/
    .node--type-bio, .node--type-report,.node--type-about-pages {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
    .node--type-bio{
    flex-wrap: wrap;
    }
    .col_header.col_header--bio {
        flex-basis: 100%;
    }
    .col_1--bio.col_1 {
        order: 2;
        flex-basis: 65%;
    }
    .col_2--bio.col_2 {
        order: 3;
        flex-basis: 30%;
    }
    .col_1 .field--name-field-position {
        border-top: 2px solid var(--highlight-colour);
        border-bottom: 2px solid var(--highlight-colour);
        color: var(--highlight-colour);
        margin: 5px 0 35px 0;
    }
    /*News Page*/
    .node--type-news {
        display: grid;
        grid-template-columns: auto 260px;
        grid-template-rows: 140px auto;
        height: 100%;
        column-gap: 10px;
    }
    .col_1--news.col_1 {
        order: 0;
        grid-column: 1/2;
        grid-row: 1/3;
    }
    .col_2--news.col_2, .download-block.download-block--news {
        order: 0;
        justify-self: end;
    }
    /*About Pages*/
    
    .col_2--about.col_2{
        flex-basis:260px
    }
    /*Category Pages*/
    .path-news .view-news .view-content{
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: space-between;
    }
    .path-conferencereports .view-content {
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: space-around;
        align-items: flex-start;
    }
    .path-conferencereports .view-content::after {
        content: '';
        width: 260px;
    }
}
@media only screen and (min-width: 1024px){
    .view-news .view-content{
        justify-content: space-between;
    }
    .views-news {
        flex-basis: 30%;
    }
    .card_outer.card_outer--news, .views-news img {
        width: 270px;
    }
    .block-views .view-content, .path-conferencereports .view-content {
        justify-content: space-between;
    }
    .path-frontpage .header--wrapper {
        min-height: 230px;
    }
    .views-justices {
        flex-basis: 20%;
    }
}
@media only screen and (min-width: 1024px) and (orientation:landscape){
    ul.menu {
        display: flex;
        flex-direction:column;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .region.region-navigation {
        padding-top: 100px;
    }
}