
/* Week 12 - Parallax Challenge */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #f5f5f0;
}

/* Header */

header {
    background-color: #263b36;
    color: white;
    text-align: center;
    padding: 35px 20px;
}

header h1 {
    font-size: 36px;
    margin-bottom: 5px;
}

header p {
    font-size: 16px;
    color: #d5e5d9;
}

/* Parallax Sections */

.parallax {
    min-height: 90vh;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* First Photo - Mountains */

.mountains {
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.3)
        ),
        url("images/tahoe1.jpg");
}

/* Second Photo - Lake */

.lake {
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.3)
        ),
        url("images/tahoe2.jpg");
}

/* Text on Photos */

.hero-text {
    background-color: rgba(0, 0, 0, 0.55);
    color: white;
    padding: 35px 45px;
    border-radius: 8px;
    max-width: 90%;
}

.hero-text h2 {
    font-size: 40px;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 20px;
}

/* Text Content Sections */

.content {
    background-color: #f5f5f0;
    padding: 90px 25px;
    text-align: center;
}

.content h2 {
    color: #263b36;
    font-size: 30px;
    margin-bottom: 25px;
}

.content p {
    max-width: 750px;
    margin: 0 auto 20px;
    font-size: 18px;
    line-height: 1.9;
}

/* Ending Section */

.ending {
    background-color: #dce8e1;
    text-align: center;
    padding: 75px 20px;
}

.ending h2 {
    color: #263b36;
    font-size: 30px;
    margin-bottom: 15px;
}

.ending p {
    font-size: 18px;
}

/* Footer */

footer {
    background-color: #263b36;
    color: white;
    text-align: center;
    padding: 25px;
    font-size: 14px;
}

/* Mobile */

@media (max-width: 768px) {

    header h1 {
        font-size: 27px;
    }

    .parallax {
        min-height: 75vh;
        background-attachment: scroll;
    }

    .hero-text {
        padding: 25px;
    }

    .hero-text h2 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .content {
        padding: 60px 20px;
    }

    .content h2 {
        font-size: 26px;
    }

    .content p {
        font-size: 16px;
    }
}
