.tocify-extend-page {
    height: auto !important;
}

/* Hide the document title */
h1.title {
  display: none;
}

/* Hide the author and other meta-information if present */
.author {
  display: none;
}

a {
  color: #333333 !important;
  font-weight: bold !important;
  transition: color 0.3s !important; /* Smooth transition for hover effect */
}

a:hover {
    color: #d4af37 !important; /* Change color to vintage gold on hover */
    text-decoration: none; /* No additional underline */
}

.navbar {
  background-color: #16213e; /* Dark Navy Blue */
}

.navbar-brand {
  display: flex;
  align-items: center; 
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 3rem !important;
  color: #f5f5f5 !important;
  text-decoration: none;
}

.navbar-brand {
  display: flex;
  align-items: center; 
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 3rem !important;
  color: #f5f5f5 !important;
  text-decoration: none;
}

.navbar-brand:hover {
  color: #f5f5f5 !important; /* Inherit the original color on hover */
  text-decoration: none !important; /* Ensure no underline or decoration on hover */
  background: none !important; /* Remove any background applied on hover */
}

.navbar-brand img {
  height: 50px;  /* Adjust the height as needed */
  margin-right: 10px;  /* Space between the logo and text */
}

.navbar-nav li a {
    text-decoration: none !important;
    color: #f5f5f5 !important; /* Light Gray for readability */
    font-family: 'Anaktoria', serif !important;
    font-size: 2.1rem !important;
    font-weight: bold !important;
    transition: color 0.3s !important; /* Smooth transition for hover effect */
}

.navbar-nav a:hover {
    color: #d4af37 !important; /* Change color to vintage gold on hover */
    text-decoration: none; /* No additional underline */
}

.navbar-nav > li.active a {
  background-color: #6f4f28 !important; /* Background color for the active item */
  color: #f5f5f5 !important; /* Text color for the active item */
}


/* BODY */
body {
    background-color: #f4efe6;
    color: #333333;
    font-family: 'Merriweather', serif;
    font-size: 1.8rem; /* Adjust font size for readability */
    margin: 0;
    padding: 0;
    padding-top: 60px;
    line-height: 1.6;
}

.intro-paper {
    max-width: 1100px;
    margin: 40px auto; /* Centering and spacing from other elements */
    padding: 30px 20px; /* Slightly less padding than the main container */
    border: 1px solid #bda59a; /* Vintage-style border with a muted gold tone */
    border-radius: 8px; /* Rounded corners for a classic look */
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2); /* Slightly deeper shadow for added depth */
}

.intro-paper h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: bold;
    color: #7f4f24; /* Matching Brown Title for Sections */
    margin-bottom: 20px;
    text-align: center;
}

.intro-paper h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: bold;
    color: #7f4f24; /* Matching Brown Title for Sections */
    margin-bottom: 20px;
    text-align: center;
}


.intro-paper h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem; /* Slightly larger than body text */
    font-weight: bold;
    color: #333; /* A softer contrast */
    margin-top: 20px; /* Space between main heading and subheading */
    margin-bottom: 10px;
    line-height: 1.4;
    text-align: left;
}

.intro-paper img {
    display: block; /* Ensures the image is treated as a block element */
    margin: 20px auto; /* Centers the image horizontally */
    max-width: 75%; /* Ensures the image doesn't overflow the container */
    height: auto; /* Maintains the image's aspect ratio */
    border-radius: 8px; /* Rounds the corners for a softer look */
}

.paper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #f4efe6; /* Old Paper Background */
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2); /* Increased shadow for depth */}
    
.divider {
    border: 0;
    height: 1px; /* Line height */
    background: #8B4513; /* Vintage brown color for the line */
    margin: 20px 0; /* Reduced space below the line */    
    opacity: 0.6; /* Slightly transparent for a subtle look */
}

.paper h1 {
        font-family: 'Playfair Display', serif;
        font-size: 4rem;
        font-weight: bold;
        color: #7f4f24; /* Matching Brown Title for Sections */
        margin-bottom: 20px;
        text-align: center;
}

.paper h2 {
        font-family: 'Playfair Display', serif;
        font-size: 3rem;
        font-weight: bold;
        color: #333333; /* Matching Brown Title for Sections */
        margin-bottom: 20px;
        text-align: center;
}

.paper h3 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem; /* Slightly larger than body text */
    color: #555555; /* A softer contrast */
    margin-top: 20px; /* Space between main heading and subheading */
    margin-bottom: 20px;
    line-height: 1.4;
    text-align: center;
}

/* FEATURE */
.feature {
    display: flex;
    margin-bottom: 40px;
    align-items: center;
}

.feature img {
    flex: 1;
    margin-right: 40px;
    max-width: 200px;
    max-height: 200px; /* Set the same height to make it square */
    border-radius: 10%;
}

.feature a img {
    border-bottom: none !important; /* Remove any underline effect from images */
    display: block !important; /* Ensure the image is treated as a block-level element */
}

.feature a:hover img {
    opacity: 0.8 !important; /* Slightly transparent on hover */
    transition: opacity 0.3s ease !important; /* Smooth transition for the opacity change */
    text-decoration: none !important; /* Ensure no additional underline is applied */
}

.feature-content {
    flex: 2;
    margin-left: 20px;
}

.feature-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: bold;
    color: #333333;
    margin-bottom: 20px;
    text-align: left;
}

.feature-content a:hover{
    color: #d4af37 !important; /* Vintage Gold */
    border-bottom: 2px solid #e1ba5b !important; /* Light Gold */
    text-decoration: none !important;
}



.contact {
    background-color: #2b2b40 !important; /* Deep Space Indigo */
    color: #f0e7da !important; /* Soft Off-White */
    font-size: 1.5rem !important;
    font-family: 'Merriweather', serif !important;
    padding: 20px !important;
    text-align: center !important;
    border-top: 2px solid #5a5f7d !important; /* Muted Gold Border */
}

.contact h1 {
    padding: 0;
    margin: 0;
}

.contact a {
    margin: 5px 0 !important;
    font-size: 14px !important;
    color: #f0e7da !important; /* Soft Off-White */
    font-family: 'Merriweather', serif !important;
}

.social-media {
    display: flex; /* Use flexbox for alignment */
    flex-direction: row; /* Align icons in a row */
    justify-content: center; /* Center icons horizontally */
    align-items: center; /* Center icons vertically */
    margin-top: 20px; /* Space between text and icons */
}

.social-media a {
    margin: 0 20px !important; /* Space between icons horizontally */
}

.social-media img {
    width: 25px; /* Adjust size as needed */
    height: auto; /* Maintain aspect ratio */
    vertical-align: middle; /* Align icons with text if needed */
    transition: opacity 0.3s; /* Smooth transition for hover effect */
}

.social-media a:hover img {
    opacity: 0.8; /* Slightly fade icons on hover */
}

.paper-article {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #f4efe6; /* Old Paper Background */
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2); /* Increased shadow for depth */}

.paper_article p {  
    display: inline !important;
    margin: 0 !important; /* Remove the default margin if necessary */
}

.paper-article h1 {
        font-family: 'Playfair Display', serif;
        font-size: 4rem;
        font-weight: bold;
        color: #7f4f24; /* Matching Brown Title for Sections */
        margin-top: 20px; /* Space between main heading and subheading */
        margin-bottom: 20px;
        text-align: center;
}

.paper-article h2 {
        font-family: 'Playfair Display', serif;
        font-size: 3rem;
        font-weight: bold;
        color: #7f4f24; /* Matching Brown Title for Sections */
        margin-top: 20px; /* Space between main heading and subheading */
        margin-bottom: 20px;
        text-align: center;
}

.paper-article h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem; /* Slightly larger than body text */
    font-weight: bold;
    color: #333; /* A softer contrast */
    margin-top: 20px; /* Space between main heading and subheading */
    margin-bottom: 10px;
    line-height: 1.4;
    text-align: left;
}

.paper-article img {
    display: block; /* Ensures the image is treated as a block element */
    margin: 20px auto; /* Centers the image horizontally */
    max-width: 75%; /* Ensures the image doesn't overflow the container */
    height: auto; /* Maintains the image's aspect ratio */
    border-radius: 8px; /* Rounds the corners for a softer look */
}

.paper-article blockquote {
    font-family: 'Merriweather', serif; /* A classic serif font */
    color: #333333; /* Softer text color for a vintage feel */
    border-left: 4px solid #8B4513; /* Vintage brown border */
    padding: 10px 20px; /* Simple padding */
    background-color: #fbf8f2; /* Lighter aged paper background */
    margin: 20px 0; /* Space around the blockquote */
}

.paper-article blockquote p {
    margin: 0; /* Removes default paragraph margin */
    line-height: 1.6; /* Comfortable line height */
}

.paper-article blockquote p:last-child {
  display: inline-block;
  margin-bottom: 0;
}

.paper-article blockquote cite {
  display: block;
  margin-top: 10px; /* Adjust spacing as needed */
  font-size: 0.9em; /* Optional: Adjust font size */
  color: #555; /* Optional: Adjust color */
  text-align: right; /* Optional: Align to the right */
  font-style: normal;
}

.paper-article .emphasize {
    text-align: center; /* Centers the text horizontally */
    font-weight: bold; /* Makes the text bold */
    font-size: 1.1em; /* Optional: Increases the font size for more emphasis */
    color: #333; /* Optional: Changes the text color to a distinctive color */
    margin: 20px 0; /* Optional: Adds vertical margin for spacing */
}

.intro-paper .emphasize {
    text-align: center; /* Centers the text horizontally */
    font-weight: bold; /* Makes the text bold */
    font-size: 1.1em; /* Optional: Increases the font size for more emphasis */
    color: #333; /* Optional: Changes the text color to a distinctive color */
    margin: 20px 0; /* Optional: Adds vertical margin for spacing */
}

.container-diagram {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
}

.diagram-icon {
    position: relative;
    overflow: hidden;
    border: 2px solid #c6a88f; /* Border around the button */
    border-radius: 8px; /* Rounded corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #d4b89a; /* Background color for the button */
    text-align: center; /* Center the caption text */
}

.button {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    text-decoration: none; /* Remove underline from link */
    padding: 15px; /* Padding to keep the image from touching the edges */
}

.button-content {
    position: relative;
}


.button img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: auto; /* Center the image horizontally */
    object-fit: contain; /* Ensure the image fits within the button without stretching */
    transition: opacity 0.3s ease;
}

.button:hover img {
    opacity: 0.8; /* Slightly fade image on hover */
}

.diagram-icon:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3); /* Darker shadow on hover */
}

/* Optional: Add a smooth transition for borders and box shadow */
.diagram-icon {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.diagram-icon:hover {
    border-color: #a08b6c; /* Darker border color on hover */
}

.footer-text {
  color: #f0e7da;
  font-size: 1.2rem;
}

.footer-text a {
  color: #f0e7da !important;
}

.footer-text a:hover {
  color: #d4af37 !important;
}

.first {
    color: #b89d00; /* Darker color for Firstness */
}

.second {
    color: #b84e4e; /* Darker color for Secondness */
}

.third {
    color: #4a6a9b; /* Darker color for Thirdness */
}

.small-math {
  font-size: 0.8em; /* Adjust this value as needed */
}

.figcaption {
    font-size: 1.5rem; /* Adjust the size to be small */
    margin-top: -15px;   /* Space between image and caption */
    margin-bottom: 15px;
    color: #555;       /* Optional: gives the text a grayish color */
    text-align: center;

}

.divided-text {
    font-style: italic;
    text-align: center;
    position: relative;
    margin: 20px 0;  /* Space above and below the text */
}

.buttonsupport {
    display: block;
    position: relative;
    text-decoration: none; /* Remove underline from link */
    width: 30%;
    max-width: 400px; /* Optional: Set a maximum width for the button */
    margin: auto; /* Center the button on the page */
    overflow: hidden; /* Ensure that the hover effect doesn't overflow */
}

.buttonsupport img {
    display: block;
    width: 50%; /* Ensure image covers the button */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Ensure image covers button without stretching */
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
}

.buttonsupport:hover img {
    transform: scale(1.1); /* Slightly zoom in on hover */
    filter: brightness(0.8); /* Darken the image on hover */
}





/* Media query for smaller screens (tablets and mobile phones) */
@media (max-width: 768px) {
  
    .feature {
        flex-direction: column; /* Stack content vertically */
        align-items: center; /* Center items horizontally */
    }
    
    .feature-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #333333;
    margin-bottom: 20px;
    text-align: center;
    }

    .feature img {
    margin-right: 0; /* Remove margin-right for vertical layout */
    margin-bottom: 10px; /* Add spacing below the image */
    width: 100%; /* Increase image size for smaller screens */
    display: block; /* Ensure the image is treated as a block-level element */
    margin-left: auto; /* Center the image horizontally */
    margin-right: auto; /* Center the image horizontally */
    }

    .feature-content {
        margin-left: 0; /* Remove margin-left for vertical layout */
        text-align: left; /* Center text for mobile view */
    }
    
    .social-media a {
    margin: 0 5px !important; /* Space between icons horizontally */
    }
    
    .paper-article h1 {
        font-family: 'Playfair Display', serif;
        font-size: 3rem;
        font-weight: bold;
        color: #7f4f24; /* Matching Brown Title for Sections */
        margin-top: 20px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .paper-article h2 {
        font-family: 'Playfair Display', serif;
        font-size: 2.5rem;
        font-weight: bold;
        color: #7f4f24; /* Matching Brown Title for Sections */
        margin-top: 20px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .paper-article img {
    max-width: 100%; /* Ensures the image doesn't overflow the container */
    }
    
    .intro-paper img {
    max-width: 100%; /* Ensures the image doesn't overflow the container */
    }
    
    .buttonsupport {
    width: 50%;
    }
    
}