/* -------------- MAPOFTHECITYOFBEIJING.HTML -------------- */
/* -------------- COMPLETEMAPOFBEIJING.HTML --------------- */

/* --------------- content pages basically ---------------- */

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 1300px) {
    main {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}


/* ----- Title ----- */ 

.title {
    text-align: center;
    width: 900px;
    margin-top: 1rem;
}
.title h1 { 
    font-size: 2.5rem;
    line-height: 130%;
}

@media (max-width: 950px) {
    .title { width: 100%; }
}
@media (max-width: 700px) {
    .title h1 { font-size: 2rem; }
}
@media (max-width: 450px) {
    .title h1 { font-size: 1.8rem; }
}

/* ----- Main Section ----- */ 

.discussion {
    display: flex;
    flex-direction: row;
    align-items: start;
    gap: 5rem;
    margin-top: 1rem;
    margin-bottom: 5rem;
}

@media (max-width: 1300px) {
    .discussion {
        gap: 2rem;
    }
}

@media (max-width: 675px) {
    .discussion {
        flex-direction: column;
        margin-top: 1rem;
        margin-bottom: 1.5rem;
        gap: 0;
    }
}


/* ----- Maps ----- */

.map {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 2rem;
}
img#bichurin-map {
    max-height: 82vh;
}
img#zhou-map {
    max-height: 84vh;
}
.caption-map {
    max-width: 500px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 120%;
}

@media (max-width: 930px) {
    .map {
        width: 35vw;
        top: 1rem;
    }
    .map img {
        max-width: 35vw;
    }
    img#bichurin-map {
        max-height: 91vh;
    }
    img#zhou-map {
        max-height: 92vh;
    }
    .caption-map {
        max-width: 100%;
    }
}
@media (max-width: 675px) {
    .map, .map img {
        width: 100%;
    }
    .map {
        position: static;
    }
    .caption-map {
        font-size: 0.85rem;
    }
}


/* ----- Texts ----- */

.discussion .text {
    font-size: 1.0625rem;
    line-height: 135%;
}
.discussion .text p {
    margin-bottom: 1.5rem;
}

#bichurin-text {
    max-width: 600px;
}
#zhou-text {
    max-width: 600px;
}

@media (max-width: 930px) {
    #bichurin-text, #zhou-text {
        max-width: 50vw;
    }
}
@media (max-width: 675px) {
    #bichurin-text, #zhou-text {
        max-width: 95%;
        margin: auto;
        font-size: 1rem;
    }
}



/* ----- Text Figures ----- */

div.figure {
    margin-top: 2.5rem;
    margin-bottom: 2rem;
}

img.figure {
    max-width: 400px;
    display: block;
    margin: auto;
}

.caption {
    font-size: 0.85rem;
    text-align: center;
    max-width: 450px;
    margin: auto;
    line-height: 120%;
    margin-top: 1rem;
}

.hidden-map {
    display: none;
}

@media (max-width: 930px) {
    img.figure {
        max-width: 100%;
    }
}
@media (max-width: 675px) {
    .hidden-map {
        display: initial;
    }
    .caption {
        font-size: 0.8rem;
    }
}


/* ----- Highlight SVGs ----- */
.map-visuals {
    position: relative;
}
.highlight-path {
    fill: rgba(255, 255, 255, 0.43);
    stroke: white;
    stroke-miterlimit: 10;
    z-index: 10;
    opacity: 0;
    transition: 0.5s;
}
.highlight-path.highlighted {
    opacity: 1;
    transition: 0.5s;
}
.map-highlights {
    position: absolute;
    top: 0;
    left: 0;
}