/*
*Ryan Guan
*October 22, 2026
*Assignment 3 - Styled Biography, external stylesheet for the 3 pages in /styled-bio/
*Assignment 4 - added responsive image rules and the background image for /raster/
*Assignment 5 - added the svg roundel logo rules and the custom theme for /vector/
*/

/**** Global & Fonts ***/

body {
    background-color: pink;
    color: black;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

h1 {
    font-family: "Times New Roman", Times, serif;
    font-size: 36px;
}

h2 {
    font-family: "Times New Roman", Times, serif;
    font-size: 24px;
}

h3 {
    font-family: "Times New Roman", Times, serif;
    font-size: 18px;
}


/******* Flexbox ********/

nav ul {
    display: flex;
    flex-direction: row;
}

nav li {
    list-style: none;
    margin: 5px;
    border: 2px solid maroon;
    border-radius: 7%;
    padding: 0;
}

nav li a {
    display: block;
    padding: 5px;
}

a:link {
    color: maroon;
    text-decoration: none;
}

a:visited {
    color: navy;
}

a:focus {
    text-decoration: underline dotted;
}

a:hover {
    text-decoration: underline;
}

#current_page {
    background-color: white;
}

.intro {
    color: maroon;
}

.photo {
    background-color: white;
    padding: 5px;
    border: 2px solid maroon;
}

/******* Raster Graphics (assignment 4) ********/

img {
    max-width: 100%;
    height: auto;
}

.hero-container {
    background-image: url('/media/bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 20px;
}

.hero-container p {
    background-color: white;
    padding: 5px;
}

.hero-container img {
    object-fit: contain;
}

/******* Vector Graphics (assignment 5) ********/

.roundel {
    width: 100%;
    max-width: 150px;
    height: auto;
}

/* fill none + a thick stroke makes the circle a hollow ring */
.ring {
    fill: none;
    stroke: #dc241f;
    stroke-width: 18;
    transition: stroke-width 0.3s;
}

.bar {
    fill: #0019a8;
}

.station {
    fill: white;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-anchor: middle;
    dominant-baseline: middle;
}

/* ring gets a little thicker on hover or when tabbed to */
.roundel:hover .ring,
a:focus-visible .ring {
    stroke-width: 22;
}

/* custom theme for the big logo on /vector/
these selectors are more specific than .ring, .bar and .station,
so they override the red, blue and white with a Paddington Bear palette */
.custom-theme {
    max-width: 500px;
}

.custom-theme .ring {
    stroke: #e8891c;
}

.custom-theme .bar {
    fill: #5c3317;
}

.custom-theme .station {
    fill: #ffe066;
}
