/* ---------- Overrides for sakura.css ---------- */
body {
    line-height: 1.5;
}
@media (max-width: 684px) {
  body {
    font-size: 1.6rem;
  }
}
@media (max-width: 382px) {
    body {
        font-size: 1.5rem;
    }
}
p {
    margin-bottom: 2rem;
}
h1 {
    font-size: 2em;
}
h2 {
    font-size: 1.8em;
}
h3 {
    font-size: 1.6em;
}
table {
    text-align: left;
}
td, th {
    padding: 0.4em;
    border: 1px solid #c0c0c0;
}
nav span {
    font-weight: 600;
    font-style: italic;
}
nav.subnav {
    margin-top: 1rem;
    display: inline-block;
}
img, video {
    height: auto;
    max-width: 100%;
    margin-bottom: 0;
}
li {
  margin-bottom: 0;
}
hr {
    border-width: 1px;
}
a {
    text-decoration: underline;
    text-decoration-style:dotted;
}
a:hover {
    border-bottom: none;
}
code, kbd, samp, pre, pre > code {
  background-color: rgb(241, 241, 241);
  white-space: wrap;
  padding: 0;
}

/* ---------- Site-specific ---------- */

/* Code example page */
#elevationMap, #benNevisMap {
    position: relative;
    text-align: center;
    height: 30rem;
    border: 1px solid #c0c0c0;
    cursor: pointer;
}
#elevation_results_container {
    background-color: rgb(241, 241, 241);
}
/* -------------------- */

/* Rides page */
#GPSMAP64, #etrex {
    float: right;
}
/* -------------------- */

/* GPX uploader page */
#OSdragDropper, #IGNdragDropper, #OSMdragDropper {
    border: 2px dashed #ff0000;
    padding: 0.5em;
    font-size: 1em;
    font-style: italic;
    background-color: rgb(192, 205, 179);
    white-space: nowrap;
}
img.gpxlogo {
    float: left;
    padding: 0 1rem 1rem 0;
}
/* hide drag dropper from phones */
@media only screen AND (max-width: 720px) {
    .mobileHidden {
        display: none;
    }
}
/* -------------------- */

/* vide coding in blog */
.vibeprompt{
    background-color: rgb(241, 241, 241);
}

summary {
    cursor: pointer;
    font-weight: bold;
    padding: 0.7rem 1rem;
    margin: -0.7rem -1rem;
    word-break: break-all;
}
details {
    padding: 0.7rem 1rem;
    background-color: rgb(241, 241, 241);
}
details + p {
    margin-top:1rem;
}
/* -------------------- */

/* full screen map displays */
body:has(#map) {
    max-width: 100%;
}
#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border: none;
}
/* OS logo required on OS maps */
#map img, #elevationMap img, #benNevisMap img {
    position: absolute;
    left: 5px;
    bottom: 5px;
    z-index: 10;
}
/* map pages info panel */
#infoPanel {
    box-shadow: 0 2px 4px 0 #c0c0c0;
    background-color: #f4f4f4;
    position: absolute;
    top: 10px;
    margin: 5px;
    padding: 10px 10px 5px 10px;
    right: 10px;
    width: 350px;
}
#infoPanelHeader {
    padding: 5px;
    background-color: #e6e3e3;
}
#infoPanel button{
	margin: 5px;
	font-size: 1.4rem;
}
#mapChoicesPanel {
    display: none;
}
#googleInfoPanel {
    box-shadow: 0 1px 1px 0 #525151;
    background-color: #f4f4f4;
    position: absolute;
    top: 10px;
    margin: 5px;
    padding: 2px 0 6px 0;
    right: 20px;
    width: 110px;
    text-align: center;
}
.googleMapLink {
    font-size: 1.4rem;
    line-height: 1.4rem;
}
/* elevation data */
#tblData {
    margin: 5px 0 5px 3px;
    width: 320px;
    font-size: 1.4rem;
}
#tblData td {
    padding: 2px 0px 2px 4px;
}
#googleInfoPanel button {
    padding: 5px;
}
/* controls for colour, opacity and line width */
.widget {
    border: 1px solid #c0c0c0;
    margin: 10px 0 3px 0;
    padding: 3px;
}
.controlContainer p {
    margin: 0 0 0 5px;
}
input[type="color"] {
    height: 2.4rem;
    padding: initial;
}
.slider {
    appearance: none;
    width: 50%;
    height: 10px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: 0.2s;
    transition: opacity 0.2s;
}
.slider::-webkit-slider-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #0d47a1;
    cursor: pointer;
}
.slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #04aa6d;
    cursor: pointer;
}
/* -------------------- */

/* General utils */
img.fl {
    float: left;
    padding: 1rem;
}
img.fr {
    float: right;
    padding: 0 1rem;
}
.clear {
    clear: both;
    padding-top: 0 1rem;
}
.strikethru {
    text-decoration: line-through;
}
/* Force a caption to stay under an image in a <figure> */
figure {
    margin: 0 0 2.5rem 0;
    display: table;
    overflow-x: auto;
}
figcaption {
    text-align: center;
    font-size: 1.5rem;
}
/* error messages */
#fileOS, #fileIGN, #fileOSM, #OSfileError,
#IGNfileError, #OSMfileError {
    color: red;
    display: none;
}
