p,
span,
b,
a {
    font-family: arial, helvetica, sans-serif !important;
}

#searchpanel.open {
    top: 8vh;
}

header .top,
#logo,
#logo img {
    height: auto;
}

header .top #logo img {
    height: 96px;
}

.megamenu {
    height: auto;
    min-height: 100%;
}

.megamenu ul {
    height: auto;
}

header nav a:hover {
    background: transparent;
}

header nav a span.title {
    display: block;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px transparent;
    position: relative;
    -webkit-transition-property: color;
    transition-property: color;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
}

header nav a span.title:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(179, 0, 207);
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
    -webkit-transform-origin: 50% 100%;
    transform-origin: 50% 100%;
    -webkit-transition-property: transform;
    transition-property: transform;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}

header nav a span.title:hover {
    color: rgb(221, 241, 0) !important;
}

header nav a span.title:hover:before {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
}

header article h1,
header article p {
    padding: 50px;
}

#carousel a .hovertitle {
    font-size: 3em;
    font-weight: normal;
}

p,
.description {
    font-family: 'Lucida Grande';
}

a.telephone {
    text-align: center;
    font-weight: 100;
    font-family: 'Lucida Grande';
}

header nav a span.title {
    font-size: 'Montserrat';
}

#coa h1 {
    font-family: 'Montserrat';
    font-size: 30pt;
    line-height: 1.3;
}

#calendar h1,
#latestnews h1 {
    text-align: center;
    font-weight: 100;
    font-size: 'Montserrat';
    font-size: 30pt;
}

#latestnews a .readmore {
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

#latestnews a .readmore:hover {
    color: rgb(179, 0, 207);
}

main {
    padding: 30px 100px;
}

main .button,
#contactpanel button {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px transparent;
    position: relative;
    -webkit-transition-property: color;
    transition-property: color;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
}

main .button:before,
#contactpanel button:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(179, 0, 207);
    border-radius: 10px;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: 0 50%;
    transform-origin: 0 50%;
    -webkit-transition-property: transform;
    transition-property: transform;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}

main .button:hover,
main .button:focus,
main .button:active,
#contactpanel button:hover,
#contactpanel button:focus,
#contactpanel button:active {
    color: rgb(221, 241, 0) !important;
}

main .button:hover:before,
main .button:focus:before,
main .button:active:before,
#contactpanel button:hover:before,
#contactpanel button:focus:before,
#contactpanel button:active:before {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}

#latestnews a,
#latestnews a:link,
#latestnews a:visited {
    -webkit-transition-property: color;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    transition-property: color;
}

#bottom h3 {
    margin-bottom: 5px;
}

table.staff td {
    width: 33.333%;
}

table td {
    padding: 0px 20px;
}

a.newsnext,
a.newsnext:link,
a.newsnext:visited,
a.newsprevious,
a.newsprevious:link,
a.newsprevious:visited {
    position: absolute;
}

.newsnext {
    display: block;
    position: absolute;
    right: 0;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px transparent;
    position: relative;
    -webkit-transition-property: color;
    transition-property: color;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
}

.newsnext:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(179, 0, 207);
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: 0 50%;
    transform-origin: 0 50%;
    -webkit-transition-property: transform;
    transition-property: transform;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}

.newsnext:hover,
.newsnext:focus,
.newsnext:active {
    color: rgb(221, 241, 0) !important;
}

.newsnext:hover:before,
.newsnext:focus:before,
.newsnext:active:before {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}


#coa .pure-u-3-5 h4 {
    margin-top: 40px;
}

.newsprevious {
    display: block;
    position: absolute;
    left: 0;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px transparent;
    position: relative;
    -webkit-transition-property: color;
    transition-property: color;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
}

.newsprevious:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(179, 0, 207);
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: 100% 50%;
    transform-origin: 100% 50%;
    -webkit-transition-property: transform;
    transition-property: transform;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}

.newsprevious:hover,
.newsprevious:focus,
.newsprevious:active {
    color: rgb(221, 241, 0) !important;
}

.newsprevious:hover:before,
.newsprevious:focus:before,
.newsprevious:active:before {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}


#contactpanel {
    background-color: #fff;
}

.subjectoption,
.subjectoption:link,
.subjectoption:visited {
    color: rgb(2, 146, 87);
}

.subjectoption.chosen {
    color: rgb(2, 146, 87);
}

#contactpanelclose,
#contactpanelclose:link,
#contactpanelclose:visited {
    border: 2px solid rgb(179, 0, 207);
}

#searchpanel,
#contactpanel,
#newsletterpanel {
    padding: 0;
}

#searchpanel.open,
#contactpanel.open,
#newsletterpanel.open {
    padding: 5%;
}

#carousel a.active {
    width: 33.3333% !important;
}

#carousel a {
    width: 16.6666% !important;
}

#newspaginator a.active {
    font-size: 1.4em;
    line-height: 1em;
}



@media (max-width: 768px) {

    table,
    main img {
        width: 100% !important;
        height: auto !important;
    }

    #searchpanel input,
    #newsletterpanel input,
    #contactpanel input {
        max-width: 90%;
    }

    #searchpanel.open,
    #contactpanel.open,
    #newsletterpanel.open {
        top: 8.5vh;
        bottom: auto;
        height: 100%;
    }

    .social-container a,
    .social-container a:link,
    .social-container a:visited,
    .social-container .pipe {
        margin-left: 5px;
    }

    #carousel a,
    #carousel a:link,
    #carousel a:visited,
    #carousel a.active {
        width: 100% !important;
        height: 60vw !important;
    }

    #carousel a span.hovertitle {
        font-size: 1.5em !important;
        top: 45vw;
    }

    main {
        padding: 30px;
    }

    main img {
        width: 100%;
    }

    #pageheader {
        height: auto;
    }

    #pageheader img {
        width: 40%;
    }

    #coa .pure-u-1-4,
    #coa .pure-u-3-4,
    #coa .pure-u-2-5,
    #coa .pure-u-3-5 {
        width: 100%;
    }

    #coa .pure-u-3-5 h4 {
        margin-left: 20px;
        margin-right: 20px !important;
        margin-top: 0px;
    }

    a.newsprevious,
    a.newsprevious:link,
    a.newsprevious:visited {
        left: -20px;
    }

    a.newsnext,
    a.newsnext:link,
    a.newsnext:visited {
        right: -20px;
    }

    #newspaginator {
        text-align: center;
        padding: 0;
    }
}

@media (max-width: 480px) {
    table td {
        width: 100%;
        display: block;
    }

    #pageheader div {
        width: 100% !important;
    }

    #logo img,
    #mobilemenu img,
    header .top a img {
        height: 25px !important;
    }

    #logo img {
        width: auto !important;
    }

    header .top a img,
    #mobilemenu img {
        width: 25px !important;
    }

    header article {
        background-attachment: inherit;
        background-size: cover;
        background-position: -300% 50%;
    }

    #carousel a span.hovertitle {
        top: 40vw;
    }

    .pure-u-10-24,
    .pure-u-14-24 {
        width: 50%;
        padding: 10px;
    }

    .social-container {
        position: absolute;
        top: 0;
        right: 0;
    }

    #contactpanel h3,
    #newsletterpanel h3 {
        font-size: 3em;
        margin: 50px 0px 40px 0px;
    }

    #newslisting a.pure-u-1-3 {
        width: 100%;
    }

    #newsfilterform {
        text-align: left;
    }

    #newslisting a,
    #newslisting a:link,
    #newslisting a:visited {
        padding: 5% 0;
    }

    #coa .pure-u-2-5,
    #coa .pure-u-3-5 {
        width: 100%;
    }

    #coa h3 {
        padding: 10px;
    }

    footer .pure-u-7-24 {
        width: 100% !important;
    }

    #footercontact {
        padding-top: 0 !important;
    }

    #searchpanel.open,
    #contactpanel.open,
    #newsletterpanel.open {
        top: 7.5vh;
    }
}