/* WalkTour_style.css
 * ==================
  * Rev new: Steve Fox, Mar 25, 2015
  * Rev A: S. Fox 4/17/2020
 *
 * This common style sheet overrides the browser defaults for many HTML features.
 * It gives the whole website a consistent look and feel.
 * Colors, borders, text sizes, etc. should be controlled by these settings.
 * Please don't override them. Instead, if you need new styles, add them to this file.
 *
 * Reference website: http://www.w3schools.com/css/
 *
 */

:root {
  --aside-margin-right: 0.5%;
  --figure-margin-right: 0.5%;
  --motif-color: #a02c3f;
}

/* This ensures the box model includes the borders, not just the content width */
* {
    box-sizing: border-box;
}

/* ------ Setup for printing -------------------------
@media only print {
   body {
      font-size: 10pt;
      line-height: 120%;
      background: white;
      font-family: Times;
      column-count: 2;
      -webkit-column-count: 2;
      -moz-column-count: 2;
   }
}*/

/* ------ Setup for big screens --------------------------- */
@media only screen {
   body {
      font-family: Arial;
      font-size: 1em;
      color: black;
      background-color: white;
   }
}

/* ------ Setup for smartphones ---------------------------
@media only screen and (max-width: 480px) {
   body {
      column-count: 1;
      -webkit-column-count: 1;
      -moz-column-count: 1;
   }
}*/

@media print  { .noprint  { display: none; } }

/* Menu at top of the screen */
nav {
   position: fixed;
   left: 0;
   top: 0;
   font-size: 1.5em;
   width: 100%;
   text-align: right;
   padding: 0%;
   z-index: 20;
}
a.nav-link:link,    /* unvisited link */
a.nav-link:visited, /* visited link */
a.nav-link:hover,
a.nav-link:active
{
    text-decoration: none;
    color: white;
    background-color: black;
}

/* everything else is below the menu */
#content {
   position: relative;
   top: 3em;
   z-index: 10;
}

article {
   clear: both;
   width: 100%;
   border:  4px ridge var(--motif-color);
   border-radius: 10px;
   margin: 0.0%;
   margin-top: 5%;
   margin-bottom: 1%;
   padding: 0.5%;
   overflow: hidden;
}

header {
   font-size: 1.5em;
   background-color: var(--motif-color);
   color: white;
   font-weight: bold;
   text-align: center;
   text-indent: 0em;
   line-height: 150%;
   padding: 0%;
   margin: 0%;
}

figure {
    width: 100%;
    margin: 0%;
    margin-right: var(--figure-margin-right);
    border: solid 2px var(--motif-color);
    border-radius: 8px;
    /*border-bottom: solid var(--motif-color); */
    background-color: #e0b3af;
}

/* desktop normal size monitors */
@media all and (orientation: landscape) and (min-width: 376px) {
   figure {
      width: calc(50% - var(--figure-margin-right));
      float: left;
   /*     border-right: solid var(--motif-color);
    border-bottom: none; */
   }
}

/* enormous monitors */
@media all and (orientation: landscape) and (min-width: 2401px) {
   figure {
      width: calc(25% - var(--figure-margin-right));
      float: left;
   /*     border-right: solid var(--motif-color);
    border-bottom: none; */
   }
}


figure.small {width: calc(25% - var(--figure-margin-right)); border: 2px solid var(--motif-color); border-radius: 3px; }
figure.fullwidth {width: 100%;}

aside {
    width: 100%; /* small screens */
    float: left;
    padding: 0.5%;
    border: 2px solid var(--motif-color);
    border-radius: 6px;
    background-color: #e0b3af;
    margin-right: var(--aside-margin-right);
}
@media all and (min-width: 751px) { /* large screens */
    aside {
        width: calc(33.3333% - var(--aside-margin-right));
    }
}

@media all and (min-width: 2401px) { /* huge screens */
    aside {
        width: calc(20% - var(--aside-margin-right));
    }
}

aside.gone, aside.artifact { /* default for small screens */
    background-color: LightGray;
    border: solid black;
    width: calc(50% - var(--aside-margin-right));
}
@media all and (min-width: 751px) {
    aside.gone {
        width: calc(33.3333% - var(--aside-margin-right));
    }
}
aside.gone:before {
    content: "GONE: ";
}
@media all and (min-width: 751px) {
    aside.artifact {
        width: calc(20% - var(--aside-margin-right));
    }
}
aside.right { float: right; }

aside.map {
    background-color: PaleTurquoise;
}

figcaption {
   width: 100%;
   font-size: 1em;
   text-align: center;
   background-color: #e0b3af;
}

div.PageTitle { /* Use for the title of each page */
   position: relative;
   text-align: left;
   font-size: 2em;
   font-weight: bold;
   margin-bottom: 0.75em;
   margin-top: 0.5em;
}

/* - - - - - - - - - - - Heading styles - - - - - - - - - - - - - */
h1 {
   background-image: url("https://historiceverett.org/walkingtour/WalkTour_bullet.png"); /* icon acts like a big bullet */
   background-repeat: no-repeat;
   background-size: 1.5em;
   font-size: 2em;
   font-weight: bold;
   text-align: left;
   text-indent: 1.5em;
   line-height: 150%;
   padding: 0%;
   margin-top: 2.5%;
   clear: both;
}

h2 {
   font-size: 1.25em;
   background-color: var(--motif-color);
   color: white;
   text-align: center;
   font-weight: bold;
   padding-left: 0em;
   margin: 0em;
}

h3 {
   font-size: 1.2em;
   text-align: left;
   font-weight: bold;
   padding-left: 0em;
   margin-top: 0.5em;
   margin-bottom: 0.5em;
}

/* - - - - - paragraph styles- - - - - - - */
p { padding-left: 0.25%; }

.Explain, .explain { font-style: italic; padding-left:0.5%; }

.clear { clear: both; }

ul {
    list-style-position:inside;
    padding-left: 0.5%;
    overflow: hidden;
}

li {
    margin-bottom: 0.5em;
    padding-left: 1.5em;
}

/* - - - - - link styles - - - - - - - - - */
a:link { /* color: orange; */ }    /* unvisited link */
a:visited { /* color: #BCBA73; */ } /* visited link */
a:hover { /* color: yellow; */ }   /* mouse over link */
a:active { /* color: white; */ }  /* selected link */
a:hover img { /* opacity: 0.5; */ }

path:hover, polygon:hover, polyline:hover, line:hover
{
    stroke: red;
    filter: drop-shadow( 30px 30px 20px rgba(0, 0, 255, .7)); /*doesn't work, dunno why*/
    /*filter:url(#glow); /* glow is defined in the SVG */
}
text:hover {
  stroke: none; fill: green;
}

form, input { background-color: white; }

select {
  font-size: 1em;
  color: black;
  background-color: #e0b3af;
  border-top-color: gray;
  border-left-color: gray;
  border-right-color: black;
  border-bottom-color: black;
  border-radius: 6px;
  padding-left: 5px;
  padding-right: 5px;
  border-width: 2px;
  border-style: outset;
}


button, .button, .slider {
   font-size: 1em;
   color: black;
   background-color: #D67513; /* was #e0b3af; */
   border-top-color: gray;
   border-left-color: gray;
   border-right-color: black;
   border-bottom-color: black;
   border-radius: 6px;
   padding-left: 5px;
   padding-right: 5px;
   border-width: 2px;
   border-style: outset;
}

button:hover, .slider:hover {
   color: #FFF8E6;
   background-color: #D67513;
   border-top-color: #FFFFFF;
   border-left-color: #FFFFFF;
   border-right-color: #030105;
   border-bottom-color: #030105;
   opacity: 100%;
}

button:active, .slider:active {
   color: #FFA500;
   background-color: #763007;
   border-top-color: #BF7D00;
   border-left-color: #BF7D00;
   border-right-color: #000000;
   border-bottom-color: #000000;
   opacity: 100%;
}

/* slider bar */
/*input[type='range'] { width: 90%; }*/
.slider-container { line-height: 0.65; padding-top: 5px; }
.slider {
  -webkit-appearance: none;
  background: grey;
  width: 10em;
  height: 20px;
  transition: opacity 0.2s; -webkit-transition: 0.2s;
  border-top-color: black;
  border-left-color: black;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: var(--motif-color);
  cursor: ew-resize;
  border: 1px solid black;
  border-radius: 25px;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: var(--motif-color);
  cursor: ew-resize;
  border: 1px solid black;
  border-radius: 8px;
}
.slider:active { background-color: darkgrey;}
.checkboxes { display: inline-block; }


img {border: 0px; width: 100%; height: auto; loading: "lazy"; }
.img-enlargeable { cursor: zoom-in; }
 

address { /* for contact information */
   font-style: italic;
   text-align: center;
}

.webmaster {
   color: red;
   background-color: yellow;
}

.center { text-align: center; }

.credit {
   font-size: smaller;
   font-style: italic;
}
.major {
   font-size: larger;
   font-weight: bold;
}
.verysmall {
  font-size: small;
}
.white-background { background-color: white; opacity: 0.90; }

table {
    border: 1px solid var(--motif-color);
    border-collapse: collapse;
}

th {
    font-size: 1.25em;
    background-color: var(--motif-color);
    color: white;
    border: 1px solid var(--motif-color);
    font-weight: bold;
    text-align: center;
}

td {
    border: 1px solid var(--motif-color);
}


/* ------- following is for the section display in upper right corner. */
/* Requires scroll event listener (probably in WalkTour_script.css) */
   /* Fixed Dropdown in Upper Right Corner */
   #section-indicator {
   position: fixed;
   top: 30px;
   right: 0px;
   z-index: 1000;
}

#dropdown-button {
   background-color: white;
   opacity: 50%;
   color: black;
   padding: 5px 5px;
   border: 2px solid var(--motif-color);
   border-radius: 5px;
   font-size: 18px;
   cursor: pointer;
   /* margin-left: 200px; */
}

#dropdown-menu {
   display: none; /* Hidden by default */
   position: absolute;
   right: 0;
   background-color: var(--motif-color);
   opacity: 90%;
   border-radius: 5px;
   columns: 2;
   column-rule: 2px solid white;
   margin-left: 100%;
   z-index: 1000;
   /* margin-left: 200px; */
   /* margin-top: 5px; */
}

#dropdown-menu a {
   display: block;
   color: white;
   padding: 3px 3px;
   text-decoration: none;
   font-size: 16px;
   padding-right:30px;
   /* margin-left: 100%; */
}

#dropdown-menu a:hover {
   background-color: white;
   opacity: 90%;
   color: black;
}

/* Show dropdown menu when button is clicked */
#section-indicator:hover #dropdown-menu,
#section-indicator:focus-within #dropdown-menu {
   display: block;
}

/* div.prevent-clicks {
   position: fixed;
   top: 0; left: 0; width: 100%; height: 100%;
   background-color: black;
   opacity: 60%;
   z-index: 900;
   display: none;
} */

/* body:hover .prevent-clicks { display: block; } */

