/* 2023-03-16 Details Responsive Menu
   first attempt.
   2023-03-21 version style-detailsb.css updating style-details.css
   2023-03-25 version has reconciled with simple 2016...I think - copy to home level
   */

:root{
    --white: #f9f9f9;
    --blue: #000080; 
    --gray: #85888C;
    --yellow: #ffff00;
} /* variables*/

/* Reset */
*{
    margin: 0;
    padding: 0; 
    box-sizing: border-box;
} /* I think this group causes problems with normal element spacing. May need to be changed appropriately. */

body{
    background-color: var(--white);
    background-image: url('http://runeman.org/images-std/graph.gif');
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a{
    text-decoration: none;
}
article {
    margin: 2%; /* adjust if page issues appear */
}
main{
    margin-top: 1rem;
    margin-left:1rem;
    margin-right: 1rem;
    margin-bottom: 2rem;
    background-color: #ffffff;
}
footer{
    /*position: fixed; /* with fixed and bottom the footer always shows*/
    bottom: 0;
    left: 0; /* left and right 0 respects the centering of the footer between the margins */
    right: 0;
    background-color: var(--blue);
    padding: 2px;
    color: var(--white);
    text-align: center;
    font-size: 80%;
}
h1, h2, h3, h4 {
    margin-top:1rem;
    font-weight: bold;
}
h1 { font-size: 2em;}
h2 { font-size: 1.8em;}
h3 { font-size: 1.4em;}
h4 { font-size: 1.2em;}

p{
    margin-top: 1rem;
}
p.com {
  background-color:#faf;
  padding:.5em;
  border-bottom: 1px solid;
  border-right: 1px solid;
}
p.min {
  background-color:#000080;
  padding:.5em;
  color:white;
  font-size:.7em;
}
a.min {
  color:yellow;
}
ul {
    list-style: disc;
    margin-left: 2rem; 
    margin-top: 1rem;
}
ol{
    margin-top: 1rem;
}
pre { background-color:#fdf;
  padding: 1.5em;
}
.bem {
  font-weight:bold;
  font-style:italic;
}
.ctr {
    text-align: center;
}
.marginal {
  float:right;
  max-width:100%;
  margin-left: 10px;
  background-color:aqua;
  font-family: "DejaVu Sans", Helvetica, FreeSans, Geneva, Arial, sans-serif;
  padding:1em;
  border: solid black 2px;
}  
.note {
  background-color:#fcfcfc;
  font-family: "DejaVu Sans", Helvetica, FreeSans, Geneva, Arial, sans-serif;
  padding:1em;
  float:right;
  border: solid black 2px;
}
.note:first-line {
  font-size: 110%;
  font-weight: bold;
  font-style: italic;
}
/* regular unordered list 2023-03-06*/
.reg {
    list-style: disc;
    margin-left: 2rem; 
    margin-top: 1rem;
}
/* Header */
.header{
    background-color: var(--blue);
    box-shadow: 1px 1px 5px 0px var(--gray); /* maybe eliminate */
    position: sticky;
    top: 0;
    width: 100%;
}
/* Logo */
.logo{
    display: inline-block;
    color: var(--white);
    font-size: 25px; /* modified from 60px */
    margin-left: 10px;
    
}
/* Nav menu */
.nav{
    width: 100%;
    height: 100%;
    margin-right: 20px;
    position: fixed;
    background-color: var(--blue);
    overflow: hidden;

}
/* dmenu styles added 2023-03-16 */
.dmenu {
    font-weight: normal;
    line-height: 1.8em; /* 1.8 works for both menu versions*/
    margin-left: 30px; /* indent if phone */
    /*padding-bottom: 25px; /* space for phone*/
    border: none;
    cursor: pointer;
    color: white;
    list-style-type: none; /* removes the triangle details marker */
    text-decoration: none; /* prevents Home, misc, about from having underline*/
  }

  .dsum {
    line-height: 3.5em;
    font-weight: normal;
    border: none;
    cursor: pointer;
    color: white;
    list-style-type: none;
    text-decoration: none;
  }
  .dmenu a{
    display: block;
    margin-left: 1em;
    /*padding-top: 1em;
   /* padding: 0px 2em; /* was 30 */
    color: var(--white);
    line-height: 1em;
}
.dmenu a:hover{
    background-color: gray;
    color: var(--yellow);
}
.nav{
    max-height: 0;
    transition: max-height .5s ease-out;
}
/* Menu Icon */
.hamb{
    cursor: pointer;
    float: right;
    padding: 20px 20px; /* reduced from 40/20 to fit my header height*/
}/* Style label tag */

.hamb-line {
    background: var(--white);
    display: block;
    height: 2px;
    position: relative;
    width: 24px;

} /* Style span tag */

.hamb-line::before,
.hamb-line::after{
    background: var(--white);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}
.hamb-line::before{
    top: 5px;
}
.hamb-line::after{
    top: -5px;
}

.side-menu {
    display: none;
} /* Hide checkbox */

/* Toggle menu icon */
.side-menu:checked ~ nav{
    max-height: 100%;
}
.side-menu:checked ~ .hamb .hamb-line {
    background: transparent;
}
.side-menu:checked ~ .hamb .hamb-line::before {
    transform: rotate(-45deg);
    top:0;
}
.side-menu:checked ~ .hamb .hamb-line::after {
    transform: rotate(45deg);
    top:0;
}
#crumbs {
    font-size: .8rem;
}
#crumbs span {
    background-color: #cccccc;
    padding: 2px;
}

/* Responsiveness */
@media (min-width: 768px) {
    .marginal {
        max-width: 25%;
    }
    .nav{
   /* max-height: 0;*/
        max-height: none;/* none */
        transition: max-height .5s ease-out;
        top: 0;
        position: relative;
        float: right;
        width: fit-content;
     /*   height: fit-content; /* needed  only for a few pages */
        background-color: #000080;
        /*padding-top: 15px; /* 8px fits into header.???*/
       /* margin-top: 8px;/* add above */
    }
    .dmenu {
        float: left; /* within nav */
        padding-bottom: 0; /* is this needed?*/
        padding-top: 5px; /* match with dsum padding */
        margin-left: 10px; /* reduced from phone's 30px to narrow laptop menu */
        /*margin-top: none;/* keeps it one line*/
        font-size: 90%;
    }
  
   .dmenu summary:hover {
        background-color: var(--gray);
        color: yellow;
    }
    .dmenu a {
        line-height: 1em;
        padding-top: 10px;
       
    }
    /*.sum {float: left;}*/
    .dmenu a:hover{
        background-color: var(--gray);/* was transparent*/
        color: var(--yellow);
    }
    .dsum {
        line-height: 1em;
        padding-top: 5px; /* match with dmenu padding */
    }
    .hamb{
        display: none;
    }
}
