@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@font-face{
  font-family: edo;
  src: url("../fonts/edosz.ttf");
}

@font-face {
    font-family: "Montserrat";
    src: url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap')
}

body {
    background-color: #f8f1ff;
    font-family: "Montserrat";
    font-weight: 500;
    font-size: 22px;
    margin: 0;
    padding: 0px;
}

#content {
    max-width: 1600px;
    margin: 0 auto; /* top and bottom margins are 0, 
        left and right auto sort */   
}

header {
    background-color: rgba(23,42,58,.5);  /*#172a3a*/
    display: grid;
    grid-template-columns: 150px auto;
}

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

.logo {
    width: 80px;
}

nav{
    display:flex;
    justify-content: space-evenly;
    align-items: center;
}

nav a { /*all links in nav are centered*/
    text-decoration: none;
    color:#f8f1ff;
    text-align: center;
    padding: 20px;
}

nav a:hover {
    background-color: #09bc8a;
    color: #172a3a;
    text-align: center;
    text-decoration: none;
}

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

#hero-box { /*just has the hero-img in it*/
    grid-column: 1/4;
    grid-row: 1/3;
    z-index: -1;
    background-color: #f8f1ff;
}

#hero-img { /*same as hero-box id*/
    width: 100%;
}

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

#hero-msg h1, #hero-msg h4 { /*all the words in hero message*/
    text-align: center;
    margin: 25px auto;
}

.home-title { /* hero-msg h1*/
    color: #f8f1ff; /*white*/
    font-family: "edo", 'Rock Salt', sans-serif;
    font-weight: 100;
    font-size: 2em;
    margin-top: 10px;

}

h4 {
    color: #f8f1ff;
    font-family: "Montserrat";
    font-weight: 600;
}

.button-box { /* all button boxes */
    margin: 25px auto;
    text-align: center;
}

main {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
}

main section {/*all sections in main*/
    margin: 0 auto;
}

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

.rivers-card, .camping-card, .rapids-card {
    margin: 200px 0;
    text-align: center;
}

.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;
}

.card-img {
    border: 10px solid #172a3a;
    transition: transform .5s;
    width: 100%;
    box-shadow: 5px 5px 10px #508991;
}

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

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

#background { /*background for end message*/
    height: 725px;
    color: #508991;
    background-color: #09bc8a;
    grid-column: 1/11;
    grid-row: 4/9;
}

.mountains { /* the mountains around the end message*/
    width: 100%;
    grid-column: 2/7;
    grid-row: 5/8;
    box-shadow: 5px 5px 10px #172a3a;

}

.msg { /* this is the end message */
    background-color: #172a3a;
    text-align: center;
    padding: 35px;
    grid-column: 6/10;
    grid-row: 6/7;
    box-shadow: 5px 5px 20px #508991;
}

.msg h2 {
    font-family: edo;
    color: #f8f1ff;
    text-align: center;
}

.msg p {
    color: #f8f1ff;
    padding-bottom: 15px;
    font-size: 16px;
}

.book, .join {
    background-color: #508991;
    color: #f8f1ff;
    text-align: center;
    text-decoration: none;
    font-family: "Montserrat";
    font-weight: 500;
    font-size: 18px;
    padding: 15px 30px;
    margin-top: 50px;
    border-radius: 5px;
}

.book:hover, .join:hover {
    background-color: #172a3a;
    color: #f8f1ff;
    text-align: center;
    text-decoration: none;
}

p{ /*just font*/
    /* p is the second part of end message and all of footer */
    font-family: "Montserrat";
    font-weight: 500;
}

h2 {
    font-family: "edo";
    font-weight: 500;
    margin: 0;
}

footer {
    background-color: #172a3a;
    color: #f8f1ff;
    padding: 25px 50px;
    margin-top: 200px;
    display: flex;
    justify-content: space-around;
    align-items: center;

}

footer a {
    color: #508991;
    text-align: center;
    text-decoration: none;
}

footer a:hover{
    color: #09bc8a;
    text-decoration: underline;
}

footer p {
    font-size: .9em;
}

footer .social img {
    padding-top: 15px;
}

@media screen and (max-width: 900px) {
    #hero, .home-grid {
        display: block;
        height: auto;
    }
    nav, footer {
        /*flex-wrap: wrap;*/
        flex-direction: column;
    }
    header{
        background-color: #172a3a;
        display: grid;
        grid-template-columns: 100px auto;
        grid-template-rows: auto;
    }
    #logo_link {
        grid-column: 1/2;
        justify-self: center;
        align-self: center;
    }
    .logo{
        width: 80px;
        
    }
    nav a {
        display: block;
        padding: 15px;
    }
    #hero-box {
        margin-top: 100px;
    }
    #hero-msg {
        margin-top: 0;
    }
    #hero-msg h4 {
        display: none;
    }
    #hero-msg h1 {
        color: #172a3a;
        font-weight: 700;
        font-size: 2em;
    }
    .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;
    }
}