/*
Theme Name: Rudgwick Preschool
Theme URI: 
Author: Skyline Internet
Author URI: https://skyline-internet.com
Description: A block theme for Rudgwick Preschool, based on twentytwentyfour
Requires at least: 6.0
Tested up to: 6.4.3
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rudgwickpreschool
Tags: blog, news, portfolio, one-column, wide-blocks, accessibility-ready, block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, rtl-language-support, sticky-post, style-variations, threaded-comments, translation-ready
*/
:root{
  --sidebarWidth: 80vw;
}

aside#sidebar {
  position: fixed;
  height: 100dvh;
  z-index: 99;
  background-color: #fff;
  left: 0;
  top: 0;
  min-width: 80dvw;
  transform: translateX(calc(var(--sidebarWidth) * -1));
  transition: all 0.25s;
}

aside#sidebar.open {
  transform: translate(0);
  z-index: 6;
}

body.sidebar-open {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body.sidebar-open:after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  background-color: rgba(0, 0, 0, 0.5);
}

#sidebar [href="#closeSidebar"] {
  font-weight: 200;
}

.aspect-square {
  aspect-ratio: 1/1;
  position: relative;
}

.aspect-square .tree,
.aspect-square .rabbit,
.aspect-square .squirrel {
  position: absolute;
  height: 80%;
  display: flex;
  top: 0;
  align-items: flex-end;
}

.aspect-square .tree {
  z-index: 2;
  left: 5%;
}

.aspect-square .tree .icon-container {
  width: auto !important;
  height: 100%;
}

.aspect-square .rabbit {
  z-index: 4;
  left: 50%;
}
.aspect-square .squirrel {
  z-index: 4;
  left: 15%;
}

.overflow-hidden {
  overflow: hidden;
}
.pre-footer {
  margin-bottom: -2px;
}

.quick-links {
  position: relative;
}

.quick-links .bee,
.quick-links .fox {
  position: absolute;
}

.quick-links .bee {
  left: 0;
  top: -5%;
  transform: translateY(-50%);
}

.quick-links .fox {
  right: 0;
  bottom: 0;
}

.wp-element-button:has(svg) {
  position: relative;
  transform-style: preserve-3d;
  color: #333;
}

.wp-element-button svg {
  position: absolute;
  left: 0;
  top: -1rem;
  height: calc(100% + 1rem);
  width: calc(100% + 1rem);
  transform: translateZ(-1px);
}
.wp-element-button:has(svg) svg,
.wp-element-button:has(svg) svg path {
  fill: var(--wp--preset--color--rdg-light-blue) !important;
  color: var(--wp--preset--color--rdg-light-blue) !important;
  stroke: var(--wp--preset--color--rdg-light-blue) !important;
}

.wp-block-button.is-style-has-stroke-svg
  .has-rdg-light-blue-background-color
  svg,
.wp-block-button.is-style-has-stroke-svg
  .has-rdg-light-blue-background-color
  svg
  path {
  fill: var(--wp--preset--color--rdg-light-blue) !important;
  stroke: var(--wp--preset--color--rdg-light-blue) !important;
}

.wp-block-button .has-rdg-yellow-background-color svg,
.wp-block-button .has-rdg-yellow-background-color svg path {
  fill: var(--wp--preset--color--rdg-yellow) !important;
  stroke: var(--wp--preset--color--rdg-yellow) !important;
}

.wp-block-button .has-rdg-green-background-color svg,
.wp-block-button .has-rdg-green-background-color svg path {
  fill: var(--wp--preset--color--rdg-green) !important;
  stroke: var(--wp--preset--color--rdg-green) !important;
}

.wp-block-button .has-rdg-orange-background-color svg,
.wp-block-button .has-rdg-orange-background-color svg path {
  fill: var(--wp--preset--color--rdg-orange) !important;
  stroke: var(--wp--preset--color--rdg-orange) !important;
}

.wp-block-button .has-rdg-navy-background-color svg,
.wp-block-button .has-rdg-navy-background-color svg path {
  fill: var(--wp--preset--color--rdg-navy) !important;
  stroke: var(--wp--preset--color--rdg-navy) !important;
}

.h-100 {
  height: 100%;
}

.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container, .wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container, .wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container{
  z-index:10;
}

.header-nav-container .wp-block-navigation__container > li.wp-block-navigation-item > a{
  padding-top:1rem;
  padding-bottom:1rem;
  padding-left:.5rem;
  padding-right:.5rem;
  transition:all .25s;
}

.home-cover-blocks .wp-block-cover a{
      position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 1rem;
    box-sizing: border-box;
    text-decoration:none;
}


.home-cover-blocks .wp-block-cover img{
  transition:all .25s;
}

.home-cover-blocks .wp-block-cover:hover img{
  transform:scale(1.15);
}

.header-nav-container .wp-block-navigation__container > li.wp-block-navigation-item:hover{
  background-color:rgba(255,255,255,0.2);
}

.wp-block-button__link{
  transition:border .3s ease-in-out!important;
}

.wp-block-button__link:hover{
  border-right:0px solid currentColor!important;
  border-bottom:0px solid currentColor!important;
}


@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(2rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fade-down {
  0% {
    opacity: 0;
    transform: translateY(-2rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-left {
  0% {
    opacity: 0;
    transform: translateX(-2rem);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fade-right {
  0% {
    opacity: 0;
    transform: translateX(2rem);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.aos {
  overflow-x: hidden;
}

div:has(> .aos.fade-left),
div:has(> .aos.fade-right) {
  overflow-x: hidden;
}

.aos.fade-up {
  opacity: 0;
  transform: translateY(2rem);
}
.aos.fade-down {
  opacity: 0;
  transform: translateY(-2rem);
}
.aos.fade-right {
  opacity: 0;
  transform: translateX(2rem);
}
.aos.fade-left {
  opacity: 0;
  transform: translateX(-2rem);
}

.animate.aos.fade-up {
  animation: fade-up 1s both;
}
.animate.aos.fade-left {
  animation: fade-left 1s both;
}
.animate.aos.fade-right {
  animation: fade-right 1s both;
}
.animate.aos.fade-down {
  animation: fade-down 1s both;
}

.aos-delay-1 {
  animation-delay: 0.25s !important;
}
.aos-delay-2 {
  animation-delay: 0.5s !important;
}
.aos-delay-3 {
  animation-delay: 0.75s !important;
}
.aos-delay-4 {
  animation-delay: 1s !important;
}

.title-row .bee{
  margin-top:-2rem;
}

.title-row .fox{
  margin-bottom:-2rem;
}

@media(max-width:884px){
  .title-row h1{
    word-break: keep-all;
    font-size:2rem;
  }

  .header-nav-container{
    padding:1rem!important;
  }

  .header-nav-container > .wp-block-outermost-icon-block{
    justify-content: flex-end;
  }

  .top-header-container .wp-block-group{
    justify-content: center;
  }

  .home-cover-blocks{
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 0.5rem;
  }

  .quick-links .bee{
    top:0;
    z-index:5;
    left:unset;
    right:0;
  }

  
  .quick-links .fox{
    z-index:6;
    left:0;
    right:unset;
    bottom:0;
  }

  .quick-links .bee > div{
    width:80px!important;
  }

  .title-row .bee,
  .title-row .fox{
    width:100px!important;
  }
}

.dont-break{
  word-break:keep-all;
}