body {
    font-family: "Chivo", sans-serif;
    font-size: 14px;
    color: #252627;
}

p {
    text-align: justify;
    margin: 0px;
    padding: 0px;
    word-break: break-all;
}

.ruminations-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.rumination-paragraph {
    margin: 18px 0;
}

.rumination-title {
    text-transform: uppercase;
    border-bottom: 1px solid;
    padding-bottom: 6px;
}

.rumination-box {
    border-radius: 6px;
    background-color: white;
    margin-bottom: 32px;
}

.rumination-desc {
    margin-top: 6px;
    margin-bottom: 8px;
}

.rumination-meta {
    display: flex;
    justify-content: space-between;
    font-style: italic;
}

.title-role {
    overflow: auto;
    word-break: normal;
    white-space: normal;
    text-align: start;
}

.menu {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

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

a:hover {
    color: grey;
}

a.invert {
    color: white;
}

a.invert:hover {
    color: lightgray;
}

hr {
    margin-top: 6px;
    margin-bottom: 6px;
}

.section {
    padding: 0px;
    position: relative;
    margin: 8px;
}

.big-container::before {
    content: "";
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 50%; /* Place the line in the middle of the container */
    border-left: 1px solid #333; /* Set the color of the vertical line */
    transform: translateX(-50%); /* Center the line using translation */
}

.big-container {
    display: grid;
    margin: 0px;
    grid-template-columns: 1fr 1fr;
    min-width: 100%;
    grid-gap: 20px;
}

.container {
    display: grid;
    margin: 0px;
    grid-template-columns: 1fr 1fr;
    min-width: 100%;
    column-gap: 20px;
    row-gap: 0px;
}

.sticky {
    position: sticky;
    left: 0;
    top: 0;
}

.scrollable {
    padding: 0px;
    overflow-y: auto;
    max-height: 95vh;
}

/* Hide the scrollbar for webkit browsers */
.scrollable::-webkit-scrollbar {
    width: 0;
}

.header-right {
    text-align: right;
    margin: 0px;
    min-width: 100%;
}

.header-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.header-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.action-button {
    justify-self: end;
}

.selected-nav {
    font-style: italic;
}

.selected {
    display: block;
}

.not-selected {
    display: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-section {
    margin-bottom: 6vh;
}

.image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.image-container {
    width: 100%;
    height: 400px; /* Set the desired height */
    overflow: hidden; /* Hide the overflowing content */
}

.image-bar-container {
    margin-top: 12px;
    margin-bottom: 12px;
    width: 100%;
    height: 12vh; /* Set the desired height */
    overflow: hidden; /* Hide the overflowing content */
}

.caption {
    display: flex;
    flex-direction: column;
    margin-top: 12px;
    margin-bottom: 36px;
}

.clickable:hover {
    cursor: pointer; /* Optional: Change cursor to a pointer */
    color: gray;
}

.menu-item {
    position: relative;
    cursor: pointer;
    text-align: left;
    padding-left: 0; /* No padding to avoid offsetting the text */
}

/* Triangle pointer styles */
.menu-item::before {
    content: "";
    position: absolute;
    left: -15px; /* Adjust this value to control the distance of the triangle */
    top: 50%;
    transform: translateY(-50%); /* Rotate to point to the right */
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid black; /* Triangle color */
    opacity: 0; /* Hidden by default */
    transition: opacity 0.2s;
}

/* Show triangle for selected item */
.menu-item.selected::before {
    opacity: 1; /* Make triangle visible */
}

/* Show triangle on hover (overrides selected) */
.menu-item:hover::before {
    opacity: 1; /* Make triangle visible */
}

/* Ensure triangle stays visible when hovering over the selected item */
.menu-item.selected:hover::before {
    opacity: 1;
}

.title {
    display: grid;
    margin: 0px;
    grid-template-columns: 1fr 2fr;
    min-width: 100%;
}

.date {
    display: flex;
    flex-direction: column;
    font-style: italic;
}

.desc {
    margin-bottom: 12px;
}

.heading {
    margin-top: 30px;
    margin-bottom: 26px;
}

.icon-padding {
    padding-right: 5px;
}

.reader-title {
    margin-top: 40px;
    margin-bottom: 120px;
    text-transform: uppercase;
}

.reader-tech-title {
    margin-top: 40px;
    margin-bottom: 80px;
    text-transform: uppercase;
}

.reader-subtitle {
    margin-top: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.reader-content {
    padding: 80px;
    max-width: 43vw;
    margin: 0 auto;
}

.back-button {
    background: none;
    border: 1px solid white;
    color: white;
    font-size: 14px;
    padding: 6px 12px;
    margin-bottom: 20px;
    cursor: pointer;
}

.back-button:hover {
    background-color: white;
    color: black;
}

@keyframes slideDown {
    from {
        top: -100%;
    }
    to {
        top: 0;
    }
}

@keyframes slideUp {
    from {
        top: 0;
    }
    to {
        top: -100%;
    }
}

/* Entrance Overlay Styles */
.entrance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #252627;
    color: white;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.entrance-overlay.slide-up {
    transform: translateY(-100%);
}

.entrance-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
}

.entrance-title {
    font-weight: 400;
    margin-bottom: 20px;
    font-size: 14px;
    text-transform: uppercase;
}

.entrance-subtitle {
    margin-bottom: 30px;
}

.entrance-description {
    line-height: 1.6;
    margin-bottom: 50px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Entrance Info Grid Styles */
.entrance-info-grid {
    margin: 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.info-row {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

.info-label {
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-content {
    text-align: left;
    color: white;
    font-size: 14px;
    line-height: 1.4;
}

.enter-button {
    background: none;
    border: 1px solid white;
    color: white;
    font-size: 14px;
    padding: 6px 12px;
    cursor: pointer;
    font-family: "Chivo", sans-serif;
}

.enter-button:hover {
    background-color: white;
    color: black;
}

.popup-transition {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #252627;
    color: white;
    z-index: 9999;
    overflow-y: auto;
    display: none;
}

.popup-transition.showing {
    display: block;
    animation: slideDown 0.6s ease forwards;
}

.popup-transition.hiding {
    animation: slideUp 0.6s ease forwards;
}

.paragraph-wrapper {
    position: relative;
}

.sidenote {
    position: absolute;
    top: 0;
    width: 200px;
    text-align: justify;
    word-break: break-all;
}

.sidenote.left {
    right: 108%;
    text-align: right;
}

.sidenote.right {
    left: 108%;
    text-align: left;
}

.technical-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    background-color: white;
}

.technical-box:hover {
    cursor: pointer;
}

.technical-box .desc {
    margin: 0 0 15px 0;
}

.technical-box .title {
    margin: 0;
}

.technical-image-container {
    width: 100%;
    height: auto;
    overflow: visible; /* no need to clip */
    text-align: center; /* center image if it's smaller than full width */
    margin: 20px 0;
}

.technical-image {
    max-width: 100%;
    height: auto;
    object-fit: contain; /* ensures entire image is shown */
    display: inline-block;
}
