/* Your styles here... */
@import url('https://fonts.googleapis.com/css2?family=Codystar:wght@300;400&family=Lexend:wght@100..900&display=swap');

:root {
    --background-color: #E5E5E5;
    --primary-color: #FDFD02;
    --secondary-color: #E5E5E5;
    --text-color-dark: #222222;
    --text-color-white: #ffffff;
    --font-main-family: "Codystar", sans-serif;
    --font-sub-family: "Lexend", sans-serif;

    .dark-mode {
        --background-color: #222222;
        --primary-color: #FDFD02;
        --secondary-color: #E5E5E5;
        --text-color: #fff;
    }
}

:root {
    /* Perfect Fith */
    /* --size-080: .444rem;
	--size-090: .667rem;
	--size-100: 1rem;		
	--size-200: 1.5rem;
	--size-300: 2.25rem;
	--size-400: 3.375rem;
	--size-500: 5.063rem;
	--size-600: 7.594rem;
	--size-700: 11.391rem;	 */

    /* Perfect Fourth */
    --size-080: .563rem;
    --size-090: .75rem;
    --size-100: 1rem;
    --size-200: 1.333rem;
    --size-300: 1.777rem;
    --size-400: 2.369rem;
    --size-500: 3.157rem;
    --size-600: 4.209rem;
    --size-700: 5.61rem;
    --size-800: 7.48rem;
    --size-900: 9.973rem;
    --size-1000: 13.3rem;

    /* Minor Third */
    /* --size-080: .0694rem;
	--size-090: .0833rem;
	--size-100: 1rem;		
	--size-200: 1.2rem;
	--size-300: 1.44rem;
	--size-400: 1.728rem;
	--size-500: 2.074rem;
	--size-600: 2.488rem;
	--size-700: 2.986rem;	 */

    /* font-weight */
    --weight-100: 100;
    --weight-200: 200;
    --weight-300: 300;
    --weight-400: 400;
    /*regular*/
    --weight-500: 500;
    --weight-600: 600;
    --weight-700: 700;
    /*bold*/
    --weight-800: 800;
    --weight-900: 900;

    /* margin */
    --margin-side-mobile: 16px;
    --margin-side-desktop: 74px;

    /* line-height */
    --line-height-100: 1;
    --line-height-120: 1.2;
    --line-height-130: 1.3;
    --line-height-140: 1.4;


    /* @media screen and (min-width: 400px) {
		font-size: 1.05rem;
	}
	@media screen and (min-width: 600px) {
		font-size: 1.1rem;
	}
	@media screen and (min-width: 800px) {
		font-size: 1.2rem;
	}
	@media screen and (min-width: 1000px) {
		font-size: 1.25rem;
	}
	@media screen and (min-width: 1200px) {
		font-size: 1.3rem;
	}
	@media screen and (min-width: 1400px) {
		font-size: 1.4rem;
	} */
}

a {
    text-decoration: none;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-sub-family);
    margin: 0;
    padding: 0;
    font-size: var(--size-100);
    font-weight: var(--weight-400);
}

.desktop_width {
    @media screen and (min-width: 1050px) {
        position: relative;
        margin: 0;
        padding: 0;
        height: 5100px;
    }
}

/* header */

header {
    margin: var(--margin-side-mobile);
    position: relative;

    h1 {
        font-family: var(--font-main-family);
        font-size: var(--size-600);
    }

    .mobile__menu {
        width: 48px;
        height: 48px;
        background-color: var(--text-color-dark);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 0;
        right: 0;
    }

    .mobile__menu img {
        width: 24px;
        height: 24px;
    }

    nav ul.menu__list {
        display: none;
    }

    @media screen and (min-width: 1050px) {
        display: flex;
        justify-content: space-between;

        .mobile__menu {
            display: none;
        }

        h1 {
            font-size: 12vw;
        }

        nav ul.menu__list {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        nav ul.menu__list li:first-child {
            margin-right: 36px;
        }

    }

    @media screen and (max-width: 460px) {
        h1 {
            font-size: 12vw;
        }
    }
}

/* contents */
.contents__container {
    margin: var(--margin-side-mobile);
    position: relative;

    p {
        max-width: 400px;
        margin-bottom: 12px;
    }


    .left__container {
        min-height: 3550px;
    }

    .me__scroll {
        display: none;
    }

    /* mileage */
    .mileage {
        position: sticky;
        top: 10px;
        background-color: var(--primary-color);
        padding: 10px 20px;
        box-sizing: border-box;
        border-radius: 10px;
        border: 2px solid var(--text-color-dark);
        text-align: center;

        strong {
            font-size: var(--size-300);
            vertical-align: middle;
        }
    }

    @media screen and (min-width: 1050px) {
        display: flex;
        justify-content: space-between;

        .mileage>span:first-child {
            display: block;
        }

        .left__container {
            min-height: 4500px;
        }

        .mileage {
            width: 200px;
        }

        .background__stories {
            margin-bottom: 20px;
        }

        .me__scroll {
            display: block;
            position: relative;

            .me__scroll__line {
                position: absolute;
                top: 0;
                right: 40px;
                display: inline-block;
                height: 4630px;
                border-radius: 8px;
                border-right: 3px dotted #ABABAB;

            }

            .me__scroll__img {
                position: sticky;
                top: 40px;
                right: 0;
            }

            .me__label {
                position: absolute;
                top: -20px;
                left: 50%;
                padding: 5px 10px;
                transform: translateX(-50%);
                text-align: center;
                background-color: var(--primary-color);
                border: 2px solid var(--text-color-dark);
                border-radius: 8px;
                z-index: -1;
            }
        }
    }
}

/* main */
main {
    margin: 0 auto;
    max-width: 600px;
    position: absolute;
    top: 430px;
    left: 50%;
    transform: translateX(-50%);

    @media screen and (min-width: 1050px) {
        top: 550px;
        max-width: 1050px;
    }

    @media screen and (max-width: 460px) {
        top: 390px;
    }
}

.pathway__container {
    text-align: center;
    margin-bottom: 40px;

    .desktop__pathway {
        display: none;
    }

    .trash__container {
        position: relative;
        height: 100%;
        /* width: 500px; */

        @media screen and (min-width: 1050px) {
            height: 100%;
            width: 100%;

            .mobile__pathway {
                display: none;
            }

            .desktop__pathway {
                display: block;
                z-index: -1;
            }
        }
    }
}

/* img */
.img__home {
    width: 300px;

    @media screen and (min-width: 1050px) {
        position: absolute;
        top: -270px;
        right: 100px;
        width: 400px;
        z-index: 1;
    }
}

/* mcdonald's img */
.img__mcdonalds {
    width: 400px;


    @media screen and (min-width: 1050px) {
        position: absolute;
        bottom: 0;
        left: -150px;
        width: 500px;
        z-index: 1;
    }
}

.trash {
    img {
        position: absolute;
        top: 0;
        z-index: 1;
        width: 200px;
    }

    /* individual image */
    img.img__cattower {
        top: 100px;
        right: 30px;
    }

    img.img__tide {
        top: 250px;
        left: 20px;
    }

    img.img__shoe {
        top: 300px;
        left: 80px;
    }

    img.img__storybooks {
        top: 480px;
        right: 70px;
    }

    img.img__shirts {
        top: 520px;
        left: 50px;
    }

    img.img__minecraft {
        top: 650px;
        right: 60px;
        width: 150px;
    }

    img.img__happymeal {
        top: 800px;
        left: 80px;
    }

    img.img__chair {
        top: 850px;
        right: 20px;
        width: 250px;
    }

    img.img__rug {
        top: 1050px;
        left: 70px;
        width: 150px;
    }

    img.img__bag {
        top: 1150px;
        left: 100px;
    }

    img.img__soda {
        top: 1250px;
        right: 60px;
        width: 150px;
        z-index: 2;
    }

    img.img__coke {
        top: 1400px;
        left: 60px;
        width: 150px;
    }

    img.img__bra {
        top: 1500px;
        right: 30px;
        z-index: 2;
    }

    img.img__snack {
        top: 1650px;
        left: 50px;
    }

    img.img__taco {
        top: 1680px;
        right: 50px;
        z-index: 2;
    }

    img.img__seveneleven {
        top: 1800px;
        right: 150px;
    }

    img.img__juice {
        top: 1900px;
        left: 50px;
        width: 150px;
        z-index: 2;
    }

    img.img__starbucks {
        top: 2050px;
        right: 120px;
        width: 150px;
    }

    img.img__lilcaesars {
        top: 2200px;
        left: 60px;
    }

    img.img__berrybox {
        top: 2400px;
        left: 110px;
    }

    img.img__mccoffee {
        top: 2550px;
        right: 110px;
        width: 150px;
    }

    @media screen and (min-width: 1050px) {
        img {
            position: absolute;
            top: 0;
            z-index: 1;
            width: 300px;
        }

        img.img__cattower {
            top: 210px;
            right: 50px;
        }

        img.img__tide {
            top: 500px;
            left: 200px;
        }

        img.img__shoe {
            top: 650px;
            left: 300px;
            width: 250px;
        }

        img.img__storybooks {
            top: 850px;
            right: 130px;
            width: 250px;
        }

        img.img__shirts {
            top: 950px;
            left: 350px;
            width: 250px;
        }

        img.img__minecraft {
            top: 1150px;
            right: 200px;
            width: 150px;
        }

        img.img__happymeal {
            top: 1300px;
            left: 300px;
        }

        img.img__chair {
            top: 950px;
            right: 500px;
            width: 350px;
        }

        img.img__bag {
            top: 1450px;
            left: 0px;
        }

        img.img__rug {
            top: 1150px;
            left: 0px;
            width: 200px;
            z-index: 100;
        }

        img.img__soda {
            top: 1600px;
            right: 500px;
            width: 280px;
        }

        img.img__coke {
            top: 1900px;
            left: 200px;
            width: 300px;
        }

        /*  */
        img.img__bra {
            top: 2200px;
            right: 150px;
        }

        img.img__snack {
            top: 2500px;
            left: 200px;
        }

        img.img__taco {
            top: 2600px;
            right: 250px;
            z-index: 2;
        }

        img.img__seveneleven {
            top: 3000px;
            right: 150px;
        }

        img.img__juice {
            top: 3300px;
            left: 500px;
            width: 250px;
            z-index: 2;
        }

        img.img__starbucks {
            top: 3700px;
            right: 450px;
            width: 250px;
        }

        img.img__lilcaesars {
            top: 3850px;
            left: 500px;
        }

        img.img__berrybox {
            top: 4100px;
            left: 600px;
        }

        img.img__mccoffee {
            top: 4300px;
            right: 200px;
            width: 150px;
        }

    }
}

.trash img:hover {
    cursor: pointer;
    transform: scale(1.2);
    transition: all 0.3s ease-in-out;
}



/* footer */
footer {
    background-color: var(--primary-color);
    text-align: center;
    padding: 30px 0;

    h3 {
        font-size: var(--size-200);
        margin-bottom: 16px;
    }

    button {
        background-color: var(--text-color-dark);
        color: var(--text-color-white);
        padding: 10px 20px;
        border-radius: 5px;
        font-size: var(--size-100);
    }
}

/* overlay */

.overlay {
    position: fixed;
    background-color: var(--primary-color);
    border: 2px solid var(--text-color-dark);
    border-radius: 20px;
    z-index: 20;
    box-sizing: border-box;
    min-width: 320px;
    top: 25px;
    bottom: 25px;
    margin: 0 auto;
    overflow: scroll;
    padding: 16px;
    left: 50%;
    transform: translatex(-50%);

    .close__button {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: var(--primary-color);
        color: var(--text-color-white);
        border-radius: 50%;
        border: 2px solid var(--text-color-dark);
        font-size: var(--size-100);
        z-index: 30;
        width: 48px;
        height: 48px;
    }

    .overlay__gallery img {
        width: 100%;
        height: auto;
        margin: auto;
        border-radius: 10px;
        margin-bottom: 12px;
    }

    .detail__container h2 {
        margin-bottom: 12px;
        font-weight: var(--weight-600);
    }

    .detail__container p {
        margin-bottom: 12px;
    }

    .detail__container p:nth-child(4) {
        font-size: 14px;
    }

    .detail__container .address {
        font-size: 14px;
        text-decoration: underline;
    }

    .detail__container input {
        padding: 10px 20px;
        border-radius: 50px;
        border: 2px solid var(--text-color-dark);
    }

    .detail__container button {
        background-color: var(--text-color-dark);
        color: var(--text-color-white);
        padding: 10px 20px;
        border-radius: 50px;
    }

    @media screen and (min-width: 1050px) {
        top: 50%;
        transform: translate(-50%, -50%);
        bottom: auto;

        .overlay__contents__container {
            margin: auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
            align-items: center;
        }

        .overlay__gallery>img {
            margin-bottom: 0;
        }

    }
}

.cattower__overlay,
.tide__overlay,
.shoe__overlay,
.storybook__overlay,
.tshirts__overlay,
.happymeal__overlay,
.chair__overlay,
.rug__overlay,
.bag__overlay {
    display: none;
}

.overlay__background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-color-dark);
    opacity: 0.5;
    z-index: 10;
    display: none;
}

.no__scroll {
    overflow: hidden;
}