/* Luc Capaldi, 2026 */

/* define your light colorscheme here */
:root {
    --background: #FAFAFA;
    --foreground: #000000;
    --link:#0000EE;
    --navlink:#000000;
    --inverted: 0;
}

/* define your dark colorscheme here */
@media (prefers-color-scheme: dark) {
    :root {
	--background: #26272A;
	--foreground: #FFFFFF;
	--link:#FFFF11;
    --navlink:#FFFFFF;
	--inverted: 1;
    }
}

@font-face {
  font-family: 'CMU Sans Serif';
  src: url('../assets/fonts/cmunss.ttf');
}

/* padding and border elements are included in the total width and heights */
* {
  box-sizing: border-box;
}

body {
    font-family: "CMU Sans Serif", Helvetica, sans-serif;
    font-size: 1.2rem; /* ~16 px on most browsers */
    margin: 0 auto;
    background-color: var(--background);
    color: var(--foreground);
}

header {
    display: block;
    width: 100%;
}

header h1 {
    display: block;
    text-align: center;
    margin: 0.5rem auto;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 1.2rem auto;
}

nav a {
    color: var(--navlink);
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: var(--link);
}

footer {
    display: block;
    margin-bottom: 1rem;
    text-align: center;
}

h2 {
    margin-bottom: 0.5rem;
}

h3 {
    margin-bottom: 0rem;
}

h4 {
    margin-bottom: 0rem;
}

p {
    margin: 0.5rem auto;
}

a {
    color: var(--link);
    /* Fix long links on mobile so that they break */
    word-wrap: break-word;
}

/* actual content */
table {
    margin-left: auto;
    margin-right: auto;
}

img {
  display: block;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  max-width: 80%;
  max-height: auto;
  margin: 1.5rem auto;
}

.citation {
  font-size: 0.95rem;
  margin-top: 1.5rem;
}
    
/* MEDIA QUERIES */
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    body {
        width: 360px;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    body {
        width: 600px;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {

    body {
        width: 768px;
    }

    header h1 {
	float: left;
    }

    nav {
	width: 26rem;
	float: right;
    }

    footer {
	float: right;
    }
}

/* *** Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    body {
        width: 940px;
    }
}

/* *** Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) { 
    body {
        width: 1000;
    }
}
