body{
    margin: 0;
    padding: 0;
}

p{
    font-family: Georgia, 'Times New Roman', Times, serif;
}

h4, h5, h6, .arial{
    font-family: Arial, Helvetica, sans-serif;
}

img{
    max-width: 100%;
    height: auto;
}

.text-align-center{
    text-align: center;
}

.content{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    z-index: 100;
    top: 0;
    background-color: white;
    width: 100%;
    padding: 10px;
    height: 30px;
    border-bottom: 1pt solid lightgray;
}

.subscribe, .login{
    display: none;
}

.chapter-section{
    padding: 10px 0px 10px 0px;
    border-bottom: 1px solid #707070;
    line-height: 1.2;
}

.interactive-section{
    padding-top: 10px;
    line-height: 1.2;
}

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: white;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidenav a{
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 20px;
    display: block;
    transition: 0.3s;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}

.sidenav a:hover{
    color: #f1f1f1;
}

.sidenav .closebtn {
    position: relative;
    top: -10px;
    left: 130px;
    font-size: 36px;
    margin-left: 50px;
    margin-bottom: -30px;
}

#main{
    transition: margin-left .5s;
    padding: 16px;
}

.logo{
    width: 225px;
    padding-top: 4px;
}

.search{
    width: 18px;
    height: 18px;
    padding: 10px;
    border: 1px solid lightgray;
    margin: 6px 20px 0 10px;
}

.cover-image{
    width: 100%;
    text-align: center;
    height: 610px;
    background-size: cover;
    repeat: no-repeat;
}

.cover-image1{
    background-image: url('../img/gb2.jpg');
    background-position: -450px;
}

.cover-image2{
    background-image: url('../img/cover-image2.jpg');
    /* background-position: -100px; */
}

.cover-image3{
    background-image: url('../img/gb4.jpg');
    /* background-position: -100px; */
}

.cover-image4{
    background-image: url('../img/cover-image4.jpeg');
    /* background-position: -100px; */
}

.cover-image5{
    background-image: url('../img/old-school2.jpeg');
    /* background-position: -100px; */
}

.cover-image6{
    background-image: url('../img/woods.jpeg');
    /* background-position: -100px; */
}

.cover-image7{
    background-image: url('../img/quilt3.jpeg');
    /* background-position: -100px; */
}

.cover-image8{
    background-image: url('../img/cover-image8.jpeg');
    background-position: -100px;
}

.cover-image9{
    background-image: url('../img/footpaths.jpeg');
    /* background-position: -100px; */
}

.cover-image10{
    background-image: url('../img/ferry-new.jpg');
    /* background-position: -100px; */
}

.title{
    font-size: 42px;
    color: white;
    font-family: 'Homemade Apple', cursive;
    margin: 20px 0px 20px 0px;
}

.author{
    font-size: 20px;
    color: white;
}

.audio{
    opacity: .5;
    position: absolute;
    bottom: 0px;
    left: 50%;
    /* transform code from https://www.w3schools.com/howto/howto_css_image_text.asp */
    transform: translate(-50%, -50%);
}

#archive-text{
    font-size: 12px;
    color: #707070;
    font-style: italic;
    width: 300px;
    font-weight: normal;
}

.chapter-header{
    width: 100%;
    background-color: #504D11;
    padding-bottom: 2px;
    margin-bottom: 20px;
}

.chapter-number{
    font-size: 16px;
    line-height: 0.1;
    font-weight: normal;
    color: white;
}

.chapter-title{
    font-size: 20px;
    line-height: 0.1;
    color: white;
}

.image{
    width: 350px;
    margin-top: 10px;
}

.caption{
    font-size: 8px;
    color: #707070;
    width: 325px;
    margin: 3px 0px 3px 0px;
}

.text-section{
    font-size: 14px;
    width: 300px;
}

.bio{
    font-size: 12px;
}

.quote{
    font-size: 18px;
    width: 225px;
    margin: 10px 0px 10px 0px;
    font-weight: bold;
}

.map{
    background-color: #504d1156;
    padding: 10px 10px 10px 10px;
    width: 100%;
    position: relative;
}

.map-drawing{
    margin-top: 30px;
}

.map-instructions-mobile{
    padding-top: 10px;
    padding-left: 15px;
    margin-bottom: -10px;
    font-size: 10px;
}

.map-instructions-desktop{
    display: none;
}

.map-text{
    color: white;
    width: 255px;
    text-align: right;
    padding-top: 38px;
    margin-right: 10px;
}

.map1, .map2, .map3, .map4, .map5{
    position: absolute;
    top: 70px;
    right: 15px;
}

.map-text-header{
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 0px;
    line-height: 0.01;
}

.map-text-info{
    font-size: 14px;
}

.map-pin{
    width: 25px;
    position: absolute;
    cursor: pointer;
}

.map-pin:hover{
    opacity: .25;
}

.tooltip .map-text{
    visibility: hidden;
    position: absolute;
    z-index: 1;
}

.tooltip:hover .map-text{
    visibility: visible;
}

.pin1{
    left: 60px;
    top: 220px;
}

.pin2{
    left: 70px;
    top: 320px;
}

.pin3{
    right: 120px;
    top: 470px;
}

.pin4{
    right: 150px;
    top: 510px;
}

.pin5{
    left: 160px;
    top: 580px;
}

.interactive-header{
    font-size: 26px;
    color: black;
    text-align: center;
    font-weight: bold;
    line-height: 0.2;
}

.next-chapter-section{
    width: 100%;
    background-color: #3B2C12;
    color: white !important;
    padding-bottom: 5px;
    margin-top: 30px;
}

.continue-reading{
    font-size: 12px;
    padding-left: 15px;
    line-height: 0;
    font-weight: normal;
    color: white;
}

.next-arrow{
    max-width: 20px;
    height: auto;
    position: absolute;
    right: 20px;
    bottom: -10px;
}

.back-arrow{
    max-width: 20px;
    height: auto;
    position: absolute;
    left: 20px;
    bottom: -10px;
}

.next-chapter-mobile{
    position: relative;
}

.previous-chapter, .next-chapter-desktop{
    display: none;
}

#copyright-text{
    font-size: 8px;
    width: 300px;
    font-weight: normal;
    font-style: italic;
}

/* timeline code from https://codeconvey.com/simple-horizontal-timeline-css/ */
.timeline-container{
    width: 100%;
    height: 540px;
    overflow-x: scroll;
    position: absolute;
    left: 0px;
    top: 50px;
    padding: 0px 10px 0px 10px;
    background-image: url('../img/gb5.jpg');
    background-position: -450px -250px;
}

.timeline{
    width: 2620px;
    height: 20px;
    list-style: none;
	text-align: justify;
	margin-top: 190px;
	background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 45%, rgba(255,255,255) 51%, rgba(255,255,255,0) 57%, rgba(255,255,255,0) 100%);
    color: white;
}

.timeline:after {
    display: inline-block;
    content: "";
    width: auto;
}

.timeline li {
	display: inline-block;
	width: 20px;
	height: 20px;
    margin: 0px 50px 0px 50px;
	background: #504D11;
	text-align: center;
	line-height: 1;
	position: relative;
	border-radius: 50%;
}

.timeline li:before {
	display: inline-block;
	content: attr(data-year);
	font-size: 20px;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}

.timeline li:nth-child(odd):before {
	top: -30px;
    width: 100px;
}

.timeline li:nth-child(even):before {
	bottom: -30px;
    width: 100px;
}

.timeline li:after {
	display: inl;
	content: attr(data-text);
	font-size: 14px;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
    font-family: Arial, Helvetica, sans-serif;
}

.timeline li:nth-child(odd):after {
	bottom: 0;
	margin-bottom: -10px;
	transform: translate(-50%, 100%);
    width: 100px;
}

.timeline li:nth-child(even):after {
	top: 0;
	margin-top: -10px;
	transform: translate(-50%, -100%);
    width: 100px;
}

.timeline-header{
    position: absolute;
    top: 50px;
    z-index: 50;
}

.timeline-header-chapter{
    position: absolute;
    top: 3220px;
    z-index: 50;
}

.timeline-instructions{
    margin-top: 80px;
}

.timeline-chapter{
    top: 3210px;
}

.text-before-timeline{
    margin-top: 560px;
}

.two-columns{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#profiles{
    padding-top: 10px;
    margin-bottom: 20px;
}

.profile-link{
    font-weight: bold;
    text-decoration: underline;
}

.profile-link:hover{
    color: #504D11;
}

.column-left, .column-right{
    flex-direction: column;
    width: 50%;
}

.profiles-single{
    padding: 0px 18.75px 0px 18.75px;
}

.profiles-pic, .gallery-image{
    width: 150px;
    height: 150px;
}

.profiles-name{
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    width: 140px;
    align-self: center;
    margin: 5px 0px 20px 0px;
}

.profiles-header{
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 25px;
    color: #4C6273;
}

.mary-lee{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.profiles-video{
    width: 350px;
    height: 196px;
}

.profiles-caption{
    width: 325px;
    font-size: 14px;
    margin: 10px 0px 30px 0px;
    font-weight: normal;
}

.profile-no-link{
    cursor: not-allowed !important;
}

/* the following code is edited from https://www.w3schools.com/howto/howto_css_tooltip.asp */
.profile-tooltip {
    position: relative;
    cursor: not-allowed !important;
}
  
.profile-tooltip .tooltiptext {
    visibility: hidden;
    width: 150px;
    font-size: 8pt;
    background-color: lightgray;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 50%;
    left: 50%;
    margin-left: -75px;
    opacity: 0;
    transition: opacity 0.3s;
}
  
.profile-tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
}

.profile-tooltip:hover .profiles-pic{
    filter: brightness(50%);
}
  
.profile-tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
/* end of code from w3schools */

.profiles-single:hover .profiles-name{
    color: #504D11;
}

a{
    text-decoration: none;
    color: black;
}


/*DESKTOP STYLE*/
@media screen and (min-width:768px){

    .navbar-right{
        display: flex;
        flex-direction: row;
    }

    .login{
        display: flex;
        width: 18px;
        height: 18px;
        padding: 10px;
        border: 1px solid lightgray;
        margin: 6px;
    }

    .navbar{
        height: 40px;
    }

    .sidenav {padding-top: 80px;}
    .sidenav a {font-size: 24px;}

    .logo{
        width: 300px;
        position: absolute;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .cover-image{
        width: 100%;
        height: 710px;
        background-repeat: no-repeat;
        background-position: 0px;
    }

    .cover-image1{
        background-position: 50% -100px !important;
    }

    .cover-image2{
        background-position: 50% -75px !important;
    }

    .cover-image3{
        background-position: 50% -120px !important;
    }

    .cover-image5{
        background-position: 50% -235px !important;
    }

    .cover-image6{
        background-position: 50% -75px !important;
    }

    .cover-image7{
        background-position: 50% -175px !important;
    }

    .cover-image8{
        background-position: 50% -155px !important;
    }

    .title{
        font-size: 60px;
    }
    
    .author{
        font-size: 24px;
    }

    .audio{
        bottom: 95px;
    }

    #archive-text{
        font-size: 14px;
        color: #707070;
        font-style: italic;
        width: 645px;
    }

    .chapter-number{
        font-size: 20px;
    }
    
    .chapter-title{
        font-size: 28px;
    }

    .image{
        width: 645px;
    }

    .caption{
        font-size: 12px;
        width: 600px;
    }

    .text-section{
        font-size: 16px;
        width: 645px;
    }

    .bio{
        font-size: 14px;
    }

    .quote{
        font-size: 20px;
        width: 405px;
    }

    .map-drawing{
        display: block;
        width: 600px;
        margin-left: auto;
        margin-right: auto;
        margin-top: -110px;
    }

    .map-instructions-mobile{
        display: none;
    }

    .map-instructions-desktop{
        display: inline-block;
        font-size: 20px;
        width: 200px;
        position: absolute;
        right: 70px;
        top: 80px;
    }
    
    .map-text{
        width: 290px;
    }

    .map1{
        left: 50px;
        top: 80px;
        text-align: left;
    }

    .map2{
        left: 50px;
        top: 300px;
        text-align: left;
        width: 300px;
    }

    .map3{
        right: 50px;
        top: 420px;
        width: 310px;
    }

    .map4{
        right: 50px;
        top: 630px;
        width: 320px;
    }

    .map5{
        left: 50px;
        top: 600px;
        text-align: left;
        width: 320px;
    }

    .pin1{
        left: 505px;
        top: 130px;
    }
    
    .pin2{
        left: 570px;
        top: 335px;
    }
    
    .pin3{
        right: 650px;
        top: 560px;
    }
    
    .pin4{
        right: 703px;
        top: 633px;
    }
    
    .pin5{
        left: 690px;
        top: 700px;
    }

    .map-text-header{
        font-size: 24px;
    }

    .map-text-info{
        font-size: 20px;
    }

    .map-pin{
        width: 35px;
    }

    .interactive-header{
        font-size: 40px;
    }

    .next-chapter-section{
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 100px;
        position: relative;
    }

    .previous-chapter{
        display: flex;
        width: 50%;
        flex-direction: row;
    }

    .back-arrow{
        position: absolute;
        left: 20px;
        bottom: 40px;
        max-width: 20px;
    }

    .next-arrow{
        position: absolute;
        right: 20px;
        bottom: 40px;
    }

    .previous-chapter-text{
        text-align: left;
        position: absolute;
        width: auto;
        left: 70px;
        bottom: 10px;
    }

    .next-chapter-desktop{
        display: flex;
        width: auto;
        flex-direction: row;
    }

    .next-chapter-text{
        text-align: right;
        position: absolute;
        right: 70px;
        bottom: 10px;
    }

    .next-chapter-mobile{
        display: none;
    }

    #copyright-text{
        font-size: 10px;
        width: 645px;
    }

    #media-left{
        padding-right: 5px;
    }
    
    #media-right{
        padding-left: 5px;
    }

    .gallery-image{
        margin-top: 5px;
    }

    #profile-left{
        padding-right: 10px;
    }
    
    #profile-right{
        padding-left: 10px;
    }
    
    .profiles-pic, .gallery-image{
        width: 315px;
        height: 315px;
    }
    
    .profiles-name{
        font-size: 20px;
        width: auto;
    }

    .profiles-video{
        width: 645px;
        height: 361px;
    }
    
    .profiles-caption{
        width: 600px;
        font-size: 18px;
    }

    .timeline-container{
        height: 700px;
        top: 60px;
        background-position: 0px;
    }

    .timeline{
        width: 3280px;
    }

    .timeline li {
        margin: 0px 65px 0px 65px;
    }

    .timeline li:before {
        font-size: 26px;
    }

    .timeline li:nth-child(odd):before{
        top: -50px;
        width: 150px;
    }

    .timeline li:nth-child(even):before{
        bottom: -50px;
        width: 150px;
    }

    .timeline li:after {
        font-size: 18px;
    }

    .timeline li:nth-child(odd):after, .timeline li:nth-child(even):after {
        width: 150px;
    }

    .timeline-header{
        top: 70px;
    }

    .timeline-header-chapter{
        top: 3000px;
    }

    .timeline-instructions{
        padding: 30px 0px 30px 50px;
        font-size: 18px;
    }

    .timeline-chapter{
        top: 3000px;
    }
    
    .text-before-timeline{
        margin-top: 740px;
    }

}

@media screen and (min-width:900px){

    .subscribe{
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        flex-direction: column;
        border-radius: 3px;
        background-color: #69D3FA;
        line-height: 15px;
        width: 160px;
        height: 40px;
        margin: 6px 10px 0 0;
        font-size: 12px;
        letter-spacing: 2px;
        font-weight: 100;
    }
    
}