/* General Page Styles */

@import url('https://fonts.googleapis.com/css2?family=Merriweather&family=Source+Sans+3&display=swap');

.home-title {
    font-family: 'Merriweather', 'Source Sans 3', sans-serif;
    font-size: 2em;
}

body {
    background-color: #fcfbfb; 
    font-family: 'Merriweather', 'Source Sans 3', sans-serif;
    font-size: 22px;
    margin: 0;
    padding: 0;
}

h2 {
    margin: 0;
}

#content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background-color: #141e0db3;
    display: grid;
    grid-template-columns: 150px auto;
}

/* Navigation */
nav a {
    text-align: center;
    color: antiquewhite;
    text-decoration: none;
    padding: 35px;
    display: flex;
    justify-content: space-around;
}

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

/* Hero Section */
#hero-msg h1, #hero-msg h4 {
    text-align: center;
    color: white;
    grid-column: 2/3;
    grid-row: 1/2;
    margin-top: 100px;
    text-shadow: 8px 8px 16px rgba(0, 0, 0, 1.7);
}

#hero-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    grid-column: 1 / 4;
    grid-row: 1 / 3;
    z-index: 1;
    text-align: center;
    padding: 20px;
}


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

#hero-img {
    width: 100%;
}

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

/* Button Box */
.button-box {
    text-align: center;
    padding: 20px;
}

/* Main Section */
main {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(9, auto);
    gap: 20px;
}

main section {
    text-align: center;
    margin-bottom: 40px;
}

.card-img {
    border: 10px solid #d9c2a3;
    display: block;
    margin: 0 auto;
    width: 100%;
    transition: transform .5s;
    box-shadow: 5px 5px 10px #596054;
}

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

.icon {
    margin-top: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50px;
    height: auto;
}

main section img {
    box-sizing: border-box;
    margin: 15px;
}

/* Background */
#background {
    height: 725px;
    background-color: #5A876F;
    grid-column: 1 / 11;
    grid-row: 4 / 9;
}

/* Logo */
.logo {
    width: 80px;
    padding-top: 35px;
}

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

/* Title and Text Styling */
.home-title, h4 {
    color: black;
    line-height: 1.5em;
    margin-top: 10px;
}

/* Button Styles */
.book, .join {
    background-color: #596054;
    color: antiquewhite;
    text-decoration: none;
    padding: 15px 30px;
    margin-top: 50px;
    border-radius: 5px;
}

.book:hover, .join:hover {
    background-color: #FFDCE3;
    color: black;
}

/* Message Box */
.msg {
    background-color: #141e0db3;
    padding: 35px;
    grid-column: 6 / 10;
    grid-row: 6 / 7;
    box-shadow: 5px 5px 10px #FFDCE3;
}
#hero-msg h1 {
    color: #63A46C;
    font-size: 3em;
    font-weight: 900;
    text-align: center;
    -webkit-text-stroke: 0.5px black;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    margin-bottom: 10px;
}

#hero-msg h4 {
    color: #63A46C;
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    -webkit-text-stroke: 0.3px black;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin-top: 0;
}

.msg h2, .msg p {
    color: antiquewhite;
    padding-bottom: 15px;
}

/* Footer */
footer {
    background-color: #141e0db3;
    color: antiquewhite;
    padding: 25px 50px;
    margin-top: 200px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

footer a {
    color: antiquewhite;
    text-decoration: none;
}

footer a:hover {
    color: antiquewhite;
}

footer p {
    font-size: 1.2em;
}

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

/* Grid Positioning for Cards and Elements */
.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;
}

.mountains {
    grid-column: 2 / 7;
    grid-row: 5 / 8;
    width: 100%;
    box-shadow: 5px 5px 10px #596054;
}

.rivers-page-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;       
    padding: 20px;
}


.rivers-page-main section {
    width: 90%;
    max-width: 900px;
}
@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;
    }
    #hero-msg h1 {
        color: #6f7364;
    }
    .home-title {
        font-size: 25px;
    }
    .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;
    }
}
            