/*
Theme Name: Cardiff Children's Play Services Theme
Theme URI: https://cardiffchildrensplayservices.co.uk/
Description: Cardiff Children's Play Services Theme
Author: Russell Davies
Author URI: http://cardiffcouncilwebteam.co.uk
Template: twentytwentythree
Version: 1.0.0
Text Domain: twentytwentythreechildtheme
*/

@import url("https://use.typekit.net/vxg7psi.css");

:root {
  --main-text-font: "calibri", sans-serif;
}

h1, h2, h3, h4 {
    font-family: filson-soft, sans-serif;
    text-transform: none;
}

p {
    font-family: 'asap', sans-serif;
}

footer a {
    color: white;
}

.current-menu-item {
    border-bottom: 3px solid var(--wp--preset--color--secondary);
}

.wp-block-navigation a:where(:not(.wp-element-button)):hover, .wp-block-navigation a:where(:not(.wp-element-button)):focus {
    text-decoration: none;
    color: var(--wp--preset--color--tertiary) !important;
}
.upper-curved {
    border-radius: 50% 50% 0% 100% / 100% 100% 0% 0%;
    background: white;
    margin-top: -51px;
    z-index: 9999;
    position: relative;
    height: 51px;
}

.upper-buttons {
    margin-top: -30px !important;
}

.upper-button-rounded {
    display: flex;
    border-radius: 48% 52% 52% 48% / 46% 32% 68% 54%;
    align-items: center;
    justify-self: center;
    max-width: 32%;
}

/*.upper-button-rounded .wp-block-button__link {
    font-size: inherit;
    height: 120px;
    padding: 1.6rem 20px;
    max-width: 290px;
    min-width: 210px;
}*/

.upper-button-rounded:nth-child(1) {
    transform: rotate(5deg);
}

.upper-button-rounded:nth-child(2) {
    transform: rotate(-5deg);
}

.upper-button-rounded:nth-child(3) {
    transform: rotate(7deg);
}

.wp-block-button__link:hover {
    background-color: var(--wp--preset--color--contrast) !important;
	color: white !important;
}

.lower-curved {
    border-radius: 50% 50% 0% 100% / 100% 100% 0% 0%;
    background: white;
    margin-top: 50px;
    z-index: 9999;
    position: relative;
    height: 51px;
}

.home-footer-testimonials {
    /*max-width: 900px !important;
    position: relative;
    bottom: -60px;*/
    z-index: 999;
}

.home-footer-testimonials .wp-block-column:nth-child(1) {
    transform: rotate(5deg);
}
.home-footer-testimonials .wp-block-column:nth-child(2) {
    transform: rotate(-5deg);
}
.home-footer-testimonials .wp-block-column:nth-child(3) {
    transform: rotate(7deg);
}

footer.wp-block-template-part {
    margin-block-start: 0px;
}

ul.list-tick {
    list-style-type: none;
    padding: 0px;
    margin-left: 30px !important;
}
ul.list-tick li:before {
    content: '\f058';
    font-family: "Font Awesome 6 Sharp";
    margin-right: 7px;
    margin-left: -30px;
}
ul.list-tick li {
    line-height: 25px;
    margin-bottom: 25px;
}

.wp-block-columns.alignwide {
    padding: 0px 1rem;
}

h4.esab__heading_tag::before {
    content: ' ';
    background-image: url('https://theplayteam.cardiffcouncilwebteam.co.uk/wp-content/uploads/2023/08/Asset-41.png');
    background-size: contain;
    width: 30px;
    height: 30px;
    display: block;
    background-repeat: no-repeat;
    float: left;
    margin: 8px 1rem 0px 0px;
}

.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
    padding-left: 0px;
}

.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container {
    width: max-content;
}

/* form styling */
.contact-form {  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto auto;
  grid-auto-flow: row;
  grid-template-areas:
    "contactsubject contactsubject"
    "firstname lastname"
    "emailaddress emailaddress"  
    "message message"
    "submitbutton submitbutton";
  gap: 1rem;
}
.firstname { grid-area: firstname; }
.lastname { grid-area: lastname; }
.emailaddress { grid-area: emailaddress; }
.contactsubject { grid-area: contactsubject; }
.message { grid-area: message; }
.submitbutton { grid-area: submitbutton; }

.contact-form label {
    display: block;
    font-family: 'asap';
}
.contact-form input {
    width: 100%;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'asap';
    font-size: 1.3rem;
}
.contact-form textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'asap';
    font-size: 1.3rem;
}
.contact-form p {
    padding: 0px;
    margin: 0px;
}

input.wpcf7-form-control.wpcf7-submit {
    background-color: var(--wp--preset--color--secondary);
    color: white;
    width: 20%;
    float: right;
}
select.wpcf7-form-control.wpcf7-select {
    width: 100%;
}

/* form styling END */

/* events styling */
.em.em-list.em-grid>div.em-item .em-item-info .em-item-meta .em-item-meta-line {
    font-family: 'asap';
}

.em.em-search .em-search-main.em-search-main-bar, .em.em-list.em-grid>div.em-item {
    border: 2px solid #c9c9c9;
}

.em.em-list.em-grid>div.em-item {
    border-radius: 6px;
}

.em.em-search .em-search-main.em-search-main-bar>.em-search-field input {
    height: 2rem;
    width: 80%;
}
input.em-date-input {
    max-width: 60%;
}

.em.em-search .em-search-main.em-search-main-bar {
    width: auto;
    border-radius: 6px;
}

.em.em-list.em-grid>div.em-item .em-item-image:not(.has-placeholder)>div img {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.em.em-item.em-item-single .em-item-meta h3 {
    text-transform: none !important;
}

.em.em-item.em-item-single .em-item-meta button {
    background: var(--wp--preset--color--tertiary);
    border-radius: 5px;
    color: white;
    font-family: 'filson-soft';
    font-size: 1.1rem;
    border: 0px;
    padding: 0.5rem 1rem !important;
}

.em.em-search .em-search-main.em-search-main-bar>.em-search-submit button {
    background: var(--wp--preset--color--tertiary);
    border-radius: 5px;
    color: white;
    font-family: 'filson-soft';
    font-size: 1.1rem;
    border: 0px;
}

.em.em-item.em-item-single .em-item-meta button:hover {
    background-color: black;
}

.em button.input.em-event-add-to-calendar .em-icon-calendar {
    margin-right: 10px;
    color: white !important;
    /* display: none; */
}

section.em-event-when, section.em-event-where {

    background: var(--wp--preset--color--custom-grey);
    padding: 1rem;
    border: 2px solid #ddd;
    min-height: 240px;
}

.em.em-item .em-item-meta .em-item-meta-line {
    font-family: 'asap';
    line-height: 30px;
    font-size: 1.3rem;
}

.em.em-search .em-search-main.em-search-main-bar>.em-search-field input {
    font-size: 1rem;
}

ul.EMEventList {
    display: inline-flex;
    flex-flow: column;
    padding: 0px;
    margin: 0px;
    width:100%;
}

li.EMEventListItem {
    display: inline-flex;
    flex-flow: row;
    gap: 1rem;
    font-family: 'asap';
    font-size: 1.3rem;
    margin-bottom: 1rem;
    background-color: #f4f4f4;
    padding: 0.5rem;
    border-radius: 6px;
}

li.EMEventListItem span {
    width: 100%;
}

.wp-block-query-pagination-numbers {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}


.page-numbers {
	color: black;
    font-family: 'asap';
    font-size: 1rem !important;
    background: var(--wp--preset--color--tertiary);
    border-radius: 50%;
    max-height: 50px;
    max-width: 50px;
    color: black;
    width: 50px;
	height: 50px;
    text-align: center;
	align-content: center;
	display: block;
}

.em .em-pagination, .em .em-pagination .not-current {
    gap: 1rem;
}

.em .em-pagination .page-numbers.current {
    text-decoration: none;
    text-underline-offset: 0px;
    background-color: var(--wp--preset--color--primary);
    font-size: 1.2rem !important;
    color: white !important;
    padding: 0px;
    min-height: 40px !important;
    min-width: 40px !important;
}

.em .em-pagination .page-numbers {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    font-size: 1.2rem;
    color: white !important;
    text-decoration: none;
    padding: 0px 0;
    margin: 0;
    transition: all 300ms ease-in-out;
    text-align: center;
}

.em .em-pagination .page-numbers.next, .em .em-pagination .page-numbers.next.last, .em .em-pagination .page-numbers.prev, .em .em-pagination .page-numbers.prev.first {
    display: block;
    width: 40px;
    height: 40px;
    margin: 0;
    font-size: 0!important;
    background-size: 40px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: .5;
    transition: all 300ms ease-in-out;
}

.em .em-pagination .page-numbers:hover:not(.next):not(.prev) {
    height: 40px;
    padding: 0px;
    background-color: black;
    font-size: 1.2rem !important;
}

.em .em-pagination .page-numbers.next:hover, .em .em-pagination .page-numbers.prev:hover {
    padding: 0px;
}

.em.em-item.em-item-single.size-medium .em-item-header .em-item-image img, .em.em-item.em-item-single.size-small .em-item-header .em-item-image img {
    border-left: 4px solid var(--wp--preset--color--primary);
}

.em.em-search .em-search-main.em-search-main-bar>.em-search-field:nth-child(3) {
    border-right: 0px !important;
}

.wpml-ls-legacy-list-horizontal {
    border: 0px;
    padding: 0px;
    clear: both;
    display: block;
    position: absolute;
    width: 100px;
    background-color: var(--wp--preset--color--tertiary);
    padding: 2px 0.5rem 8px;
    z-index: 9999;
    border-radius: 0 0 0 15px;
    right: 0px;
}

.wpml-ls-legacy-list-horizontal:hover {
    background-color: black;
	color: white;
}

.wp-block-cover.is-light.home-hero {
    position: relative;
    display: block;
    z-index: 0;
}

.wpml-ls-legacy-list-horizontal a {
    display: block;
    text-decoration: none;
    padding: 0px;
    line-height: 10px;
    font-size: large;
    color: black;
    font-family: 'filson-soft';
}

.wpml-ls-legacy-list-horizontal a:hover {
    color: white;
}

.wpml-ls-legacy-list-horizontal>ul {
    text-align: center;
}



ul.testimonial-block {
    margin: 0px 3rem;
}
li.testimonials.type-testimonials {
    background-color: white;
    border: 3px solid;
    border-radius: 10px;
    min-height: 200px;
    padding-top: 0.5rem;
    padding-right: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.5rem;
    z-index: 999;
}


li.testimonials.type-testimonials:nth-child(odd) {
    transform: rotate(5deg);
}

li.testimonials.type-testimonials:nth-child(even) {
    transform: rotate(-5deg);
}

li.testimonials.type-testimonials:nth-child(1), li.testimonials.type-testimonials:nth-child(5) {
    border-color: var(--wp--preset--color--primary);
}
li.testimonials.type-testimonials:nth-child(2n) {
    border-color: var(--wp--preset--color--secondary);
}
li.testimonials.type-testimonials:nth-child(3n) {
    border-color: var(--wp--preset--color--tertiary);
}



/*for hiding random stuff*/
.hide-me {
    display: none !important;
}

/* form styling */
.wpcf7-field-groups p {
    margin: 0 0 2rem 0;
}

input.wpcf7-form-control.wpcf7-text, textarea.wpcf7-form-control.wpcf7-textarea, input.wpcf7-form-control.wpcf7-date, select.wpcf7-form-control.wpcf7-select {
    border: 1px solid silver !important;
    border-radius: 6px;
    font-family: inherit;
    background-color: #fff;
    font-size: 1rem;
    line-height: 1.6;
    padding: 10px;
    max-width: calc(100% - 20px);
}

input.wpcf7-form-control.wpcf7-submit { 
    background-color: var(--wp--preset--color--secondary);
    color: #fff;
    /*padding-top: 12px;*/
    padding-bottom: 12px;
    line-height: 1.6;
    margin: 5px 0 0 0;
    border: 0px;
    border-top-left-radius: 48%;
    border-top-right-radius: 52%;
    border-bottom-left-radius: 48%;
    border-bottom-right-radius: 52%;
    font-family: 'filson-soft';
    font-size: 1.5rem;
    cursor: pointer;
}

.wpcf7-field-groups {
	counter-reset: repeatable-fields-counter;
}
.wpcf7-field-group {
	counter-increment: repeatable-fields-counter;
}
.group-index:after {
	content: counter(repeatable-fields-counter);
}

span.wpcf7-form-control.wpcf7-checkbox {
    display: flex;
    flex-direction: column;
}

button.wpcf7-field-group-add.child-buttons, button.wpcf7-field-group-add.parent-buttons, button.wpcf7-field-group-remove.child-buttons, button.wpcf7-field-group-remove.parent-buttons {
    padding: 2.3%;
    border-top-left-radius: 48%;
    border-top-right-radius: 52%;
    border-bottom-left-radius: 48%;
    border-bottom-right-radius: 52%;
    border: 0px;
    background-color: var(--wp--preset--color--primary);
    color: white;
    font-size: 1rem;
    margin-right: 1rem;
    cursor: pointer;
}

button.wpcf7-field-group-remove.child-buttons, button.wpcf7-field-group-remove.parent-buttons {
    background-color: var(--wp--preset--color--secondary);
}

button[class^="wpcf7"]:hover, input.wpcf7-form-control.wpcf7-submit:hover  {
    background-color: black;
}

form.wpcf7-form {
    padding: 0rem 0rem 4rem;
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
    border-color: var(--wp--preset--color--secondary);
    font-family: 'asap', sans-serif;
}

/* Hide the add button if the specific hidden input exists */
p:has(input[value="2"]) .wpcf7-field-group-add.parent-buttons {
    display: none;
}

/*hide on first display - activated by javascript on yes no response*/
.wpcf7-field-groups p.conditional {
    display: none;
}

.wpcf7-text[name="register-another-emergency__1"] {
    width: 10px;
}
span.wpcf7-form-control-wrap.register-another-emergency__1:before {
    content: "Would you like to register another emergency contact?";
}

span.wpcf7-form-control-wrap.register-another-emergency__1 > span, span.wpcf7-form-control-wrap.register-another-emergency__2 {
    display: none;
}

/* custom events */


a.ce_group {
    text-decoration: none;
}

div#ce_holder {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    
}

.ce_group {
    flex: 1 1 23%;
    box-sizing: border-box;
}

.ce_overlay {
    height: 11rem;
    top: 0px;
    display: flex;
}

a.ce_group, div.ce_group {
    border: 1px solid grey;
    min-width: 23.8%;
}

.ce_image {
    background-size: cover;
    background-repeat: no-repeat;
}

span.ce_text p {
    padding: 0px 0.5rem;
    display: flex;
    flex-direction: row;
    margin: 0px;
    font-size: smaller;
    gap: 0.3rem;
}

p.eventtitle {
    font-weight: 800;
}

/* p.eventlocation:before {
    content: '\f041' ' ';
    font-family: 'Font Awesome 6 Sharp';
    font-weight: 400;
    display: contents;
} */

p.eventlocation a {
    text-decoration: none;
}

p.eventlocation::after {
    content: ' ' '\f08e';
    font-family: 'Font Awesome 6 Sharp';
    font-weight: 400;
    display: contents;
    font-size: small;
}

p.eventdate {
    position: relative;
    top: 0;
    background: #49a113;
    padding: 15px;
    color: #fff;
}

.holiday-play-session p.eventdate, .sesiwn-chwarae-yn-ystod-y-gwyliau p.eventdate {
    background: orange;
}

p.eventcancelled, p.eventcancelledreason {

    background: #e71953;
    color: #fff;
    /*display:none!important;  TEMP FIX FOR CANCEL MESSAGE */ 
}

.eventrecurrence, .eventtime {
    display: inline !important;
    font-size: 1rem !important;
}

p.eventnotes {
    font-size: small !important;
    color: black;
}

.filter-dropdowns {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 100%;
}

.filter-dropdown select, .search-form.custom-posts-filter-form input.search-field {
    padding: 10px;
    border: 0px;
}

.search-form.custom-posts-filter-form button.search-submit {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 10px;
}

form.search-form.custom-posts-filter-form {
    padding: 1rem;
    background-color: #574191d6;
}

.wp-block-cover .wp-block-cover__inner-container, .wp-block-cover-image .wp-block-cover__inner-container {
    position: relative;
}

.wp-block-list {
    font-family: var(--wp--preset--font-family--asap-medium);
}




.pagination {
    display: flex;
    gap: 0.5rem;
}

.featured-events {
    background-color: #edecec;
    padding: 1rem;
    margin-bottom: 2rem;
}

.featured-events h3 {
    margin: 0rem 0rem 1rem;
}

.pagination {
    font-family: 'asap';
}

.pagination a, .pagination .current {
    text-decoration: none;
    width: 40px;
    text-align: center;
    height: 40px;
    border-radius: 50px;
    border: 1px solid;
}
.pagination a:hover {
    background-color: var(--wp--preset--color--secondary);
    color: white;
}
.pagination .current {
    background-color: var(--wp--preset--color--primary);
    color: white;
}

#cookie-notice h2 {
    font-size: 2rem;
    text-align: left;
}

#cn-accept-cookie:hover,#cn-accept-cookie:focus,#cn-refuse-cookie:hover,#cn-refuse-cookie:focus {
  outline: 3px solid #fd0 !important;
  text-decoration: underline !important;
}



@media (min-width: 1025px) {
    .ce_group {
        flex: 1 1 23%; /* For 4 columns on larger screens */
        max-width: 23%;
    }
}

@media (max-width: 1024px) {
    .testimonial-block.wp-container-core-post-template-is-layout-1 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
    }
    ul.testimonial-block > li:nth-child(5) {
        display: none;
    }
    
    .ce_group {
        flex: 1 1 31%; /* For 3 columns on tablet-sized screens */
    }
}

@media screen and (max-width: 768px) {
    .testimonial-block.wp-container-core-post-template-is-layout-1 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
    }
    ul.testimonial-block > li:nth-child(5), ul.testimonial-block > li:nth-child(4) {
        display: none;
    }
    .ce_group {
        flex: 1 1 100%; /* For 1 column on mobile devices */
    }
}

@media screen and (min-width: 526px) {
    .desktop-hide {
        display: none !important;
    } 

}

@media screen and (max-width: 525px) {
    .upper-button-rounded {
        width: 33%;
    }
    .play-sessions-header figure {
        float: none !important;
        margin-inline-start: 0px !important;
    }
    
    .play-sessions-header h1 {
        text-align: center;
    }
        

    .upper-button-rounded .wp-block-button__link {
        font-size: inherit;
        height: 100px;
        padding: 1rem;
        width: 100%;
    }
    .upper-buttons {
        margin-top: 1rem !important;
    }
    .upper-curved {
        border-radius: 0px;
    }
    .entry-content {
        padding: 0px;
    }
    body .home-image-block .is-layout-flex {
        display: flex;
    }
    body .home-image-block .is-layout-flex > div {
        width: 50%;
    }
    .mobile-hide {
        display: none !important;
    }
    .slide-block {
        margin: 0px 5px 0px 5px;
    }
    /*.home-mobile-buttons .wp-block-button {
        max-width: 50% !important;
    }*/
    ul.testimonial-block > li:nth-child(4) {
        display: none;
    }
    li.testimonials.type-testimonials {
        min-height: 150px !important;
    }

    a.ce_group, div.ce_group {
        min-width: 100% !important;
    }

    .entry-content, h2, h3 {
        padding: 0px 1rem;
    }

    .filter-dropdowns {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.5rem;
        max-width: 100%;
        flex-direction: column;
        margin: 0.5rem 0;
    }

    span.ce_text p {
        padding: 0.5rem;
        font-size: 1rem;
    }
    button#submit-button {
        width: 100%;
    }

    .filter-dropdown select, .search-form.custom-posts-filter-form input.search-field {
        width: 100%;
    }

    .testimonial-block.wp-container-core-post-template-is-layout-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 0;
    }
    ul.testimonial-block > li:not(:nth-child(1)) {
        display: none;
    }

    .testimonials p {
        padding: 0px;
    }
    .wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link {
        width: 100%;
        height: fit-content;
        padding: 10px !important;
    }
    input.wpcf7-form-control.wpcf7-submit {
        width: 40%;
    }
}

h2.featured {
    font-size: smaller;
    padding: 0px 8px;
}


