/*
File: generalStyles.css
Date: 2026-04-20
Author: klp
Workspace: p5jsTemplate2026-04-20-Stg1
Purpose: General styles for p5jsTemplate2026-04-20-Stg1

*/

/*--------- google font styles ----------*/
.googleFont1{
    font-family: 'Oswald', sans-serif;
}

/*--------- body layout: sticky footer ----------*/
body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/*--------- navbar styles ----------*/
img#mastheadIcon, nav img{
    width: 50px;
    height: auto;
    margin-right: 10px;
}

div#primaryContent{
    min-width: 250px;
    max-width: 900px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/*--------- footer styles ----------*/
footer{
    font-size: .8em;
}

footer div#footerContent{
    max-width: 500px;
    padding-bottom: 10px;
}

footer li a img{
    width: 50px;
    height: auto;
}

/*--- link styles ---*/
main a{
    text-decoration: none;
    color: #C18335;
    font-weight: bold;
}

main a:hover{
    text-decoration: underline;
    color: #a16d2a;
}

/* ========================================
   CARD STYLES
   ======================================== */

.card{
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover{
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}




/*--------- hero section styles ----------*/
div#heroDiv{
    /* Multiple backgrounds: gradient overlay on top of tile pattern
       First background (gradient) is semi-transparent to reveal pattern beneath */
    background: 
        linear-gradient(135deg, rgba(76, 37, 225, .2) 100%, rgba(76, 37, 225, .2) 100%),
        url("../images/lightGrayStarsPattern.png");
    background-size: cover, 100px 100px; /* Cover for gradient, tile size for pattern */
    background-repeat: no-repeat, repeat; /* No repeat for gradient, repeat for tiles */
    padding: 3rem 0;
}

div#heroDiv p  { color: #7763c6; text-shadow: #0d0d0d 1px 1px 1px;}
div#heroDiv h1 { color: #4c25e1; text-shadow: #0d0d0d 1px 1px 1px; }

/* ── Hero info-icon button (used on every saga page) ─────────────────────── */
.hero-info-btn {
    background: transparent;
    border: none;
    box-shadow: none;
}
.hero-info-btn img {
    width: 28px;
    height: 28px;
    opacity: 0.95;
    vertical-align: middle;
    background-color: rgb(237, 238, 241);
    border-radius: 50%;
}

/*--------- MEDIA QUERIES ----------*/
/* https://getbootstrap.com/docs/5.0/layout/breakpoints/ */
@media (max-width: 349px) {
    .navbar-brand {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    div#primaryContent {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 992px) {
    div#heroDiv {
        background-position: center;
    }
}
