/*
File: generalStyles.css
Date: 2026-05-22
Author: klp
Workspace: SWSolvingRtTriangles2026-05-22-Stg1
Purpose: General styles for the Solving Right Triangles app.
         Adapted from SWSpecialTriangles2026-05-21-Stg1 —
         only change: heroDiv background-image path updated to reach
         workspace-root images/ from this nested styles/ folder.
*/

/*--------- 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{
    /* path is 3 levels up from styles/ to workspace root, then into images/ */
    background:
        linear-gradient(135deg, rgba(20, 100, 180, .18) 100%, rgba(20, 100, 180, .18) 100%),
        url("../../../images/lightGrayStarsPattern.png");
    background-size: cover, 100px 100px;
    background-repeat: no-repeat, repeat;
    padding: 3rem 0;
}

div#heroDiv p  { color: #1464b4; }
div#heroDiv h1 { color: #0d4a8a; text-shadow: #0d0d0d 0px 0px 0px; }

/* ── Hero info-icon button (used on every saga page) ─────────────────────── */
.hero-info-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    vertical-align: middle;
}
.hero-info-btn img {
    width: 28px;
    height: auto;
    opacity: 0.65;
    transition: opacity 0.2s;
}
.hero-info-btn:hover img { opacity: 1.0; }
