/*Allie's Part starts here*/
*{
    margin: 0;
    box-sizing:border-box;
}
/*header styling*/
header{
    padding: 10%;
    background-color: white;
    text-align: center;
}
/*Joyce's Part starts here (fonts and font sizing)*/
header{
    font-size: calc(2px + 1.5vw);
    font-family: 'Inconsolata', monospace;
    font-weight: 300;
}
header p, footer {
    font-size: calc(2px + 1.5vw);
    font-family: 'Inconsolata', monospace;
    font-weight: 300;
}
nav{
    font-size: calc(2px + 1.5vw);
    font-family: 'Inconsolata', monospace;
    font-weight: 300;
    margin: auto;
    padding: 3%;
    background-color: #123458;
    text-align: center;
    border-width: 17px;
    border-style: solid;
    border-color: #123458;
    position: sticky;
    top: 0;
    z-index: 10;
    color: #123458;
}
#nav-wrapper{
    color: #123458;
}

body{
    font-size: 150%;
    font-family: 'Inconsolata', monospace;
    font-weight: 300;
}
/*Joyce's Part ends here*/
a:visited{
    color: #123458;
}
.img{
    background-image: url("src/guildhall-two.jpg");
    background-size: cover;
}
#guildhall-img-one {
    max-width: 30%;
}
div p{
    line-height: 300%;
}
/*positioning of columns for images and paragraphs*/
#x{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;

}
#y{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;

    padding-bottom: 5%;
    margin: auto;
}
/*styling for image of 2nd piece*/
#painting{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    max-width: 100%;
    padding-bottom: 5%;
    margin: auto;
}
/*positioning for paragraph of image*/
#painting-p{
    margin-left: 3%;
    width: 115%;
}
#second-img{
    width: 40vw;
    height: 40vh;
    margin-right: 5%;
    margin-left: 5%;
    margin-top: 10vh;

}
#third-image{
    width: 70vw;
    height: 40vh;
    margin-left: 5vw;
    margin-top: 9vh;

}
.copley{
    border-width: 10px;
    border-style: solid;
    padding-top: 0.2%;
    padding-bottom: 0.2%;
    padding-right: 0;
    border-color: white;
    background-color: white;
    color: #123458;
    width: 80%;
    margin-left: 11%;
}
/*borders and text styling for header*/
header h1, header h2, header h3{
    background-color: white;
    text-align: center;
    border-width: 17px;
    border-style: solid;
    border-color: white;
    color: #123458;
    opacity: 70%;
}
main h4{
    padding-bottom: 5%;
    padding-top: 2%;
    width: 60%;
    margin: auto;
    line-height: 130%;
}

main p{
    font-size: 80%;
}
#page-wrapper{
    width: 80vw;
    margin:0 auto;
}
/*navigation styling - same for all pages*/
nav li {
    display: inline;
    border-width: 10px;
    border-style: solid;
    padding: 0.3vw;
    border-color: white;
    background-color: white;
    color: #123458;
    border-radius: 150px;
}
nav a{
    text-decoration: none;
    color: #123458;

}
#first-img{
    max-width: 90%;
    margin: auto;
}
main img{
   width: 120%;
}
main{
    margin: 0 auto;
    padding: 2%;
    background-color: #578FCA;
    text-align: center;
    color: white;
}
main h2{
    margin:auto;
    padding: 2%;
    text-align: center;
    font-size: 100%;
}
main h3{
    margin:auto;
    padding-top: 1%;
    padding-bottom: 2%;
    text-align: center;
    font-size: 80%;
}
main h5{
    padding: 2%
}
main p{
    margin:auto;
    padding: 2%;
    text-align: center;
    line-height: 190%;
}
.this{
    border-width: 10px;
    border-style: solid;
    padding-top: 0.2%;
    padding-bottom: 0.2%;
    padding-right: 0;
    border-color: white;
    background-color: white;
    color: #123458;
    width: 90%;
}

/*Allie: JS styling starts here for timeline*/
/*wrapper for JS timeline info*/
#p-wrapper{
    margin: 0 auto;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    background: #578FCA;
    padding: 4%;
}
/*container of the info for the events*/
.container {
    border: 10px solid white;
    background-color: white;
    color: #123458;
    padding: 1%;;
    width: 95%;
    margin-bottom: 10%;
}
/*timeline styling*/
.timeline {
    position: relative;
    max-width: 40%;
    height: 80vh;
    margin: 0 auto;
}

/*use of pseudo elements - “:: after” tag is a CSS feature that allows you to add something extra after that element, which in this case is the timeline.*/
.timeline::after {
    content: "";
    position: absolute;
    width: 2%;
    height: 60vh;
    background-color: white;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1%;
}
ul {
    list-style: none;
}
/*styling of right items from timeline and aligning them correctly*/
.right {
    text-align: left;
    position: relative;
    right: -60%;
}
/*styling of left items from timeline and aligning them correctly*/
.left {
    text-align: right;
    position: relative;
    left: -60%;
}
/*“Left” moves the squares made from the .left class towards the center of the timeline*/
/*These boxes will be positioned towards the middle of the timeline using JS, use “right: ” to position them exactly in the middle of the timeline*/
/*Added z-index: 1 for the boxes to be on top of the timeline*/
.box-left::after {
    content: "";
    position: absolute;
    width: 5%;
    height: 2vh;
    right: -8%;
    background-color: white;
    top: 15%;
    margin-bottom: 7%;
    z-index: 1;
}

.box-right::after {
    content: "";
    position: absolute;
    width: 5%;
    height: 2vh;
    left: -17%;
    background-color: white;
    top: 30%;
    z-index: 1;
}
/*JS styling ends here*/
footer{
    margin:auto;
    padding: 2%;
    background-color: #123458;
    color: white;
    text-align: center;
    font-weight: 600;
}
#link-wrapper, footer a{
    color: white;
}
.x {
    width: 60%;
}


.y {
    width: 40%;
}


@media screen and (max-width: 720px) {
    .x{
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    #page-wrapper {
        width: 100%;
    }
    .y{
        flex-direction: row;
    }
}
/*Allie's Part ends here*/