body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #fdfdfd;
    color: #333;
    max-width: 900px;
    margin: 20px auto; /* Center content */
    padding: 0 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 0;
}

.tagline {
    font-size: 1.1em;
    color: #666;
}

h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 500;
}

h3 {
    margin-top: 0;
    font-weight: 600;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

section {
    margin-bottom: 40px;
}

blockquote {
    border-left: 3px solid #eee;
    padding-left: 15px;
    margin-left: 0;
    font-style: italic;
    color: #555;
}

pre {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
    font-size: 0.9em;
}

code.language-python,
code.language-bash,
code.language-text {
    display: block;
    white-space: pre;
}

code.inline {
    background-color: #f5f5f5;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.9em;
}

.features h2 {
    text-align: center;
    border-bottom: none;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    text-align: center;
}

.feature-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.feature-item .icon {
    font-size: 2.5em;
    display: block;
    margin-bottom: 10px;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.9em;
}

/* Modal Styles */
.modal {
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
    display: flex; /* Use flexbox for centering */
    align-items: center; /* Vertical center */
    justify-content: center; /* Horizontal center */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.modal-hidden {
    visibility: hidden;
    opacity: 0;
}

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

.modal-content {
    background-color: #fefefe;
    margin: auto; /* Centered */
    padding: 15px; /* Reduced padding */
    border: 1px solid #888;
    width: 540px; /* Match iframe width */
    max-width: 570px; /* Ensure space for padding/border */
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    /* text-align: center; Removed */
}

/* Remove margin from h4 and p as they are gone */
/* .modal-content h4 { ... } */
/* .modal-content p { ... } */

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content iframe {
    border: 1px solid #ccc; /* Optional: add border to iframe */
    border-radius: 4px;
} 