/* -> Line 132+: New styling for this project */
/* -> Line 247: Image, media, and figure styling */
/* -> Line 501: List styling */
/* -> Line 539: Table styling */
/* -> Line 595: Media queries */
/* _______________________________
Styling copied from my older pages
_______________________________ */

/* Colors */
:root {
    --red: rgb(191 43 17);
    --yellow: rgba(255,255,94,0.8);
    --gray: rgba(185,185,184,0.7);
    --windowgray: rgba(185,185,184,0.38);
    --windowyellow: rgba(255,255,94,0.6);
    }

header h1 {
    text-align: center;
    font-family: "Pixelify Sans", system-ui;
    font-weight: bolder;
    border-radius: 45px 45px 0 0;
}

#pagename, #leadinginfo, .pagedescript {
    background-color: var(--red);
}

#TOC, .cntnts {
    background-color: var(--yellow);
}

h1#TOC {
    text-align: center;
}

#execSum, #prjparts, #closing {
	background-color: var(--gray);
}
#adverse, #aha, #vizDat {
    background-color: var(--yellow);
}

p.pagedescript {
    text-align: center;
    font-size: 1.5rem;
}

#endit:not(footer) { 
        background-color: var(--red);
        border-radius: 0 0 45px 0;
    }

p.sbjctmatter {
    text-indent: 1em; 
    margin: 0;
    font-family: "Futura", system-ui;
}

section h1, h2 {
    text-align: left;
    font-family: "Pixelify Sans", system-ui;
    font-weight: bold;
}

span.underln {
    text-decoration: underline;
}

/* Styling for the buttons that are used to open and close the accordion panel */
.accordion {
    background-color: var(--gray);
    margin: 10px 0 10px 0;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border: 8px var(--red);
    outline-style: dotted;
    transition: 0.4s;
  }
  
  /* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
  .active, .accordion:hover {
    background-color: #969696;
  }

.accordYL {
        background-color: var(--yellow);
        margin: 10px 0 10px 0;
        cursor: pointer;
        width: 100%;
        text-align: left;
        border: 8px var(--red);
        outline-style: dotted;
        transition: 0.4s;
    }
      
      /* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
    .active, .accordYL:hover {
        background-color: hsl(61, 38%, 49%);
      }

      /* Styling for the breadcrumbs */
    ul.breadcrumb {
        padding: 10px 16px;
        list-style: none;
        background-color: #eee;
      }

    ul.breadcrumb li {
        display: inline;
        font-size: 18px;
      }

    ul.breadcrumb li+li:before {
        padding: 8px;
        color: black;
        content: "/\00a0";
      }

    ul.breadcrumb li a {
        color: #0275d8;
        text-decoration: none;
      }

    ul.breadcrumb li a:hover {
        color: #01447e;
        text-decoration: underline;
      }
/* ____________________________
New styling for this project
____________________________ */

/* Layout, text, spacing */

body {
    background-image: url(GitPics/mywaspproject/nestcellsbackground.JPG);
    background-attachment: fixed;
    background-size: cover;
}

footer {
    background-color: var(--gray);
    background-clip: padding-box;
}

footer h3 {
    padding-left: 10px;
}

/* Give text comfortable space from the edge */
body, section#leadinginfo, span.underln, h2#recomnd {
    padding: 0 15px;
}

.aspect>ul>li {
    max-width: 55%;
}

p.sbjctmatter.grid {
    display: grid;
    grid-template-columns: auto auto auto auto;
    gap: 15px;
}

div.sbjctmatter.grid {
    display: grid;
    grid-template-columns: 280px 410px;
}

div.seg>img {
    margin-left: 15px;
}

div#hotspots.grid {
    display: flex;
    flex-wrap: wrap;
}

.introcontainer {
    position: relative;
    text-align: center;
}

/* For the "placeholder" stamp over my unfinished image. Remove it once I submit a more complete drawing */
.notemark {
    position: absolute;
    top: 50%;
    left: 50%;
    font-family: "Pixelify Sans", system-ui;
    font-size: 3.0em;
    transform: translate(-50%, -50%);
    background: var(--windowyellow);
    width: 85%;
}

p.sbctmatter.interactions {
    background: var(--windowyellow);
}

blockquote>em {
    margin-left: 20px;
}

/* Map styling */
iframe#waspmap {
    margin: 10px auto;
    width: 85%;
    height: 550px;
    display: block;
    padding-bottom: 15px;
    padding-top: 15px;
    outline-color: var(--red);
    outline-style: groove;
    outline-width: 10px;
}

p:not(:last-of-type) {
    margin-bottom: 0;
}

p {
    padding: 0 15px;
    font-size: 1.15rem
}

section {
    padding-left: 15 px;
}

/* Effect to highlight terms with hover definitions */
span.term {
    text-shadow: 0 1px 2px var(--red);
    background-color: var(--gray);
    border-radius: 10px;
}

a {
    background-color: var(--windowgray);
    border-radius: 8px;
}

/* Future update: Figure out how to make section buttons sticky for better navigation */

/* -------------------------
Image/Media and figure styling
------------------------- */
img#searchtools {
    grid-column-start: 1;
    grid-column-end: 2;
    width: 320px;
    min-width: 240px;
    margin-bottom: 10px;
}

img.colorfulnest {
    max-width: 200px;
    height: auto;
}

audio#songofwasp {
    display: block;
}

img.neStatus {
    width: 320px;
    min-width: 240px;
}

img#waspbannerdrawing {
    margin: 15px auto;
    display: block;
    width: 90%;
    max-width: 1800px;
    padding-bottom: 15px;
}

figure#deceptors {
    margin-left: 15px;
    margin-right: 15px;
    padding-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
    display: grid;
    grid-template-columns: 320px 320px;
    grid-template-rows: auto auto; 
    gap: 15px;
    background-color: var(--yellow);
    background-clip: padding-box;
    width: fit-content;
    border-radius: 0 25px 25px 0;
}

div.pic2>img {
    border-radius: 0 25px 0;
}

div.pic3>img {
    border-radius: 25px 0 25px 0;
}

figure#deceptors img, figure#draftpages img {
    outline-color: var(--red);
    outline-style: groove;
    outline-width: 6px;
}

div.pic1 {
    grid-row-start: 1;
    grid-row-end: 3;
    }

div.pic2 {
    grid-row-start: 1;
    grid-row-end: 2;
}

div.pic3 {
    grid-row-start: 2;
    grid-row-end: 3;
}

img.misleadingthings {
    width: 320px;
    min-width: 240px;
}

img.misleadingthings:hover {
    transform: scale(1.4);
    transform-origin: top left;
    cursor: zoom-in;   
}

figure#mapforeafter {
    padding: 0 15px;
    width: 575px;
    height: auto;
    background-color: var(--yellow);
    background-clip: padding-box;
    align-items: center;
    margin-left: 15px;
}

figure.areasofnote {
    /* padding: 0 15px; */
    width: 470px;
    height: auto;
    background-color: var(--windowyellow);
    background-clip: padding-box;
    align-items: center;
    justify-content: center;
    text-align: center;
    align-self: center;
    margin-left: 15px;
    display: flex;
    flex-direction: column;
}

figure.areasofnote>img {
    width: auto;
    height: 360px;
    margin: 0;
}

figure.areasofnote>h5, figure.areasofnote>img {
    padding: 0;
}

img.mapmethods {
    width: auto;
    height: 400px;
    padding-bottom: 15px;
}

figure#mapforeafter>figcaption {
    caption-side: bottom;
    width: 530px;
    height: auto;
    justify-content: center;
    text-align: center;
    padding-top: 0;
}

figure#waspsonbuildings {
    display: inline;
}

figure#nestructure, figure#wingingestswing {
    margin: 10px 15px;
    padding: 15px;
    background-color: var(--windowyellow);
    background-clip: padding-box;
    border-radius: 0 55px 55px 0
}

picture.booksofnote {
    margin: 10px 15px;
    padding: 15px;
}

picture.booksofnote>img {
   max-width: 500px;
   height: auto;
   margin: auto 0;
}

figure#nestructure>img {
    height: 350px;
    width: auto;
    padding-top: 5px;
}

figure#nestructure>img:first-of-type {
    border-radius: 75px 0 0 0;
}
figure#nestructure>img:last-of-type {
    border-radius: 0 0 75px 0;
}

figure#wingingestswing>img {
    height: 300px;
    width: auto;
}

figure#hexandhex {
    width: 350px;
    margin-left: 15px;
    background-color: var(--yellow);
    justify-content: center;
    text-align: center;
}

figure#hexandhex>img {
    max-width: 350px;
    height: auto;
}

/* Outline for images that have hover effects */
img.observe {
    width: 80px;
    height: auto;
    outline-color: var(--red);
    outline-style: groove;
    outline-width: 2px;
}

img.pageconcepts {
    width: 195px;
    height: auto;
    position: relative;
}

img.pageconcepts:not(:last-of-type) {
    margin-bottom: 5px;
}

/* Reminder: Try having these images magnify differently on small displays! */
img.observe:hover, img.pageconcepts:hover {
    position: relative;
    transform: scale(4.4);
    transform-origin: left;
    display: block;
    cursor: zoom-in;
    z-index: 10;
}

img.endshowing, img.beehaus {
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 15px;
}

img.waspimage {
    display: inline;
    width: 250px;
    height: auto;
}

figure#draftpages {
    background-color: var(--yellow);
    background-clip: padding-box;
    width: 425px;
    min-width: 170px;
    height: auto;
    padding: 15px 0 15px 15px;
    margin-left: 15px;
    position: relative;
}

/* Outline that designates interactive info elements */
figure#draftpages, figure#deceptors {
    outline-color: var(--red);
    outline-style: groove;
    outline-width: 10px;
    margin-top: 10px;
}

/* -------------------
List styling
------------------- */
/* Custom list bullets */
li.aspect>ul, ul#nestcount>li, ul#studypoint>li, ul#zrvations>li, dl#bookinit>li {
    list-style-image: url(GitPics/mywaspproject/liststinger.png);
}

li.aspect {
    list-style-image: url(GitPics/mywaspproject/Waspheadlistbulletv2.png);
    margin-left: 25px;
}

li.aspect>strong {
    background-color: var(--windowyellow);
    font-size: x-large;
    background-clip: border-box;
}

li.aspect {
    padding-top: 35px;
}

ul#nestcount, ul#studypoint, ul#zrvations, ul#ref {
    margin-left: 15px;
}

h4 {
    background-color: var(--windowyellow);
    background-clip: padding-box;
    margin-right: 55%;
    margin-left: 15px;
    padding-top: 5px;
    padding-bottom: 5px;
    min-width: 300px;
    border-radius: 11% 85% 85% 11% / 18% 50% 50% 13%
}

/* -------------
TABLE STYLING 
------------- */
.nescondition>h3 {
    text-align: center;
    font-weight: bold;
    font-family: "Futura", system-ui;
}

table#statesofnest>caption {
    caption-side: top;
}

#deceptors>figcaption {
    caption-side: top;
}

/* Border image attempt; give some sections a wasp nest image background */
table#statesofnest, tr, td, th{
    border: 35px solid;
    border-image-source: url(GitPics/mywaspproject/nestcellsbackground.JPG);
    border-image-slice: 40 fill;
    border-collapse: collapse;
    margin: 12px;
    padding: 15px;
}

table#statesofnest td, table#statesofnest th{
    width: 25%;
    border-left: 20px solid black;
    border-right: 20px solid black;
}

th.nescondition {
    background-color: var(--gray);
}

tr#condescript>td {
    background-color: var(--windowgray);
    vertical-align: top;
    font-weight: bold;
    text-shadow: 1px 1px 4px var(--yellow);
}

th.nescondition>h3 {
    text-shadow: 0px 8px 4px var(--yellow);
}

table#statesofnest {
    background-image: url(GitPics/mywaspproject/IMG1392waspaperbackground.JPG);
    background-position: center;
}

td.nesprite {
    background-color: var(--windowyellow);
}
/* --------
Queries for responsive design
-------- */

@media screen and 
(min-width: 400px) and
(max-width: 720px)  {
    body {max-width: 695px;}
    img, figure>img, img.booksofnote, img.beehaus, img.endshowing {max-width: 350px;}
    figure>img, img.booksofnote {height: auto;}
    /* The deceptors figure may need its own distinct query to keep its width within the screen */
    figure#mapforeafter, figure.deceptors, figure#draftpages, figure.areasofnote {max-width: 350px;}
    figure#mapforeafter>figcaption {max-width: 320px;}
    figure#deceptors.grid {display: block;}
    /* figure.areasofnote {max-width: 400px;} */
    figure#nestructure img, figure#wingingestswing img {max-width: 320px;}
    figure#nestructure,figure#wingingestswing>img {height: auto;}
    /* figure#draftpages {width: 250px;} */
    picture.booksofnote>img.printsource {max-width: 350px;}
    picture.booksofnote>* {height: auto;}
    /* Testing rearrangement for grids on mobile devices */
    p.sbjctmatter.grid {display: flex;}
    p.sbjctmatter.grid {flex-direction: column;}
    div.sbjctmatter.grid {display: flex;}
    div.sbjctmatter.grid {flex-direction: column;}
    /*How can I best make the table responsive? */
}

@media screen and
(min-width: 1050px) {
    figure#housecall {display: flex;}
    figure#housecall {flex-direction: row;}
    figure#housecall>img {height: 420px;}
    figure#draftpages {width: 950px;}
    figure#draftpages>img {width: 180px;}
}