/* =============================================
   Learning Isn't Linear - Main Stylesheet
   ============================================= */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    background: #f5f5f5;
    color: #333;
}

/* Header - Logo on Left, Smaller */
header {
    background: #222;
    padding: 0;
    line-height: 1;                /* Tight text */
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 30px;          /* Original spacing you had */
}

.logo-container {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.08);           /* Slight zoom */
    filter: brightness(1.1);          /* Subtle highlight */
}

.logo-container img {
    height: 42px;                     /* Adjust size as needed */
    width: auto;
    margin: 5px 0;                 /* Tiny breathing room */
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

nav a:hover {
    color: #0077cc;
}

/* Main Content */
main {
    padding: 40px;
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

h2 {
    font-size: 32px;
    margin-top: 0;
    color: #222;
    border-left: 5px solid #0077cc;
    padding-left: 15px;
}

h3 {
    color: #444;
    margin-top: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.button {
    display: inline-block;
    padding: 14px 28px;
    background: #0077cc;
    color: white;
    text-decoration: none;
    margin: 15px 0;
    border-radius: 6px;
    font-weight: bold;
    transition: transform 0.2s, background 0.3s;
    border: none;
    cursor: pointer;
}

.button:hover {
    background: #005fa3;
    transform: translateY(-2px);
}

.button-secondary {
    background: #444;
}

.button-secondary:hover {
    background: #222;
}

.button-preview {
    background: #f8f9fa;
    color: #0077cc;
    border: 1px solid #0077cc;
}

.button-preview:hover {
    background: #eef7ff;
}

img {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

.license-box {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-top: 20px;
}

/* Footer - Custom Vertical Spacing */
footer {
    background: #222;
    color: #888;
    text-align: center;
    padding-top: 10px;      /* Space above copyright */
    padding-bottom: 25px;   /* Space below links */
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 30px;       /* Space above the entire footer */
}

.footer-nav {
    margin-top: 0px;        /* Space between copyright and links */
    display: inline-flex;
    gap: 15px;
    justify-content: center;
}

.footer-nav a {
    color: #aaa;
    text-decoration: none;
}

.footer-nav a:hover {
    color: #0077cc;
}

/* =============================================
   Desmos Embed Styles
   ============================================= */

.iframe-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 40px 0;
    background: #f9f9f9;
    margin: 20px 0;
}

.responsive-iframe {
    border: 1px solid #ccc;
    width: 90%;
    max-width: 900px;
    height: 600px;              /* ← restores the nice large size */
    border-radius: 8px;
    background: white;
}

/* Optional: better on mobile */
@media (max-width: 768px) {
    .responsive-iframe {
        width: 95%;
        height: 450px;
    }
}




