/********************************************************************/
/***************************	GENERAL   **************************/
/********************************************************************/



/* 1. GLOBAL RESET: Fixes the alignment of everything */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers everything on the page */
    font-family: 'Times New Roman', serif;
    background-color: #fff;
}

/* 2. LOGO & HEADER SPACING */
#top-header { /* Or whatever ID your logo/header uses */
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

/* 3. CLEAN UP THE NAV MENU (Responsive & Mobile Friendly) */
.main-nav {
    width: 90%; /* Keeps it from hitting screen edges on mobile */
    max-width: 500px;
    margin: 20px auto;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    border-bottom: 1px solid #f5f5f5;
    background: #fff;
}

/* Gray Arrow circles from your screenshot */
.nav-item::after {
    content: '\203A';
    color: #ccc;
    font-size: 1.4rem;
    background: #f9f9f9;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* 4. STATS ALIGNMENT (Fixes the bottom section) */
.weather-stats-container {
    width: 90%;
    max-width: 500px;
    margin-top: 20px;
    color: #1a3c5e; /* Your dark blue brand color */
}

body {
    margin: 0;
padding: 0; }



div.ui-page.ui-page-theme-a.ui-page-active {
    background-color: transparent; width: 100%; height: auto;"
}


.ui-bar-d{ background:none}

td a:link { color: #444; text-decoration: none }

#logo a:visited { color: #444; text-decoration: none }
#footer a:link { color: #a9a9a9; text-decoration: none }
.barlinks { color: #dcdcdc; line-height: 16px; text-decoration: none }
#footer a:visited { color: #a9a9a9; text-decoration: none }
.graylinks { color: #dcdcdc; line-height: 10px; text-decoration: none }

.logoText { 
    display: inline-block;
    color: #888;
    font-style: italic;
    font-size: .8em;
    font-family: 'Times New Roman', serif;
    text-align: center;
}


.page { 
    width: 100%; 
    height: auto;
    background-color : transparent;
    border-color : #d3d3d3;
    /*width : 689px;*/
    margin : 0 auto;
    padding : 0 20px 20px 20px;
    border-style : solid;
    text-align: center;
}

/*{
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0;
    text-align: center; }*/

#recentRain  { color: #daa520; font-size: large; font-family: 'Times New Roman', serif; padding-bottom: 10px; border-bottom: 1px solid #000 }

.currentXlarge { 
    color: #daa520;
    font-size: x-large;
    text-shadow: 1px 1px 1px #DDD;
    font-family: 'Times New Roman', serif;
    border-bottom: 1px solid #000 }

.currentXlarge1 { color: #daa520; font-size: x-large; font-family: 'Times New Roman', serif; padding-bottom: 5px; border-bottom: 1px solid #000 }
#intervalText  { color: #444; font-size: medium; font-family: 'Times New Roman', serif; border-bottom: 1px solid #000; padding-bottom: 10px; padding-top: -10px;}

p.bottomStats  { color: #444; text-align: left; font-size: medium; font-family: 'Times New Roman', serif; margin-left: 0px }

.thankYou { color: #c0c0c0; font-size: medium; font-family: 'Times New Roman', serif; text-align: center }

.statsKey  { 
    color: black; 
    font-size: medium; 
    font-family: 'Times New Roman', serif; 
    margin-right: 8px;
    padding-left: 12px;
    text-shadow: 0px 0px 5px rgba(0, 153, 255, 0.7);
    /*background-color: rgba(255, 255, 255, 0.5);*/
}

.rainRate  { 
    color: #888; 
    font-size: medium; 
    font-family: 'Times New Roman', serif; 
    padding-bottom: 15px; 
    border-bottom: 1px solid #000; 
}

.statsValue  { 
    /*color: #cc9900;*/
    color: darkslategray;
    font-size: medium; 
    font-family: 'Times New Roman', serif;
    text-shadow: 0px 0px 5px rgba(102, 102, 153, 0.8);
}

.forecast { color: #808080; font-size: medium; font-family: 'Times New Roman', serif }
#mostRecentRain { color: #888; font-size: medium; font-family: 'Times New Roman', serif }
#currentTemp { color: #daa520; font-size: large; font-family: 'Times New Roman', serif }
#dentonHeader { color: #a9a9a9; font-weight: bold; font-size: medium; font-family: 'Times New Roman', serif }
#todayText { color: #000; font-size: large; font-family: 'Times New Roman', serif }
.header { color: #d3d3d3; font-size: large; font-family: 'Times New Roman', serif }
.header2 { color: #d3d3d3; font-weight: bold; font-size: large; font-family: 'Times New Roman', serif }
.headerMobile { background-color : transparent; color: #d3d3d3; font-size: medium; font-family: 'Times New Roman', serif }
#whiteText { color: #fff; font-size: medium; font-family: 'Times New Roman', serif }
.whiteText1 { color: #fff; font-size: medium; font-family: 'Times New Roman', serif }

#homePage {
    width: 100%; 
    height: auto;
    margin: 0 auto;
    padding : 0;
    text-align : center;
    background-color : transparent;
}

.accuweather { margin-top: 45px; margin-left: 200px }

.bold-text {font-weight: bold}

.italics {font-style: italic}

.paragraph {font:15px Didot,Georgia,Times}
    
h3 {font-family: 'Times New Roman', serif}

* {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

p.buttons {
    margin-top: -.75em; }


/* Buttons */
.btn {
  background: #f5f5f5;
  background-image: -webkit-linear-gradient(top, #f5f5f5, #dddfe0);
  background-image: -moz-linear-gradient(top, #f5f5f5, #dddfe0);
  background-image: -ms-linear-gradient(top, #f5f5f5, #dddfe0);
  background-image: -o-linear-gradient(top, #f5f5f5, #dddfe0);
  background-image: linear-gradient(to bottom, #f5f5f5, #dddfe0);
  -webkit-border-radius: 5;
  -moz-border-radius: 5;
  border-radius: 5px;
  display: inline-block;
  width: 60%;
  text-shadow: 1px 1px 3px #777;
  font-family: Georgia;
  color: #000;
  font-size: 15px;
  padding: 10px 20px 10px 20px;
  text-decoration: none;
}

.btn:hover {
  background: #edf2f5;
  background-image: -webkit-linear-gradient(top, #edf2f5, #cdd0d1);
  background-image: -moz-linear-gradient(top, #edf2f5, #cdd0d1);
  background-image: -ms-linear-gradient(top, #edf2f5, #cdd0d1);
  background-image: -o-linear-gradient(top, #edf2f5, #cdd0d1);
  background-image: linear-gradient(to bottom, #edf2f5, #cdd0d1);
  text-decoration: none;
}

.section_header { text-align: left; color: #000; font-size: large; font-family: 'Times New Roman', serif; }

p.stats_header { color: #000; font-size: large; font-family: 'Times New Roman', serif; }

p.volunteers { text-align: left; color: rgb(246,152,157); font-size: medium; font-family: 'Times New Roman', serif;}

.italic {
    font-style: italic;
    font-weight: bold;
}

.align-center {
    text-align: center !important; }

.aw-widget-current {
    padding-bottom: 15px; border-bottom: 1px solid #000; }

.aw-widget-span {
    color: #444; font-size: medium; font-family: 'Times New Roman', serif; }

.ui-body-c, .ui-dialog.ui-overlay-c {
    /*background: #fff;*/
    background-image: none; }

.padded {
    font-family: 'Times New Roman', serif; }


table td.yearsTopText {
    
    color: #ddd;
    font-size: medium;
    font-family: 'Times New Roman', serif;
    }

.newLinkNotice {
    font-weight: bold;
    color: seagreen; }

/* Replaces the old .right and .footerStuff logic */
.right {
    background-color: rgb(193, 255, 128); /* Your signature green */
    width: 100%;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Professional Oval Donate Button */
.donate {
    display: inline-block;
    color: #333300 !important;
    min-width: 160px;
    padding: 15px 25px;
    background-color: transparent;
    border: 2px solid #333300;
    border-radius: 50px; /* Modern oval look */
    text-align: center;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 1.2em;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.donate:active {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(1px);
}

/* Animal Shelter Section */
.shelter-section {
    padding: 40px 20px;
    background-color: rgb(255, 255, 240); /* Off-white background from screenshot */
    text-align: center;
}

.shelter-section h5, .shelter-section h6 {
    font-family: Arial, sans-serif;
    margin: 10px 0;
    color: #333;
}

.shelter-img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', serif;
    margin: 0;
    padding: 10px;
    background-color: #fff;
    line-height: 1.5;
}

/* RESPONSIVE CONTAINER: Adapts to screen size */
.container {
    max-width: 600px; /* Limits width on desktop, 100% on mobile */
    margin: 0 auto;
}

/* NAVIGATION MENU: Matches your screenshot layout */
.nav-menu {
    list-style: none;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.nav-item {
    border-bottom: 1px solid #eee;
    background-color: #fff;
}

.nav-item:last-child {
    border-bottom: none;
}

.nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* ARROW ICON: Matches the grey circular icon in your image */
.arrow-icon {
    color: #999;
    font-size: 1.2rem;
}

/* WEATHER STATS SECTION */
.stats-header {
    font-size: 1.25rem;
    font-weight: normal;
    margin: 20px 0;
    text-align: center;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #1a3c5e; /* Dark Blue from your site */
}

.stat-label {
    font-weight: bold;
}

.stat-value {
    color: #666; /* Grey for data values like 0.00 */
}

/* MOBILE ADJUSTMENTS: For very small screens */
@media screen and (max-width: 480px) {
    .nav-link {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .stats-header {
        font-size: 1.1rem;
    }
}

/* Container for the Navigation */
.main-nav {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    margin: 20px auto;
    max-width: 100%; /* Spans full width on mobile */
    overflow: hidden;
    font-family: 'Times New Roman', serif;
}

/* Individual Link Items */
.nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    transition: 0.2s;
}

.nav-item:last-child {
    border-bottom: none;
}

/* Adding the gray arrow icon from your screenshot via CSS */
.nav-item:after {
    content: '\203A'; /* This is the chevron (›) character */
    color: #bbb;
    font-size: 1.8rem;
    font-weight: normal;
    background: #f0f0f0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 10px;
}

/* Hover/Touch State */
.nav-item:active, .nav-item:hover {
    background-color: #f9f9f9;
}

/* Mobile Tweak: Ensure it looks good on small screens */
@media screen and (max-width: 480px) {
    .nav-item {
        padding: 12px 15px;
        font-size: 1rem;
    }
}

/* --- MOBILE RESET & SCALING --- */
html, body {
    margin: 0;
    padding: 0;
    width: 100% !important;
    overflow-x: hidden; /* Prevents side-scrolling */
    -webkit-text-size-adjust: 100%; /* Prevents iOS from shrinking text */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers your logo and text */
}



/* --- COMPACT PROFESSIONAL NAV MENU (25% Smaller) --- */
.main-nav {
    width: 95% !important; 
    max-width: 375px; /* Reduced from 500px */
    margin: 15px auto !important; /* Reduced from 20px */
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    overflow: hidden; /* Ensures background doesn't bleed past rounded corners */
}

.nav-item {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 13px 12px !important; /* Reduced from 18px 15px */
    font-size: 0.85rem !important; /* Reduced from 1.1rem */
    color: #333 !important;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.nav-item:last-child {
    border-bottom: none; /* Cleaner look at the bottom */
}

/* Scaled down the gray arrow circles */
.nav-item::after {
    content: '\203A';
    color: #999;
    background: #f7f7f7;
    width: 22px;  /* Reduced from 28px */
    height: 22px; /* Reduced from 28px */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem; /* Reduced from 1.5rem */
}

/* 1. BUTTON STYLING */
.nav-container {
    text-align: center; /* Centers the button on the page */
    margin-bottom: 10px;
}

.nav-toggle {
    background-color: #333;
    color: white;
    padding: 12px 24px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: 6px;
    font-family: inherit;
}



/* --- FIXING THE STATS SECTION --- */
/* This targets the "Other Denton Weather Stats" area */
.stats-container, #bottom-stats { 
    width: 95% !important;
    max-width: 500px;
    text-align: left;
    font-size: 1rem !important;
    line-height: 1.6;
    margin-top: 25px;
    color: #1a3c5e; /* Your dark blue */
}

/* FORCE EVERYTHING TO STAY ON SCREEN */
html, body {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important; /* Prevents the horizontal scroll */
    margin: 0;
    padding: 0;
}


/* FIX THE CONTAINER */
.container, .main-nav, .stats-container {
    width: 95% !important; /* Gives a tiny margin on the sides */
    margin-left: auto !important;
    margin-right: auto !important;
}