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

html {
    background-image: url(../images/pawprint_background.jpg);
    background-repeat: repeat;
    background-attachment: fixed;
}

body {
    font-family: sans-serif;
    font-size: 100%;
    max-width: 1200px;
    background-color: whitesmoke;
    margin: 0 auto;
    border: 3px solid tan;
    box-shadow: 3px 3px 12px 3px rgb(66, 38, 25);
}

header {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-bottom: 3px solid tan;
    padding: .5em;
}

header img {
    max-width: 150px;
}

header h2 {
    font-family: "Indie Flower", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 300%;
    margin-bottom: 3px;
}


#nav_menu {
    border-top: 3px solid tan;
    border-bottom: 3px solid tan;
    background-color: tan;
}

#nav_menu ul {
    list-style: none;
    display: flex;
}

#nav_menu li {
    width: 20%;
}

#nav_menu a {
    text-align: center;
    display: block;
    padding: .7em 0;
    background-color: tan;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

#nav_menu a:hover {
    color: black;
    background-color: rgb(253, 237, 217);
}

main {
    padding: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* SECTION */
section {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 50%;
    padding-bottom: 10px;
}
section h2 {
    padding-bottom: 10px;
    color: rgb(90, 67, 38);
}
section .imagecarousel {
    position: relative;
    width: 400px;
}
section .image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 3px solid tan;
}
section .image {
    display: none;
}
section .image:first-of-type {
    display: block;
}
/* arrows */
section .prev,
section .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: whitesmoke;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}
section .prev {
    left: 10px;
}

section .next {
    right: 10px;
}
section .prev:hover,
section .next:hover {
    background-color: rgb(53, 45, 35);
    cursor: pointer;
    color: rgb(251, 215, 167);
}
/* dots */
section .dots {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
section .dot {
    width: 10px;
    height: 10px;
    background-color: silver;
    border-radius: 50%;
    cursor: pointer;
}
section .active {
    background-color: tan;
}
.fadeout {
    animation: fade 2000ms;
}
@keyframes fade {
    from {
        opacity: .2
    }

    to {
        opacity: 1
    }
}

/* INFO */
#info p {
    line-height: 23px;
    padding-bottom: 10px;
    text-indent: 2em;
    color: rgb(90, 67, 38);
}

/* RETURN TO TOP BUTTON */
#cornerBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgb(253, 237, 217, 0.5);
    border: 2px solid rgb(90, 67, 38);
    border-radius: 10px;
    color: rgb(90, 67, 38);
    padding: 5px 3px;
}
#cornerBtn:hover {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgb(209, 164, 106);
    border-radius: 10px;
    color: rgb(209, 164, 106);
    padding: 5px 3px;
    cursor: pointer;
}

/* FOOTER */
footer {
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(45deg, tan 0%, white 50%, tan 100%);
    align-items: center;
    padding: 1em;
}
footer img {
    max-width: 50px;
}

#mobile_menu {
    display: none;
}

@media (max-width: 767px) {
    #nav_menu {
        display: none;
    }

    #mobile_menu {
        display: block;
        border-bottom: 2px solid tan;
    }

    header {
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    main {
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    section {
        max-width: 100%;
    }
}