html  {
    font-size: 130%;
    /* sets the base font size for the document */
}
body {
    background-color: #aa9f4f;
    /* sets the background for the entire page */
    margin: 0;
    /* makes sure the page has no margins */
}
h1 {
    text-align: left;
    /* aligns the text to the left */
    font-family: 'Cantata One', serif;
    /* sets the font family for the header */
    font-size: 150%;
    /* sets the font size for the header */
    line-height: 1rem;
    /* sets the line height of the header */
    color: #fcfaed;
    /* sets the color of the header */
}
h2, h3, h4, h5, h6 {
    /* styles all of the remaining headers for SEO purposes */
    text-align: center;
    /* aligns text to the center */
    font-family: 'Cantata One', serif;
    /* sets the font family */
    font-size: 90%;
    /* sets the font size */
    color: #aa9f4f;
    /* sets the color */
}
p {
    text-align: left;
    /* aligns the text to the left */
    font-family: 'Cantata One', serif;
    /* sets the font family */
    font-size: 80%;
    /* sets the font size */
    color: #e0daba;
    /* sets the font color */
}
a {
    text-decoration: none;
    /* removes the underline from all links */
}
.wrapper {
    display: flex;
    /* turns wrapper into a flexbox */
    flex-flow: row nowrap;
    /* tells the flexbox which direction to display and not to wrap */
    height: 100vh;
    /* sets the height of the div to 100% of the viewport height */
    width: 100vw;
    /* sets the width of the div to 100% of the viewport width */
    margin: 0;
    /* removes any margins */

}
.image {
    background-color: #e0daba;
    /* sets the background color of the div */
    text-align: center;
    /* aligns content in the div to the center */
    z-index: 5;
    /* tells the browser to display this div above others if they overlap */
    width: 60%;
    /* sets the width of the div */
    height: 100vh;
    /* sets the height of the div to 100% of the viewport height */
}
img {
    height: 95vh;
    /* sets the height of the image to 95% of the viewport height */
    width: auto;
    /* automatically rescales the height to match the width */
    z-index: 2;
    /* tells the browser to display the image in front of elements with a default z-index should they overlap */
    pointer-events: none;
    /* makes the image isn't clickable so it doesn't block the button if they overlap */
}
.content {
    background-color: #e0daba;
    /* sets the background color of the div */
    display: flex;
    /* makes the div into a flexbox */
    flex-flow: row wrap;
    /* sets the direction and wrapping properties of the flexbox */
    width: 40%;
    /* sets the width of the div */
}
.space {
    height: 0;
    /* sets the height of the div to 0 so it won't effect the layout on smaller viewports */
    width: 15%;
    /* sets the width of the div */
}
.text-container {
    background-color: #aa9f4f;
    /* sets the background color */
    padding: 5%;
    /* adds some padding to the div */
    width: 50%;
    /* sets the width of the div */
    height: 70%;
    /* sets the height of the div */
    display: flex;
    /* makes the divinto a flexbox */
    flex-flow: column nowrap;
    /* sets the direction of the flexbox and tells it not to wrap */
    justify-content: flex-end;
    /* aligns content to the end (bottom) of the flexbox */
    
}
.text {
    width: 100%;
    /* sets the width of the div */

}
.button {
    height: 4.5rem;
    /* sets the height of the button by default */
    width: 4.5rem;
    /* sets the width of the button by default */
    border-radius: 100px;
    /* curves the edges of the div to make it a circle */
    z-index: 6;
    /* sets the button to display in front of other items with lower z-indices */
    background-color: #e0daba;
    /* sets the background color by default */
    line-height: 3rem;
    /* lets the line height of the text to center it vertically */
    margin-top: 4%;
    /* adds some space between the text and the button */
    margin-left: auto;
    /* helps center the button */
    margin-right: auto;
    /* helps center the button */
    transition: width 1s, height 1s, line-height 1s, background-color 1s;
    /* sets the transition times for a bunch of properties */
}
.button:hover {
    /* psuedo class that styles the button when the mouse is over it */
    height: 5.5rem;
    /* sets the height of the button on hover */
    width: 5.5rem;
    /* sets the width of the button on hover */
    line-height: 4rem;
    /* sets the line height of the button on hover */
    background-color: #fcfaed;
    /* sets the background color of the button on hover */
}
@media (max-width: 1300px) {
    /* activates this code when the viewport is less than 1300px */
    .text-container { 
        padding: 7%;
        /* adds more padding when the viewport is smaller */
    }

}
@media (max-width: 950px) {
    /* activates this code when the viewport is less than 950px */
    /* I used 950 instead of the standard 768 because it looks better for my site */
    .wrapper {
        flex-flow: column nowrap;
        /* changes the flex direction */
        height: 100vh;
        /* sets the div height to 100% of the viewport height */
        width: 100vw;
        /* sets the div width to 100% of the viewport width */
    }
    .image {
        width: 100%;
        /* sets the div width */
        height: 65vh;
        /* sets the div height to 65% of the viewport height */
    }
    .content {
        width: 100%;
        /* sets the div width */
        background-color: #aa9f4f;
        /* sets the background color of the div */
    }
    .text-container {
        width: 100%;
        /* sets the width of the div */
        padding: 5%;
        /* adds some padding */
        flex-flow: row wrap;
        /* change the flexbox direction */
        justify-content: space-around;
        /* arranges the elements with equal space around them */
        margin-bottom: 3%;
        /* gives the div a little space at the bottom */
    }
    .text {
        margin-top: 0;
        /* makes sure there is no top margin */
        width: 75%;
        /* sets the width of the div */
    }
    .button {
        margin-top: auto;
        /* helps center the div */
        margin-bottom: auto;
        /* helps center the div */
    }
    img {
        width: 100%;
        /* sets the width of the image */
        height: auto;
        /* sets the height of the image to match the width*/
        max-height: 65vh;
        /* makes sure the image doesn't get larger than the div */
        object-fit: cover;
        /* tells the browser to crop parts of the image that are outside of the frame */
        object-position: center bottom;
        /* aligns the crop of the image */
    }
}

@media (max-width: 600px) {
    /* applies the code when the viewport is under 600px. A standard breakpoint */
    .text {
        margin-top: 0;
        /* makes sure there is no top margin */
        margin-bottom: 3%;
        /* gives a little margin on the bottom */
        width: 100%;
        /* sets the width of the div */
    }
}