/* ====================================================  */
/*         Style sheet for the Hamblen County            */
/*            Genealogical Society Web Site              */
/*               Created: March 3. 2023                  */
/*   Author: Bryan Lawson, support@hctngenealogy.org     */
/* ====================================================  */

html {
   margin: 0;
   padding: 0;
   width: 100%;
   height: 100%;
   box-sizing: border-box;
}
body {
   margin-top: 0;
   padding: 0;
   height: 100%;
   max-width: 2400px;
   box-sizing: border-box;
   margin-left: auto;
   margin-right: auto;
   font-family: "Bookman Old Style", "Times New Roman", serif;
   font-size: 2.6vh;
   background-color: #333;
   scroll-behavior: smooth;
}

/* --- TOP NAVIGATION MENU ---*/
#topnav {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    z-index: 9;
}
#topnav a { 
    position: relative;
    float: left;
    height: 38px;
    font-size: 2.8vh;
    padding: 6px 30px;
    background-color: #333;
    color: #eee;
    text-align: center;
    text-decoration: none;
}
.icon {display: none;}
@media screen and (max-width: 600px) {
    #topnav {display: none;}
    #topnav a {
        position: relative;
        top: 0;
        left: 0; 
        float: left;
        width: 80%;
        background-color: #333;
        color: #eee;
        text-align: left;
        padding: 6px 16px;
        border: 1px solid #eee;
    }
    .icon {
        display: block;
        margin: 0; 
        position: fixed;
        top: 2px;
        right: 2px;
        width: 65px;
        height: 60px;
        font-size: 20px;
        padding: 4px;
        background-color: #80ff80;
        color: #000;
        border: 2px solid #000;
        text-align: center;
        text-decoration: underline;
        z-index: 2;
    }
}
/* --- BACKGROUND IMAGES --- */
.bkg {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
#main {
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1)), url('https://beetle63.com/HCGS/images/Hamblen_Co_map.jpg');
    background-size: cover;
}
#main-text {
    position: absolute;
    top: 450px;
    left: 60px;
    padding: 0;
    width: 70%;
    text-align: center;
    background-color: #d5ae77;
    color: #000;
    border: 6px double #000;
    box-shadow: 7px 7px #333;
}
#main-text h1 {
  margin: 0;
  padding: 12px 0 0 0;
  text-align: left;
  text-indent: 8px;
  font-size: 3.8vh;
}
#main-text p {
    margin: 0;
    padding: 0 60px;
    text-align: left;
    text-indent: 22px;
    font-size: 3vh;
    font-weight: bold;
}
#main-text img {
  display: inline;
  vertical-align: baseline;
  padding: 20px;
  float: left;
  height: 100px;
  width: 100px;
}
#main-text img::after {
  content: "";
  clear: both;
  display: table;
}
.dark {
    width: 100%;
    padding: 40px 0;
    background-image: linear-gradient(#d5ae77,#000);
    background-attachment: scroll;
}
.books, .pubs {
   height: 100%;
   background-image: url('https://beetle63.com/HCGS/images/books.jpg');
   background-size: cover;
}
.diary {
   height: 100%;
   background-image: url('https://beetle63.com/HCGS/images/diary.jpg');
   background-size: cover;
}
.census {
   height: 100%;
   background-image: url('https://beetle63.com/HCGS/images/census.jpg');
   background-repeat: repeat-y;
   background-size: cover;
}
.map {
   height: 100%;
   background-image: url('https://beetle63.com/HCGS/images/Hamblen_Co_map.jpg');
   background-size: cover;
}
#military {
    margin: 0;
    padding: 120px 0 120px 0;
    min-height: 100%;
    background-image: url("https://beetle63.com/Tenn/images/flag.jpg");
    background-size: cover;
}
.graves {
   height: 100%;
   background-image: url('https://beetle63.com/HCGS/images/graves.jpg');
   background-size: cover;
}
@media screen and (max-width: 600px) {
    .bkg {background-attachment: scroll;}
    #main {background-image: url("https://beetle63.com/HCGS/images/Hamblen_Co_map2.jpg");
          background-size: cover;}
    #main-text {top: 300px; width: 80%;}
    #main-text img {float:none;display:block;}
    #main-text h1 {text-align:center;text-indent:0;}
    #main-text p {font-size: 3vw;}
}

/* --- CONTAINERS --- */
.container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 60px 0;
    background-color: transparent;
}
.text-box {
    position: relative;
    width: 80%;
    padding: 0 0 60px 0;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    background-color: #d5ae77;
    color: #000;
    border: 6px double #000;
    box-shadow: 7px 7px #333;
}
.announcement {
    background-color: #ccc;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding: 0; 
    border: 6px double #000;
}
.border {
    margin: 20px 60px 40px 60px;
    padding: 10px;
    border: 3px double #000;
    box-shadow: 7px 7px #333;
}    
.center {
    margin: 0;
    width: 98%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.half {
    padding: 0;
    float: left;
    width: 49%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.center::after {
    content: "";
    clear: both;
    display: table;
}
img {vertical-align: bottom;}

/* --- HEADERS AND FONTS --- */
h1 {
    margin: 0;
    padding-top: 60px;
    padding-bottom: 10px;
    font-size: 4vh;
    font-variant: small-caps; 
    color: #eee;
    text-align: center;
    text-shadow: 2px 3px #000; 
} 
h2 {
    text-indent: 40px;
    padding: 0;
    font-size: 2.8vh;
    text-align: left;
    color: #000;
}
h3 {
    margin: 10px;
    padding: 0;
    font-size: 2.8vh;
    text-align: center;
    color: #000;
}
p {
    margin: 0;
    padding: 12px 40px 10px 40px;
    font-size: 2.6vh;
    color: #000;
}
.note {
    width: 80%;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    padding: 6px;
    background-color: #ddd;
    color: #000;
    font-size: smaller;
    border: 3px double #000;
    text-align: left;
}
a {color: #0000ff; text-decoration: underline;}
li {
    margin: 0;
    padding: 4px 40px;
    font-size: 2.6vh;
    color: #000;
    list-style-type: disc;
    list-style-position: inside;
}
.red {background-color: red; color:#eee; font-weight: bold;}
.justify {text-align: justify;}

/* --- RESPONSIVE GRID ---- */
.row {
   display: block;
   width: 99%;
   margin-left: auto;
   margin-right: auto;
}
.logo-sm, .logo-lg {
    width: 100%;
    padding: 0;
    background-color: wheat;
    border: 2px solid #000;
    border-radius: 20px;    
}
.col {
    box-sizing: border-box;
    width: 16.6%;
    height: auto;
    float: left;
    padding: 6px;
    font-size: 14px;
    text-align: center;
}
.row::after {
  content: "";
  clear: both;
  display: table;
}


/* --- TABLE ---- */
table {
    width: 94%;
    margin-left: auto;
    margin-right: auto;
    font-size: 2.4vh;
}
th {padding: 6px; text-align: center}
tr {padding: 6px; text-align: left}
@media only screen and (max-width: 600px) {
    .container {padding: 40px 0}
    .text-box {width: 96%; padding: 0}
    .announcement {width: 94%; padding: 0; border: 6px double #000; margin-bottom: 12px}
    .announcement p {padding: 0 12px 12px 12px; text-align: justify;}
     h1 {font-size: 3vh;}
     h2 {font-size: 2vh; text-indent: 0;text-align: center}
     h3 {font-size: 2.2vh;}
     p, li {font-size: 1.8vh; padding: 6px 12px 12px 12px;}
     li, th, td {font-size: 1.6vh}     
     iframe {width: 95%}
     .logo-sm {width: 50px;}
     .logo-lg {width: 100px;}
}
/* --- FOOTER --- */
footer {
    position: relative;
    bottom: 0;
    left: 0;
    padding: 0;
    height: auto;
    background-color: #333;
    color: gold;
}
.footer-box {
    position: relative;
    width:  80%;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    padding: 20px 0;
}
footer p {
    padding: 0;
    color: gold;
    font-size: 1.6vh;
    font-style: italic;
}
footer a {color:#00b058;}
@media screen and (max-width: 600px) {
    footer p {padding: 10px 0}}