/* General Styles */
body {
    background-color: #fcfbfb;
    font-family: Raleway, Arial, sans-serif;
    font-size: 16px; /* I kept the font-size from the first code */
    margin: 0;
    padding: 0;
}

h2 {
    margin: 0;
}

/* Header Grid */
header {
    background-color: rgba(20, 30, 13, 0.7);
    display: grid;
    grid-template-columns: 150px auto;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-around;
}

    nav a {
        text-align: center;
        color: #fcfbfb;
        text-decoration: none;
        padding: 35px;
    }

        nav a:hover {
            background-color: black;
        }

#logo_link {
    padding-top: 5px;
    justify-self: center;
    align-self: center;
}

/* Hero Grid */
#hero {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    margin-top: -100px;
}

#hero-box {
    grid-column: 1/4;
    grid-row: 1/3;
    z-index: -1;
}

#hero-msg h1, #hero-msg h4 {
    text-align: center;
}

#hero-msg {
    grid-column: 2/3;
    grid-row: 1/2;
    margin-top: 100px;
}

#hero-img {
    width: 100%;
}

.button-box, main section {
    text-align: center;
}

/* Main Grid */
.home-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
}

.card-img, .mountains {
    width: 100%;
    box-shadow: 5px 5px 10px #6f7364;
}

.rivers-card, .camping-card, .rapids-card {
    margin: 50px auto;
    width: 60%;
}

.rivers-card {
    grid-column: 2/4;
    grid-row: 2/3;
}

.camping-card {
    grid-column: 5/7;
    grid-row: 2/3;
}

.rapids-card {
    grid-column: 8/10;
    grid-row: 2/3;
}

#background {
    height: 725px;
    background-color: rgba(20, 30, 13, 0.7);
}

.mountains {
    grid-column: 2/7;
    grid-row: 5/8;
}

.msg p {
    font-family: 'Rock Salt', 'Bradley Hand', sans-serif;
    font-size: 0.8em;
    padding-bottom: 15px;
}

.msg {
    background-color: #6f7364;
    line-height: 1.5em;
    padding: 35px;
    grid-column: 6/10;
    grid-row: 6/7;
    box-shadow: 5px 5px 10px #6f7364;
}

/* Footer Layout */
footer {
    background-color: #6f7364;
    padding: 25px;
    margin-top: 200px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

    footer a {
        text-align: center;
        color: #fcfbfb;
        text-decoration: none;
        padding: 50px;
    }

    footer p {
        font-size: 1.2em;
        padding-top: 15px;
    }

        footer p a:hover {
            text-decoration: underline;
        }

/* Hover Effect for Card Images */
.card-img {
    border: 10px solid #d9c2a3;
    transition: transform 0.5s;
}

    .card-img:hover {
        opacity: 0.6;
        transform: scale(1.1);
    }

/* Responsive Design */
@media screen and (max-width: 900px) {
    #hero, .home-grid {
        display: block;
        height: auto;
    }

    nav, footer {
        flex-direction: column;
    }

        nav a {
            display: block;
            padding: 15px;
        }

    #hero {
        margin-top: 0;
    }

    #hero-msg {
        margin-top: 0;
    }

        #hero-msg h4 {
            display: none;
        }

    .home-title {
        font-size: 25px;
        color: #6f7364;
    }

    .rivers-card, .camping-card, .rapids-card {
        margin: 50px auto;
        width: 60%;
    }

    #background {
        display: none;
    }

    .mountains, .msg {
        width: 80%;
        display: block;
        margin: 0 auto;
    }

    footer {
        margin-top: 25px;
    }

    #content {
        width: 1600px;
        margin: 0
    }
}

/* Additional Styles from Second Code */
.book, .join {
    text-align: center;
    color: #fcfbfb;
    text-decoration: none;
    padding: 15px;
    margin-top: 50px;
    border-radius: 5px;
    font-size: 18px;
    font-family: 'Rock Salt', 'Bradley Hand', sans-serif;
}

    .book:hover {
        background-color: black;
    }

    .join:hover {
        background-color: black;
    }

.msg {
    font-size: 22px;
}

.icon {
    width: 80px;
    padding-top: 10px;
}

main section img {
    box-sizing: border-box;
}

#content {
    width: 1600px;
    margin: 0 auto;
}
