﻿:root {
    --navButtonHeight: 35px;
    --navButtonWidth: 40px;
  	--color1: #67578f;
    --color2: #7d6ea5;
}

/* Utility Classes */
.max-width-constraint {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}
.sr-only {
    position: absolute;
    left: -10000px;
}

/* General */
.button_with_image {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.button_with-image:hover {
    font-weight: bolder;
}
.button_with_image__image {
    height: 20px;
    width: 20px;
}
.conwy-logo {
    height: 50px;
    width: 75px;
}
.button-icon {
    height: 30px;
}
.transparent-button {
    padding: 0.25rem 0.5rem;
    border: none;
    background-color: transparent;
}

/* Mobile Hamburger Menu Button */
#nav-icon {
    width: var(--navButtonWidth);
    height: var(--navButtonHeight);
    position: relative;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: 0.5s ease-in-out;
    -moz-transition: 0.5s ease-in-out;
    -o-transition: 0.5s ease-in-out;
    transition: 0.5s ease-in-out;
    cursor: pointer;
}

#nav-icon span {
    display: block;
    position: absolute;
    height: calc(var(--navButtonHeight) / 5);
    width: 100%;
    background: #555;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: 0.25s ease-in-out;
    -moz-transition: 0.25s ease-in-out;
    -o-transition: 0.25s ease-in-out;
    transition: 0.25s ease-in-out;
}

#nav-icon span:nth-child(1) {
    top: 0px;
}

#nav-icon span:nth-child(2),
#nav-icon span:nth-child(3) {
    top: calc((var(--navButtonHeight) / 5) * 2);
}

#nav-icon span:nth-child(4) {
    top: calc((var(--navButtonHeight) / 5) * 4);
}

#nav-icon.open span:nth-child(1) {
    top: 18px;
    width: 0%;
    left: 50%;
}

#nav-icon.open span:nth-child(2) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

#nav-icon.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

#nav-icon.open span:nth-child(4) {
    top: 18px;
    width: 0%;
    left: 50%;
}

/* Header Top Bar */
.header__top-bar {
    background-color: var(--color1);
    padding: 1rem;
    color: white;
}
.header__top-bar-inner {
    display: flex;
    justify-content: space-between;
    column-gap: 2rem;
    row-gap: 1rem;
    flex-wrap: wrap;
}
.header__top-bar-nav {
    display: flex;
    gap: 2rem;
    list-style-type: none;
    margin: 0;
    padding-inline-start: 0;
}
.header__top-bar * {
    color: white;
    text-decoration: none;
}
.header__top-bar-nav-item {
  	border-bottom: 1px solid transparent;
}
.header__top-bar-nav-item:hover {
  	border-bottom: 1px solid white;
}

/* Header Middle Bar */
.header__middle-bar {
    padding: 1rem;
}
.header__middle-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.header__middle-bar-left, .header__middle-bar-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.header__search-field-container {
  	flex: 1;
}
#searchform {
    display: flex;
  	justify-content: space-between;
    border-radius: 5px;
    border: 1px solid var(--color1);
    padding: 0.25rem;
}
#searchfield {
    padding: 0.5rem;
    font-size: large;
    border: none;
  	border-radius: 5px;
    flex: 1;
}
#searchfield::placeholder {
  color: slategray;
}
/* hide the placeholder on a super narrow screen */
@media(max-width: 350px) {
  #searchfield::placeholder {
  	color: transparent;
  }
}
#searchbutton {
    border: 0;
    font-size: 1px;
    background: transparent url("/SiteElements/CSSImages/search4.png") no-repeat 0 0 / 35px 35px;
    width: 38px;
    height: 35px;
    padding: 0;
  	flexShrink: 0;
}
.header__nav ul {
    list-style-type: none;
    margin: 0;
    padding-inline-start: 0;
    display: flex;
    font-size: 1.25rem;
}
.header__nav li {
    padding: 1rem;
    border-radius: 5px;
    color: #444;
}
.header__nav li a {
    text-decoration: none;
    color: #444;
}
.header__nav li:hover {
    background-color: lightgray;
}

.header__nav-mobile-close-button-container {
    display: flex;
    justify-content: flex-end;
}
.header__middle-bar-menu-button {
    display: none;
}
.header__nav-mobile-close-button-container {
    display: none;
}
.header__breadcrumb {
    background-color: var(--color2);
    padding: 0.5rem 1rem;    
}
.header__breadcrumb * {
  color: white;
}
.header__breadcrumb a::after {
  	content: url("/SiteElements/CSSImages/link-footer-icon.png");
    text-decoration: none;
    display: inline-block;
  	margin-left: 0.5rem;
    margin-right: 0.2rem;
}
.header__page-title {
    background-color: var(--color1);
    color: white;
    font-size: 2rem;
    background-size: cover;
    padding-left: 1rem;
    padding-right: 1rem;
}
.header__page-title-inner {
    background-image: url("/SiteElements/CSSImages/header-new/titlebg.png");
}
.header__page-title-inner-inner {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.header__page-title h1 {
    font-size: 2.5rem;
    margin: 0;
}
#L1_PageSummary {
    font-size: 1.3rem;
}

@media (max-width: 1000px) {
    .hide-on-mobile {
        display: none;
    }
    .header__middle-bar {
        position: relative;
    }
    .header__nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-0.5rem);
        transition:
            opacity 0.3s ease-in-out,
            transform 0.3s ease-in-out,
            visibility 0.3s;
        z-index: 1000;
        padding: 1rem;
        box-sizing: border-box;
    }

    .header__nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .header__nav ul {
        flex-direction: column;
        font-size: 20px;
    }

    .header__middle-bar-menu-button {
        display: block;
        cursor: pointer;
    }

    .header__nav-mobile-close-button-container {
        display: flex;
    }
}