/* Custom Styles for Thesis Website */

/* Use Lora for prose text and Inter for UI elements/headings */
body {
    font-family: 'Inter', sans-serif;
}

.prose {
    font-family: 'Lora', serif;
    font-size: 1.125rem; /* 18px */
    line-height: 1.75;
    text-align: justify;
}

/* Headings styling */
.prose h1, .prose h2, .prose h3, .prose h4,
h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

/* Add a subtle underline effect to links in the main content */
.prose a {
    text-decoration: none;
    background-image: linear-gradient(to right, #3b82f6, #3b82f6);
    background-repeat: no-repeat;
    background-size: 0% 2px;
    background-position: 0 100%;
    transition: background-size 0.3s ease-in-out;
    color: #1e40af; /* A darker blue for links */
}

.prose a:hover {
    background-size: 100% 2px;
}

/* Style for figure captions */
.prose figcaption,
figcaption {
    color: #6b7280; /* gray-500 */
    font-size: 0.9rem;
    margin-top: 0.75rem;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

/* Custom blockquote style */
.prose blockquote {
    font-style: italic;
    color: #111827; /* gray-900 */
    background-color: #f3f4f6; /* gray-100 */
    border-left: 5px solid #6b7280; /* gray-500 */
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

/* Ensure smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Hide the default checkbox */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Social Icon Sizing */
.social-icon {
    width: 1.75rem; /* 28px */
    height: 1.75rem; /* 28px */
    transition: transform 0.2s ease-in-out;
}
.social-icon:hover {
    transform: scale(1.1);
}

/* Image Modal Styles */
.clickable-image {
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
}
.clickable-image:hover {
    opacity: 0.85;
}

.image-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0.5rem;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #bbb;
}
