/* MyJewishTutors animations. They run for everyone, on every device. */
@keyframes fx-fade{from{opacity:0}to{opacity:1}}
@keyframes fx-down{from{opacity:0;translate:0 -16px}to{opacity:1;translate:0 0}}
@keyframes fx-rise{from{opacity:0;translate:0 .55em;rotate:2deg}to{opacity:1;translate:0 0;rotate:0deg}}
@keyframes fx-pop{0%{opacity:0;scale:.55}60%{opacity:1;scale:1.1}100%{opacity:1;scale:1}}
@keyframes fx-slide{from{opacity:0;translate:0 14px}to{opacity:1;translate:0 0}}
@keyframes fx-open{from{opacity:0;translate:0 -8px}to{opacity:1;translate:0 0}}
@keyframes fx-bob{0%,100%{translate:0 0}50%{translate:0 -12px}}
@keyframes fx-bob2{0%,100%{translate:0 0}50%{translate:6px 9px}}
@keyframes fx-sway{0%,100%{transform:rotate(-6deg)}50%{transform:rotate(7deg)}}
@keyframes fx-wiggle{0%,100%{transform:rotate(0)}20%{transform:rotate(-8deg) scale(1.08)}45%{transform:rotate(7deg) scale(1.08)}70%{transform:rotate(-4deg)}}
@keyframes fx-glow{0%,100%{box-shadow:0 0 0 0 rgba(247,214,90,0)}50%{box-shadow:0 0 0 7px rgba(247,214,90,.22)}}
@keyframes fx-note{0%{opacity:0;transform:translate(0,0) rotate(-8deg) scale(.7)}15%{opacity:1}100%{opacity:0;transform:translate(var(--dx,24px),-70px) rotate(14deg) scale(1.1)}}
@keyframes fx-shine{from{translate:-120% 0}to{translate:220% 0}}

/* page load */
body{animation:fx-fade .7s ease-out backwards}
header{animation:fx-down .8s .1s cubic-bezier(.2,.7,.2,1) backwards}

/* the logo: the leaf sways, and it wiggles when you point at it */
.logo svg{transform-origin:50% 60%}
.logo:hover svg{animation:fx-wiggle .7s ease-in-out}
.mark .leaf{transform-box:view-box;transform-origin:50px 36px;animation:fx-sway 3.8s ease-in-out infinite}

/* home page hero */
.fxw{display:inline-block;opacity:0;animation:fx-rise .8s cubic-bezier(.2,.7,.2,1) forwards;animation-delay:var(--wd,.3s)}
.hero .t{animation:fx-rise .7s .1s cubic-bezier(.2,.7,.2,1) backwards}
.hero .lede{animation:fx-rise .8s .95s cubic-bezier(.2,.7,.2,1) backwards}
.ctas .btn{animation:fx-pop .6s backwards}
.ctas .btn:nth-child(1){animation-delay:1.15s}.ctas .btn:nth-child(2){animation-delay:1.3s}.ctas .btn:nth-child(3){animation-delay:1.45s}
.d1{animation:fx-bob 6s ease-in-out infinite}.d2{animation:fx-bob2 7s ease-in-out infinite}.d3{animation:fx-bob 5.5s 1s ease-in-out infinite}.d4{animation:fx-bob2 6.5s .5s ease-in-out infinite}.d5{animation:fx-bob 4.8s .3s ease-in-out infinite}
.fxnote{position:absolute;z-index:1;width:22px;height:26px;pointer-events:none;opacity:0;animation:fx-note 3.6s ease-out infinite;animation-delay:var(--nd,0s)}

/* buttons and links you can press */
.btn{transition:background .2s,color .2s,translate .25s ease-out,rotate .2s,scale .15s,box-shadow .2s}
.btn:hover{scale:1.05}
.btn:active{scale:.94}
.btn.fxshine{position:relative;overflow:hidden}
nav a:not(.btn){position:relative}
nav a:not(.btn)::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:3px;border-radius:3px;background:var(--yel);scale:0 1;transform-origin:left;transition:scale .25s ease-out}
nav a:not(.btn):hover::after{scale:1 1}

/* lists, steps and cards */
.st.in .n{animation:fx-pop .6s .25s backwards}
.wc,.mi{transition:translate .25s ease-out}
.wc:hover{translate:0 -4px}
.tc .av{transition:scale .3s,rotate .3s}
.tc:hover .av{scale:1.08;rotate:3deg}
.faq details[open] p,.qa details[open] p{animation:fx-open .4s ease-out backwards}
.panelc,.pb{transition:translate .3s ease-out}
.pb:hover{translate:0 -4px}

/* forms: the field you are typing in glows */
.f input:focus-visible,.f select:focus-visible,.f textarea:focus-visible,.panel input:focus,.panel select:focus,.panel textarea:focus{animation:fx-glow 1.6s ease-in-out infinite}

/* booking: chosen day and time bounce in, the summary card slides up with a tick that pops */
.day[aria-pressed=true],.time[aria-pressed=true]{animation:fx-pop .35s backwards}
#bookForm:not([hidden]) .pick{animation:fx-slide .5s backwards}
.pick .tick{animation:fx-pop .6s .15s backwards}
.bk{transition:translate .25s ease-out,box-shadow .25s}.bk:hover{translate:0 -3px}
.balgrid .big1{animation:fx-glow 2.6s ease-in-out infinite}

/* scroll progress bar and confetti */
#fxbar{position:fixed;left:0;top:0;height:4px;width:100%;z-index:80;background:linear-gradient(90deg,#F7D65A,#F5A3B7,#8CCBF2);transform:scaleX(0);transform-origin:left;pointer-events:none}
.fxconf{position:fixed;z-index:95;top:-20px;width:10px;height:14px;border-radius:2px;pointer-events:none}
