@font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


#services, #testimonials {
    min-height: 300px;
}

body{
    padding: 0;
    margin: 0;
    font-family: "Lato";
    display: flex; /* use flexbox to align the elements */
    flex-direction: column; /* arrange the elements in a column */
    min-height: 100vh; /* set the minimum height of the body to 100% of the viewport height */
}

#header {
    grid-area: header;
}

#services {
    grid-area: services;
}

#testimonials {
    grid-area: testimonials;
}

main{
    flex: 1; /* allow the main element to fill up any remaining space */
}

#container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* divide the container in two equal columns */
    grid-template-rows: auto auto; /* create two rows */
    grid-template-areas:
        "about image"
        "services dates"; /* assign each section to a specific area */
    justify-content: center; /* center the grid horizontally within the container */
    min-height: 90vh;
}

#container {
    margin: 0 10%; /* add equal margins on the left and right sides of the container */
    color: #333;
}

#about p, h1 {
    padding: 20px;
}

#about p, h2 {
    padding: 20px;
}

#coach-image {
    flex: 2;
    padding: 20px;
    max-width: 100%;
}

#navbar {
    list-style-type: none; /* remove bullet points */
    margin: 0; /* remove default margin */
    padding: 0; /* remove default padding */
    overflow: hidden; /* clear floats */
    background-color: #e1e1e1;
    display: flex; /* use flexbox to align the navbar items */
    justify-content: space-between; /* evenly distribute the items along the top of the page */
    align-items: center; /* center the items vertically */
}

#navbar a {
    display: block; /* display links as block elements */
    color: #333; /* set text color */
    text-align: center; /* center align text */
    padding: 14px 16px; /* add padding */
    text-decoration: none; /* remove underline */
}

#navbar li {
    float: left; /* float elements to the left */
}
#navbar li:first-child {
    margin-left: 10%; /* add a margin of 10$ on the left side of the first item */
}
#navbar li:last-child{
    margin-right: 10%; /* add a margin of 20px on the left side of the last item */

}

footer{
    margin-top: auto; /* push the footer to the bottom of the page */
}
footer p {
    margin-left: 20px;
}

@media only screen and (max-width: 600px) {
    #navbar {
      flex-wrap: wrap;
      font-size: 0.7em;
    }
    #navbar a {
      min-width: 100px;
    }
    #coach-image{
        padding: 0;
    }
    #contactme{
        display: none;
    }

    #container {
        grid-template-columns: 1fr;
        grid-template-areas: "image" "about" "services" "dates"; /* assign each section to a specific area */
    }

  }