/*
    Created on : 3 Jul 2023, 18:24:11
    Author     : Noel Hinton
*/

body {
    font-size: 16px !important;
}
body * {
    box-sizing: border-box;
}

.wp-site-blocks:before {
    content:"";
    position: fixed;
    width: 100%;
    height: 100%;
    background-image:url('../images/bg-pattern.png');
    background-position: center;
    background-size: 236px;
    opacity: 0.25;
}
h1,h2,h3 {
    overflow-wrap:initial;
    word-break:initial;
}

main ::-webkit-scrollbar {
    height: 5px;
    width:5px;
}
main ::-webkit-scrollbar-track {
    background: transparent;
}
main ::-webkit-scrollbar-thumb {
    background: var(--wp--preset--color--secondary);
}

main {
    max-width: var(--wp--style--global--content-size);
    margin: 0 auto;
    background:#FFF;
    transition:filter 0.5s;
}

p {
    line-height: 1.4em;
}

/*      HELPERS         */
.shadow {
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.hidden {
    display: none !important;
}

.text-uppercase {
    text-transform: uppercase;
}
.text-left {
    text-align: left;
}
.text-center {
    text-align: center;
}
.text-right {
    text-align: right;
}

.hide {
    display: none;
}

.translate-y-50 {
    transform: translateY(-50px);
}

/* @media screen and (min-width: 40em) {
        .post-type-archive-supplier .supplier-panel {margin: 1em;}
} */

#supplier-filter {
    margin-bottom: 2em;
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    background:var(--wp--preset--color--green);
    padding: 1em 1.2em;
    border-radius: 0;
    z-index: 10;
}
#supplier-filter.show {
    display: block;
}
#supplier-filter label {
    display:none;
}
#supplier-filter select {
    margin: 0;
}


@media screen and (max-width: 39.9375em) {
    #supplier-filter {
        width:75%;
    }
    .post-type-archive-supplier .supplier-panel {
        max-width:100px;
    }
}

#roommap {
    position: relative;
    top: 0px;
}

#roommap img {
    border-radius: 30px;
    max-width: 100%;
}

.clickbox {
    background-color: red;
    opacity: 0;
    position: absolute;
    z-index: 99;
    transition: all 0.5s;
}

.clickbox:hover {
    opacity: 0.5;
}

#uppermarquee {
    top: 14.2%;
    left: 11.9%;
    width: 26%;
    height: 17%;
}

#lowermarquee {
    top: 38.4%;
    left: 13.3%;
    width: 8.7%;
    height: 29.2%;
}

#carriagesuite {
    top: 58.5%;
    left: 32.4%;
    width: 8.5%;
    height: 26%;
}

#billiardroom {
    top: 35.7%;
    left: 44.3%;
    width: 8.2%;
    height: 11%;
}

#regencysuite {
    top: 46.7%;
    left: 44.3%;
    width: 6.8%;
    height: 14%;
}

#frenchresteraunt {
    top: 35%;
    left: 62.4%;
    width: 6.7%;
    height: 8.4%;
}

#drawingroom {
    top: 62.7%;
    left: 46.3%;
    width: 5.8%;
    height: 11.4%;
}

#readingroom {
    top: 62.7%;
    left: 52.1%;
    width: 7.4%;
    height: 10.4%;
}

#roommap .close {
    position: absolute;
    top: 10px;
    right: 30px;
    border: 5px solid #6d439a;
    border-radius: 40px;
    width: 40px;
    height: 40px;
    line-height: 33px;
    text-align: center;
    font-size: 25px;
    cursor: pointer;
}

.cell.mobileFilter {
    display: none;
}

.cell.filterbar {
    background:var(--wp--preset--color--green);
    padding: 1rem;
    color: #ffffff;
    margin-bottom: 2rem;
}

span.filtermap {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 3px 30px;
    color: #6d439a;
    border: 3px solid #ffffff;
    transition: all 0.25s;
}

span.filtermap:hover {
    color: #ffffff;
    background-color: #6d439a;
}

.cell.filterbar p {
    line-height: 50px;
    text-align: left;
    padding: 0px 10px;
    position: relative;
}

/* .cell.mobileFilter .supplierfilter {
  margin-top: 10px;
  margin-bottom: 0px;
} */

.cell.mobileFilter .supplierfilter {
    margin-bottom: 0px;
    width: 100%;
    margin-top: 0px;
    margin-right: -3px;
    padding-left: 20px;
    height: 35px!important;
    border-radius: 28px !important;
    border: transparent;
}

.cell.mobileFilter .clearInputFilter {
    position: absolute;
    bottom: 18px;
    right: 30px;
    color: #6d439a;
    font-size: 25px;
}

.cell.filterbar p span {
    cursor: pointer;
}

.currentfilter {
    margin-left: 30px;
}

.filterbar input {
    width: 25%;
    float: right;
    margin-top: 7px;
    margin-right: -3px;
    padding-left: 20px;
    height: 35px!important;
    border-radius: 28px !important;
    border: transparent;
}

.filterbar span.clearInputFilter {
    position: absolute;
    right: 15px;
    color: #6d439a;
    font-size: 25px;
    z-index: 9;
}

@media screen and (max-width: 880px) {
    .cell.filterbar {
        display: none;
    }

    #roommap {
        display: none;
    }
    .cell.mobileFilter {
        display: block;
    }
}

@media screen and (max-width: 781px) {
    .show-for-medium {
        display: none !important;
    }
}
@media screen and (max-width: 1199px) {
    .show-for-large {
        display: none !important;
    }
}


#what-is-toymaster .wp-block-gallery {
    align-items:center;
    flex-wrap: nowrap;
}
#what-is-toymaster .wp-block-gallery > figure {
    width:auto !important;
    margin:0 !important;
}
@media screen and (max-width: 960px) {
    #what-is-toymaster .wp-block-gallery {
        flex-wrap: wrap;
        max-width: 400px;
    }
    #what-is-toymaster .wp-block-gallery figure:nth-child(3) {
        width:100% !important;
    }
}
@media screen and (max-width: 480px) {
    #what-is-toymaster .wp-block-gallery figure {
        width:45% !important;
    }
}


/*      ELEMENTS        */
main {
    z-index: 8;
    position: relative;
}
main > .has-global-padding {
    padding: 0 !important;
}
header i.fa-bars {
    font-size: 2rem;
}
@media screen and (min-width: 1200px) {
    header i.fa-bars {
        display: none;
    }
}

.wp-block-image {
    border-radius: 10px;
    overflow: hidden;
}

.wp-block-post-content > h1 {
    text-shadow:0 0 30px #001020;
}


/*      BLOCKS          */
.wp-block-columns.border-b {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    margin-bottom: -20px;
    overflow: hidden;
}
.wp-block-columns.border-b + .wp-block-columns.border-b > .wp-block-column.has-background {
    padding-top: 50px !important;
}
.wp-block-column {
    position: relative;
}
.wp-block-column:first-child {
    z-index:2;
}

.wp-block-column.is-layout-flow {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wp-block-group-is-layout-flex.is-vertical > * {
    line-height: 1;
}

.wp-block-button__link, .ninja-forms-field[type=submit] {
    transition: all 0.5s;
    position: relative;
    text-transform: uppercase;
    padding-left: 2rem;
    padding-right: 2rem;
}
.page-register .ninja-forms-field[type=submit] {
    box-shadow:0 4px 9px rgba(0, 0, 0, 0.25);
    background:var(--wp--preset--color--orange) !important;
    color:var(--wp--preset--color--primary) !important;
    font-weight: bold;
    font-style: italic !important;
}
.wp-block-button__link:hover, .ninja-forms-field[type=submit]:hover {
    transform: translateY(-3px);
    transition: all 0.5s;
    box-shadow:0 10px 10px rgba(0,0,0,0.2);
}
.wp-block-button__link::after, .ninja-forms-field[type=submit]::after {
    content:"\f0da";
    position: absolute;
    right:1rem;
    top:50%;
    transform: translate(0,-50%);
    font-family:"Font Awesome 6 Pro";
    font-style:normal;
    font-size:1.5em;
    transition: all 0.5s;
}
.wp-block-button__link:hover::after, .ninja-forms-field[type=submit]::after:hover {
    right:0.75rem;
}



/*      PATTERNS        */
header.wp-block-template-part {
    position: relative;
    z-index: 10;
}
.masthead {
    background: var(--wp--preset--color--orange);
    padding: 20px 2rem 10px 2rem;
    flex-wrap: nowrap !important;
    gap:1rem !important;
    align-items: flex-start !important;
    position: relative;
    transition: all 0.5s;
    box-shadow: 0 5px 10px rgba(0,0,0,0.25);
}
body.post-type-archive-supplier ul {
    padding: var(--wp--preset--spacing--50);
    max-width: 960px;
    margin: 0 auto;
}
@media screen and (max-width: 1099px) {
    .masthead {
        border-radius:0;
    }
}
@media screen and (max-width: 959px) {
    header.wp-block-template-part {
        margin-bottom: 0;
    }
    body.post-type-archive-supplier main {
        padding:0;
    }
    body.post-type-archive-supplier main .is-layout-grid {
        padding: 0 2rem;
    }
}


.logo {
    width:300px;
    max-width: 50vw;
    display: block;
    position: relative;
    z-index: 11;
}
.logo img {
    width:100%;
}
@media screen and (max-width: 959px) {
    .logo {
        max-width:60vw;
    }
}

.header-location {
    gap:1rem;
    align-items: center;
    display: flex;
    justify-content: center;
    cursor: pointer;
    font-size:1rem;
    line-height: 1em;
    position: absolute;
    top:100%;
    left:0;
    right:0;
    z-index: 12;
    margin: 1rem;
}
.header-location .header-location-content {
    position: relative;
    z-index: 2;
    width:400px;
}
.header-location .content {
    border-radius:28px;
    text-align: center;
    display: flex;
    background: #263238;
    color:#fff;
    padding: 0.5rem 1rem;
    display:flex;
    gap:1rem;
    align-items: center;
}
.header-location .content .short {
    display:flex;
    align-items: center;
    flex-direction: column;
    flex-grow:1;
}
.header-location .content > i {
    font-size:2rem;
}
.header-location .overlay {
    position: absolute;
    top:-4px;
    left:-4px;
    right:-4px;
    background: #263238;
    color:#fff;
    border:4px solid #8bc249;
    border-radius:28px;
    transition: opacity 0.5s;
    display:flex;
    gap:1rem;
    padding:0.75rem 1rem;
    z-index: -1;
    pointer-events: none;
    text-align: center;
}
.header-location .overlay > div {
    flex-grow: 1;
}
.header-location .overlay p:first-child {
    margin-top: 0.5rem;
}
.header-location .overlay.active {
    opacity:1 !important;
    z-index: 3;
    pointer-events: all;
}
.header-location .overlay > i {
    font-size:2rem;
    cursor: pointer;
}
.header-location .overlay .wp-block-button a {
    background: #ffc107;
    color:#263238;
    text-transform: uppercase;
    gap:0.5rem;
    display:flex;
    align-items: center;
    padding-left: 1.5rem;
    padding-right: 3.5rem;
}
.header-location .overlay .wp-block-button a i {
    font-size: 1.5em;
}
.header-location .overlay .wp-block-button a.wp-block-button__link::after{
    content:"\f055";
}


nav.main-navigation {
    position: relative;
    width:100%;
}
nav.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}
nav.main-navigation ul li {
    text-transform: none;
    font-size:1.5rem;
    padding: 0 1rem;
    text-align: center;
    line-height: 1.125em;
    flex: 1 1 0px;
}
nav.main-navigation ul li a {
    color:#fff;
    transition: color 0.5s cubic-bezier(.1,0.7,0.3,0.9);
}
nav.main-navigation ul li a:hover {
    color:#51B5D4;
}
.device-menu {
    display:none;
}
@media screen and (max-width: 1099px) {
    nav.main-navigation ul {
        justify-content: center;
    }
    nav.main-navigation ul li {
        flex:none;
    }
    .masthead {
        position: relative;
        z-index: 15;
    }
    .masthead-content nav.main-navigation ul li:not(.branding) {
        display: none;
    }
    .device-menu {
        display:block;
        position: absolute;
        top:100%;
        left:0;
        z-index: 13;
        transition: all 0.5s;
        transform: translateY(-100%);
        background: #FBBC0F;
        border-radius: 0 0 25px 0;
        padding: 2rem 0;
        opacity: 1;
    }
    .device-menu nav.main-navigation li.branding {
        display: none;
    }
    .device-menu nav.main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap:1rem;
    }
    .device-menu nav.main-navigation ul li {
        padding: 0 2rem;
    }
    body.menu-open .device-menu  {
        transform: translateY(0);
        opacity: 1;
    }
    body.menu-open main {
        filter: brightness(0.5);
    }
}


footer {
    position: relative;
    z-index: 10;
}

footer .footer-info {
    background:var(--wp--preset--color--dark-grey);
    color:var(--wp--preset--color--contrast);
    padding: 2.5rem 3rem;
    position: relative;
}
footer .footer-title {
    display:flex;
    justify-content: center;
    gap:2rem;
    align-items: flex-start;
}
footer .footer-title h2 {
    text-align: center;
    line-height: 1em;
}
footer .footer-info .where-when {
    display: flex;
    align-items: center;
    justify-content: center;
    gap:2rem;
}
footer .footer-info .where {
    text-align: right;
    font-size:1.2rem;
    flex:1 0 0;
}
footer .footer-info .when {
    font-size:1.6rem;
    flex:1 0 0;
}
@media screen and (max-width: 659px) {
    footer .footer-info .where-when  {
        flex-direction: column;
        gap:0;
    }
    footer .footer-info .where, footer .footer-info .when {
        text-align: center;
        font-size:1.4rem;
    }
    footer .footer-info img {
        max-width:20vw;
    }
}

footer .footer-navigation {
    background:#000;
    color:var(--wp--preset--color--contrast);
    padding: 1.5rem;
    position: relative;
}
footer .footer-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 4rem;
    gap:1rem 4rem;
    justify-content: center;
    flex-wrap: wrap;
}
footer .footer-navigation ul li {
    white-space: nowrap;
}
footer .footer-navigation ul li a {
    transition: color 0.5s cubic-bezier(.1,0.7,0.3,0.9);
}
footer .footer-navigation ul li a:hover {
    color:var(--wp--preset--color--quaternary);
}

footer .footer-social {
    background:var(--wp--preset--color--dark-grey);
    color:var(--wp--preset--color--contrast);
    padding: 1rem 0;
}
footer .footer-social p {
    margin: 0;
    opacity: 0.5;
}



/*				OMNI					*/
.omni {
    top:50%;
    right:2rem;
    transform: translateY(-50%);
    background: transparent;
    cursor: pointer;
    display:inline-block;
    pointer-events: all;
    z-index:999;
    transition: all 0.5s cubic-bezier(0,0.75,0.25,1);
    height: 28px;
    position: absolute;
}
.omni__content {
    width: 1.5rem;
    height:1.5rem;
    position:relative;
}
.omni span {
    border-top: 3px solid #fff;
    display: block;
    position: absolute;
    transition: all 0.5s;
    left:0.75rem;
    top:0.75rem;
}
.omni span:nth-child(1) {
    transform: translate(-0.7rem,-0.5rem);
    width:1.4rem;
}
.omni span:nth-child(2) {
    transform: translate(-0.7rem,0);
    width:1.4rem;
}
.omni span:nth-child(3) {
    transform: translate(-0.7rem,0.5rem);
    width:1.4rem;
}
.omni.right span:nth-child(1) {
    transform: translate(-0.7rem,-0.4rem) rotate(45deg);
    width:80%;
}
.omni.right span:nth-child(2) {
    opacity: 0;
}
.omni.right span:nth-child(3) {
    transform: translate(-0.7rem,0.4rem) rotate(-45deg);
    width:80%;
}
.omni.close span:nth-child(1) {
    transform: translate(-0.9rem,0) rotate(-45deg);
    width: 1.75rem;
}
.omni.close span:nth-child(2) {
    opacity: 0;
}
.omni.close span:nth-child(3) {
    transform: translate(-0.9rem,0) rotate(45deg);
    width: 1.75rem;
}
.omni.left span:nth-child(1) {
    transform: translate(-0.7rem,-0.4rem) rotate(-45deg);
    width:80%;
}
.omni.left span:nth-child(2) {
    opacity: 0;
}
.omni.left span:nth-child(3) {
    transform: translate(-0.7rem,0.4rem) rotate(45deg);
    width:80%;
}
@media screen and (min-width: 1100px) {
    .omni {
        display: none;
    }
}


.wp-block-video video {
    display: block;
}
.wp-block-embed.is-type-video {
    border-radius: 30px;
    overflow: hidden;
}

.wp-block-cover.contain img {
    object-fit: contain !important;
}


.post-type-archive-supplier ul.columns-5 {
    align-items:flex-start;
}
.post-type-archive-supplier h2 {
    padding-bottom: 0;
    text-align: center;
}
.post-type-archive-supplier .suppliers figure {
    aspect-ratio:1;
    background: #FFF;
    border-radius: 15px;
    overflow: hidden;
    padding: 0;
    margin-bottom: 0;
}
.post-type-archive-supplier .suppliers figure img {
    object-fit: contain;
    object-position: center;
    width: 100%;
    height: 100%;
}
@media screen and (min-width: 340px) {
    .post-type-archive-supplier .suppliers figure {
        aspect-ratio:1;
    }
}
@media screen and (max-width: 959px) {
    .post-type-archive-supplier ul.columns-5 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media screen and (max-width: 799px) {
    .post-type-archive-supplier ul.columns-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media screen and (max-width: 639px) {
    .post-type-archive-supplier ul.columns-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media screen and (max-width: 339px) {
    .post-type-archive-supplier ul.columns-5 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
}


/*              HOME                    */
@media screen and (max-width: 600px) {
    body.home #intro {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    body.home #intro .intro {
        margin: 0 1.5rem !important;
    }
    body.home #intro .wp-block-buttons {
        flex-direction: column;
        padding-right: 1.5rem;
    }
    body.home #intro .wp-block-buttons > .wp-block-button {
        width:100%;
    }
    body.home #intro .wp-block-buttons > .wp-block-button a {
        border-radius: 0 50px 50px 0 !important;
    }

    body.home #what-is-toymaster .wp-block-buttons, body.home #exhibitors .wp-block-buttons, body.home #testimonials .wp-block-buttons,
    body.home #gallery .wp-block-buttons {
        justify-content:flex-start;
    }
    body.home #what-is-toymaster .wp-block-button, body.home #exhibitors .wp-block-button, body.home #testimonials .wp-block-button,
    body.home #gallery .wp-block-button {
        width:100%;
        padding-right: 1.5rem;
    }
    body.home #what-is-toymaster .wp-block-button a, body.home #exhibitors .wp-block-button a, body.home #testimonials .wp-block-button a,
    body.home #gallery .wp-block-button a {
        border-radius: 0 50px 50px 0 !important;
    }
}


/*                  404                 */
.error404 .has-404-background {
    background: url('../images/bg-404.png');
}
.error404 .wp-block-media-text__media img {
    max-width:200px;
}
@media screen and (max-width: 599px) {
    .error404 .wp-block-media-text.is-stacked-on-mobile {
        gap:2rem;
    }
    .error404 .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media {
        grid-row:3;
        text-align: center;
    }
}


.nf-field-label .nf-label-span, .nf-field-label label {
    font-weight: 400;
}
input[type=submit].ninja-forms-field {
    padding: 0.75rem 3rem;
    cursor: pointer;
}
input.ninja-forms-field, textarea.ninja-forms-field {
    border-radius: 25px !important;
}
.nf-error.field-wrap .nf-field-element:after {
    border-radius: 0 25px 25px 0;
    height: calc(100% - 5px);
}
