:root{
	--bttn_base: hsl(60, 33.3%, 70%); /* #cccc99; */
	--light_base:hsl(60, 33.3%, 80%);
	--dark_base: hsl(60, 33.3%, 50%);
    --dark_brown: hsl(0, 100%, 10%);
	--dark_red: hsl(0, 100%, 20%);
	--md_red: hsl(0, 100%, 40%);
    --red: hsl(0, 100%, 50%);
}

/* ==================== MOBILE-FIRST BASE STYLES =================== */
* {
    box-sizing: border-box;
}

body {
    background-image: url('../images/cartbackground2.jpg');
    background-repeat: repeat;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
}

/* Responsive Typography */
h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: bold;
    text-align: center;
}
h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.0rem);
    font-weight: bold;
}
h3 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    font-weight: bold;
    text-align: center;
}
h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: bold;
}
h5 {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
}

/* Main Container - Mobile First */
main{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Header - Responsive */
header{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    padding: 0.5rem;
}

#banner_img{
    max-width: 100%;
    height: auto;
}

/* ==================== MOBILE NAVIGATION STYLES =================== */
nav{
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
}

#mainmenu{
    display: flex;
    flex-direction: column;
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.menu_btn{
    position: relative;
    padding: 12px 16px;
    margin: 2px 8px;
    color: var(--dark_brown);
    cursor: pointer;
    background-color: var(--bttn_base);
    border-top: 4px solid var(--light_base);
    border-right: 4px solid var(--dark_base);
    border-bottom:  4px solid var(--dark_base);
    border-left:  4px solid var(--light_base);
    text-align: center;
    font-size: 1rem;
}

.menu_btn a{
    text-decoration: none;
    color: var(--dark_brown);
    font-weight: bold;
    display: block;
}

.menu_btn:hover, .menu_btn:active{
    background-color: var(--light_base);
}

/* Mobile Submenu - Click/Touch Friendly */
.submenu {
    display: none;
    position: relative;
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
    background-color: var(--light_base);
}

.menu_btn.active .submenu {
    display: block;
}

.submenu li{
    padding: 10px 16px;
    font-weight: bold;
    font-size: 0.9rem;
    margin: 2px 0;
    background-color: var(--light_base);
}

.submenu li:hover{
    background-color: var(--bttn_base);
}

/* ==================== ARTICLE STYLES =================== */
article{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    max-width: 960px;
    padding: 0 1rem;
}

#article_body {
    width: 100%;
}

.hutton{
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1rem;
    color: black;
    line-height: 1.6;
}

.cayce{
    font-family: "Courier New", Courier, monospace;
    font-size: 0.94rem;
    line-height: 1.5;
}

.quote {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 0.88rem;
    line-height: 1.6;
}

.rdg-num {
    text-align: right;
    clear: left;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1rem;
    font-weight: normal;
    color: black;
}

.img-caption{
    font-family: Verdana, Geneva, sans-serif;
    font-size: 0.75rem;
    padding: 0.5rem;
}

.footnotes {
    text-align: left;
    width: 100%;
    margin: 1rem 0;
    padding: 0 1rem;
}

.caption-left, .caption-center {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 0.8rem;
    text-align: center;
    clear: both;
    padding: 0.5rem;
}

.caption-right {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 0.8rem;
    text-align: right;
    clear: both;
    padding: 0.5rem;
}

.vocal {
    font-family: "Comic Sans MS", cursive;
    font-size: 0.88rem;
}

.article_title{
    width: 100%;
    margin: 1.5rem auto;
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2rem);
    padding: 0 1rem;
}
.art_listing th,td {
    vertical-align: top;
    padding: .2rem;
}
.keep_together {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: bold;
    color: black;
    margin: auto;
    display: block;
    width: 100%;
    text-align: center;
}

/* Responsive Images */
.img-center {
    margin: 1em auto 2em auto;
    padding: 0;
    border: 0;
    max-width: 100%;
    height: auto;
    display: block;
}

.img-center img {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-right {
    float: none;
    margin: 1rem auto;
    padding: 0;
    max-width: 100%;
    text-align: center;
    height: auto;
}

.img-right img {
    max-width: 100%;
    height: auto;
}

.img-left {
    float: none;
    margin: 1rem auto;
    padding: 0;
    max-width: 100%;
    text-align: center;
    height: auto;
}

.img-left img {
    max-width: 100%;
    height: auto;
}
.center_box{
    width: 50%;
    margin: 1rem auto;
    border: 3px solid beige;
    padding: 1rem;
    background-color: beige;
}
.white_box{
    margin: 0.5rem;
    padding: 1rem;
    background-color: white;
    border: 3px solid var(--dark_base);
}

blockquote {
    margin: 1rem 0.5rem;
    padding: 0.5rem 1rem;
}
/* ==================== monitor Styles =================== */
    /* .mon_envelope{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 960px;
    } */
    #chandler_graphic{
        display: flex;
        justify-content: center;
    }
    #polarEQ_graphic{
        width: 100vw;
        max-width: 1030px;
        margin-bottom: 3rem;
        margin-left: -35px;
    }
    #quake_table{
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    .quake_table{
        font-family: Verdana, Geneva, Tahoma, sans-serif;
        background-color: white;
        margin: 1rem;
        font-size: .68rem;
        flex: 0 1 420px;
    }
    .main_header{
        font-size: 1rem;
        font-weight: bold;
    }
    .subtitle{
        font-weight: bold;
        text-align: center;
    }
    .datecell, .magcell, .depthcell{
        text-align: center;
    }
    .latcell, longcell{
        text-align: right;
        padding-right: 1rem;
    }
    .pq_footnote{
        padding-left: 1rem;
        padding-bottom: 1rem;
    }
    #anim_img_bdr{
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        margin: 1rem auto;
    }
    #anim_img_bdr img{
        border-top: 5px solid #CCCCCC;
        border-right: 5px solid #AAAAAA;
        border-bottom: 5px solid #666666;
        border-left: 5px solid #888888;
    }
    

/* ==================== RESPONSIVE TABLES =================== */
table{
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

table tbody, table thead {
    display: table;
    width: 100%;
}

.quake_table{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: white;
    margin: 1rem 0;
    font-size: 0.68rem;
}

.main_header{
    font-size: 0.9rem;
    font-weight: bold;
}

.subtitle{
    font-weight: bold;
    text-align: center;
}

.datecell, .magcell, .depthcell{
    text-align: center;
    padding: 0.5rem;
}

.latcell, .longcell{
    text-align: right;
    padding-right: 0.5rem;
}

.pq_footnote{
    padding: 0.5rem 1rem;
}

/* Monitor Styles */
.mon_envelope{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

#polarEQ_graphic{
    margin-bottom: 2rem;
    margin-left: 0;
    max-width: 100%;
}

#anim_img_bdr{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    margin: 1rem auto;
    max-width: 100%;
}

#anim_img_bdr img{
    border-top: 5px solid #CCCCCC;
    border-right: 5px solid #AAAAAA;
    border-bottom: 5px solid #666666;
    border-left: 5px solid #888888;
    max-width: 100%;
    height: auto;
}

/* ==================== TEXT STYLES =================== */
.center {text-align: center;}
.right  {text-align:right;}
.justify {text-align: justify;}
.red{color: var(--red);}
.bigred{color: var(--red); font-weight: bold; font-size: 2em;}
.highlight{background-color: yellow;}

/* ==================== PRODUCT STYLES =================== */
.row_container{
    flex: auto;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-around;
    gap: 1rem;
}

.row-item{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    /* width: 100%; */
}
#bookcell img{
    margin: 0 auto;
}
.fullwidth{
    width:100vw;
    height: auto;
}

/* ==================== FOOTER =================== */
footer{
    display: block;
    font-size: 0.75rem;
    width: 100%;
    max-width: 100%;
    background-color: rgba(255,255,255,.3);
    margin-top: 2em;
    padding: .3rem;
    text-align: center;
}

/* ========================  TABLET MEDIA QUERIES (640px+) ======================= */
@media (min-width: 640px) {
    body {
        font-size: 16px;
    }

    main {
        padding: 0 1rem;
    }

    article {
        padding: 0 1.5rem;
    }

    .white_box {
        margin: 1rem;
        padding: 1.5rem;
    }

    .img-right {
        float: right;
        margin: 0 0 1rem 1rem;
        max-width: 50%;
        text-align: left;
    }

    .img-left {
        float: left;
        margin: 0 1rem 1rem 0;
        max-width: 50%;
        text-align: left;
    }

    .row_container {
        flex-direction: row;
    }

    .row-item {
        width: auto;
    }

    .mon_envelope {
        flex-direction: row;
    }

    #polarEQ_graphic {
        margin-left: -35px;
    }
}

/* ========================  DESKTOP MEDIA QUERIES (720px+) ======================= */
@media (min-width: 720px) {
    main {
        width: 100%;
        max-width: 960px;
    }

    nav {
        flex-direction: row;
        justify-content: space-evenly;
        margin: 0.5rem 0;
    }

    #mainmenu {
        flex-direction: row;
        /* justify-content: space-evenly; */
        justify-content: center;

        align-items: center;
    }

    .menu_btn {
        padding: 10px 34px;
        margin: 0;
        text-align: left;
    }

    /* Desktop Dropdown Submenu */
    .submenu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--bttn_base);
        min-width: 200px;
    }

    .menu_btn:hover .submenu,
    .menu_btn.active .submenu {
        display: block;
    }

    .submenu li {
        background-color: var(--bttn_base);
        font-size: 0.8rem;
    }

    .caption-left {
        text-align: left;
    }

    .caption-right {
        text-align: right;
    }

    footer {
        width: 100vw;
    }
}

/* ========================  LARGE DESKTOP (1200px+) ======================= */
@media (min-width: 1200px) {
    body {
        font-size: 18px;
        
    }
    .fullwidth{
        width: 100%;
        height: auto;
    }
}

/* ========================  PRINT STYLES ======================= */
@media print {
    nav, footer {
        display: none;
    }

    body {
        background: white;
    }

    .white_box {
        border: 1px solid #ccc;
    }
}
