@import url('https://fonts.googleapis.com/css2?family=Caveat+Brush&family=Caveat:wght@400;500;600;700&display=swap');

html {
    overflow-x: hidden;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Caveat';
    font-weight: 500;
    background-color: #FFFDED;
    color: #2e2e2e;
    transition: background-color 1s ease-in-out;
    height: 100vh;
}

.no-scroll
{
    overflow: hidden;
}

.absolute {
    position: absolute;
    opacity: 1;
    transition: opacity 2s;
}

.sun {
    transform: translate(-20%, -41%);
}

.flower.f1 {
    top: 16vh;
    left: 0;
    margin-left: -14%;
}

.flower.f2 {
    right: 0;
    top: 0;
    margin-right: -14%;
    margin-top: -6%;
}

.flower.f3 {
    right: 0;
    top: 46vh;
    margin-right: -10%;
}

.birds {
    right: 20vw;
    top: 8vh;
    rotate: -10deg;
}

.section {
    height: 100vh;
    overflow: -moz-hidden-unscrollable;
    overflow: hidden;
    position: relative;
}

.pre-answer {
    font-size: 1.4rem;
    padding: 0 2.4rem;
    opacity: 0;
    transition: opacity 3s ease-in-out;
}

.final-answer {
    font-family: 'Caveat Brush', cursive;
    font-size: 56px;
    opacity: 0;
    transition: opacity 4s ease-in-out;
}

.post-answer {
    opacity: 0;
    font-size: 1.4rem;
    transition: opacity 5s ease-in-out;
}

.fade-in
{
    opacity: 1;
}

.answer {
    height: 50vh;
    display: grid;
    text-align: center;
    align-content: end;
    padding: 2rem 2rem;
    gap: 0.2rem;
    position: relative;
    z-index: 19;
}

.section:not(:nth-child(1)) {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 3.5rem;
    align-content: space-around;
    justify-content: space-between;
    text-align: center;
    padding: 1rem;
    height: fit-content;
}

div.section:nth-child(2) {
    height: 100vh;
}

.hero header {
    height: 50vh;
    display: grid;
    /* position: relative; */
    /* z-index: 10; */
    align-content: end;
    justify-content: center;
    font-family: 'Caveat Brush', cursive;
    font-size: 56px;
    transition: opacity 1s ease-in-out;
}

.fade-away {
    opacity: 0;
}



.spacer::after {
    content: '?';
    display: block;
    text-align: center;
    font-family: 'Caveat Brush', cursive;
    font-size: 6rem;
    padding: 4rem;
}


.arrow::after {
    content: '↓';
    display: block;
    text-align: center;
    font-family: 'Caveat Brush', cursive;
}

.graphics {
    height: 50vh;
    position: relative;
    width: 100%;
}

.trees {
    position: absolute;
    bottom: 0px;
    z-index: 1;
    width: 100%;
    transition: filter 1.5s ease-in, opacity 1s ease-in-out;
}

.bench {
    position: absolute;
    bottom: 0px;
    width: 100%;
    z-index: 5;
}


.character {
    height: 250px;
    object-fit: contain;
    cursor: pointer;
}

.message {
    height: fit-content;
    transition: height 1s, opacity 5s;
    background: beige;
    padding: 0.5rem 0.2rem;
    border: 4px dotted goldenrod;
    border-radius: 12px;
}


.collapsed {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: height 2s, opacity 2s;

}

.cat {
    width: 50%;
    position: relative;
    cursor: pointer;
}

img.cat:nth-child(2) {
    left: 50%;
}

img.cat:nth-child(3) {
    top: -70px;
    z-index: 3;
}

.pigeon {
    width: 50%;
    margin: 0 auto;
}


img.cat:nth-child(4) {
    top: -100px;
    left: 100%;
    transform: translate(-100%, 0);
    rotate: 10deg;
    width: 75%;
}



.modal {
    height: 50vw;
    width: 90vw;
    margin: 0 auto;
    position: fixed;
    background: aliceblue;
    top: 50%;
    transform: translate(0, -50%);
    display: grid;
    place-content: center;
    padding: 1rem;
    font-size: 2.5rem;
    background: #fffded;
    border-radius: 15px;
    box-shadow: 0px 0px 12px -4px gray;
    opacity: 1;
    transition: opacity 0.2s, height 0.2s;
    z-index: 12;
}

.modal.hidden {
    opacity: 0;
    height: 0px;
    visibility: hidden;
}




.canvas {
    font-size: 2rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: start;
    gap: 1rem;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    position: relative;
}

.canvas>img:nth-child(1) {
    top: 0;
    left: 0;
    /* transform: translate(-20%, 0%); */
    margin-left: -10%;
    transform: none;
}


.canvas>img:nth-child(2) {
    left: 0;
    bottom: 15%;
    margin-left: -10%;
    /* transform: translate(-50%, 30%); */

}

.canvas>img:nth-child(3) {
    right: 0;
    /* transform: translate(40%, -20%); */
    top: 0;
    margin-right: -14%;
}

.metro {
    position: relative;
    right: -2rem;
    cursor: pointer;
}






.row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 1rem 0;
}

.full-height {
    min-height: 100vh;
    display: grid;
    place-content: center;
    font-size: 3.5rem;
    padding: 1rem;
    text-align: center;
}

.full-height header {
    font-size: 3rem;
}

.barbie {
    font-size: 2rem;
}

.barbie::before {
    content: "You are my";
    display: block;
    padding-bottom: 2rem;
    font-size: 2rem;
}

.barbie::after {
    content: "and always will be";
    display: block;
    padding-top: 2rem;
    font-size: 2rem;
}


div.full-height:nth-child(20) {
    align-content: space-around;
}


#answer-link {
    padding: 1rem 0;
    cursor: pointer;
    user-select: none;
}


.footer.section {
    background: beige;
    padding: 1rem;
    font-size: 1.2rem;
}

a.answer-link {
    color: unset;
}


/* typography  */
.poem {
    font-size: 1.2rem;
    padding: 1rem;
}

.sub-head {
    font-size: 2.2rem;
}

.message {
    font-size: 25px;
}

header {
    font-family: 'Caveat Brush', cursive;
    font-size: 32px;
    padding: 2rem 0;
}

/* Media query for larger screens */
@media (min-width: 768px) {
    body {
        font-size: 18px;
    }
}