body {
    background: #a9d6e5;
    color: #1d3557;
    font-family: "Fredoka", sans-serif;
}

/*buttons*/
button {

    background: linear-gradient(#ffd166, #f4a261);
    color: #2d3a3a;
    border: 3px solid #8b5e34;
    border-radius: 18px;
    padding: 15px 40px;

    font-family: "Press Start 2P", sans-serif;
    font-size: 15px;
    font-weight: bold;

    cursor: pointer;
    box-shadow: 0 6px 0 #8b5e34;
    transition: 0.2s;
}

button:hover {
    transform: translateY(-4px);

    box-shadow: 0 12px 0 #8b5e34;

    transition: .2s;
}

.start {
    position: absolute;
    top: 65%;
    left: 25%;
    padding: 15px 25px;
}

.play {
    position: absolute;
    top: 77%;
    left: 25%;

}

.profile {
    position: absolute;
    top: 89%;
    left: 25%;
    padding: 15px 20px;

}

.back {
    position: absolute;
    bottom: 10px;
    left: 20px;
    padding: 10px 30px;
    font-family: "Press Start 2P", sans-serif;
}

.card {
    max-width: 700px;
    width: 90%;
    margin: 30px auto;
    background-color: #f9dbbd;
    border: 3px solid #e2711d;
    border-radius: 20px;

    padding: 30px 40px;

    font-family: "Fredoka", sans-serif;
    color: #1d3557;
    transform: rotate(-1deg);
    box-shadow: 0 8px 8px #8b5e34;
}


.card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 8px #8b5e34,
        0 15px 30px rgba(0, 0, 0, .15);

    transition: .25s;
}

.cat {
    width: 150px;
    border: 1px solid rgb(54, 53, 53);
    border-radius: 12px;
    padding: 5px;
}

h1 {
    font-size: 45px;
    color: #1d3557;
    font-family: "Fredoka", sans-serif;
}

h2 {
    font-size: 30px;
    color: #c58b56;
    font-family: "Fredoka", sans-serif;
    display: inline;
}

h3 {
    font-size: 20px;
    color: #1d3557;
    font-family: "Fredoka", sans-serif;
}

span {
    margin-left: 220px;
}

/*map*/

.map {
    position: relative center;
    width: 100%;

    margin: auto;
    height: 550px;
    border: 2px solid rgb(26, 92, 26);
    border-radius: 25px;
}

.home {
    position: absolute;
    left: 200px;
    top: 200px;
    border: 2px solid rgb(23, 89, 23);
    border-radius: 25px;

    width: 180px;
    height: 180px;

}

.home:hover {
    transform: scale(1.09);
    transition: 0.2s;
    cursor: pointer;
}

.library {
    position: absolute;

    top: 430px;

    left: 300px;

    border: 2px solid rgb(23, 89, 23);
    border-radius: 25px;

    width: 180px;
    height: 180px;
}

.library:hover {
    transform: scale(1.09);
    transition: 0.2s;
    cursor: pointer;
}

.supermarket {
    position: absolute;

    bottom: 200px;

    left: 880px;

    border: 2px solid rgb(23, 89, 23);
    border-radius: 25px;

    width: 180px;
    height: 180px;
}

.supermarket:hover {
    transform: scale(1.09);
    transition: 0.2s;
    cursor: pointer;
}

.school {
    position: absolute;
    bottom: -20px;

    left: 700px;
    border: 2px solid rgb(23, 89, 23);
    border-radius: 25px;

    width: 180px;
    height: 180px;
}

.school:hover {
    transform: scale(1.09);
    transition: 0.2s;
    cursor: pointer;
}

.park {

    position: absolute;

    bottom: 220px;

    left: 550px;

    border: 2px solid rgb(23, 89, 23);
    border-radius: 25px;

    width: 180px;
    height: 180px;


}

.garden:hover {
    transform: scale(1.09);
    transition: 0.2s;
    cursor: pointer;
}

.background {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.mission-box {
    width: 650px;
    margin: 20px auto;

    background: #f9dbbd;
    border: 3px solid #e2711d;
    border-radius: 18px;

    padding: 15px 25px;

    text-align: center;

    box-shadow: 0 6px 0 #8b5e34;
}

.mission-box h3 {
    margin: 0 0 10px;
    font-family: "Fredoka", sans-serif;
}

.mission-box p {
    margin: 0;
    font-size: 18px;
}

.background {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;

}

.mapo {
    position: absolute;

    left: 20px;
    padding: 10px 20px;
}

/*message*/
.popup {
    display: none;
    position: absolute;
    top: -75px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    font-family: "Press Start 2P", sans-serif;
    background: #fff6dc;
    color: #4b3524;
    border: 3px solid #8b5e34;
    border-radius: 18px;
    padding: 12px 16px;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 6px 0 #8b5e34;
    z-index: 100;

}

.popup::after {
    content: "";

    position: absolute;

    bottom: -12px;
    left: 50%;

    transform: translateX(-50%);

    border-width: 12px 12px 0;
    border-style: solid;

    border-color: #fff6dc transparent transparent transparent;
}

/* inside home */
.go {
    position: absolute;
    top: 35%;
    left: 53%;
    width: 235px;
    height: 350px;
    transform: translate(-50%, -50%);

}

.door1 {
    position: absolute;
    top: 15%;
    left: 65%;
    width: 150px;
    height: 300px;

}

.picture {
    position: absolute;
    top: 50%;
    left: 93%;
    width: 70px;
    height: 70px;


}

.staff {
    position: absolute;
    top: 15%;
    left: 20%;
    width: 300px;
    height: 350px;
}

.clothes {
    position: absolute;
    top: 15%;
    left: 1%;
    width: 200px;
    height: 350px;
}

/* outside home */
.ball {
    position: absolute;
    top: 70%;
    left: 35%;
    width: 150px;
    height: 50px;

}

.food {
    position: absolute;
    top: 65%;
    left: 14%;
    width: 150px;
    height: 100px;

}

.door {
    position: absolute;
    top: 15%;
    left: 33%;
    width: 170px;
    height: 250px;


}

.plants {
    position: absolute;
    top: 15%;
    left: 50%;
    width: 400px;
    height: 250px;

}

.paws {
    position: absolute;
    top: 65%;
    left: 60%;
    width: 200px;
    height: 200px;

}

/* park  */
.feather {
    position: absolute;
    top: 82%;
    left: 18%;
    width: 120px;
    height: 60px;
    transform: translate(-50%, -50%);

}

.tona {
    position: absolute;
    top: 85%;
    left: 53%;
    width: 80px;
    height: 60px;
    transform: translate(-50%, -50%);

}

.Collar {
    position: absolute;
    top: 90%;
    left: 60%;
    width: 100px;
    height: 60px;
    transform: translate(-50%, -50%);

}

.bench {
    position: absolute;
    top: 55%;
    left: 20%;
    width: 300px;
    height: 100px;
    transform: translate(-50%, -50%);

}

.fountain {
    position: absolute;
    top: 35%;
    left: 70%;
    width: 400px;
    height: 200px;
    transform: translate(-50%, -50%);

}

.grass {
    position: absolute;
    top: 75%;
    left: 80%;
    width: 400px;
    height: 150px;
    transform: translate(-50%, -50%);

}

/* supermarket */
.paper {
    position: absolute;
    top: 26%;
    left: 8%;
    width: 120px;
    height: 110px;
    cursor: pointer;

    z-index: 1000;

}

#clue {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    z-index: 999;

    background: white;

    padding: 5px;

    border-radius: 20px;

    border: 4px solid #8b5e34;

}

#clue img {
    width: 500px;

}

#close {
    position: absolute;

    bottom: 15px;
    left: 15px;

    padding: 10px 18px;

    font-size: 12px;

    font-family: "Press Start 2P", sans-serif;
}

.tona1 {
    position: absolute;
    top: 82%;
    left: 50%;
    width: 200px;
    height: 100px;

}

.book {
    position: absolute;
    top: 84%;
    left: 29%;
    width: 100px;
    height: 60px;


}

.backpack {
    position: absolute;
    top: 75%;
    left: 17%;
    width: 150px;
    height: 200px;

}

.bear {
    position: absolute;
    top: 40%;
    left: 60%;
    width: 100px;
    height: 100px;

}

.Toy {
    position: absolute;
    top: 70%;
    left: 5%;
    width: 100px;
    height: 80px;

}

/*library*/

.books {
    position: absolute;
    top: 15%;
    left: 25%;
    width: 200px;
    height: 200px;

}

.books1 {
    position: absolute;
    top: 15%;
    left: 50%;
    width: 200px;
    height: 200px;

}

.paw {
    position: absolute;
    top: 62%;
    left: 50%;
    width: 350px;
    height: 180px;

}

.door2 {
    position: absolute;
    top: 15%;
    left: 80%;
    width: 150px;
    height: 220px;
}

/*school*/
.garden {
    position: absolute;
    top: 15%;
    left: 65%;
    width: 150px;
    height: 180px;

}

.paw1 {
    position: absolute;
    top: 45%;
    left: 65%;
    width: 100px;
    height: 300px;



}

.bag {
    position: absolute;
    top: 70%;
    left: 40%;
    width: 150px;
    height: 150px;

}

.ball1 {

    position: absolute;
    top: 73%;
    left: 14%;
    width: 75px;
    height: 65px;

}

.bikes {
    position: absolute;
    top: 40%;
    left: 25%;
    width: 270px;
    height: 150px;


}

/*school's park*/
.ginger {
    position: absolute;
    top: 45%;
    left: 60%;
    width: 250px;
    height: 200px;


}
/* Mobile map layout */
@media (max-width: 600px) {
    .mission-box {
        width: 94%;
        box-sizing: border-box;
        margin: 10px auto 20px;
        padding: 12px;
    }

    .mission-box h3 {
        font-size: 15px;
        line-height: 1.5;
        overflow-wrap: break-word;
    }

    .mission-box p {
        margin: 0;
    }

    .map {
        display: block;
        width: 100%;
        height: 420px;
        box-sizing: border-box;
        margin: 20px auto;
    }

    .home,
    .library,
    .supermarket,
    .school,
    .park {
        width: 100px;
        height: 100px;
        box-sizing: border-box;
    }

    .home {
        left: 4%;
        top: 40%;
    }

    .library {
        left: 5%;
        top: 80%;
    }

    .supermarket {
        left: 64%;
        bottom: 40%;
    }

    .school {
        left: 64%;
        bottom: 5%;
    }

    .park {
        left: 38%;
        bottom: 25%;
    }

    .mapo {
        display: block;
        margin: 15px auto;
    }
}
