/* Basic reset and styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    font-family: 'ui-monospace';
    /* background: #f4f4f4; */
    overflow-x: hidden;
    /* background: linear-gradient(141deg, #aa4ea8, #9559cf, #6b6d95, #ADBBD4, #EDE8F5); */


}

header {
    position: relative;
    display: flex;
    /* Use flexbox to layout children horizontally */
    align-items: center;
    /* Center-align items vertically */
    justify-content: center;
    /* Space between logo and nav */
    padding: 0px 20px;
    /* Padding around the entire header */
    z-index: 2;
}


h1 {
    width: 75%;
    font-size: 3em;
    margin: 0.5em 0;
    /* text-shadow: 0 5px 10px rgba(0, 0, 0, 0.5); */
}


.title {
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.5)

}


.logo-container a img {
    height: 50px;
    /* Adjust height of the logo */
    width: auto;
    /* Maintain aspect ratio of the logo */
}


nav {
    display: flex;
    /* Ensures all nav items are lined up in a row */
    align-items: center;
    /* Center-align nav items vertically */
    white-space: nowrap;
}

nav a {
    margin-left: 20px;
    /* Spacing between each nav link */
    text-decoration: none;
    /* Removes underline from links */
    color: inherit;
    /* Inherits color from parent elements */
}

nav {
    /* background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
    /*margin-bottom: 10px;*/
    /* margin-left: 300px; */
}


nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 1rem;
}

nav ul li {
    padding: 0 1rem;
}

nav ul li a {
    text-decoration: underline;
    color: #333;
    font-weight: bolder;
    font-size: x-large;
}

.main-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    /* color: #fff; */
    overflow: hidden;
    text-align: center;
    z-index: 2;
    position: relative;
}

.links-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    /* max-width: 500px; */
    width: 50%;
    padding: 20px;
    /* background: #fff; */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    /* border-radius: 10px; */
    z-index: 4;
    /* opacity: 0.75; */
}

.links-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.links-container a {
    display: block;
    padding: 10px;
    margin: 10px 0;
    color: #000000;
    text-decoration: underline;
    font-size: 24px;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.links-container a:hover {
    background-color: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}

.markdown-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
    text-align: left;
    /* width: 75%; */
    font-size: larger;
    padding: 20px;
    z-index: 4;
    line-height: 1.8;
    /* Adjusts line spacing */
    letter-spacing: 0.5px;
    /* Slightly increases space between letters */
    word-spacing: 2px;
    /* Increases space between words */

}

.markdown-container h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    text-align: center;
}

.markdown-container img{
    width: 75%;
}

pre,
code {
    white-space: pre-wrap;
    /* Preserves whitespace and line breaks */
    font-family: monospace;
}

img {
    width: 75%;
    border: 1px solid;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Add padding/margin to headers */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 1em;
    margin-bottom: 0.5em;
}

/* Ensure blockquotes render with appropriate indentation */
blockquote {
    margin-left: 2em;
    padding-left: 1em;
    border-left: 4px solid #ccc;
}

/* Ensure lists have correct padding and margin */
ul,
ol {
    margin: 1em 0;
    padding-left: 2em;
}

/* Image Modal Styling */
.image-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: zoom-out;
}

.magnified-image {
    max-width: 90vw;
    max-height: 90vh;
    border: 5px solid white;
    border-radius: 8px;
}