/* Set default colours for site */
:root {
    --background: #FFFFFF;
    --header-background: #666666;
    --border-colour: #222222;
    --header-font: #14ABB2;
    --text-font: #666666;
    --label-background: #14ABB2;
    --label-font: #FFFFFF;
    --link-color: #FFFFFF;
    --mod-title-desc-color: #000000;
}

html {
    /* Set 1rem to 10px instead of native 16px to make it easier to calculate font-size values for the rest of the page (e.g. 1.6rem is 16px, 2.0rem is 20px, etc.) */
    font-size: 62.5%;
}

body {
    /* Sans Serif font stack is implemented to help select the best font for each type of computer operating system */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
        Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';

    /* 1.75rem = 17.5px */
    font-size: 1.75rem;
    line-height: 1.5;
    color: var(--text-font);
    background-color: var(--background);
    width: 100%;
    margin: auto;
}

/* Header set as flexbox with article wrap on small screens */
header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    padding: 1rem;
    background-color: var(--header-background);
    color: var(--header-font);
    border-width: 1rem;
    border-color: #FFFFFF;
    border-style: solid;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: var(--header-background);
    color: var(--label-font);
    border-width: 1rem;
    border-color: #FFFFFF;
    border-style: solid;
}

/* Format navigation style */
nav a {
    color: var(--link-color);
    padding: 14px 20px;
    text-decoration: none;
    text-align: center;
}

/* Hover change */
nav a:hover {
    font-weight: bold;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    /* Default heading syle */
    margin-bottom: 0.625rem;
    color: var(--header-font);
    line-height: 1.3;
    padding-left: 1rem;
}

h1 {
    /* 4rem = 40px (4 * 10px) */
    font-size: 4rem;
}

h2 {
    font-size: 3.2rem;
}

h3 {
    font-size: 2.5rem;
}

h4 {
    font-size: 2.0rem;
}

h5 {
    font-size: 1.5rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-left: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

/* Seperator line between sections */
hr {
    height: 3px;
    margin-left: 1rem;
    margin-right: 1rem;
}

/* place a small margin around each section */
.section {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Flexbox for profile section */
.profile {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Setting deaful profile image size */
.profile-image {
    width: 35rem;
    height: auto;
    margin-left: 1rem;
}

.profile-image img {
    border-color: var(--border-colour);
    border-style: solid;
    border-width: 0.2rem;
    padding: 0.25rem;
    /* Images adjusted to fit parent container*/
    max-width: 100%;
}

/* Container flexbox class for work image section */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Container itme style and position setup for label */
.item {
    position: relative;
    margin: 1rem 1rem;
}

.item img {
    border-color: var(--border-colour);
    border-style: solid;
    border-width: 0.2rem;
    padding: 0.25rem;
    /* Images adjusted to fit parent item*/
    max-width: 100%;
}

/* Hover style for work showcase images */
.item:hover {
    opacity: 75%;
}

/* Work label styling */
.label {
    flex-wrap: wrap;
    position: absolute;
    bottom: 6rem;
    left: 2rem;
    width: 30rem;
    height: 10rem;
    border-color: var(--border-colour);
    border-radius: 0.5rem;
    border-width: 0.2rem;
    border-style: solid;
    background-color: var(--label-background);
    border-color: var(--border-colour);
    color: var(--label-font);
    text-align: left;
}

.label h3 {
    color: black;
}

.label-text {
    display: block;
    margin-left: 1rem;
    margin-right: 1rem;
}

/* Align contact items */
.contact {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.contact-item {
    font-size: 2rem;
    margin-left: 2rem;
}

/* General styling for Comming Soon page */
.coming-soon {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.coming-soon div {
    width: 40rem;
    height: 30rem;
    margin-top: 10rem;
    background-color: var(--label-background);
    text-align: center;
    border-style: double;
    border-width: 2rem;
    font-size: 8rem;
    font-weight: 700;
}

.title-desc {
    color: var(--mod-title-desc-color);
}

/* using a mobile-first approach, use `min-width` values going from narrow -> wide for a responsive design */
@media screen and (min-width: 768px) {

    /* Ajust article width for medium screen sizes */
    article {
        max-width: 80%;
        margin-top: 2rem;
    }

    /* Extra margin when article paragrah alongside image for larger screen sizes */
    p {
        margin-left: 2rem;
    }

    /* Item image sizes ajustment for medium size screens */
    .item img {
        max-width: 60rem;
    }

    .showcase img {
        max-width: 70rem;
    }
}

/* media query for larger screens */
@media screen and (min-width: 992px) {

    /* Adjust body width for large screen size */
    body {
        width: 80%;
    }

    nav ul li {
        display: inline-block;
        margin-left: 1rem;
    }

    /* Ajust article width for large screen sizes */
    article {
        max-width: 45%;
        margin-top: 1rem;
    }

    /* Item image sizes ajustment for large size screens */
    .item img {
        max-width: 49rem;
    }

    .showcase img {
        max-width: 100rem;
    }

}