html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}

body {
    line-height: 1.5;
    font-family: arial;
}

h1{font-size: 25px; line-height: 1.3;}
h2{font-size: 21px; line-height: 1.4;}
h3{font-size: 18px; line-height: 1.4;}
h4{font-size: 16px; line-height: 1.4;}

article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
nav ul{list-style:none}
blockquote,q{quotes:none}
blockquote:before,blockquote:after,q:before,q:after{content:none}
a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent}
ins{background-color:#ff9;color:#000;text-decoration:none}
mark{background-color:#ff9;color:#000;font-style:italic;font-weight:bold}
del{text-decoration:line-through}
abbr[title],dfn[title]{border-bottom:1px dotted;cursor:help}
table{border-collapse:collapse;border-spacing:0}
hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}
input,select{vertical-align:middle}

/* Background and Layout */
body,html {
    background: linear-gradient(135deg, #331B3F 0px, #ffffff 400px);
    min-height: 100vh;
    background-attachment: fixed;
}

/* Header */
header {
    background: transparent;
    padding: 20px 30px;
    max-width: 940px;
    margin: auto;
    border-bottom: 4px solid #331B3F;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

#logo h1 {
    font-family: Arizonia, Georgia, serif;
    font-size: 40px;
    color: #000;
    margin: 0;
}

#logo {
    align-self: flex-start;
}

/* Navigation */
nav {
    align-self: flex-end;
    margin-bottom: -4px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin: 10px;
}

nav ul li a {
    background: linear-gradient(135deg, #F5F5F5 0%, #E0E0E0 50%, #CCCCCC 100%);
    padding: 8px 16px;
    font-size: 16px;
    text-decoration: none;
    font-weight: bold;
    color: #444;
    border-radius: 0;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
    line-height: 1.2;
}

nav ul li a:hover {
    background: linear-gradient(135deg, #331B3F 0%, #5D4E75 100%);
    color: white;
    border-color: #331B3F;
}

/* Logo Container */
#logos {
    position: relative;
    width: 400px;
    height: 150px;
    align-self: flex-end;
}

#logos .usgen-logo {
    position: absolute;
    top: -18px;
    left: -38px;
    z-index: 1;
}

#logos .mogen-logo {
    position: absolute;
    top: 40px;
    left: 150px;
    z-index: 2;
}

/* Text and Paragraphs */
sup { vertical-align: super; }

p {
    line-height: 1.6;			
    margin-bottom: 1em;
}

article p {
    line-height: 1.6;
}

/* Float Images */
.float-left {                  
    float: left;
    margin: 0 15px 10px 0;
}

article p.source {
	 text-align:right;
	 font-size:smaller;
	 font-style:italic;
	 }
	 
article p.tiny {
     font-size: 12px; 
     }

/* County Table */
.county-table {
    border: none;
    width: 100%;
    line-height: 1rem !important;
}

.county-table td {
    padding: 5px 20px 5px 0;
    border: none;
    vertical-align: top;
}

.county-table td.co { 	
    border-bottom: 2px solid #331B3F !important;
}

.county-table a { 
    text-decoration: none !important; 
}

/* Main Content */
#pageContent {
    max-width: 1000px;
    margin: auto;
    border: none;
}

main {
    float: left;
    width: 60%;
}

main p.lastupdate { 
    text-align: right;
    font-size: smaller;
}

article {
    border-bottom: 2px dotted #999;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

article h2 {
    font-family: Arizonia, Georgia, serif;
    font-weight: 600;
    font-size: 36px;
    margin-bottom: 12px;
}

/* Style the buttons that are used to open and close the accordion panel */
.accordion {
  background: linear-gradient(135deg, #ffffff 0px, #331B3F  650px);
  font-size:large;
  color: #000;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .accordion:hover {
  background-color: #331B3F;
}

/* Style the accordion panel. Note: hidden by default */
.panel {
  padding: 0 18px;
  background-color: white;
  display: none;
  overflow: hidden;
}
/* ----------- */

/* Sidebar */
aside {
    float: right;
    width: 30%;
    border-right: 3px solid #331B3F;
    margin-right: 10px; /* Added missing margin */
    padding-bottom: 20px;
}

aside ul li, aside p {
    line-height: 1.5rem;
}

aside > div {
    margin: 10px auto;
    min-height: 100px;
    line-height: 1.3rem;
    padding: 10px 0; /* Added padding for spacing */
}

aside h3 {
    font-family: Arizonia, Georgia, serif;
    font-weight: 600;
    font-size: 30px;
    margin-bottom: 12px;
}

/* Footer */
footer {
    background: linear-gradient(0deg, #331B3F 0%, #ffffff 40%);
    max-width: 1000px;
    margin: auto;
    clear: both;
    text-align: center;
    padding: 20px;
}

footer p { 
    padding: 10px 0; /* Simplified padding */
}

footer p a { 
    padding: 0 10px 0 5px; 
} 

footer p.small, footer span { 
    padding: 0; 
    font-size: small; 
}

address {
    padding: 10px 20px 30px 10px;
}

/* Sections */
body > section {
    max-width: 1000px;
    margin: auto;
    padding: 30px 0px;
    border-bottom: 1px solid #999;
    color: #333;
}

section h2 { 
    text-align: right; 
}

/* Media Queries */
@media screen and (max-width: 1000px) {
    body > section {
        padding: 30px 20px;
    }
}

@media screen and (max-width: 600px) {
    main {
        float: none;
        width: 100%;
    }
    aside {
        float: none;
        width: 100%;
        border-right: none;
        margin-right: 0;
    }
}
