:root { /* root allows definition of variables and settings for the whole page */
    --header-height: 120px; /* this is used to properly scale things depending od the height of the header */
    font-family: Arial, Helvetica, sans-serif;
    scroll-behavior: smooth;
    scroll-padding-top: 150px;
}

b {
    font-weight: 600;
}

.background {
    position: fixed; /* This keeps the background in plac while the page scrolls */
    height: 100%; /* fill screen */
    width: 100%; /* fill screen */
    z-index: 0; /* z-index is just how "deep" the thing is. 0 keeps it at the back */
    background-color: #007fff;
    background-color: #235a2d;
    /*background-image: url("../img/forest.png"); /* loads an image */
    background-size: cover; /* scales image to cover the whole container */
}

.header-main {
    position: fixed;
    width: 100%;
    height: var(--header-height);
    background-color: #0df;
    background-color: #57cc40;
    display: flex;
    flex-wrap: nowrap; /* This stops things wrapping to the next line */
    z-index: 2;
    text-align: center;
}

.specialties {
    position: absolute;
    margin-left: var(--header-height);
    padding: 10px;
}

.header-main h1 {
    left: 50%; /* This moves the left of the title to halfway across the screen */
    transform: translateX(-50%); /* this move the title to the left by half of its OWN length */
    margin-top: calc(var(--header-height) / 5); /* a margin is invisble spacing, this moves the title away from the top of
                                                    the screen slightly */
    position: absolute; /* this makes the title ignore the styling of everything around it */
    text-align: center;
    font-size: 36px;
    font-weight: 600; /* make it bold */
}

.logo {
    left: 0;
    height: 100%;
}

.nav-bar {
    background-color: #ff007b;
    background-color: unset;
    height: 40px;
    width: fit-content;
    align-self: flex-end; /* align the nav bar to the bottom of header */
    display: flex;
    text-align: center;
    justify-content: center;
    width: calc(100% - (var(--header-height) * 2)); /* little bit of maths to make it the same
                                                        width as the wrapper */
}

.nav-bar div {
    background-color: #d9ff00;
    background-color: #98eb9b;
    height: 100%;
    width: 110px;
    text-align: center;
    margin: 0 2px 0 2px; /* adds a bit of spacing between each button */
    border-bottom: 5px solid #1d471d; /* add a line at the bottom of the button */
}

.nav-bar a div {
    padding-top: 10px; /* padding is similar to a margin, but on the inside of a container */
    font-weight: 600;
}

.nav-bar div:hover {
    background-color: #d9ff00a4;
    background-color: #88cf8a;
    cursor: pointer;
    transition: 200ms; /* makes the colour fade quickly to make it less jarring */
}

.sm-box {
    height: calc(var(--header-height) - 20px);
    width: calc(var(--header-height) - 20px);
    margin-top: 5px;
    margin-right: 10px;
    right: 0;
    position: absolute;
    /*background-color: red;*/
    width: 60px;
}

.sm-links {
    height: 50%;
    top: 50%;
    cursor: pointer;
    float: right;
    /*background-color: blue;*/
    margin-bottom: 5px;
}

.sm-icon {
    height: 100%;
}

h3 {
    font-size: 28px;
    text-decoration: underline;
    text-align: center;
}

.about-me {
    margin: 20px 30px 80px 30px;
    text-align: center;
    border-top: 1px solid #444;
    padding: 20px 150px 20px 150px;
    font-size: 24px;
    height: calc(100% - var(--header-height));
    height: 100%;
    background-color: rebeccapurple;
}

.about-me-2 {
    margin: 20px 30px 80px 30px;
    text-align: center;
    border-top: 1px solid #444;
    padding: 20px 10px 20px 10px;
    font-size: 24px;
    display: flex;
    margin-bottom: 100px;
}

.about-me-2 p {
    width: 50%;
    margin-right: 20px;
    padding: 50px 50px 50px 50px;
}

.about-me-2 img {
    display: inline-block;
    flex-wrap: nowrap;
    margin-left: 10%;
    max-height: fit-content;
}

.art-display {
    flex-wrap: nowrap;
    margin: 20px 30px 80px 30px;
    text-align: center;
    border-top: 1px solid #444; /* adds a line to the top of the container to seperate it a bit */
    padding: 20px 0 20px 0; /* bit of padding to seperate the images from the border */
}

.art-display img {
    display: inline-block;
    max-height: 400px; /* choice here. do you want all images to be the same height */
    /*height: 400px; /* or do you want to limit how tall they can be but let them be shorter? */
    max-width: 1000px;
    margin: 5px; /* bit of spacing around images */
    vertical-align: top;
}

.portraits img {
    max-height: 500px;
}

.landscapes img {
    max-height: 450px;
}

.art-display img:hover {
    cursor: pointer;
}

.art-display a img:focus {
    transform: scale(-50%);
}

.wrapper-main {
    background-color: #02ff67;
    background-color: #c7eecd;
    width: calc(100% - calc((var(--header-height) * 2) - 7px)); /* this bases the banner size based on the size 
                                                            of the header */
    padding: 30px 20px 30px 20px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 auto;
    margin-top: var(--header-height);
    top: 0;
    height: fit-content;
    min-height: calc(100% - var(--header-height)); /* this ensures that the wrapper will fill the height
                                                     of the screen even if there is not enough content to 
                                                    fill it */
}