:root {

    /* SPACING VARIABLES */

    --spacing-sm: 10px;
    --spacing-md: 1.75rem;
    --spacing-lg: 20px;
    --spacing-xl: 25px;

    /* FONT VARIABLES */

    --font-size-xs: 0.8rem;
    --font-size-sm: 1.2rem;
    --font-size-md: 1.5rem;
    --font-size-lg: 2.5rem;
    --font-size-xl: 4rem;
    --font-size-2xl: 5rem;

    /* LINE HEIGHT VARIABLES */



    /* COLOUR VARIABLES */

    --text-shadow-colour: #000;
    --hover-colour: #d5c9a6;
    --white-colour: #fff;
    --black-colour: #000;
    --background-colour: #f0f0f0;
    --collage-drop-shadow: rgba(0,0,0,0.3);
    --collage-drop-shadow-hover: rgba(0,0,0,0.15);
}

html, body {
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
}

h1 {
    font-family: "Archivo Black", sans-serif;
    font-size: var(--font-size-2xl)
}

h2 {
    font-family: "Archivo Black", sans-serif;
    font-size: var(--font-size-lg);
}

/* LINK AND HOVER PROPERTIES ANIMATION */

a.decorated-link {
    text-decoration: none;
    color: var(--white-colour);
    position: relative;
    transition: color 0.3s ease;
}

.dark-text-link {
    color: var(--black-colour);
}

a.decorated-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #d5c9a6;
    /* MAKING HOVER ANIMATION BI-DIRECTIONAL */
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

a.decorated-link:hover {
    color: var(--hover-colour);
}

a.decorated-link:hover::after {
    /* MAKING HOVER ANIMATION BI-DIRECTIONAL */
    transform-origin: left;
    transform: scaleX(1);
}

a.decorated-link:not(hover)::after {
    /* MAKING HOVER ANIMATION BI-DIRECTIONAL */
    transform-origin: right;
}

/* MENU */

.navbar {
    display: flex;
    justify-content: flex-end;
    align-content: center;
    position: absolute;
    top: 0.5rem;
    width: 95%;
    text-shadow: 0 0 0.5rem var(--text-shadow-colour);
}

.mobileNav {
    display: none;
}

.menu {
    display: flex;
    justify-content: left;
    align-items: center;
    list-style: none;
}

.menu a {
    /* text-decoration: none; */
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    font-size: var(--font-size-sm);
    text-transform: lowercase;
    /* color: var(--white-colour); */
    /* position: relative;
    transition: color 0.3s ease; */
}

.menu li:not(:last-child)::after {
    content: " | ";
    margin: 0 0.5rem;
    color: var(--white-colour);
}

.navbar .hamburger-button {
    display: none;
}

.header-items {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: -1;
}

.header-image {
    display: flex;
    flex-direction: column;
    width: 100%;
} 

.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    color: white;
    max-width: 1144px;
    bottom: 14vw;
}

.header-text h1 {
    color: white;
    text-shadow: 0 0 0.5rem var(--text-shadow-colour);
    margin: 0 0;
}

.header-text p {
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    color: white;
    font-size: var(--font-size-md);
    text-shadow: 0 0 0.5rem var(--text-shadow-colour);
    text-transform: lowercase;
    margin: 0 0;
}

.header-items .paper-tear-bottom {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: absolute;
    bottom: 0;
}

/* ABOUT ME SECTION */


.about-me-section {
    background-color: var(--background-colour);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* padding: 0 0 75px 0; */
}

.two-column {
    max-width: 1144px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: start;
    /* BACKGROUND PROPERTY ADDED AS GUIDE */
    /* background-color: #666; */
}

.two-column .author-bio {
    width: 60%;
    box-sizing: border-box;
    padding: 0 5rem 0 0;
}

.two-column .author-bio p {
    font-family: "Special Elite";
    font-size: var(--font-size-sm);
    line-height: var(--spacing-md);
}

.two-column .image-collage {
    width: 40%;
    box-sizing: border-box;
}

.image-collage {
    box-sizing: border-box;
    padding: 3rem 1rem 0 1rem;
}

.image-grid {
    position: relative;
}

.image-grid img {
    position: absolute;
    width: 100%;
    transition: all 0.6s ease;
    cursor: pointer;
    /* filter: grayscale(100%); */
}

/* ORGANISING COLLAGE USING NTH-CHILD */

.image-grid img:nth-child(1) {
    width: 65%;
    top: 0;
    left: 80px;
    z-index: 1;
    transform: rotate(10deg);
    box-shadow: 0 4px 8px var(--collage-drop-shadow);
}
.image-grid img:nth-child(2) {
    width: 55%;
    top: 300px;
    left: 200px;
    z-index: 2;
    box-shadow: 0 4px 8px var(--collage-drop-shadow);
}
.image-grid img:nth-child(3) {
    width: 60%;
    top: 400px;
    left: 30px;
    z-index: 0;
    transform: rotate(-5deg);
    box-shadow: 0 4px 8px var(--collage-drop-shadow);
}
.image-grid img:nth-child(4) {
    width: 70%;
    top: 650px;
    left: 120px;
    z-index: 4;
    transform: rotate(10deg);
    box-shadow: 0 4px 8px var(--collage-drop-shadow);
}
.image-grid img:nth-child(5) {
    width: 60%;
    top: 875px;
    left: 0;
    z-index: 5;
    box-shadow: 0 4px 8px var(--collage-drop-shadow);
}
.image-grid img:nth-child(6) {
    width: 70%;
    top: 1100px;
    left: 130px;
    z-index: 6;
    transform: rotate(-10deg);
    box-shadow: 0 4px 8px var(--collage-drop-shadow);
}

.image-grid img:hover {
    transform: scale(1.2);
    z-index: 10;
    box-shadow: 0 20px 15px var(--collage-drop-shadow-hover);
    /* filter: grayscale(0); */
}

/* BIBLIOGRAPHY SECTION */

.bibliography-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    position: relative;
}

.bibliography-section .paper-tear-top {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 0;
}

.bibliography-section .waves-background-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.75)),
    url('images/gentle_black_waves_grain.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    position: absolute;
    z-index: -1;
}

.bibliography-section .section-contents {
    margin: 14vw 0;
    max-width: 1144px;
}

.bibliography-section .section-intro {
    color: var(--white-colour);
    margin: 0 0 70px 0;
}

.bibliography-section .section-intro p {
    font-family: "Yuji Boku", sans-serif;
    font-size: var(--font-size-md);
    padding-left: 70px;
    line-height: 1.7rem;
}

.bibliography-section .subsection-header-books {
    color: var(--black-colour);
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    font-size: var(--font-size-md);
    background-image: url(images/white-ripped-paper-png.webp);
    background-size: 100% 80%;
    background-position: top 14px left 0px;
    height: 60px;
    width: 130px;
    text-align: start;
    background-repeat: no-repeat;
    padding: 1px 0 0 15px;
}

#love-me-book {
    width: 270px;
}

.latest-book p {
    color: var(--white-colour);
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    font-size: var(--font-size-xs);
    text-align: center;
}

.bibliography-section .two-column {
    margin: 50px 0 0 70px;
}

.bibliography-section .latest-book-reviews {
    box-sizing: border-box;
    padding: 0 0 0 60px;
    margin-top: -15px;
}

.bibliography-section .latest-book-reviews p {
    color: var(--white-colour);
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    font-size: var(--font-size-sm);
    line-height: 1.7rem;
}

.bibliography-section .subsection-header-anthologies {
    color: var(--black-colour);
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    font-size: var(--font-size-md);
    background-image: url(images/white-ripped-paper-png.webp);
    background-size: 100% 80%;
    background-position: top 14px left 0px;
    height: 60px;
    width: 230px;
    text-align: start;
    background-repeat: no-repeat;
    padding: 1px 0 0 15px;
    margin-top: 40px;
}

.bibliography-section .three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 20px 50px 20px;
}

.bibliography-section .three-column-grid .grid-container {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px 60px 0 60px;
}

.bibliography-section .three-column-grid .grid-container img{
    display: block;
    /* width: 200px; */
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* .bibliography-section .three-column-grid .grid-container p {
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    color: var(--white-colour);
    font-size: var(--font-size-xs);
    width: 250px;
    text-align: center;
    line-height: 1.3rem;
} */



/* HOVER OVERLAYS ON BOOK IMAGES INSTEAD OF TEXT BELOW */

.bibliography-section .grid-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    /* width: 180px; */
    opacity: 0;
    transition: .3s ease;
    background-color: var(--hover-colour);
}

.bibliography-section .grid-container:hover .overlay {
    opacity: 0.95;
}

.bibliography-section .three-column-grid .grid-container .overlay p {
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    color: var(--black-colour);
    font-size: var(--font-size-sm);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* width: 100%; */
    text-align: center;
    line-height: 1.4rem;
}


.bibliography-section #the-mechanics-book {
    border: 1px dotted var(--white-colour);
}

.bibliography-section .subsection-header-stage {
    color: var(--black-colour);
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    font-size: var(--font-size-md);
    background-image: url(images/white-ripped-paper-png.webp);
    background-size: 100% 80%;
    background-position: top 14px left 0px;
    height: 60px;
    width: 370px;
    text-align: start;
    background-repeat: no-repeat;
    padding: 1px 0 0 15px;
    margin-top: 40px;
}

.bibliography-section .subsection-header-commercial {
    color: var(--black-colour);
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    font-size: var(--font-size-md);
    background-image: url(images/white-ripped-paper-png.webp);
    background-size: 100% 80%;
    background-position: top 14px left 0px;
    height: 60px;
    /* height: auto; */
    width: 480px;
    text-align: start;
    background-repeat: no-repeat;
    padding: 1px 0 0 15px;
    margin-top: 40px;
}

.bibliography-section .work-text {
    color: var(--white-colour);
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    font-size: var(--font-size-sm);
    line-height: var(--spacing-md);
    padding: 20px 0 0 70px;
}

.bibliography-section .paper-tear-bottom {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: absolute;
    bottom: 0;
}

/* SERVICES SECTION */

.services-section {
    background-color: var(--background-colour);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}

.services-section .section-contents {
    max-width: 1144px;
}

.services-section .section-intro {
    color: var(--black-colour);
}

.services-section .section-intro p {
    font-family: "Yuji Boku", sans-serif;
    font-size: var(--font-size-md);
    padding-left: 70px;
}

.services-section .subsection-header-writer {
    color: var(--white-colour);
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    font-size: var(--font-size-md);
    background-image: url(images/highlight_blue.png);
    background-size: 100% 80%;
    background-position: top 14px left 0px;
    height: 60px;
    width: 150px;
    text-align: start;
    background-repeat: no-repeat;
    padding: 1px 0 0 15px;
    margin-top: 40px;
}

.services-section .subsection-header-script {
    color: var(--white-colour);
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    font-size: var(--font-size-md);
    background-image: url(images/highlight_red.png);
    background-size: 100% 80%;
    background-position: top 14px left 0px;
    height: 60px;
    width: 260px;
    text-align: start;
    background-repeat: no-repeat;
    padding: 1px 0 0 15px;
    margin-top: 40px;
}

.services-section .subsection-header-story {
    color: var(--white-colour);
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    font-size: var(--font-size-md);
    background-image: url(images/highlight_green.png);
    background-size: 100% 80%;
    background-position: top 14px left 0px;
    height: 60px;
    width: 300px;
    text-align: start;
    background-repeat: no-repeat;
    padding: 1px 0 0 15px;
    margin-top: 40px;
}

.services-section .subsection-header-copywriting {
    color: var(--white-colour);
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    font-size: var(--font-size-md);
    background-image: url(images/highlight_yellow.png);
    background-size: 100% 80%;
    background-position: top 14px left 0px;
    height: 60px;
    width: 450px;
    text-align: start;
    background-repeat: no-repeat;
    padding: 1px 0 0 15px;
    margin-top: 40px;
}

.services-section .subsection-header-editing {
    color: var(--white-colour);
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    font-size: var(--font-size-md);
    background-image: url(images/highlight_green.png);
    background-size: 100% 80%;
    background-position: top 14px left 0px;
    height: 60px;
    width: 370px;
    text-align: start;
    background-repeat: no-repeat;
    padding: 1px 0 0 15px;
    margin-top: 40px;
}

.services-section .subsection-header-workshops {
    color: var(--white-colour);
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    font-size: var(--font-size-md);
    background-image: url(images/highlight_blue.png);
    background-size: 100% 80%;
    background-position: top 14px left 0px;
    height: 60px;
    width: 360px;
    text-align: start;
    background-repeat: no-repeat;
    padding: 1px 0 0 15px;
    margin-top: 40px;
}

.services-section .subsection-header-talks {
    color: var(--white-colour);
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    font-size: var(--font-size-md);
    background-image: url(images/highlight_yellow.png);
    background-size: 100% 80%;
    background-position: top 14px left 0px;
    height: 60px;
    width: 340px;
    text-align: start;
    background-repeat: no-repeat;
    padding: 1px 0 0 15px;
    margin-top: 40px;
}

.services-section .work-text {
    color: var(--black-colour);
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    font-size: var(--font-size-sm);
    line-height: var(--spacing-md);
    padding: 20px 0 0 70px;
}


/* CONTACT SECTION */


.contact-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    position: relative;
}

.contact-section .paper-tear-top {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 0;
}

.contact-section .underwater-background-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)),
    url('images/underwater_image.png');
    background-color: var(--black-colour);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    position: absolute;
    z-index: -1;
}


.contact-section .section-contents {
    max-width: 1144px;
    margin: 12vw 0 0 0;
}

.contact-section .section-contents .two-column {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: start;
}

.contact-section .section-intro {
    color: var(--white-colour);
    width: 30%;
}

.contact-section .section-intro h2 {
    line-height: 2.7rem;
}

.contact-section .section-intro p {
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    line-height: var(--spacing-md);
    font-size: var(--font-size-sm);
}

.contact-section .section-intro a {
    /* text-decoration: none; */
    /* font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif; */
    /* font-size: var(--font-size-xs); */
    text-transform: lowercase;
    /* color: var(--white-colour); */
    position: relative;
    transition: color 0.3s ease;
}

/* CONTACT FORM */

.contact-section .contact-form-container {
    color: var(--white-colour);
    width: 65%;
    padding: 0 0 0 150px;
    box-sizing: border-box;
}

.contact-form-container .first-last-name {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: start;
    width: 99.7%;
    margin-bottom: 10px;
}

.contact-section .first-last-name .first-name {
    width: 50%;
    box-sizing: border-box;
    margin-right: 40px;
}

.contact-section .first-last-name .last-name {
    width: 50%;
    box-sizing: border-box;
}

.contact-section .first-name input {
    width: 100%;
    height: 30px;
    font-size: var(--font-size-xs);
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    color: var(--black-colour);
}

.contact-section .last-name input {
    width: 100%;
    height: 30px;
    font-size: var(--font-size-xs);
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
}

.contact-section .email input {
    width: 99.7%;
    height: 30px;
    font-size: var(--font-size-xs);
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    margin-bottom: 10px;
}

.contact-section .phone-number input {
    width: 99.7%;
    height: 30px;
    font-size: var(--font-size-xs);
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    margin-bottom: 10px;
}

.contact-section .subject-line input {
    width: 99.7%;
    height: 30px;
    font-size: var(--font-size-xs);
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    margin-bottom: 10px;
}

.contact-section .message textarea {
    width: 100%;
    height: 160px;
    font-size: var(--font-size-xs);
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    margin-bottom: -5px;
    resize: none;
}

.contact-form-container .required-inputs {
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    font-size: var(--font-size-xs);
    display: flex;
    justify-content: end;
}

.contact-form-container .form-button {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
}

.contact-form-container .form-button button {
    width: 100%;
    height: 50px;
    margin-right: -5px;
    background-color: var(--black-colour);
    color: var(--white-colour);
    border: 1px solid #fff ;
    transition: all 0.3s ease;
}

.contact-form-container .form-button button:hover {
    /* width: 95%; */
    color: var(--black-colour);
    background-color: var(--hover-colour);
    border: 1px solid var(--black-colour);
}


/* FOOTER SECTION */


.footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background-color: var(--black-colour);
}

.footer .footer-border-top {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 0;
    margin: 40px 0 0 0;
    padding: 0;    
}

.footer .footer-border-top img {
    width: 100%;
    height: 25px;
    object-fit: cover;
}

.footer .section-contents {
    width: 100%;
    max-width: 1144px;
    color: var(--white-colour);
    padding: 100px 0 0 0;
    display: flex;
    flex-direction: column;
}

.footer .section-contents .two-column {
  display: flex;
  flex-direction: row;
  align-items: start;
  justify-content: flex-start;
  padding: 0 0 0 40px;
}

.footer .two-column p {
    font-size: var(--font-size-xs);
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    text-decoration: underline;
    margin: 0;
}

.footer .two-column ul {
    list-style-type: none;
    padding: 0 50px 0 0;
    line-height: 25px;
}

.footer a {
    /* text-decoration: none; */
    font-family: "Special Elite", 'Courier New', Courier, monospace, sans-serif;
    font-size: var(--font-size-xs);
    text-transform: lowercase;
    /* color: var(--white-colour); */
    /* position: relative; */
    /* transition: color 0.3s ease; */
}

.footer .section-contents .copyright-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer .copyright-info {
    padding: 20px 0 40px 0;
}

.footer .copyright-info p {
    font-family: sans-serif;
    font-size: var(--font-size-xs);
    line-height: 0;
}

.footer .footer-border-bottom {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: absolute;
    bottom: 0;
    padding: 0;
}

.footer .footer-border-bottom img {
    width: 100%;
    height: 25px;
    object-fit: cover;
}

/* END FOOTER */

/* SMOOTH SCROLL */

html {
    scroll-behavior: smooth;
}

/* BACK TO TOP BUTTON CODE START */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--hover-colour);
    border-radius: 1.5rem;
    padding: .5rem;
    text-decoration: none;
    transition: 0.2s ease-out;
    /* ADDITIONAL CODE FOR BACK TO TOP TO APPEAR AFTER DOWNWARD SCROLL */
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

/* ADDITIONAL CODE FOR BACK TO TOP TO APPEAR AFTER DOWNWARD SCROLL */

.back-to-top.active {
    bottom: 32px;
    pointer-events: auto;
    opacity: 1;
}

/* END ADDITIONAL CODE FOR BACK TO TOP TO APPEAR AFTER DOWNWARD SCROLL */

.back-to-top span {
    color: var(--black-colour);
    font-size: 2rem;
    transition: 0.2s ease-out;
}

.back-to-top:hover {
    background-color: var(--white-colour);
}

.back-to-top:hover span {
    transform: translateY(-2px);
}

/* BACK TO TOP BUTTON CODE END */


/* SETTING UP RESPONSIVE CODE */

/* 1200PX BREAK POINT */

@media only screen and (max-width: 1200px){
    :root {

        /* FONT VARIABLES */
        
        --font-size-2xl: 4.5rem;
        --font-size-md: 1.3rem;
    }

    .about-me-section .two-column {
        padding: 0 40px;
    }

    .image-collage {
    box-sizing: border-box;
    padding: 5rem 1rem 0 1rem;
    }

    .bibliography-section .section-contents {
        padding: 0 40px;
    }

    /* CHANGING WIDTH OF SUBSECTION HEADINGS BACKGROUND IMAGE */

    .bibliography-section .subsection-header-books {
    background-position: top 12px left 0px;
    height: 55px;
    width: 110px;
    }
    
    .bibliography-section .subsection-header-anthologies {
    background-position: top 12px left 0px;
    height: 55px;
    width: 210px;
    }

    .bibliography-section .subsection-header-stage {
    background-position: top 12px left 0px;
    height: 55px;
    width: 320px;
    }

    .bibliography-section .subsection-header-commercial {
    background-position: top 12px left 0px;
    height: 55px;
    width: 420px;
    }

    .services-section .subsection-header-writer {
        background-position: top 12px left 0px;
        height: 55px;
        width: 130px;
    }

    .services-section .subsection-header-script {
        background-position: top 12px left 0px;
        height: 55px;
        width: 230px;
    }

    .services-section .subsection-header-story {
        background-position: top 12px left 0px;
        height: 55px;
        width: 260px;
    }

    .services-section .subsection-header-copywriting {
        background-position: top 12px left 0px;
        height: 55px;
        width: 390px;
    }

    .services-section .subsection-header-editing {
        background-position: top 12px left 0px;
        height: 55px;
        width: 320px;
    }

     .services-section .subsection-header-workshops {
        background-position: top 12px left 0px;
        height: 55px;
        width: 315px;
    }

     .services-section .subsection-header-talks {
        background-position: top 12px left 0px;
        height: 55px;
        width: 300px;
    }

    /* END SUBSECTION HEADING */

    .services-section .section-contents {
        padding: 0 40px;
    }

    .contact-section .section-contents {
        padding: 0 40px;
    }

    .footer .section-contents {
        padding-top: 100px;
        padding-left: 40px;
    }
}

/* 1100PX BREAK POINT */

@media only screen and (max-width: 1100px){
     :root {

        /* FONT VARIABLES */

        --font-size-2xl: 4.5rem;
        --font-size-md: 1.3rem;
        --font-size-sm: 1rem;

        /* SPACING VARIABLES */

        --spacing-md: 1.5rem
    }

    /* CHANGING PADDING OF AUTHOR BIO */

    .two-column .author-bio {
        padding: 0 4rem 0 0;
    }

    /* RESIZE PHOTO COLLAGE */

    .image-grid img:nth-child(1) {
    width: 70%;
    top: 0;
    left: 80px;
    z-index: 1;
    transform: rotate(10deg);
    box-shadow: 0 4px 8px var(--collage-drop-shadow);
    }
    .image-grid img:nth-child(2) {
        width: 60%;
        top: 260px;
        left: 200px;
        z-index: 2;
        box-shadow: 0 4px 8px var(--collage-drop-shadow);
    }
    .image-grid img:nth-child(3) {
        width: 65%;
        top: 370px;
        left: 30px;
        z-index: 0;
        transform: rotate(-5deg);
        box-shadow: 0 4px 8px var(--collage-drop-shadow);
    }
    .image-grid img:nth-child(4) {
        width: 75%;
        top: 600px;
        left: 120px;
        z-index: 4;
        transform: rotate(10deg);
        box-shadow: 0 4px 8px var(--collage-drop-shadow);
    }
    .image-grid img:nth-child(5) {
        width: 65%;
        top: 780px;
        left: 0;
        z-index: 5;
        box-shadow: 0 4px 8px var(--collage-drop-shadow);
    }
    .image-grid img:nth-child(6) {
        width: 75%;
        top: 980px;
        left: 130px;
        z-index: 6;
        transform: rotate(-10deg);
        box-shadow: 0 4px 8px var(--collage-drop-shadow);
    }

    /* END RESIZE PHOTO COLLAGE */

    .bibliography-section .three-column-grid .grid-container {
        margin: 20px 40px 0 40px;
    }
}

/* TABLET SIZE BREAK POINT - 950px */

@media only screen and (max-width: 950px){

    /* CHANGING RATIO OF TWO COLUMN IN AUTHOR BIO */

    .two-column .author-bio {
        width: 75%;
        padding: 0 2rem 0 0;
    }

    /* RESIZE PHOTO COLLAGE */

    .image-grid img:nth-child(1) {
    width: 90%;
    top: 0;
    left: 80px;
    z-index: 1;
    transform: rotate(10deg);
    box-shadow: 0 4px 8px var(--collage-drop-shadow);
    }
    .image-grid img:nth-child(2) {
        width: 80%;
        top: 260px;
        left: 200px;
        z-index: 2;
        box-shadow: 0 4px 8px var(--collage-drop-shadow);
    }
    .image-grid img:nth-child(3) {
        width: 85%;
        top: 370px;
        left: 30px;
        z-index: 0;
        transform: rotate(-5deg);
        box-shadow: 0 4px 8px var(--collage-drop-shadow);
    }
    .image-grid img:nth-child(4) {
        width: 95%;
        top: 600px;
        left: 120px;
        z-index: 4;
        transform: rotate(10deg);
        box-shadow: 0 4px 8px var(--collage-drop-shadow);
    }
    .image-grid img:nth-child(5) {
        width: 85%;
        top: 780px;
        left: 0;
        z-index: 5;
        box-shadow: 0 4px 8px var(--collage-drop-shadow);
    }
    .image-grid img:nth-child(6) {
        width: 95%;
        top: 980px;
        left: 130px;
        z-index: 6;
        transform: rotate(-10deg);
        box-shadow: 0 4px 8px var(--collage-drop-shadow);
    }

    /* END RESIZE PHOTO COLLAGE */

    .bibliography-section .three-column-grid .grid-container {
        margin: 20px 30px 0 30px;
    }
}

/* 870PX BREAK POINT */

@media only screen and (max-width: 870px){

    .two-column .author-bio {
        width: 810%;
        padding: 0 1rem 0 0;
    }
    
    .two-column .image-collage {
        display: none;
    }

    /* SUBSECTION HEADING PADDING CHANGE */

    .bibliography-section .section-intro p {
    padding-left: 20px;
    }

    #love-me-book {
        width:300px;
    }

    .bibliography-section .two-column {
    margin: 50px 0 0 20px;
    }

    /* .bibliography-section .three-column-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    } */

    /* .bibliography-section .three-column-grid .grid-container img {
        width: 230px;
        height: 352px;
    } */

    .bibliography-section .three-column-grid .grid-container {
        margin: 20px 20px 0 20px;
    }

    .bibliography-section .work-text {
        padding: 20px 0 0 20px;
    }

    .services-section .section-intro p {
        padding-left: 20px;
    }

    .services-section .work-text {
        padding: 20px 0 0 20px;
    }

}

/* MOBILE SIZE BREAK POINT */

@media only screen and (max-width: 768px){

    :root {
        --font-size-lg: 1.5rem;
        --font-size-md: 1.35rem;
        --font-size-sm: 0.875rem;

        --spacing-md: 1.25rem;
    }

    h1 {
        font-size: 9vw;
    }
    
    /* NAVBAR STYLES */

    .navbar .menu {
    display: none;
    }

     /* ADDING THE NAVIGATION SLIDE OUT DRAWER */

    .mobileNav {
        width: 130px;
        background-color: rgba(0, 0, 0, 0.8);
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        z-index: 2;
        top: 0;
        right: -130px;
        transition: transform 0.5s;
    }
    
    .mobileNav a {
        margin: 16px 0;
    }

    .openMobileNav {
        transform: translateX(-130px);
    }

    /* HAMBURGER MENU BUTTON */

    .navbar .hamburger-button {
        width: 40px;
        height: 30px;
        background-color: var(--hover-colour);
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 3;
    }

    .navbar .hamburger-button:hover {
        cursor: pointer;
    }

    .hamburger-button
    .bar1,
    .bar2,
    .bar3 {
        width: 18px;
        height: 2px;
        background-color: var(--black-colour);
        border-radius: 20px;
        margin: 1px 0;
    }

    /* ANIMATING THE HAMBURGER BUTTON */

    .animateBar1 {
        animation: rotateBar1 0.5s;
        animation-fill-mode: forwards;
    }

    .animateBar2 {
        animation: shrinkBar2 0.5s;
        animation-fill-mode: forwards;
    }

    .animateBar3 {
        animation: rotateBar3 0.5s;
        animation-fill-mode: forwards;
    }

    @keyframes rotateBar1 {
        from {
            transform: rotate(0);
        }
        to {
            transform: rotate(45deg) translateX(4px) translateY(2px);
        }
    }

    @keyframes shrinkBar2 {
        from {
            transform: scaleX(1);
            opacity: 1;
        }
        to {
            transform: scaleX(0);
            opacity: 0;
        }
    }

    @keyframes rotateBar3 {
        from {
            transform: rotate(0);
        }
        to {
            transform: rotate(-45deg) translateX(4px) translateY(-2px);
        }
    }

    /* ADDING THE REVERSE ANIMATION FOR THE HAMBURGER BUTTON/MENU (SOLUTION PROVIDED BY CLAUDE CODE AFTER USING COLT STEELE'S METHOD WHICH ONLY PROVIDED ANIMATION FOR THE TOGGLE ON (FORWARD ANIMATION) METHOD BUT NOT THE OF (REVERSE ANIMATION */

    .reverseBar1 {
        animation: reverseBar1 0.5s;
        animation-fill-mode: forwards;
    }

    .reverseBar2 {
        animation: reverseBar2 0.5s;
        animation-fill-mode: forwards;
    }

    .reverseBar3 {
        animation: reverseBar3 0.5s;
        animation-fill-mode: forwards;
    }

    @keyframes reverseBar1 {
        from {
            transform: rotate(45deg) translateX(4px) translateY(2px);
        }
        to {
            transform: rotate(0);
        }
    }

    @keyframes reverseBar2 {
        from {
            transform: scaleX(0);
            opacity: 0;
        }
        to {
            transform: scaleX(1);
            opacity: 1;
        }
    }

    @keyframes reverseBar3 {
        from {
            transform: rotate(-45deg) translateX(4px) translateY(-2px);
        }
        to {
            transform: rotate(0);
        }
    }

    /* RESPONSIVE NAVIGATION END */

    /* RESPONSIVE BIBLIOGRAPHY SECTION */

    .header-text p {
        font-size: 3.5vw;
    }

    h2 {
        text-align: center;
        font-size: max(2rem, 5.5vw);
    }

    .bibliography-section .subsection-header-books {
        flex-direction: row;
        justify-content: center;
    }

    .bibliography-section .section-intro {
        margin: 0 0 30px 0;
        text-align: center;
        line-height: 1.4rem;
    }

     .bibliography-section .section-intro p {
        line-height: 1.4rem;
    }

    .bibliography-section .subsection-header-books {
        display: block;
        margin-left: auto;
        margin-right: auto;
        align-items: center;
        background-position: top 12px left 0px;
        text-align: center;
    }


    .bibliography-section .two-column {
        margin: 40px 0 0 0;
        flex-direction: column;
        align-items: center;
    }

    .latest-book img{
        display: block;
        margin-left: auto;
        margin-right: auto;
        align-items: center;
    }

    #love-me-book {
        width: 50vw;
    }

    .bibliography-section .latest-book-reviews {
        padding: 30px 0 0 0;
        text-align: center;
    }

    .bibliography-section .latest-book-reviews p {
        line-height: 1.4rem;
    }
   
     .bibliography-section .three-column-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .bibliography-section .subsection-header-anthologies {
        display: block;
        margin-left: auto;
        margin-right: auto;
        align-items: center;
        background-position: top 12px left 0px;
        text-align: center;
    }

    .bibliography-section .subsection-header-stage {
        display: block;
        margin-left: auto;
        margin-right: auto;
        align-items: center;
        background-position: top 12px left 0px;
        text-align: center;
    }

    .bibliography-section .subsection-header-commercial {
        display: block;
        margin-left: auto;
        margin-right: auto;
        align-items: center;
        background-position: top 10px left 0px;
        text-align: center;
    }

    /* RESPONSIVE SERVICES SECTION */

    .services-section .subsection-header-writer {
        display: block;
        margin-left: auto;
        margin-right: auto;
        align-items: center;
        background-position: top 12px left 5px;
        text-align: center;
    }

    .services-section .subsection-header-script {
        display: block;
        margin-left: auto;
        margin-right: auto;
        align-items: center;
        background-position: top 12px left 5px;
        text-align: center;
    }

    .services-section .subsection-header-story {
        display: block;
        margin-left: auto;
        margin-right: auto;
        align-items: center;
        background-position: top 12px left 5px;
        text-align: center;
    }

    .services-section .subsection-header-copywriting {
        display: block;
        margin-left: auto;
        margin-right: auto;
        align-items: center;
        background-position: top 10px left 5px;
        text-align: center;
    }

    .services-section .subsection-header-editing {
        display: block;
        margin-left: auto;
        margin-right: auto;
        align-items: center;
        background-position: top 12px left 5px;
        text-align: center;
    }

    .services-section .subsection-header-workshops {
        display: block;
        margin-left: auto;
        margin-right: auto;
        align-items: center;
        background-position: top 12px left 5px;
        text-align: center;
    }

    .services-section .subsection-header-talks {
        display: block;
        margin-left: auto;
        margin-right: auto;
        align-items: center;
        background-position: top 12px left 5px;
        text-align: center;
    }

    /* RESPONSIVE CONTACT SECTION */

    .contact-section .section-contents .two-column {
        flex-direction: column;
    }

    .contact-section .section-intro {
        width: 100%;
        /* text-align: center; */
    }

    .contact-section .contact-form-container {
        width: 100%;
        padding: 0 0 0 0;
    }

    /* RESPONSIVE FOOTER */

    .footer .section-contents {
        padding-left: 0;
    }

    .footer .section-contents .two-column {
        justify-content: center;
        padding: 0;
        gap: 80px;
    }

    .footer .two-column .index {
        text-align: center;
        /* display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0; */
    }

    .footer .two-column .index ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .footer .two-column .social {
        text-align: center;
    }

    .footer .two-column .social ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
    
}

@media only screen and (max-width: 430px) {

    .bibliography-section .subsection-header-commercial {
        background-position: top 3px left 5px;
        width: 320px;
        height: 110px;
        margin-bottom: -15px;
    }

    .services-section .subsection-header-copywriting {
        background-position: top 13px left 5px;
        width: 320px;
        height: 80px;
        /* margin-bottom: -10px; */
    }

    .bibliography-section .three-column-grid .grid-container {
        margin: 20px 10px 0 10px;
    }

    .bibliography-section .three-column-grid .grid-container .overlay p {
        line-height: 1.2rem;
    }

}
