/*
*Student: Troy Noak
*Introduction to Web Design and Computer Principles
*Date: 8 October 2026
*Project: Assignment 4 Raster Graphics (/raster/)
*/

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

body {
    background-color: orangered;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    margin: 20px;
    padding: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    line-height: 1.6;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.4rem;
}

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

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

nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    padding: 0;
}

nav li {
    list-style: none;
    margin: 3px;
    border: 2px solid rgb(253, 253, 253);
    border-radius: 20%;
    padding: 0;
}

nav li a {
    display: block;
    padding: 20px;
    text-decoration: none;
}

/***** Link States *****/

a:link {

        color: #000000;
    text-decoration: underline;
}

a:visited {
        color: #2b0047;
}

a:hover {
    color: rgb(67, 67, 125);
    text-decoration: underline;
}

a:focus {
    color: aqua;
    text-decoration: dotted;
}

/***** ID & Class Selectors *****/

#profile-pic {
    width: 250px;
    border: 4px solid #ffffff;
    border-radius: 50%;
}

.card {
    background-color: beige;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.highlight {
    background-color: transparent;
    color: black;
    padding: 2px;
}

/***** main content *****/

main section p {
    line-height: 1.6;
    max-width: 70ch;
}

/***** Footer Styles *****/

footer {
    border-top: 2px solid;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.9rem;
}

/***** raster graphics *****/

/* Scene background behind the cut-out subject */
.hero-container {
    background-image: url('/media/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    min-height: 320px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-container picture {
    display: flex;
    justify-content: center;
}

.hero-container img {
    max-height: 70vh;
    object-fit: contain;
}

/* Mobile: smaller heading so it fits narrow screens */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    nav ul {
        gap: 10px;
    }
}

/* Tablet: 481px and up */
@media (min-width: 481px) {
    .hero-container {
        min-height: 450px;
        padding: 20px;
    }
}

/* Desktop: 1025px and up */
@media (min-width: 1025px) {
    .hero-container {
        min-height: 650px;
        padding: 30px;
    }

    .hero-container img {
        max-height: 80vh;
    }
}

/* ===== Header Brand (logo + title) ===== */

.brand {
    /* Flexbox puts the logo and h1 side by side */
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ===== SVG Roundel Logo ===== */

.roundel {
    /* width 100% + max-width makes the logo fluid on small screens */
    display: block;
    width: 100%;
    max-width: 120px;
    height: auto;
}

.roundel .ring {
    /* fill: none creates the hollow ring - the background shows through */
    fill: none;
    stroke: #dc241f;
    stroke-width: 24;
    transition: stroke-width 0.3s ease;
}

.roundel .bar {
    fill: #0019a8;
}

.roundel .station {
    fill: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* ===== SVG Interactivity ===== */

.logo-link:hover .ring,
.logo-link:focus-visible .ring {
    /* subtle: the ring thickens slightly on hover or keyboard focus */
    stroke-width: 28;
}

.logo-link:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

/* ===== Custom Theme Override (vector showcase) ===== */
/* .custom-theme comes after .roundel, so these rules override the
   red/blue/white colours with a green/yellow/black palette */

.custom-theme {
    max-width: 400px;
    margin: 20px auto;
}

.custom-theme .ring {
    stroke: #1b5e20;
}

.custom-theme .bar {
    fill: #fdd835;
}

.custom-theme .station {
    fill: #1b1b1b;
}

.custom-theme:hover .ring,
.custom-theme:focus-visible .ring {
    stroke-width: 30;
}