/*==== FONTS ====*/
@font-face{
    font-family: 'mudstone';
    src: url(../media/Mudstone-Sans.otf);
}
@font-face{
    font-family: 'mudstone-light';
    src: url(../media/Mudstone-Light.otf);
}
@font-face{
    font-family: 'gill sans';
    src: url(../media/Gill-Sans.otf);
}
@font-face{
    font-family: 'gill sans medium';
    src: url(../media/Gill-Sans-Medium.otf);
}

/*==== OVERALL ELEMENTS ====*/
html{
    height: 100%;
    width: 100%;
    overflow-x:hidden;
    margin: 0;
    padding: 0;
}
body{
    font-family:'gill sans';
    margin:0;
    padding:0;
}
img{
    object-fit: contain;
}
section{
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-flow: row wrap;
    text-align: center;
}

/*==== HEADINGS ====*/
h1{
    font-family: 'mudstone';
    font-weight: 400;
}
h2{
    font-family: 'mudstone';
    font-weight: 400;
    font-size: 2.25rem;
    color:#047553;
    margin-top: -15px;
    margin-bottom: -15px;
    padding-top: 20px;
}
h3{
    font-family: 'mudstone';
    font-weight: 400;
    color: #FBA91A;
    margin-top: 0px;
    margin-bottom: -15px;
}
h4{
    font-family: 'mudstone';
    font-size: 1.75rem;
    font-weight: 400;
    color: #FBA91A;
    margin-top: -5px;
    margin-bottom: -25px;
}

/*==== HEADER ====*/
header{
    grid-area: header;

    height: 110px;
    line-height: 60px;
    align-items: center;
    text-align: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background-color: #E61A4A;
    font-family: 'mudstone';

    display:grid;
    grid-template-columns: 10% 20% 40% 20% 10%;
    grid-template-areas: "camp-logo back-button title share-progress settings";
}
#camplogodiv{
    grid-area: camp-logo;
    display: flex;
    align-items: center;
    justify-content: right;
    padding-bottom: 25px;
}
#camplogo{
    width: 75px;
    height: auto;
}
#back-to-main-page-btn{
    grid-area: back-button;
}
#back-arrow-div{
    padding-bottom: 35px;
}
#gamelogodiv{
    grid-area: title;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 15px;
}
#game-logo{
    width: 250px;
    height: auto;
}
#share-progress{
    grid-area: share-progress;
}
#share-progress-img{
    width: 160px;
}
#share-progress-arrow-div{
    display: flex;
    align-items: center;
    justify-content: left;
    padding-top: 10px;
}
#progress-socials{
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
    padding-left: 40px;
    transform: translateY(-35px);
}
#settings{
    grid-area: settings;
    display:flex;
    align-items: center;
    justify-content: space-evenly;
    padding-bottom: 40px;
}
/*==== MOBILE HEADER ====*/
@media screen and (max-width: 1100px){
    header{
        display:grid;
        grid-template-columns: 40% 60%;
        grid-template-areas: "camp-logo title";
    }
    #back-arrow-div{
        display:none;
    }
    #share-progress{
        display:none;
    }
    #camplogodiv{
        justify-content: center;
        padding-top: 10px;
    }
    #settings{
        display: none;
    }
    #game-logo{
        width: 175px;
        padding-bottom: 20px;
    }
}

/*==== TUTORIAL & MERGE BAR ====*/
#merge-bar{ /*OBSOLETE*/
    grid-area: info;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 50px;
}
#tutorial{
    grid-area: tutorial;
    padding-bottom: 100px;
    padding-left: 10px;
    line-height: 1.2;
    color: #242F64;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}
#tutorial-text-box{
    width: 30vw;
    max-width: 600px;
    height: auto;
}
#tutorial-text{
    position: absolute;
    left: 52%;
    text-align: center;
    width: 11vw;
    max-width: 250px;
    line-height: 1.2rem;
    font-size: 1vw;
    color:white;
}

/*==== GAMESPACE ====*/
#gamespace{
    grid-area: gamespace;
    display: flex;
    align-items: center;
    justify-content: center;
}
canvas{
    grid-area: canvas;
    background: white;
    border: 10px solid white;
}
#m-settings{
    display:none;
    width: 100px;
    align-items: center;
    justify-content: space-evenly;
}
#m-tutorial-button{
    display:flex;
    width: 40px;
    align-items: center;
    justify-content: space-evenly;
}
#q-mark{
    width:100%;
}

/*==== SCORE ====*/
#score{
    grid-area: score;
    
    display: flex;
    align-items: center;
    justify-content: center;
}
#scorecard{
    width: 250px;
    height: auto;
}
#scoretext{
    position: absolute;
    left: 83.4%;
    /*top: 27%;*/
    transform: translate( -45%, -15% );
    text-align: center;
    color: white;
    line-height: 2rem;
    font-size: 18px;
}
.scorefont{
    font-family: 'mudstone';
    font-weight: 400;
    color:#047553;
    display:inline;
}

/*==== HIGHSCORE ====*/
#highscore{
    grid-area: highscore;
    padding-top: 20px;
    margin-top: 50px;
    margin-bottom: 50px;
}
#leaderboard-title{
    font-size: 8fr;
    line-height: 1.7rem;
}
#scoreboard{
    width: 200px;
    height: auto;
    padding-top: 20px;
    padding-bottom: 20px;
}
#scoreboard-text{
    position: absolute;
    left: 83.5%;
    transform: translate( -50%, -52% );
    padding-bottom: 296px;
    text-align: center;
    color: #047553;
    line-height: 1.4rem;
    font-size: 16fr;
    width: 150px;
}
#current-ranking{
    color:white;
    display:inline;
    position: absolute;
    left: 0%;
    top: 204px;
    width: 150px;
    transform: translateY(-2px);
}

/*==== MOBILE SHARE SOCIALS ====*/
#m-share-progress{
    grid-area: m-share-progress;
    background-color: #E61A4A;
    height: 100%;
}
#m-share-progress-img{
    width: 250px;
    padding-top: 20px;
}
#m-share-progress-arrow-div{
    display: flex;
    align-items: center;
    justify-content: center;
}
#m-progress-socials{
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding-left: 40px;
    transform: translateY(-35px);
}

/*==== INFOGRAPHIC ====*/
#infographic{
    height: 500px;
    width: 100%;
    background-image: url(../media/Infographic/Info-background.png);
    background-repeat: no-repeat;
    background-size: cover;

    position: relative;
    text-align: center;

    display: flex;
    flex-direction: column;

    grid-area: infographic;
}
#infographic-text-box{
    width: 650px;
    height: auto;
    align-items: center;
}
#infographic-text{
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate( -50%, -50% );
    text-align: center;
    width: 500px;
    padding-bottom: 1vh;
}
#infographic-buttons{
    margin-top: -150px;

    display: flex;
    flex-direction: row;
}
#infographic-learn-more{
    padding-right: 25px;
}
#infographic-get-involved{
    padding-left: 25px;
}
/*==== MOBILE INFOGRAPHIC ====*/
@media screen and (max-width: 390px){
    #infographic-text{
        padding-bottom: 11vh;
    }
}
@media screen and (min-width: 390px) and (max-width: 500px){
    #infographic-text{
        padding-bottom: 6vh;
    }
}
@media screen and (max-width: 500px){
    #infographic-text-box{
        padding-top: 25px;
    }
    #infographic-buttons{
        flex-direction: column;
        padding-top: 60px;
    }  
    #infographic-learn-more{
        padding-right: 0px;
        padding-bottom: 5px;
    }
    #infographic-get-involved{
        padding-left: 0px;
        padding-top: 5px;
    }
}
@media screen and (max-width: 660px){
    #infographic{
        height: 450px;
    }
    #infographic-text-box{
        width: 90%;
    }
    #infographic-header{
        font-size: 5vw;
        
    }
    #infographic-text{
        width: 75%;
        font-size: 3vw;
    }
}

/*==== POPUPS ====*/
#gamestart-popup{
    display: flex;
    width: 360px;
    height: 550px;
    background-color: #F05625;
    color: white;
    font-family: 'mudstone-light';
    border: 10px solid white;

    align-items: center;
    text-align: center;
    justify-content: center;
}
#name-input{
    text-align: center;
    font-family: 'gill sans';
    background-color: #242F64;
    color: white;
    width: 250px;
    font-size: 40px;
}
#gamestart-text{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 40px;
}
#start-button{
    font-family: 'mudstone';
    font-size: 40px;
    font-weight: 100;
    border-radius: 20px;
    background-color: #242F64;
    color: white;
    width: 250px;
}

#gameover-popup{
    display: none;
    position:relative;

    /*position: absolute;
    top: 40%;
    left: 43.5%;*/
    width: 360px;
    height: 550px;
    background-color: #E61A4A;
    color: white;
    font-family: 'mudstone-light';
    border: 10px solid white;

    align-items: center;
    text-align: center;
    justify-content: center;
}
#gameover-text{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 40px;
    transform: translateY(20px);
}
#restart-button{
    font-family: 'mudstone';
    font-size: 40px;
    font-weight: 100;
    border-radius: 20px;
    background-color: #242F64;
    color: white;
    width: 250px;
}
#score-lines{
    position:absolute;
    top: 125px;
    width: 250px;
    height: auto;
}

#tutorial-popup{
    display: none;
    flex-direction: column;

    width: 360px;
    height: 550px;
    background-color: #2AACE2;
    color: #242F64;
    font-family: 'gill sans';
    border: 10px solid white;

    align-items: center;
    text-align: center;
    justify-content: center;
}
#tutorial-owl{
    width: 200px;
}
#tutorial-merge-bar{
    width: 300px;
}
#tutorial-popup-text-box{
    width: 300px;
    height: 200px;
    background-color: white;
    border-radius: 20px;

    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
}
#tutorial-popup-text{
    width: 250px;
    font-size: 20px;
}

/*==== BACKGROUND ====*/
@media screen and (max-width: 540px){
    #wrapper{
        background-image: url(../media/background-mobile.png);
        background-repeat: no-repeat;
        background-size: auto 912px;
        background-position-x: center;
    }
}
@media screen and (min-width: 540px){
    #wrapper{
        background-image: url(../media/background-image-new.jpg);
        background-repeat: no-repeat;
        background-size: auto 912px;
        background-position-x: center;
    }
}

/*==== MOBILE WRAPPER ====*/
@media screen and (max-width: 1100px){
    #wrapper{
        display: grid;
        grid-template-rows: 100px 600px 212px 180px 300px;
        grid-template-columns: 100%;
        grid-template-areas: "header"
                             "gamespace"                     
                             "score"
                             "m-share-progress"
                             "highscore";
        align-items: center;
        justify-content: center;
    }

    /*Display: Nones*/
    #merge-bar{
        display:none;
    }

    /*Score*/
    #scoretext{
        left: 50.3%;
        top: 820px;
        padding-bottom: 18px;
        transform: translate( -50%, -50% );
    }
    
    /*Highscore*/
    #highscore{
        padding-top: 0px;
        background-color:#9CCB3B;
    }
    #scoreboard-text{
        left: 50%;
        line-height: 1.4rem;
        width: 200px;
    }
    #leaderboard-title{
        font-size: 8fr;
        line-height: 1.6rem;
    }
    #current-ranking{
        left: 25px;
    }

    /*Tutorial*/
    #tutorial{
        display: none;
    }

    /*Mobile Over Canvas*/
    #m-settings{
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        position: absolute;
        left: 0px;
        top: 160px;
    }
    #m-tutorial-button{
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        position: absolute;
        left: 0px;
        top: 160px;
    }

    /*Mailing List*/
    #mailing-list{
        height: 600px;
        flex-direction: column;
    }
    #mailing-list-text{
        padding-right: 0px;
        padding-bottom: 10px;
    }
    #mailing-list-inputs{
        padding-left: 0px;
        padding-top: 10px;
    }
}

/*==== PC WRAPPER ====*/
@media screen and (min-width: 1100px){ /*ATTEMPT AT LIMITING HEIGHT IDK HOW WELL ITS GONNA GO*/
    #wrapper{
        background-image: url(../media/background-image-new.jpg);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        
        display: grid;
        grid-template-rows: 100px 30% 30% 30%;
        grid-template-columns: 30% 40% 30%;
        grid-template-areas:"header header header"
                            "tutorial gamespace score"
                            "tutorial gamespace highscore"
                            "nothing gamespace achievements";
        margin: 0 auto;
        align-items: center;
        justify-content: center;
        height: 100vh;
        max-height: 850px;
        min-height: 700px;
    }

    #tutorial{
        margin-top: 150px;
    }
    .left-container{
        margin-left: 10%;
    }
    .right-container{
        margin-right: 10%;
    }

    #m-share-progress{
        display:none;
    }
}

:root {
  /* Colors */
  --color-night-sky:       #242F64;
  --color-tangerine-dream: #F05625;
  --color-dandelion:       #FBA91A;
  --color-blue-bird-days:  #2AACE2;
  --color-key-limey:       #9CCB3B;
  --color-grasshopper:     #047553;
  --color-plum-puddin:     #744C9E;
  --color-pink-pong:       #EE4E97;
  --color-rosy-cheeks:     #E61A4A;
  --color-fudge-brownie:   #422121;
  --color-ice-cream:       #F9F4EF;
  --color-white:           #FFFFFF;
  --color-black:           #000000;

  /* Semantic color aliases */
  --color-text-default:   var(--color-fudge-brownie);
  --color-text-light:     var(--color-white);
  --color-text-heading:   var(--color-night-sky);
  --color-bg-default:     var(--color-white);
  --color-bg-nav:         var(--color-ice-cream);
  --color-bg-footer:      var(--color-night-sky);
  --color-bg-banner:      var(--color-rosy-cheeks);
  --color-accent-primary: var(--color-dandelion);
  --color-accent-cta:     var(--color-grasshopper);
  --color-link:           var(--color-night-sky);
  --color-link-hover:     var(--color-tangerine-dream);

  /* Gradients */
  --gradient-hero-overlay: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0)   60%
  );

  /* Font Families */
  --font-display: 'Mudstone', sans-serif;
  --font-body:    'Gill Sans Nova', 'Gill Sans', 'Gill Sans MT', sans-serif;

  /* Font Weights */
  --fw-light:   300;
  --fw-regular: 400;
  --fw-bold:    700;

  /* Font Sizes */
  --fs-legal:   12px;
  --fs-small:   14px;
  --fs-body:    16px;
  --fs-body-lg: 18px;
  --fs-nav:     20px;
  --fs-nav-mob: 25px;
  --fs-subhead: 24px;
  --fs-h3:      32px;
  --fs-h2:      48px;
  --fs-display: 80px;

  /* Line Heights */
  --lh-display: 1;
  --lh-tight:   1.2;
  --lh-normal:  1.5;

  /* Letter Spacing */
  --ls-normal: 0;
  --ls-button: 0.2px;
  --ls-wide:   0.05em;

  /* Spacing Scale */
  --space-5:   5px;
  --space-10:  10px;
  --space-15:  15px;
  --space-20:  20px;
  --space-25:  25px;
  --space-30:  30px;
  --space-40:  40px;
  --space-50:  50px;
  --space-60:  60px;
  --space-70:  70px;
  --space-75:  75px;
  --space-80:  80px;
  --space-100: 100px;
  --space-115: 115px;

  /* Layout */
  --max-width-content: 1200px;
  --max-width-wide:    1440px;
  --container-padding: var(--space-25);

  /* Border Radius */
  --radius-button: 4px;
  --radius-search: 10px;
  --radius-card:   8px;
  --radius-circle: 9999px;

  /* Shadows */
  --shadow-nav:    0px 4px 20px 0px rgba(0, 0, 0, 0.5);
  --shadow-button: 4px 4px 0px 0px rgba(0, 0, 0, 0.25);
  --shadow-card:   0px 2px 12px 0px rgba(0, 0, 0, 0.12);

  /* Navigation */
  --nav-height:             80px;
  --banner-height:          35px;
  --nav-total-height:       115px;
  --mob-nav-height:         88px;
  --mob-banner-height:      55px;
  --mob-nav-total-height:   143px;

  /* Transitions */
  --transition-base:  all 0.2s ease-in-out;
  --transition-color: color 0.2s ease-in-out, background-color 0.2s ease-in-out;

  /* Slant System */
  --slant-size: 15px;
}

/* NEWSLETTER BLOCK */
.block-newsletter-signup {
  padding: 50px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .block-newsletter-signup {
    padding: 70px 0;
  }
}

.block-newsletter-signup__banner {
  height: 260px;
  background-image: url('/wp-content/themes/hole-in-the-wall-gang/assets/images/wavy-text.svg');
  background-repeat: repeat;
  background-size: cover;
  position: relative;
  z-index: -1;
}

@media (min-width: 1024px) {
  .block-newsletter-signup__banner {
    height: 465px;
  }
}

.block-newsletter-signup__inner {
  padding: 0 30px;
  margin-top: -80px;
}

@media (min-width: 1024px) {
  .block-newsletter-signup__inner {
    margin-top: -170px;
  }
}

.block-newsletter-signup__headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  color: var(--color-rosy-cheeks);
  font-weight: 400;
  line-height: 1;
  margin: 0 auto var(--space-25);
  max-width: 900px;
}

.block-newsletter-signup__form {
  max-width: 600px;
  margin: 0 auto;
}

.block-newsletter-signup__form p.desktopOnly {
  font-size: var(--fs-body);
  color: var(--color-fudge-brownie);
  margin-bottom: var(--space-30);
}

/* FormAssembly's generated markup — scoped inside our block only */
.block-newsletter-signup .emailSignup .wFormContainer,
.block-newsletter-signup .emailSignup .wForm {
  width: 100%;
  box-shadow: none;
  padding: 0;
  margin: 50px 0 0;
}

.block-newsletter-signup .emailSignup #tfa_4,
.block-newsletter-signup .emailSignup #tfa_6,
.block-newsletter-signup .emailSignup #tfa_1873 {
  width: 100% !important;
}

.block-newsletter-signup .emailSignup .section.inline.group {
  display: flex;
/*  gap: var(--space-20);*/
  flex-wrap: wrap;
}

.block-newsletter-signup .emailSignup .section.inline.group .oneField {
  flex: 1 1 200px;
}

.block-newsletter-signup .emailSignup .oneField {
  margin: 0 0 var(--space-20);
}

.block-newsletter-signup .emailSignup .label {
  display: block;
  text-align: left;
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 20px;
  color: var(--color-night-sky);
  margin-bottom: var(--space-10);
}

.block-newsletter-signup .emailSignup .inputWrapper input {
  display: block;
  width: 100%;
  padding: var(--space-15) var(--space-20);
  background: var(--color-ice-cream);
  border: 1px solid var(--color-grasshopper);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-fudge-brownie);
}

.block-newsletter-signup .emailSignup .htmlSection p {
  font-size: 14px;
  color: var(--color-fudge-brownie);
  margin: var(--space-15) 0;
}

.block-newsletter-signup .emailSignup .actions {
  text-align: center;
}

.block-newsletter-signup .emailSignup .primaryAction {
  display: inline-block;
  padding: var(--space-15) var(--space-30);
  background: var(--color-grasshopper);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-button);
  font-family: var(--font-display);
  text-transform: uppercase;
  cursor: pointer;
}

.block-newsletter-signup .emailSignup .wForm .inputWrapper {
  width: 100%;
}

.block-newsletter-signup .emailSignup .label.preField {
  color: var(--Night-Sky, #242F64);
  padding-bottom: 0;
  line-height: 12px;
}

.block-newsletter-signup .emailSignup .wForm .primaryAction {
  clip-path: polygon(0% 3px, 100% 0%, 100% 100%, 0% calc(100% - 2px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-nav);
  font-weight: var(--fw-light) !important;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: var(--ls-button);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  border-radius: 0;
  padding: 10px 32px;
  min-height: 42px;
  position: relative;
  transition: color 0.2s ease-in-out;
  z-index: 0;
  max-width: 320px;
}

.block-newsletter-signup .emailSignup .wForm .primaryAction:hover {
  background-color: var(--color-night-sky);
}
.site-footer {
  background-color: var(--color-bg-footer);
}

/* Footer main */
.site-footer__main {
  padding: var(--space-20) var(--space-20) var(--space-100);
  margin: 0 auto;
  clip-path: polygon(0 var(--slant-size), 100% 0, 100% 100%, 0 100%);
  margin-top: calc(var(--slant-size) * -1);
  padding-top: calc(var(--space-70) + var(--slant-size));
}

@media (min-width: 990px) {
  .site-footer__main {
    padding: var(--space-50) var(--space-30) var(--space-80);
    padding-top: calc(var(--space-30) + var(--slant-size));
  }
}

/* Inner layout — 3 rows mobile, 2-col desktop with grid areas */
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-50);
  align-items: start;
}

@media (min-width: 1200px) {
  .footer-inner {
    grid-template-columns: 447px 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "brand nav"
      "brand bottom";
    gap: var(--space-70);
  }
}

/* ------------------------------------------------------------------------- */
/* Left column */
/* ------------------------------------------------------------------------- */

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-30);
}

@media (min-width: 1200px) {
  .footer-brand {
    grid-area: brand;
  }
}

.footer-brand svg {
  width: 100%;
  max-width: 447px;
  height: auto;
}

.footer-brand__logo {
  width: 130px;
}

.footer-brand__logo-img {
  width: 100%;
  height: auto;
}

.footer-brand__logo-missing {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  margin: 0;
}

.footer-accreditation {
  display: flex;
  gap: var(--space-20);
  align-items: center;
  flex-wrap: wrap;
}

.footer-accreditation__item {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.footer-accreditation__badge {
  height: 60px;
  width: auto;
}

/* ------------------------------------------------------------------------- */
/* Right region */
/* ------------------------------------------------------------------------- */

/* Nav columns */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-30) var(--space-50);
  align-items: start;
}

@media (min-width: 1200px) {
  .footer-nav {
    grid-area: nav;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-30);
  }
}

@media (min-width: 990px) {
  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-nav__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.footer-nav__heading {
  font-family: var(--font-display);
  font-size: var(--fs-nav);
  font-weight: var(--fw-light);
  color: var(--color-dandelion);
  text-transform: lowercase;
  letter-spacing: 0;
  line-height: var(--lh-display);
  margin: 0 0 var(--space-5);
}

.footer-nav__heading a {
  color: var(--color-dandelion);
}

.footer-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav__list li {
  margin: 0;
}

.footer-nav__list a {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  color: var(--color-white);
  text-decoration: none;
  line-height: 1.5;
  text-transform: capitalize;
  transition: var(--transition-color);
  display: block;
  padding: 2px 0;
}

.footer-nav__list a:hover,
.footer-nav__list a:focus {
  text-decoration: underline;
}

/* Bottom row — SeriousFun left, social + search right */
.footer-bottom-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-50);
  align-items: start;
}

@media (min-width: 1200px) {
  .footer-bottom-row {
    grid-area: bottom;
    grid-template-columns: 1fr auto;
    gap: var(--space-60);
  }
}

/* SeriousFun blurb */
.footer-seriousfun-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-25);
}

.footer-seriousfun__label {
  margin-bottom: 0;
}

.footer-seriousfun__logo {
  height: 20px;
  width: auto;
}

.footer-seriousfun {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  color: var(--color-white);
  line-height: var(--lh-normal);
  max-width: 430px;
}

.footer-seriousfun p {
  margin: 0;
  color: var(--color-white);
}

.footer-seriousfun a {
  color: var(--color-blue-bird-days);
  font-weight: var(--fw-bold);
  text-decoration: none;
}

.footer-seriousfun a:hover {
  text-decoration: underline;
}

/* Social + search */
.footer-social-search {
  display: flex;
  flex-direction: column;
  gap: var(--space-25);
  align-items: flex-start;
}

@media (min-width: 1200px) {
  .footer-social-search {
    min-width: 180px;
  }
}

.footer-social {
  display: flex;
  gap: var(--space-20);
  align-items: center;
}

.footer-social__link {
  color: var(--color-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease-in-out;
  line-height: 1;
}

.footer-social__link:hover svg path,
.footer-social__link:focus svg path {
  fill: white;
}

.footer-social__link svg {
  display: block;
}

.footer-search {
  width: 100%;
}

.footer-search .search-form {
  display: flex;
  align-items: center;
  background-color: var(--color-ice-cream);
  border-radius: var(--radius-search);
  height: 30px;
  overflow: hidden;
  width: 100%;
  padding: 0 var(--space-10);
}

@media (min-width: 1200px) {
  .footer-search .search-form {
    min-width: 200px;
  }
}

.footer-search .search-field {
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  color: var(--color-fudge-brownie);
  width: 100%;
  padding: 0;
  text-transform: capitalize;
}

.footer-search .search-field::placeholder {
  color: var(--color-fudge-brownie);
  opacity: 0.7;
}

.footer-search .search-submit {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-fudge-brownie);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: var(--transition-color);
}

.footer-search .search-submit:hover {
  color: var(--color-night-sky);
}

/* ------------------------------------------------------------------------- */
/* Legal bar */
/* ------------------------------------------------------------------------- */

.site-footer__legal {
  background-color: var(--color-dandelion);
  padding: var(--space-50) var(--space-30) var(--space-20);
  display: flex;
  flex-direction: column;
  gap: var(--space-25);
  align-items: flex-start;
}

@media (min-width: 1200px) {
  .site-footer__legal {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-50);
    padding: var(--space-20) var(--space-30);
  }
}

.footer-legal__copy {
  font-family: var(--font-body);
  font-size: var(--fs-legal);
  color: var(--color-night-sky);
  line-height: var(--lh-normal);
}

@media (min-width: 1200px) {
  .footer-legal__copy {
    max-width: 550px;
  }
}

.footer-legal__copy strong {
  display: block;
  font-weight: var(--fw-bold);
  margin-bottom: 2px;
}

.footer-legal__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-20);
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

@media (min-width: 1200px) {
  .footer-legal__nav {
    gap: var(--space-25);
    justify-content: flex-end;
  }
}

.footer-legal__nav li {
  margin: 0;
}

.footer-legal__nav a {
  font-family: var(--font-body);
  font-size: var(--fs-legal);
  font-weight: var(--fw-bold);
  color: var(--color-night-sky);
  white-space: nowrap;
  transition: var(--transition-color);
  text-decoration: none;
}

.footer-legal__nav a:hover,
.footer-legal__nav a:focus {
  text-decoration: underline;
}

.footer-legal__links {
  display: flex;
  gap: 5px var(--space-20);
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

@media (min-width: 1200px) {
  .footer-legal__links {
    gap: var(--space-25);
    justify-content: flex-end;
  }
}

.footer-legal__links a {
  font-family: var(--font-body);
  font-size: var(--fs-legal);
  font-weight: var(--fw-bold);
  color: var(--color-night-sky);
  white-space: nowrap;
  transition: var(--transition-color);
  text-decoration: none;
}

.footer-legal__links a:hover,
.footer-legal__links a:focus {
  text-decoration: underline;
}

.block-content-media {
  padding-bottom: var(--space-50);
  padding-left: var(--space-25);
  padding-right: var(--space-25);
  background-color: var(--color-white);
}

@media (min-width: 990px) {
  .block-content-media {
    padding-left: var(--space-30);
    padding-right: var(--space-30);
    padding-bottom: var(--space-70);
  }
}

/* .image-block modifier */
.block-content-media.image-block {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 0;
}

@media (min-width: 990px) {
  .block-content-media.image-block {
    padding: 100px 30px 90px;
    text-align: left;
  }
}

.block-content-media.image-block .block-content-media__inner {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-40);
  align-items: center;
}

@media (min-width: 990px) {
  .block-content-media.image-block .block-content-media__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.block-content-media.image-block .block-content-media__text {
  padding: var(--space-70) var(--space-30) var(--space-30);
}

@media (min-width: 990px) {
  .block-content-media.image-block .block-content-media__text {
    padding: 0 30px 0 60px;
  }
}

.block-content-media.image-block .block-content-media__media {
  width: 100%;
  height: 260px;
}

@media (min-width: 990px) {
  .block-content-media.image-block .block-content-media__media {
    height: 400px;
    clip-path: unset;
  }
}

.block-content-media.image-block .block-content-media__image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Generic __inner base (still applies where .image-block doesn't override) */
.block-content-media__inner {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0 auto;
}

@media (min-width: 990px) {
  .block-content-media__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-60);
    align-items: center;
  }
}

/* Generic __text base */
.block-content-media__text {
  text-align: center;
}

@media (min-width: 768px) {
  .block-content-media__text {
    text-align: left;
  }
}

.block-content-media__headline {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-night-sky);
  margin-bottom: var(--space-30);
}

.block-content-media__body {
  color: var(--color-fudge-brownie);
  margin-bottom: var(--space-30);
}

.block-content-media__ctas {
  display: flex;
  gap: var(--space-20);
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 990px) {
  .block-content-media__ctas {
    justify-content: flex-start;
  }
}

/* Theme modifier actually used here: rosy-cheeks-accent */
.block-content-media--rosy-cheeks-accent {
  background-color: var(--color-ice-cream);
}

.block-content-media--rosy-cheeks-accent .block-content-media__headline {
  color: var(--color-rosy-cheeks);
}

/* Generic __media (bp-lg only properties — coexists with the
   .image-block override above; doesn't conflict since it sets
   different properties, only overlaps on nothing here) */
@media (min-width: 990px) {
  .block-content-media__media {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.block-content-media__image-wrap {
  position: relative;
}

.block-content-media__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 500px;
}

.block-content-media__caption {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  background: var(--color-white);
  border: 2px solid var(--color-plum-puddin);
  color: var(--color-plum-puddin);
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  padding: var(--space-10) var(--space-20);
  text-align: center;
  max-width: 85%;
  white-space: nowrap;
}

@media (min-width: 990px) {
  .block-content-media__caption {
    left: auto;
    right: var(--space-20);
    bottom: -20px;
    transform: none;
    white-space: normal;
  }
}

.block-content-media__icons {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
  display: none;
}

@media (min-width: 990px) {
  .block-content-media__icons {
    display: block;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-nav);
  font-weight: var(--fw-light);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: var(--ls-button);
  text-decoration: none;
  white-space: normal;
  text-align: center;
  cursor: pointer;
  border: none;
  border-radius: 0;
  padding: 10px 30px;
  max-width: 275px;
  position: relative;
  background: transparent;
  z-index: 1;
  transform: scale(1);
  transition: color 0.2s ease-in-out, transform 0.2s ease;
  color: #fff;
}

.btn:hover,
.btn:focus-visible {
  transform: scale(1.05);
}

.btn:hover::before {
  background-color: var(--color-grasshopper);
}

@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: color 0.2s ease-in-out, transform 0.15s ease;
  }

  .btn:hover,
  .btn:focus-visible {
    animation: btn-wiggle 0.3s ease;
  }
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: background-color 0.2s ease-in-out;
  background-color: var(--color-night-sky);
  clip-path: polygon(
    0% 3px,
    100% 0%,
    100% 100%,
    0% calc(100% - 2px)
  );
}

@keyframes btn-wiggle {
  0%   { transform: scale(1) rotate(0deg); }
  50%  { transform: scale(1.05) rotate(-3deg); }
  100% { transform: scale(1.05) rotate(0deg); }
}
.screen-reader-text,
.sr-only {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.footer-search .search-form-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-15);
    width: 100%;
}
.footer-search {
    display: flex;
    align-items: center;
    gap: var(--space-15);
    width: 100%;
}


