@import url('https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap');
@import url('sitenav.css');
@import url('sitemap.css');
@import url('footer.css');

:root {
    --dark-mode-bg: #0E0E10;
    --text-color: #DFDFE2;
    --outline-color: #4D4D60;
    --nav-border: #575262;
    --nav-text: #ded9e8;
    --mid-mid-grey: #4D4D60;
    --white: #ffffff;
    --mid-grey: #4D4D60;
    --mid-dark: #181818;

    /* Rainbow gradient colors */
    --rainbow-red: #F35997;
    --rainbow-orange: #F2915A;
    --rainbow-yellow: #FFDE74;
    --rainbow-green: #5AF3A0;
    --rainbow-blue: #5ACEF3;
    --rainbow-purple: #955AF4;

    --border-width: 2px;

    --pop: var(--rainbow-yellow);

}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "findreplace", sans-serif;
    font-weight: 900;
    font-style: normal;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-top: 20px;
    margin-bottom: 0;
}

p {
    font-family: 'Fira Code', monospace;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-color);
}

p a {
    text-decoration-color: var(--pop);
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-color: var(--pop);
    text-underline-offset: 2px;
    text-decoration-thickness: 2px;
    text-decoration-skip-ink: auto;
    transition: all 300ms ease-in-out;
    padding: 2px 3px;
    border-radius: 1px;
    letter-spacing: 0.5px;
    text-transform: lowercase;
    cursor: crosshair;
    position: relative;
}

p a:hover {
    background: var(--pop);
    color: var(--dark-mode-bg);
    box-shadow: 4px 4px 0 var(--nav-text);
}

p a[href*="://"] {
    text-decoration-color: var(--rainbow-blue);
}

p a[href*="://"]:hover {
    background: var(--rainbow-blue);
}

p a[href*="://"]::after {
    content: "↗";
    line-height: 30.4px;
    color: var(--mid-grey);
    transform: translateY(-20px);
}

body {
    width: 90%;
    margin: 50px auto;
    max-width: 1200px;
    background: var(--dark-mode-bg);
    color: var(--text-color);
    display: grid;
    grid-template-columns: 1fr 250px;
    grid-template-areas:
        "main site-nav"
        "site-footer site-footer";
    gap: 40px;
}

/* Mobile Layout */
@media (max-width: 768px) {
    body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "site-nav"
            "site-footer";
        gap: 30px;
    }
}


/* Course header styles */
site-header header p {
    font-family: 'Fira Code', monospace;
    font-size: 16px;
    line-height: 1.55;
    margin: 16px 0;
}

site-header a.briefs-link {
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Fira Code', monospace;
    font-weight: 400;
    font-size: 1rem;
    border: solid var(--border-width) var(--outline-color);
    padding: 10px 15px;
    border-radius: 4px;
    background: var(--mid-dark);
    transition: all 0.3s ease;
    display: inline-block;
}

site-header a.brief-links::after {
    content: "↗";
    color: var(--rainbow-yellow);
}


site-header a.briefs-link:hover {
    background: var(--mid-mid-grey);
    border-color: var(--mid-mid-grey);
    color: #ffffff;
}

site-header p:has(a.briefs-link) {
    margin-top: 30px;
}

small {
    font-family: "Silkscreen", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
}

.rainbow-text {
    /* Fallback color for browsers that don't support gradient text */
    color: var(--text-color);
    background: linear-gradient(45deg, var(--rainbow-red) 5%, var(--rainbow-orange) 23%, var(--rainbow-yellow) 41%, var(--rainbow-green) 59%, var(--rainbow-blue) 77%, var(--rainbow-purple) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    width: fit-content;
}

iframe.figma {
    border: solid var(--border-width) #efefef;
    aspect-ratio: 19/11;
    width: 100%;
    border-radius: 4px;
}