@import url('https://fonts.googleapis.com/css2?family=DynaPuff:wght@400..700&family=Gochi+Hand&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
    /* 字体族设置 */
    --font-title: 'DynaPuff', cursive, sans-serif;
    --font-body: 'Nunito', sans-serif;
    --font-slogan: 'Gochi Hand', cursive;

    /* =========================
     Colors
    ========================= */

    --color-background: #FFF9F1;
    --color-text: #6A524E;
    --color-button: #874FFF;
    --color-button-text: #FFF9F1;
    --color-button-hover: #FFC943;
    --color-accent: #FF9E42;
    --color-selection-bg: #DAB3D0;
    --border-color: #D8D0C3;
    --footer-Allrights-bg: #7760A4;
    --keyword-color: #8D76B9;
    --button-image-bg: #EBD3DB;
    --meetOtherBg: #EEE3EE;

    /* =========================
     Font Size
    ========================= */

    --fs-slogan: clamp(1rem, 0.35vw + 0.9rem, 1.125rem);

    --fs-h1-hero: clamp(2.25rem, 3vw + 1.25rem, 3.25rem);

    --fs-h2-section: clamp(1.875rem, 2.5vw + 1rem, 2.5rem);

    --fs-h3-subsection: clamp(1.5rem, 1.5vw + 1rem, 2rem);

    --fs-h4: clamp(1.25rem, 1vw + 0.875rem, 1.625rem);

    --fs-h5: clamp(1.125rem, 0.75vw + 0.8rem, 1.375rem);

    --fs-h6: clamp(1rem, 0.5vw + 0.75rem, 1.125rem);

    --fs-body: clamp(1rem, 0.35vw + 0.9rem, 1.125rem);

    /* --fs-body-large: clamp(1rem, 0.5vw + 0.95rem, 1.25rem); */

    --fs-button: clamp(1.25rem, 1vw + 0.875rem, 1.625rem);


    /* =========================
     Font Weight
    ========================= */

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extra-bold: 800;
    --fw-black: 900;


    /* =========================
     Line Height
    ========================= */

    --lh-slogan: 1.3;

    --lh-h1-hero: 1.1;
    --lh-h2-section: 1.15;
    --lh-h3-subsection: 1.2;
    --lh-h4: 1.2;
    --lh-h5: 1.25;
    /* --lh-h6: 1.25; */

    --lh-body: 1.6;
    --lh-body-large: 1.5;

    --lh-button: 1.2;

    --shadow: 0px 3px 2.8px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
}

.content {
    max-width: 1200px;
    /* 1140 */
    margin: 0 auto;
    padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 3vw, 3rem);
    box-sizing: border-box;
}

/* =========================================
   Font Styles
========================================= */

h1 {
    font-family: "DynaPuff", sans-serif;
    font-size: var(--fs-h1-hero);
    font-weight: var(--fw-bold);
    line-height: var(--lh-h1-hero);
    margin: 0;
}

h2 {
    font-family: "DynaPuff", sans-serif;
    font-size: var(--fs-h2-section);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-h2-section);
    margin: 0;
}

h3 {
    font-family: "DynaPuff", sans-serif;
    font-size: var(--fs-h3-subsection);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-h3-subsection);
    margin: 0;
}

h4 {
    font-family: "DynaPuff", sans-serif;
    font-size: var(--fs-h4);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-h4);
    margin: 0;
}

h5 {
    font-family: "Nunito", sans-serif;
    font-size: var(--fs-h5);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-h5);
    margin: 0;
}

h6 {
    font-family: "Nunito", sans-serif;
    font-size: var(--fs-h6);
    font-weight: var(--fw-semibold);
    /* line-height: var(--lh-h6); */
    margin: 0;
}

p {
    font-family: "Nunito", sans-serif;
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: var(--lh-body);
}

.body {
    font-family: "Nunito", sans-serif;
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: var(--lh-body);
}

/* .body-large {
    font-family: "Nunito", sans-serif;
    font-size: var(--fs-body-large);
    font-weight: var(--fw-regular);
    line-height: var(--lh-body-large);
} */

button {
    font-family: "Nunito", sans-serif;
    border: none;
    font-size: var(--fs-button);
    font-weight: var(--fw-extra-bold);
    line-height: var(--lh-button);
    letter-spacing: 0.1em;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 80px;
    box-shadow: var(--shadow);
    /* justify-content: center; */
}

.slogan {
    font-family: "Gochi Hand", cursive;
    font-size: var(--fs-slogan);
    font-weight: var(--fw-regular);
    line-height: var(--lh-slogan);
}

/* =========================================
   Button Styles
========================================= */

/* start button */
.Home-btn,
.restartBtn {
    background-color: var(--color-button);
    color: var(--color-button-text);
    padding:
        clamp(7px, 0.8vw, 12px) clamp(7px, 0.8vw, 12px) clamp(7px, 0.8vw, 12px) clamp(35px, 4vw, 50px);
    gap: clamp(35px, 4vw, 50px);
    transition:
        transform 0.2s;
}

.Home-btn:hover,
.restartBtn:hover {
    background-color: var(--color-button-hover);
    color: var(--color-background);
}

.StartIcon {
    width: clamp(40px, 5vw, 50px);
    height: clamp(40px, 5vw, 50px);
}

/* Back & next button */
#backBtn,
#nextBtn,
.rightpaws-button {
    padding: 10px 25px;
    gap: clamp(10px, 4vw, 15px);
    border: var(--color-button) solid 3px;
}

#backBtn {
    background-color: var(--color-background);
    color: var(--color-button);
}

#nextBtn,
.rightpaws-button {
    background-color: var(--color-button);
    color: var(--color-button-text);
}

#backBtn:hover,
#nextBtn:hover,
.rightpaws-button:hover {
    border: var(--color-button-hover) solid 3px;
    color: var(--color-button-hover);
}

#nextBtn:hover,
.rightpaws-button:hover {
    background-color: var(--color-button-hover);
    color: var(--color-background);
}

.backHome {
    width: clamp(43px, 6vw, 57px);
    height: clamp(43px, 6vw, 57px);

    padding: 0;
    margin: 0;

    /* border: none; */
    /* outline: none; */

    color: var(--color-button);
}

.backHome:hover {
    color: var(--color-button-hover);
}

/* =========================================
   Choose Button
========================================= */

.choose-btn {
    background-color: var(--color-background);

    border: var(--border-color) solid 4px;
    border-radius: 20px;

    padding: 20px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    color: var(--color-text);

    font-size: var(--fs-h5);

    gap: 12px;

    overflow: hidden;

    min-width: 0;
    min-height: 0;
}


/* =========================================
   Choose Button Image Box
========================================= */

.choose-btn-image {
    width: 120px;
    height: 120px;

    flex: 0 0 120px;

    background-color: var(--button-image-bg);

    border-radius: 15px;

    padding: 10px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;
}


/* =========================================
   Choose Button Image
========================================= */

.choose-btn-image img {
    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    display: block;
}


/* =========================================
   Selected
========================================= */

.selected {
    border: 4px solid var(--color-button);
}

.Home-btn:hover,
#backBtn:hover,
#nextBtn:hover,
.rightpaws-button:hover,
.backHome:hover {
    cursor: pointer;
    transform: translateY(-2px);
}


/* =========================================
   Avatar Container
========================================= */

.avatar-container {

    width: 300px;
    height: 300px;

    /* margin: 20px auto; */

    overflow: hidden;
}


/* =========================================
   Avatar Stage
========================================= */

.avatar-stage {

    position: relative;

    width: 300px;
    height: 300px;

    overflow: hidden;

}


/* =========================================
   All Avatar Images
========================================= */

.avatar-stage img {

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;

    transform-origin: center center;

    pointer-events: none;

}


/* =========================================
   Body
========================================= */

#bodyImg {

    left: 0;
    top: 0;

    transform: none;

}


/* =========================================
   Eye / Ear / Tail
========================================= */

#eyeImg,
#earImg,
#tailImg {

    left: 0;
    top: 0;

}

#tailImg {
    z-index: 1;
}


#earImg {
    z-index: 2;
}


#bodyImg {
    z-index: 2;
}


#eyeImg {
    z-index: 4;
}



/* =========================================
   tablet responsive
========================================= */

@media(max-width: 1024px) {
    :root {
        --fs-button: clamp(1.5rem, 1.5vw + 1rem, 2rem);
    }

    /* =========================================
        Button Styles
    ========================================= */
    .Home-btn {
        padding:
            clamp(10px, 0.8vw, 12px) clamp(10px, 0.8vw, 12px) clamp(10px, 0.8vw, 12px) clamp(35px, 4vw, 50px);
    }

    .StartIcon {
        width: clamp(50px, 5vw, 60px);
        height: clamp(50px, 5vw, 60px);
    }

    /* body {
        background: rgb(255, 0, 183);
    } */

    /* .content {
        padding: 10px 20px;
    } */
}

/* =========================================
   phone responsive
========================================= */

@media(max-width: 768px) {
    :root {
        --fs-button: clamp(1.25rem, 1vw + 0.875rem, 1.625rem);
    }

    /* =========================================
        Button Styles
    ========================================= */
    .Home-btn {
        padding:
            clamp(7px, 0.8vw, 12px) clamp(7px, 0.8vw, 12px) clamp(7px, 0.8vw, 12px) clamp(35px, 4vw, 50px);
    }

    .StartIcon {
        width: clamp(40px, 5vw, 50px);
        height: clamp(40px, 5vw, 50px);
    }

}

/* =========================================
   phone background responsive
========================================= */
/* @media(max-width: 480px) {
    body {
        background-image: url("../img/phone-bg.png");
    }
} */