/* Style-sheet information common to all Canalplan output. */

/* TESTING ONLY
.dist_field {
    background: pink;
}
*/

body {
    font-family: 'Open Sans', sans-serif !important;
    margin: 3px;
}

/* Narrow version */
@media only screen and (max-width: 1023px) {
    body {
        padding: 0;
        margin: 0;
    }
    div#wrapped-content {
        position: absolute;
        float:left;
        padding:5px;
        padding-right: 20px;
        padding-left: 10px;
    } 
    div#main-content {
        padding: 1em;
    }
    .block-of-text {
        padding: 0 5px 0 5px;
    }
}

/* Wide screens */
@media only screen and (min-width: 1024px) {
    /* allows checking in JS for auto collapse/expand etc */
    /* https://bricss.net/post/22198838298/easily-checking-in-javascript-if-a-css-media-query */
    body:after {
        content: 'widescreen';
        display: none;
    }
}

p {
    margin-bottom: 0.6em;
    margin-top: 0.6em;
}

h1 {
font-size: 180%;
color: #006633;
font-weight: bold;
margin-top: 0px;
margin-bottom: 5px;
font-variant: small-caps;
font-family: sans-serif;
} 

.hilight {background-color: yellow;}

w.darker {color: #004000}

/* a darker green paragraph text for contrast */
.dark {color: #002000}

/* styles used in gazetter entries (including in itineraries) */

.likeh2 {
  font-size: 140%;
  font-weight: 700;
  font-variant: small-caps;
  padding-top: 5px;
}

.likeh3 {
  font-size: 115%;
  font-weight: 600;
  font-variant: small-caps;
  padding-top: 5px;
}
  
.red_name {
  color: red;
  font-size: 110%;
  font-weight: 500;
}

.green_name {
  color: green;
  font-size: 110%;
  font-weight: 500;
}

.small {
  font-size: 70%
}

.small_text {
    font-size: 80%;
    margin-top: 1px;
    padding-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.small_list {
  margin-top: 2px;
  padding-left: 0em;
  margin-left: 0em;
  list-style: none;
}

.medium {
  font-size: 82%
}

/* end of gazetteer/itinerary entry styles */

TD.button, A.button {
  background: gray;
  font-family: "Helvetica, Arial, Sans-Serif";
  color: White; font-weight: bold;
  text-align: center;
  padding: 0.3em 0.6em;
  text-decoration: none;
  width: 140px;
}

H2 {
  FONT-SIZE: 16pt;
}

/* a non-underlined link for the checkbuttons and radio box text */
A.nounder {text-decoration: none; color: #660000}

/* A simple non-bulleted list */
.nobullet {
  list-style-type: none;
  padding: 0px;
}

/* Stuff for pop-up menus */

.pulist {
  color: black;
  list-style-type: none;
  padding: 1px;
  margin: 0;
}

.pumenu {
  top: 0;
  left: 0;
  position: absolute;
  width: 100px;
  z-index: 500;
  height: 0px;
  overflow: hidden; 
}

.pumenu_innards {
  background-color: yellow;
  border: 3px solid;
}

.wide_pumenu {
  top: 0;
  left: 0;
  position: absolute;
	height: 0px;
	overflow: hidden;
  z-index: 500;
  background-color: yellow;
}

A.menuline {
  text-decoration: none; 
  color: #660000;
}


div.wide_pumenu span:hover,div.pumenu span:hover {
  color: yellow;
  background-color: black;
}

.menuline span:hover {
  color:#ffffff; 
  background-color:#333387;
}

.buttonish {
  cursor: pointer;
  vertical-align: bottom;
  text-decoration: none;
  color :black; 
  border-style:outset; 
  background: #E0E0E0;
  border-width: 2px; 
  padding-left:0.5em; 
  padding-right:0.5em;
  font-size:75%; 
  font-family:sans-serif;
}

.linklike {
  cursor: pointer;
  color: blue;
  text-decoration: underline;
/*  vertical-align: 10%; */
}

.linklike-quiet {
  cursor: pointer;
  color: blue;
}

.items {
  list-style-type: none;
}

 
img.menuicon {
  border: 0px;
  padding: 0;
  margin: 0;
  padding-right: 2px;
  vertical-align: -8%;
  width: 16px;
  height: 16px;
}

img.buttonicon {
  border: 0px;
  padding-right: 2px;
  vertical-align: 8%;
  height:18px;
}

div.panel {
  padding-top: 1px;
  padding-bottom: 1em;
  padding-left: 0.5em;
  padding-right: 0.5em; 
}

div.panel-colour {
  background-color: #aaffaa;   
}

div.title {
  color: #006633;
  font-weight: bold;
  margin-top: 0px;
  margin-bottom: 5px;
  font-variant: small-caps;
  font-family: sans-serif;
} 

.banner {
  padding-top: 1px;
  padding-bottom: 1px;
  padding-left: 0.25em;
  padding-right: 0.25em; 
  background-color: #aaffaa;
}

.ls-banner {
  padding: 0.25em;
  padding-left: 1em;
  font-size: 120%;
}

div.gazbox {
  background-color: #87cefa;
  padding-left: 10px;
  padding-right: 10px;
}

.rtop {display:block;}
.rtop *{display: block; height: 1px; overflow: hidden; background: #aaffaa}
.brtop {display:block;}
.brtop *{display: block; height: 1px; overflow: hidden; background: #87cefa}
.r9  {margin: 0 9px}
.r6  {margin: 0 6px}
.r5  {margin: 0 5px}
.r4  {margin: 0 4px}
.r3  {margin: 0 3px}
.r2  {margin: 0 2px}
.r2-2{margin: 0 2px; height: 2px}
.r1-2{margin: 0 1px; height: 2px}
.r1-3{margin: 0 1px; height: 3px}

div.localtable {
  padding-left: 10px;
  padding-right: 10px;
  border: 1px solid black;
  background: white;
  padding-top: 0px;
  margin-top: 0px;
  height: 100%;
  overflow: auto;
}

.bortop {display:block;}
.bortop *{display: block; height: 1px; overflow: hidden; border: 1px black; border-style: none solid none solid; background: white}
.br9t  {margin: 0 9px; border-top:1px solid}
.br9b  {margin: 0 9px; border-bottom:1px solid}
.br6  {margin: 0 6px; border-left: 4px solid;}
.br4  {margin: 0 4px;}
.br3  {margin: 0 3px;}
.br2  {margin: 0 2px;}
.br2-2{margin: 0 2px; height: 2px;}
.br1-2{margin: 0 1px; height: 2px;}
.br1-3{margin: 0 1px; height: 3px;}


div.gobutton {
  float: left;
  height: 2em;
  padding-left: 1em;
  padding-right: 1em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.lightup {
  text-decoration: none;
  color: blue;
  list-style: none;
  margin-left: 0;
  padding-left: 0;
  margin-bottom: 0;
  margin-top: 0;
}

.lightup:hover {
  color:#ffffff;
  background-color:#333387;
  cursor: pointer;
}

.menulike {
  text-decoration: none;
  cursor: pointer;
}

.menulike:hover {
  color:#ffffff;
  background-color:#333387;
}

.clickable {
    text-decoration: none;
    cursor: pointer;
}

/* wikipedia like styles for common links */

a.extlink {
  color:#002BB8;
  text-decoration:none;
}

a.extlink:after {
    content: "\f08e";
    font-family: FontAwesome;
    font-weight: normal;
    font-style: normal;
    font-size: small;
    padding-left: 5px;
    color:#001060;
    display: inline-block;
    text-decoration: inherit;
}

/* "quiet" because they are less visually disruptive */

@media screen {
    .quiet {
        background:transparent none repeat scroll 0%;
        color:#002BB8;
        text-decoration:none;
    }
    .quiet:visited,.extlink:visited {
        color:#5A3696;
    }
    .quiet:active,.extlink:active {
        color:#FAA700;
    }
    .quiet:hover,.extlink:hover {
        text-decoration:underline;
    }
}

@media print {
    a.quiet {
        background:transparent none repeat scroll 0%;
        color:inherit;
        text-decoration:none;
    }
    
    .noprint {
        display: none;
    }
}

.optsbox {
  border-style: groove;
  border-width: 3px;
  display: inline-block;
  vertical-align: top;
  margin: 0.4em;
  padding: 0.2em;
}

fieldset.littlebox {
  border-style: groove;
  border-width: 3px;
  float: left; 
  margin: 0.2em; 
  height: 4em;
}

fieldset.simple {
  border-style: groove;
  border-width: 3px;
}  

@media only screen and (min-width: 1024px) {
    div#main-content {
        position: absolute;
        margin-left:215px; 
        float:left; 
        padding:5px; 
        padding-right: 20px;
        padding-left: 10px;
    }
  div#wrapped-content {
        position: absolute;
        margin-left:215px;
        float:left;
        padding:5px;
        padding-right: 20px;
        padding-left: 10px;
    } 
  .block-of-text {
      padding: 0 1em 0 1em;
  }
}

@media only screen and (max-width: 1023px) {
    
}

div.loginbox {
   background: lightblue;
   padding: 4px;
   padding-left: 10px;
   margin-bottom: 5px;
   border-radius: 10px;
   -moz-border-radius: 12px;
}

.popUp {
  position: absolute;
  top: 0;
  left: 0px;
  border: 1px solid black;
  padding: 5px; 
  background: #e0e0e0; 
}

.stopping-popup {
  position: absolute;
  top: 0;
  left: 0px;
  border: 1px solid black;
  border-radius: 8px;
  padding: 15px; 
  background: white;
}

.AlertMessage {
  position: absolute;
  top: 0;
  left: 0px;
  border: 1px solid black;
  border-radius: 15px;
  padding: 15px; 
  background: white;
  width:70%;
}

.AlertText {
    position: relative; 
    width:90%; 
    margin-left:auto; 
    margin-right:auto;
    padding-top: 0.5em;
    text-align: center;
}

.error_text {
  font-weight:bold;
  color:red;
}

ins {
  background: #E6FFE6;
}

del {
  background: #FFE6E6;
}

/* BUTTONS - from http://particletree.com/features/rediscovering-the-button-element/ */

/* removed ".buttons a," from next line as I want links to still work */
.buttons button{
    display:block;
    float:left;
    margin:0 7px 0 0;
    background-color:#f5f5f5;
    border:1px solid #dedede;
    border-radius: 8px;
    border-top:1px solid #eee;
    border-left:1px solid #eee;
    font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
    font-size:100%;
    line-height:130%;
    text-decoration:none;
    font-weight:bold;
    color:#565656;
    cursor:pointer;
    padding:5px 10px 6px 7px; /* Links */
}
.buttons button{
    width:auto;
    overflow:visible;
    padding:4px 10px 3px 7px; /* IE6 */
}
.buttons button[type]{
    padding:5px 10px 5px 7px; /* Firefox */
    line-height:17px; /* Safari */
}
*:first-child+html button[type]{
    padding:4px 10px 3px 7px; /* IE7 */
}
.buttons button img, .buttons a img{
    margin:0 3px -3px 0 !important;
    padding:0;
    border:none;
    width:16px;
    height:16px;
}
.button.button-second {
    left: -7px;
    border-left: 1px solid gray;
}

/* STANDARD */

button:hover, .buttons a:hover{
    background-color:#dff4ff;
    border:1px solid #c2e1ef;
    color:#336699;
}
.buttons a:active{
    background-color:#6299c5;
    border:1px solid #6299c5;
    color:#fff;
}

/* POSITIVE */

button.positive, .buttons a.positive{
    color:#529214;
}
.buttons a.positive:hover, button.positive:hover{
    background-color:#E6EFC2;
    border:1px solid #C6D880;
    color:#529214;
}
.buttons a.positive:active{
    background-color:#529214;
    border:1px solid #529214;
    color:#fff;
}

/* NEGATIVE */

.buttons a.negative, button.negative{
    color:#d12f19;
}
.buttons a.negative:hover, button.negative:hover{
    background:#fbe3e4;
    border:1px solid #fbc2c4;
    color:#d12f19;
}
.buttons a.negative:active{
    background-color:#d12f19;
    border:1px solid #d12f19;
    color:#fff;
}

/* INTERESTING */
.buttons a.interesting, button.interesting {
		color:#e8a317;
}
.buttons a.interesting:hover, button.interesting:hover {
		background:#fdd017;
		border:1px solid #fbb117;
		color:#e8a317;
}
.buttons a.interesting:active {
		background:#e8a317;
		border:1px solid #e8a317;
		color:#fff;
}

/* paragraphs of text spanning the whole screen are painful to read.  This makes them a bit prettier.  It's main use is in explanatory error messages from route planning and similar */

p.message-block {
  max-width:70em;
  margin: auto;
}

div.selector_box {
  float:left;
  display:none;
}

/* Breadcrumbs - only in gazetteer at present, but you might want them
anywhere */

div.breadcrumbs {
  margin-bottom:0.3em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid gray;
  font-size: 90%; 
}

input.inline-radio {
		vertical-align: middle; 
		margin: 0px; 
		margin-right:0.2em;
}

.hilabels input[type="radio"]:checked + label { 
    font-weight: bold;
}

.lowkey_select  {
  outline: 0;
  overflow: hidden;
	background: inherit;
	color: inherit;
/*  height: 30px; */
/*  background: #aaffaa;  */
/*  color:#747a80; */
  border: 0;
/*  padding:5px 3px 5px 10px; */
}

/* select option {border:1px solid #000; background:#010;} */

.lowkey_input {
		background: inherit;
		color: inherit;
		border: 0;
		text-align: right;
    width: auto;
}

.wait, .wait * { cursor: wait !important; }

.shadowed {
		background-color: #414141;
		background-image: -moz-linear-gradient(top,#555,#222);
		background-image: -ms-linear-gradient(top,#555,#222);
		background-image: -webkit-gradient(linear,0,0,0 100%,from(#555),to(#222));
		background-image: -webkit-linear-gradient(top,#555,#222);
		background-image: gradient(top,#555,#222);
		background-repeat: repeat-x;
		filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#555555',endColorstr='#222222', GradientType=0);
		border-color: #222 #222 black;
		border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
		filter: progid:dxImagetransform.microsoft.gradient(enabled=false);
		box-shadow: 3px 3px 8px 2px gray;
		-moz-box-shadow: 3px 3px 8px 2px gray;
}

img.smallshadow {
		margin: 4px;
		padding: 1px;
		border-radius: 5px;
		-moz-border-radius: 5px;
}

img.bigshadow {
		border-radius: 1em;
		-moz-border-radius: 1em;
}

img.bigphoto {
    width: auto;
    max-height: 500px;
    height: 70%;
}

fieldset {
    border-radius: 8px;
    -moz-border-radius: 8px;
}

hr.sectionbreak {
    padding: 0;
    border: none;
    border-top: medium double #333;
    color: #333;
    text-align: center;
}

hr.sectionbreak:after {
    content: "§";
    display: inline-block;
    position: relative; 
    top: -0.7em;  
    font-size: 1.5em;
    padding: 0 0.25em;
    background: white;
}

/* Hover effect menus etc */
.active-icon {
    color: peru;
}

.active-icon:hover {
  cursor: pointer;
  color: green;
}

/* To add to bootstrap styles to make them more cp-ish */

.extra-btn {
    background-color:#f5f5f5;
    border:1px solid #dedede;
    border-radius: 8px;
    border-top:1px solid #eee;
    border-left:1px solid #eee;
    font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
    font-size:100%;
    line-height:130%;
    text-decoration:none;
    font-weight:bold;
    color:#565656;
    margin-bottom: 10px;
    margin-top: 10px;
}

.extra-well {
    border-radius: 12px;
}

.extra-button-well {
    padding-top: 10px;
    padding-bottom: 10px;
}

.menubox {
    background-color: yellow;
    border: 1px solid black;
}

.outer-elabel {
    padding: 0px 0px 8px 8px; 
    background: url(../images/maps/point_bottom_left.png) no-repeat bottom left;
}

.inner-elabel {
    color:white;
    background-color: #000000; 
    padding: 2px;
    font-weight: bold;
}

/* based on http://stackoverflow.com/questions/13778703/adding-open-closed-icon -to-twitter-bootstrap-collapsibles-accordions */

 .accordion-caret .accordion-toggle:hover {
     text-decoration: none;
 }
 .accordion-caret .accordion-toggle:hover span,
 .accordion-caret .accordion-toggle:hover div,
 .accordion-caret .accordion-toggle:hover strong {
     text-decoration: underline;
 }
 .accordion-caret .accordion-toggle:after {
     font-size: 85%;
     font-weight: normal;
     font-variant: normal;
 }
 .accordion-caret .accordion-toggle:not(.collapsed):after {
     font-family: FontAwesome;
     content: "[\F0D8  collapse]";
     float: right;
 }
 .accordion-caret .accordion-toggle.collapsed:after {
     font-family: FontAwesome;
     content: "[\F0D7  expand]";
     float: right;
 }

/* see http://www.surrealcms.com/blog/whipping-file-inputs-into-shape-with-bootstrap-3 */
.btn-file {
    position: relative;
    overflow: hidden;
}
.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 999px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}

.spinner {
    border:0px; 
    height:1.5em; 
    vertical-align:text-top;
}

.intext-list {
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    list-style-position: inside;
}

.intext-item {
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

table.collines td + td { 
    border-left:1px solid gray; 
    padding-left: 0.5em;
    padding-right: 0.5em;
}

.TFtable {
		width:100%; 
		border-collapse:collapse; 
}
.TFtable td { 
		padding:7px; border:#4e95f4 1px solid;
}
.TFtable th { 
		padding:7px; border:#4e95f4 1px solid;
}
/* provide some minimal visual accomodation for IE8 and below */
.TFtable tr {
		background: #b8d1f3;
}
/*  Define the background color for all the ODD background rows  */
.TFtable tr:nth-child(odd) { 
		background: #b8d1f3;
}
/*  Define the background color for all the EVEN background rows  */
.TFtable tr:nth-child(even) {
		background: #dae5f4;
}

.cookiewarning {
    position: relative;
    top: 0px;
    left: 300px;
    margin-left: 1em;
    margin-right: 1em;
    margin-bottom: 0.5em;
    border: thick double red;
    padding: 0.3em;
    display: none;
}

input:disabled {
  background: #dddddd;
}

input:disabled+label {
 color: #aaa;
}

/* used to separate related items in edit_details for example */
.smallsep {
    margin: 0px;
    margin-bottom:0.3em;
}

.indent {
    margin-left: 3em;
}

div.changefeed-box {
    border: 1px solid black;
    padding-left:0.2em;
}

h3.changefeed-box {
    margin-top: 0px;
    margin-bottom: 0px;
}

.advert {
    cursor: pointer;
    position: relative;
}

.advert-banner {
    height: 10em;
}

.advert-box {
    height: 10em;
    width: 10em;
}

.advert-small-box {
    text-align:center;
}

.cpadvert {
    display: none;
}

.adoffer {
    position:absolute;
    right: 5px;
    bottom: 0;
    font-size: 70%;
    color:#002BB8;
    text-decoration:none;
    z-index: 100;
}

.placeinfo-popup {
    max-width: 20em;
}

.custom-map-marker {
    display: block;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mapboxgl-popup {
    max-width: 200px;
}

#sidebar {
    position: absolute; 
    left: 3px; 
    top: 4px; 
    float: left; 
    width: 214px; 
    padding: 2px
}

.fadein {
    opacity: 0;
    transition: 1s opacity;
}


.closeup_map {
    height: 200px;
    width: 200px;
    border-radius: 50%;
    border: 1px solid gray;
    object-fit: cover;
    margin-top: 2px;
    margin-right: 8px;
    margin-bottom: 2px;
    margin-left: 0px;
    align-self: center;
    flex: 0 0 auto;
}

.cc_map {
    height: 200px;
    width: 200px;
    border-radius: 50%;
    border: 1px solid gray;
    object-fit: cover;
    margin-top: 2px;
    margin-right: 8px;
    margin-bottom: 2px;
    margin-left: 0px;
    align-self: center;
    flex: 0 0 auto;
}

.cp_hidden {
    display: none;
 }

.place-photo {
    padding: 0.5em;
    display: inline-block;
}

/* Turn checkboxes into switches */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .2s;
  transition: .2s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .2s;
  transition: .2s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.onoffbox {
    min-height:10em;
    min-width:10em;
    width:10em;
    background: white;
    color: black;
    cursor: pointer;
}

.l2_highlight {
    background: black;
    color: white;
}

.login-box {
    background: lightblue;
    padding: 10px;
    border-radius: 12px;
}

.input-overlay {
    margin-left: -20px;
    color: dark-gray;
    cursor: pointer;
}

input:invalid {
    border: 2px dashed red;
}

input:valid {
    border 2px solid black;
}

.indented {
    text-indent: -25px;
    padding-left: 25px;
}
