@import url('https://fonts.googleapis.com/css2?family=Domine:wght@400..700&family=Judson:ital,wght@0,400;0,700;1,400&family=Noticia+Text:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Roboto+Serif:ital,opsz,wght@0,8..144,100..900;1,8..144,100..900&display=swap');
/*media queries*/
@media screen and (max-width: 1024px) and (orientation: portrait) {
    #padlink{
        margin-top: 8px;
    }
    .indextitle{
        font-size: xx-large !important;
        font-weight: 800 !important;
        align-items: center;
    }
    .indexcontainer{
        overflow-x: hidden !important;
    }
    .aboutcard-container{
        overflow-x: hidden !important;
    }
    #main-im {
        display: grid !important;
        grid-template-columns: 45% 45% !important;
        justify-content: space-evenly;
        gap: 0 !important;
        padding-bottom: 1rem;
    }
    #infoCol {
        grid-column: 1 / 2;
        grid-row: 1 / 1 !important;
        box-sizing: border-box !important;
    }
    #infoCol h3 {
        font-size: medium;
    }
    #infoTitle {
        display: none;
        margin-top: 1rem;
    }
    #info-wrapper {
        margin-bottom: 2rem;
    }
    #infoCol p {
        font-size: smaller;
    }
    .display-text-btn {
        font-size: smaller;
    }
    #imgCol {
        grid-column: 2 / 3;
        grid-row: 1 / 2 !important;
    }
    #img, #table {
        height: 100% !important;
    }
    #tableCol {
        grid-column: 2 / 3;
        grid-row: 1 / 2 !important;
        opacity: 0;
        transition: opacity 0.3s ease-out;
        position: relative;
        z-index: 1;
        backdrop-filter: blur(2px);
    }
    #tableCol.visible {
        opacity: 1;
    }
    th, td {
        font-size: small !important;
    }
    .see-info-icon {
        visibility: visible !important;
        z-index: 20 !important;
    }
    #imgCol figcaption {
        position: relative; 
        font-weight:bold;
    }
    .fa-solid {
        font-size: small;
    }
    .narratives-list {
        max-width: 50% !important;
    }
    #info-modal {
        max-width: 100vw;
    }
    #fullText {
        overflow-y: scroll;
        max-height: 100vh !important;
    }
    #fullText > .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    #fullText p {
        font-size: smaller;
    }
}
@media screen and (max-width: 976px) and (orientation: landscape) {   
    .narr-control-nav h6 {
        font-size: x-small;
    }
    .fa-solid {
        font-size: small !important;
    }
    .narr-control-nav #prevBtn, .narr-control-nav #nextBtn {
        font-size: x-small;
    }   
    #infoTitle {
        margin-top: 0.5rem !important;
        font-size: x-large !important;
    }
    #infoCol p {
        font-size: x-small;
    }
    th, td {
        font-size: x-small !important;
        white-space: normal !important;
    }
    #main-im {
        gap: 0 !important;
    }
    .grid-item {
        aspect-ratio: 1 / 1 !important;
    }
    #imgCol figure img {
        max-height: 100% !important;
        object-fit: contain;
        padding-top: 0.5rem;
    }
    #imgCol figure {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    #imgCol figcaption {
        font-size: x-small !important;
    }
    #info-wrapper {
        max-height: 10em !important;
        margin-top: 0 !important;
    }
    table {
        pointer-events: auto;
    }
    .display-text-btn {
        font-size: x-small;
    }
    .modal-dialog {
        margin-top: 100px !important;
    }
    .modal-content {
        height: 50%;
    }
    .modal-body p {
        font-size: smaller;
    }
}
@media screen and (max-width: 550px) {      
    .control-narr-nav h6 {
        font-size: smaller;
    }
    .control-narr-nav #prevBtn, .control-narr-nav #nextBtn {
        font-size: x-small;
    }
    #imgCol figcaption {
        font-size: x-small !important;
    }
    #info-wrapper {
        height: 16em !important;
        box-sizing: border-box !important;
    }
    #infoTitle {
        margin-top: 3em !important;
    }
    th, td {
        font-size: xx-small !important;
    }
    #info-modal {
        margin-top: 30% !important;
        height: 30vh !important;
    }
    #infoCol, #imgCol, #tableCol {
        margin-top: 5em;
    }
    #table {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        table-layout: fixed; /* For width constraints */
    }
    th {
        white-space: normal !important;
        word-break: break-word !important;
    }
    .modal-body p {
        font-size: smaller;
    }
}
@media screen and (max-width: 390px) and (orientation: portrait) {
    #infoTitle {
        margin-top: 1em !important;
    }
}

/* width */
::-webkit-scrollbar {
    width: 3px;
    height: 3px;  
}
  
/* Track */
::-webkit-scrollbar-track {
    background: #e3dad0;
    border-radius: 5px;   
}
  
/* Handle */
::-webkit-scrollbar-thumb {
    background: #977060;
}
  
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #6f5247;
}

html {
    height: 100%;
}
body {
    position: relative;
    background-color: #e3dad0;
    height: 100%;
    font-family: "Inter", sans-serif;
    overflow-y: hidden;
}
body.full-text-visible {
    overflow-y: scroll;
}
body.full-text-hidden {
    overflow-y: hidden;
}
/* navbar */
nav {
    justify-content: center;
    padding: 10px 0;
}
.navbar-brand {
    font-family: 'Judson';
    font-weight: 1000;
    font-size: x-large;
    color: #977060!important;
}
nav a {
    color: antiquewhite;
    padding: 0 15px;
    text-decoration: none;
    color: #977060!important;
    border-radius: 30px;
}
.navbar a, .navbar li {
    font-family: 'Judson';
}
.nav-link:hover,.nav-link.active {
    background-color: antiquewhite;
    padding-left: 10px;
    padding-right: 10px;
    color: #977060 !important;
    font-family: 'Judson';
    text-decoration: underline;
    font-weight: bold;
}
.dropdown-item{
    text-align: right;
}
.dropdown-item:hover, .dropdown-item.active {
    background-color: antiquewhite;
    color: #977060 !important;
    font-family: 'Judson';
    text-decoration: underline;
    font-weight: bold;
}
.thelinks{
    margin-top: 30px;
}
.control-narr-nav {
    background-color: rgba(255, 255, 255, 0.3) !important;
    border-top: 0.5px solid #977060;
    border-bottom: 0.5px solid #977060;
}
#nav-ul {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    justify-items: center;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0.2rem 0;
}
.narr-ctrl {
    list-style-type: none;
    align-self: center;
}
.narr-ctrl-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #977060;
    border-left: 1px solid #977060;
}
.choose-narrative {
    margin: 0 0.2rem;
}
.info-icons {
    margin: 0 0.2rem;
}
#prevBtn, #nextBtn {
    font-size: x-small;
}
#main-im {
    display: grid !important;
    gap: 1.5rem;
    grid-template-columns: 25% 30% 25%;
    margin-top: 1.3rem;
    justify-content: space-evenly;
    text-align: justify;
}
.grid-item {
    aspect-ratio: 2 / 3;
}
.exhibit-figure {
    height: 100%;
    position: relative;
    object-fit: contain;
}
/* #img-wrapper {
    position: relative;
    height: inherit;
} */
#img {
    max-width: 100%;
    object-fit: cover;
}
#tableCol {
    width: 100% !important;
}
#infoTitle {
    text-align: center;
    font-weight: bold;
    margin-top: 1rem;
    font-family: 'Judson';
    font-weight: 800;
    font-size: xx-large;
}
#info-wrapper {
    max-height: 20em;
    overflow-y: scroll;
    padding: 0 0.5rem;
}
#table {
    position: relative;
    border-collapse: collapse;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    width: 100%;
    border: 1px solid rgb(151, 112, 96);
}
#table tr {
    border-bottom: 1px solid rgb(151, 112, 96);
}
th, td {
    font-size: smaller;
}
th {
    text-align: right;
    padding-right: 1rem;
    padding-left: 0.5rem;
    cursor: pointer;
}
th:hover {
    text-decoration: underline;
}
td {
    text-align: left;
}
table a, #info-modal a {
    color: #977060;
}
.fa-solid {
    color: black;
}
.narratives-list {
    max-width: 33%;
    background-color: rgba(255, 255, 255, 0.8);
}
.narratives-list ul > li {
    margin-top: 0.2rem;
    text-align: justify;
    list-style-type: none;
    text-decoration: underline;
    cursor: pointer;
}
.narratives-list ul > li:hover {
    color: black;
    font-weight: bold;
}
.narratives-list ul {
    margin-top: 0.5rem;
}
.see-info-icon {
    visibility: hidden;
    font-size: small;
    position: absolute;
    bottom: 1em;
    right: 1em;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.3rem;
    padding-top: 0.4rem;
    border-radius: 50%;
}
tfoot {
    height: fit-content;
}
.offcanvas h5 {
    font-weight: bold;
}
.offcanvas li {
    color: #977060
}
#info-modal {
    height: 30em;
}
#info-modal h1 {
    font-weight: bold;
}
#info-modal h6 {
    font-weight: bold;
    color: rgb(151, 112, 96);
    padding-top: 3em;
}
#info-modal p {
    padding-bottom: 2rem;
}
#info-modal p:last-child {
    padding-bottom: 10rem;
}

.highlight {
    border: 1px solid rgb(61, 19, 2);
    background-color: rgba(61, 19, 2, 0.3) !important;
    transition: all 0.2s ease-in;
}
th.highlight {
    border: 1px solid rgb(61, 19, 2);
    background-color: rgba(61, 19, 2, 0.3) !important;
    transition: all 0.2s ease-in;
}

.modal-backdrop {
    opacity: 0.3 !important;
}
.full-text-container {
    position: relative;
}
#fullText {
    position: absolute;
    top: 0;
    left: 0;
    min-height: 100vh;
    overflow-y: scroll;
    background-color: rgba(0, 0, 0, 0.9);
    color: #e3dad0;
    backdrop-filter: blur(2px);
    z-index: 50; /*z-index higher than info-icon*/
}
#fullText a {
    color: rgb(151, 112, 96);
}
#fullText #fullText-btn {
    border-color: #e3dad0;
    color: #e3dad0;
    background-color: transparent;
    position: relative;
    left: 85%;
    transition: background-color 0.3s ease-in;
}
#fullText #fullText-btn:hover {
    color:black;
    background-color: #e3dad0;
   
}
#fullText p {
    text-align: justify;
}
.fulltext-title {
    margin: 1em 0;
    background-color: #e3dad0;
    color: black;
    font-weight: 800;
    text-align: center;
    font-family: 'Judson';
}