.brexitRow {
    margin: 0 auto;
    width: 80%;
}



.icon {
    display: block;
    margin-bottom: .5em;
    color: #fff;
}
/* The Modal (background) */
#loading {
    display: none;
    margin: 0px auto;
    width: 50%;
    text-align: center;
}

.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    padding-top: 100px;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}
/* Modal Content */

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-height: 100%;
    position: fixed;
    overflow-x: auto;
    overflow-y: scroll;
    bottom: 10px;
    left: 0;
    right: 0;
    top: 10px;
    z-index: 9999;
}

#modal-header {
    /*padding: 15px;*/
    text-align: center;
    background-color: #00ADA8;
    border-radius: 5px;
    width: 50%;
    margin: 0 auto;
    margin-bottom: 20px;
}

    #modal-header h2, #modal-header h3 {
        color: #ffffff;
        margin-bottom: 0px;
        font-weight: bold;
        margin-top: 0px;
        padding: 10px;
    }

    #modal-header i {
        color: #ffffff;
    }

    #modal-header p {
        color: #ffffff;
    }

        #modal-header p a {
            color: #ffffff;
            text-decoration: none;
        }

h2#heading-one, h2#heading-two {
    margin: 10px auto;
    width: 50%;
}

#result {
    text-align: center;
}

/* The Close Button */

.close {
    color: #ffffff;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

    .close:hover,
    .close:focus {
        color: #000;
        text-decoration: none;
        cursor: pointer;
    }

.fa-rotate-down {
    -ms-transform: rotate(190deg);
    /* IE 9 */
    -webkit-transform: rotate(190deg);
    /* Chrome, Safari, Opera */
    transform: rotate(190deg);
}

.fa-rotate-up {
    -ms-transform: rotate(10deg);
    /* IE 9 */
    -webkit-transform: rotate(10deg);
    /* Chrome, Safari, Opera */
    transform: rotate(10deg);
}

#result {
    display: none;
    margin-top: 20px;
}

a.back-to-top {
    display: none;
    width: 60px;
    height: 60px;
    text-indent: -9999px;
    position: fixed;
    z-index: 999;
    right: 20px;
    bottom: 20px;
    background: #00ADA8 url("http://www.cso.ie/images/up-arrow.png") no-repeat center 43%;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    border-radius: 30px;
}

.footnote {
    margin-bottom: 20px;
    float: left;
    font-size: 12px;
}

    .footnote p {
        font-size: 12px;
        margin: 0px;
    }

.highchart {
    float: left;
    margin-bottom: 20px;
}

.column {
    width: 100%;
}

.highcharts-credits {
    pointer-events: none;
    cursor: default;
}



text.highcharts-subtitle {
    font-size: 18px;
    font-weight: bold;
}


#heading-one, #heading-two {
    text-align: center;
    margin: 20px;
    /* border: 1px solid #d1d9e1; */
    margin: auto;
    width: 50%;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    background: #f2f2f2;
    /*padding: 10px;*/
    font-family: 'Roboto', sans-serif;
    color: #384350;
    border: 1px solid #d1d9e1;
}

    #heading-one p, #heading-two p {
        margin: 0px;
    }

.clear {
    clear: both;
}



#headline-figures {
}


.item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /*width: 25%;*/
    margin: 20px;
    max-height: 300px;
    overflow: hidden;
    border: 1px solid #000;
    transition: all 0.2s cubic-bezier(0.54, 0.4, 0.66, 1.49);
    position: relative;
    top: 0;
    box-shadow: 0px 0px 0px 0px #fff;
    border-radius: 35px;
}

    .item:hover {
        position: relative;
        top: -15px;
        box-shadow: 0px 6px 5px 0px #999;
    }

    .item:hover {
        position: relative;
        top: -15px;
        box-shadow: 0px 6px 5px 0px #999;
    }

    .item img {
        z-index: 1;
        min-height: 100%;
        min-width: 100%;
        object-fit: cover;
    }

img {
    max-width: 100%;
}

img {
    border-style: none;
}

.item a {
    position: absolute;
    z-index: 99;
    display: block;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    text-decoration: none;
    display: flex;
    justify-content: center;
}

    .item a:hover {
        text-decoration: none;
    }

.item h3 {
    margin: 0;
    padding: 5px;
    text-transform: uppercase;
    color: #fff;
    font-weight: 900;
    font-size: 1.5em;
    line-height: 40px;
    /*display: none;*/
    align-self: flex-end;
}

.black:after {
    background-color: #000;
}

.overlay {
    position: relative;
}

    .overlay:after {
        position: absolute;
        content: "";
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        opacity: 0;
        z-index: 98;
    }

    .overlay:hover:after {
        opacity: .8;
    }





@media print {
    .modal-content {
        width: 80%;
    }
}

@media all and (max-width: 1023px) {
    #modal-header,
    #heading-one, #heading-two, .brexitRow {
        width: 100%;
    }

    .item {
        margin: 5px;
    }



        .item h3 {
            font-size: 1em;
            line-height: 20px;
            margin: 5px 5px 15px 5px;
        }

    .experiments .span4 {
        width: 50%;
    }

    .mainContent .col:nth-child(3) {
        margin-bottom: 00px;
    }
}

@media all and (max-width: 767px) {
    #modal-header, #heading-one, #heading-two, .brexitRow {
        width: 100%;
    }

    .item {
        margin: 5px;
    }

        .item h3 {
            font-size: 1em;
            line-height: 20px;
            margin: 5px 5px 15px 5px;
        }

    .experiments .span4 {
        width: 50%;
    }
}
