/* ==========================================================================
   Variables
   ========================================================================== */
:root { 
    --ff: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Core Colors */
    --color0: #111111; /* h1, h2, h3, h4, h5 */
    --color0Alpha: #111111bb;  /* p, ol li, ul li */
    --color0Alpha2: #11111111; /* Table rows even */
    --color1: #ffffff;
    --color1Alpha: #ffffffbb; /* Header p */
    --color1Alpha2: #ffffffbb; /* Header p */    
    --color2: #D8FF17;
    --color21: #fcffea; /* Not used */
    --color22: #323232; /* Not used */
    --color3: #3DCC27;
    --color4: #6F00B3;
    --color41: #e1fdbb; /* Not used */
    --color8: #f2f2f2;
    --color81: #323232; /* Not used */
    --color82: #d2d2d2; /* Not used */
    --accent1: #065799;
    --accent1c: #B88E4D;
    --accent1cAlpha: #b88d4d40; /* Card hover */
    --accent2: #118338;
    --accent2Alpha: #11833840; /* background webforms */
    --accent2c: #B8514D; /* alert boxes */
    --accent2cAlpha: #B8514D40; /* Not used */
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font: inherit;
}

html {
    hanging-punctuation: first last;
    scroll-behavior: smooth;
}

body {
    min-height: 100svh;
    background-color: var(--color1);
    font-family: var(--ff);
    color: var(--color11);
    font-size: 18px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, p {
    font-family: var(--ff);
    margin: 0.5rem 0 1rem 0;
    font-weight: 300;
    text-wrap: balance;
}

h1 {
    font-size: 2rem;
    font-weight: 400;
}

h2 {
    font-size: 1.8rem;
    font-weight: 400;
}

h3 {
    font-size: 2rem;
    font-weight: 400;
}

h4 {
    font-size: 1.4rem;
    line-height: 1.6rem;
    font-weight: 400;
}

h5 {
    font-size: 1.2rem;
    line-height: 1.4rem;
    font-weight: 200;
    text-transform: uppercase;
    color: var(--color11);
}

p {
    text-wrap: pretty;
    font-size: 1.125rem;
    line-height: 1.575rem;
    color: var(--color0Alpha);
}

strong {
    font-weight: 700;
}

ul, ol {
    margin: 0 0 1rem 0;
    padding: 0 1rem 0 1.4rem;
    /* margin: 1rem 0;
    padding: 0;     */
}

ul li, ol li {
    padding: 0.2rem 0 0.3rem 0;
    text-wrap: pretty;
    font-size: 1.125rem;
    line-height: 1.575rem;    
    font-weight: 300;
    color: var(--color0Alpha);
}

a {
    color: var(--accent2);
    text-decoration: none;    
}

a:hover {
    text-decoration: underline;
    color: var(--color11);
}

p > a {
    font-weight: 500;
}

p.breadcrumb a, nav p > a {
    font-weight: 200;
}

p.note {
    font-size: 0.8rem;
    line-height: 1rem;
    font-weight: 300;
    color: var(--color0Alpha);
    margin: 0.5rem 0 0 0.5rem;
}

/* Add this to the Typography section */
p.enhance {
    background-color: var(--accent1cAlpha);
    border-left: 4px solid var(--accent1c);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

p.enhance a {
    color: var(--accent1c);
    text-decoration: underline;
    font-weight: 500;
}

p.enhance a:hover {
    text-decoration: none;
}

/* ==========================================================================
   Media Elements
   ========================================================================== */
img, picture {
    display: block;
    max-width: 100%;
}

img {
    vertical-align: middle;
    font-style: italic;
    font-size: 0.9rem;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0.2rem;
    overflow: hidden;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */
header, footer, body > figure {
    box-shadow: 0 0.2rem 0.4rem rgb(0, 0, 0, 0.1);
}

/* Header */
header {
    background-color: var(--color0);
    color: white;
    position: static;
    z-index: 100;
}

header > .wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 75px 1fr;
    grid-template-rows: auto auto;
    padding: 0.5rem; 
    margin: 0;
}

header img {
    grid-column: 1;
    grid-row: 1 / 3;
    display: inline;
}

header h1 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
}

header p {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    font-size: 1rem;
    font-weight: 200;
    color: var(--color1Alpha)
}

/* Banner Figure ----------------------------------------------------------------- */
body > figure {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 0;
    width: 100%;
}

body > figure > picture {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
}

body > figure > picture > img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border-radius: 0;
}

body > figure > picture::after {
    padding-bottom: 75%;
    display: block;
    content: "";
}

body > figure > figcaption {
    text-align: right;
    padding: 0.5rem;
    color: var(--color1);
}

body > figure > figcaption > span {
    color: var(--color0);
}

/* Main Content Sections */
section.wrapper {
    margin: 1rem auto;
    padding: 2rem;
    scroll-snap-align: start;
    width: 100%;
    max-width: 1300px;
    border-radius: 0.5rem;
    box-shadow: 0 0 0.8rem rgba(0, 0, 0, 0.1);
}

section.wrapper:has(nav) > nav {    
    border-top: 1px solid var(--color82);
}

/* Steps Section */
.steps {
    counter-reset: step;
}

/* Cards Grid */
.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.card {
    background: var(--color1);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 0.8rem rgba(0, 0, 0, 0.1);
}

.card:hover {
    background-color: var(--accent1cAlpha);
    transform: translateY(-2px);
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.card a {
    text-decoration: none;
    color: var(--color11);
}

.card h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

/* Card Icons */
.card h4::before {
    flex-shrink: 0;
    color: var(--color0);
    margin: 0;
}

.card h4[data-emoji]::before {
    content: attr(data-emoji);
    font-size: 1.8rem;
}

.cards.steps .card h4[data-number]::before {
    content: attr(data-number);
    color: var(--accent2);
    font-size: 2.7rem;
    min-width: 2rem;
    line-height: 1;
}

.card p {
    font-size: 1rem;
    line-height: 1.4rem;
    font-style: normal;
}

/* Footer */
footer {
    padding: 1rem 0;
    border-top: 1px dotted var(--color11);
    background-color: var(--color8);
    color: var(--color11);
}

footer > div.wrapper {
    padding: 1rem 0;
    margin: 0 auto;
}

footer p {
    text-align: center;
    line-height: 1.5rem;
}

footer a, 
footer a:visited {
    color: var(--color0);
    text-decoration: underline;
}

footer >div > p > a:hover, 
footer >div > p > a:focus {
    text-decoration: none;
}

footer > div > p:nth-child(1) > a {
    background: var(--color1);
    color: var(--color0);
    border-radius: 0.2rem;
    display: inline-block;
    font-size: 1rem;
    font-weight: 400;
    line-height: 2rem;
    margin: 0.2rem 0;
    padding: 0.2rem 0.5rem;
    text-decoration: none;
    min-width: 8rem;
}

footer > div > p:nth-child(1) > a:hover {
    background: var(--color0);
    color: var(--color1);
    transition: 0.2s;
}

footer > div > p:nth-child(2) {
    font-size: 1rem;
    line-height: 1.4rem;
}

/* Utilities */
.countdown {
    display: block;
    font-family: monospace;
    font-size: 2rem;
    line-height: 2rem;
    font-weight: normal;
    padding: 1rem 0;
    height: 5rem;
}

ul.common-names {
    margin: 0;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1.5rem;
    font-weight: 300;
}
ul.common-names > li {
    list-style: none;
}

/* ==========================================================================
   Responsive Layouts
   ========================================================================== */
@media only screen and (min-width: 420px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (min-width: 520px) {
    body > figure > picture::after {
        padding-bottom: 50%;
    }
}

@media only screen and (min-width: 768px) {
    body > figure > picture::after {
        padding-bottom: 33.3%;
    }

    section.wrapper:has(nav) {
        display: grid;
        grid-template-columns: 2fr 1fr; /* Two-column layout */
        grid-column-gap: 1rem;
    }


    section.wrapper:has(nav) > nav {
        display: block;
        grid-column: 2; /* Place <nav> in the right column */
        grid-row: 1 / 6; /* Span all rows */
        padding: 1rem 0 0 1rem;
        border-radius: 0 0.5rem 0.5rem 0;
        border-left: 1px solid var(--color82);
        border-top: 0;
    }

    section.wrapper > * {
        grid-column: 1; 
    }

}

@media only screen and (min-width: 768px){
    section.wrapper:has(figure) {
        display: grid;
        grid-template-columns: 200px 1fr;
        grid-template-rows: auto;
        grid-column-gap: 1rem;
    }

    section.wrapper:has(figure) > *:first-child {
        grid-column: 1 / -1; 
    }

    section.wrapper:has(figure) > *:nth-child(2) {
        grid-column: 1; 
        grid-row: 2 / 6;
    }

    section.wrapper:has(figure) > *:nth-child(n+3) {
        grid-column: 2; 
    }

    section.wrapper:has(figure):has(.columns) {
        display: block;
    }

    section.wrapper:has(figure):has(.columns) > * {
        grid-column: auto;
    }

    section.wrapper:has(figure):has(.photo-gallery) {
        display: block;
    }

    section.wrapper:has(figure):has(.photo-gallery) > * {
        grid-column: auto;
    }
}

@media only screen and (min-width: 960px) {
    body > figure > picture::after {
        padding-bottom: 25%;
    }
    
    section.wrapper, footer > div.wrapper {
        max-width: 960px;
    }
}

@media only screen and (min-width: 1024px) {
    .cards {
        grid-template-columns: repeat(4, 1fr);
    }

    section:first-of-type ol {
        grid-template-columns: repeat(4, 1fr);
    }

    section:first-of-type li::before {
        font-size: 3rem;
    }
    
    section:first-of-type li {
        gap: 1rem;
    }
}

@media only screen and (min-width: 1400px) {
    section.wrapper, footer > div.wrapper {
        max-width: 1300px;
    }
}

/* Cols and Columns ---------------------------------------------------------------------------- */

section.wrapper > div.columns > div.column:last-of-type {
    padding-top: 1rem;
    border-top: 1px solid var(--color82);
}

@media only screen and (min-width: 768px) {
    section.wrapper > div.cols {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    section.wrapper > div.cols > div.col:last-of-type {
        padding-left: 1rem;
        border-left: 1px solid var(--color82);
        padding-top: 0;
        border-top: 0;        
    }    
}

@media only screen and (min-width: 960px) {
    section.wrapper > div.columns {
        display: grid;
        grid-template-columns: 3fr 1fr;
        gap: 1rem;
    }

    section.wrapper > div.columns > div.column:last-of-type {
        padding-left: 1rem;
        border-left: 1px solid var(--color82);
        padding-top: 0;
        border-top: 0;        
    }


}

/* Photo Gallery ---------------------------------------------------------------------------------- */


ul.photo-gallery {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

ul.photo-gallery > li {
    list-style: none;
}
ul.photo-gallery > li > div > p {
    display: none;
}


/* Thumbnails ---------------------------------------------------------------------------------- */

section.wrapper:has(div.thumbnail) {
    min-height: 22.5rem;
}

section.wrapper > div.thumbnail, 
section.wrapper > div.block.columns > div.column > div.thumbnail {
    float: left;
    text-align: left;
    border-bottom: 0.5rem;
    margin-top: 0.5rem;
    margin-right: 0.5rem;
    width: 210px;
    height: 235px;
  }


/* Photos Details ---------------------------------------------------------------------------------- */
/* Popover on click on photo */

.photo-details {
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: auto;
    z-index: 1000;
}

.photo-details > figure {
    margin: 0;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: var(--color0);
    color: var(--color1);
}

.photo-details > figure:hover {
    cursor: pointer;
}

.photo-details > figure > figcaption > p {
    font-weight: 200;
    color: var(--color21);
    padding-right: 0.5rem;
    margin-bottom: 1rem;
    text-align: right;
}

.photo-details > figure > figcaption > p > span {
    display: block;
    padding-right: 0.5rem;
}

.photo-details > figure > figcaption > p:last-of-type > span {
    font-size: 0.9rem;
    line-height: 1.2rem;
    display: inline-block;
    padding-left: 0.5rem;
}

.photo-details > * {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    padding: 0.1rem;
    background-color: white;
    border:0;
    width: 100%;
}

@media only screen and (min-width: 1280px) {
    .photo-details > * {
        width: 57%;
    }
}

.photo-details img {
    padding: 0;
    margin: 0;
    border-radius: 0;
    width: 100%;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.wrapper:has(.webform) {
    padding: 2rem;
    background-color: var(--accent2Alpha);
    border-radius: 0.5rem;
    color: var(--color11);
    text-align: left;
    width: 100%;
}

button { 
    font-size: 1rem;
    border: 0;
    cursor: pointer;
    background-color: var(--color0);
    color: var(--color1);
    padding: 0.5rem 1rem;
    margin: 0 0.5rem 0 0;
    display: inline-block;
    border-radius: 0.2rem;
}

button:hover {
    scale: 1.05;
    background: var(--color1);
    color: var(--color0);
    transition: 0.2s;  
}

button.selected {
    background: var(--color3);
    color: var(--color1);
}

/* Form Fields ----------------------------------------------------------------- */
input, textarea, select {
    width: 100%;
    padding: 0.5rem;
    display: block;
    margin: 0;
    font-size: 100%;
    border: 1px solid var(--color82);
}

input[type=radio],
input[type=checkbox] {
    display: inline-block;
    width: auto;
    margin: 0.5rem;
}

textarea {
    height: 6rem;
    border-style: inset;
}

label {
    font-size: 1.125rem;
    display: block;
    padding: 0.3rem 0;
    font-weight: 300;
}

/* Form Status ----------------------------------------------------------------- */
.required {
    color: var(--color4);
}

.required-fields {
    text-align: right;
}

.note-box {
    font-size: 0.9rem;
    background-color: var(--color8);
    border: 1px solid var(--color82);
    padding: 1rem;
    border-radius: 0.2rem;
    text-align: center;
    line-height: 1.2rem;
}

.alert-box {
    font-size: 0.9rem;
    background-color: #f2dada;
    border: 1px solid var(--accent2c);
    padding: 1rem;
    border-radius: 0.2rem;
    text-align: center;
    line-height: 1.2rem;
}

.success-box {
    font-size: 0.9rem;
    background-color: var(--accent2);
    color: var(--color0);
    border: 1px solid var(--color3);
    padding: 1rem;
    border-radius: 0.2rem;
    text-align: center;
    line-height: 1.2rem;
}

/* Webform Specific */
div.webform {
    width: 100%;
}

div.webform .field.form {
    display: block;
    margin-bottom: 1rem;
    padding: 0;
}

div.webform label {
    width: 100%;
}

div.webform .checkbox.field.form {
    display: grid;
    grid-template-columns: 1rem auto;
    grid-column-gap: 0.5rem;
}

div.webform .alert.form {
    background-color: #dcb6c2;
    padding: 0.5rem;
}

div.webform .success.form {
    background-color: var(--accent2);
    border-radius: 0.2rem;
    color: var(--color1);
    padding: 0.5rem;
}

/* Rate This Page ----------------------------------------------------------------- */

.ratethispage {
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: auto;
    z-index:1000;
  }
  
  .ratethispage > * {
    background-color: #fefefe;
    margin: 0 auto;
    padding: 1rem;
    width: 100%;
    max-width: 36rem;
    border-radius: 0.5rem;
  }
  
  .ratethispage > *:first-child {
    margin-top: 3.8rem;
    text-align: right;
  }
  
  .ratethispage > div > h4 {
    margin-top: -4.5rem;
    padding-right: 3rem;
    text-align:left;
  }

  .ratethispage p {
    margin: 0 0 2rem 0;
    padding: 1rem;
    font-weight: 400;
  }

  .ratethispage p > button {
    background-color: var(--color0);
    border: 1px solid var(--color0);
    color: var(--color1);
    margin: 0;
    padding: 0.2rem 0.5rem;
    font-weight: 400;
  }

  .ratethispage p > button:hover {
    background-color: var(--color1);
    border: 1px solid var(--color0);
    color: var(--color0);
    font-weight: 400;
  }  
  
  .ratethispage fieldset {
    padding: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .ratethispage legend {
    padding: 0.2rem 0.5rem; 
  }
  
  .ratethispage table {
    table-layout: fixed;
    margin:0;
  }
  
  .ratethispage th, .ratethispage td {
    padding: 0;
    text-align: center;
  }
  
  .ratethispage th {
    writing-mode: vertical-lr;
    text-align: center;
    height: 6rem;
  }




  
  @media only screen and (min-width: 768px) { 
    .ratethispage th {
      writing-mode: horizontal-tb;
      text-align: center;
      height: auto;
    }  
  }
  
  .ratethispage textarea {
    resize: none;
  }

  #ratethispage > p {
    text-align: center;
    
    }
#ratethispage > p > button {
    width: 20rem;
}

  #ratethispage > p > button {
    border: 1px solid var(--color0);
    background-color: black;
  }
  
  #ratethispage > p > button {
    border: 1px solid var(--color0);
    background-color: var(--color0);
    color: var(--color1);
    box-shadow:0 0 1rem -0.2rem var(--color11);
  }
  
  #ratethispage > p > button:hover {
    background-color: var(--color1);
    border: 1px solid var(--color0);
    color: var(--color11);
  }
  
  @media only screen and (min-width: 768px) { 
    #ratethispage > p > button {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      width: 6rem;
      height: 6rem;
      z-index: 1000;
      border-radius: 50%;
      font-size: 1rem;
      line-height: 1.25rem;
    }
  }
  
  .ratethispage .message {
    padding: 0.5rem;  
  }
  
  .alert {
    background-color: var(--color41);
    border-radius: 0.2rem;
  }
  .success {
    background-color: var(--color31);
    border-radius: 0.2rem;
  }

/* Tables ------------------------------------------------------------------------------------ */

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 1rem 0;
    table-layout:auto;
}

table > thead {
    background-color: #dedede;
}
  
table td, table th {
    padding: 0.2rem 0.3rem;
    border: 1px dotted black;
    font-size: 0.8rem;
    line-height: 1rem;
}

table td {
    text-align: right;
}

table td:first-child {
    text-align: left;
}


  
  /* External Links  & Other Stuff ------------------------------------------------------------- */
  
  /* a[target="_blank"]::after {
    content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==);
    margin: 0 3px 0 5px;
  }
  
  .enhance > a[target="_blank"]::after {
    content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAW0lEQVR4nHXQyw3AIAwE0V2U/ltwMUkfHFLI5AKIjzMSwkjvgGwAJdle3sW25tMDFBHPjMmKiFvSuFM4o/a1E+6ot8Ba65uhA3a8AQDchmxDY02Ayq/YurLlZn3/HamTo08QnQAAAABJRU5ErkJggg==);
    margin: 0 3px 0 5px;
  } */
  
  /* .pencil {
    display:block;  
    width: 3rem;
    height: 3rem;
    border: 2px solid var(--color11);
    border-radius: 0.2rem; 
    background-image: url('/_assets/svg/grading.svg');   
    background-repeat: no-repeat;
    background-size: contain;
  }

  .pencil:hover { 
    background-image: url('/_assets/svg/grading-rev.svg'); 
    background-color: var(--color11);
    transition: 0.2s;
  } */
  
  p.breadcrumb {
    margin-bottom: 0;
  }

  p.breadcrumb a {
    color: var(--color11);
    text-decoration: none;
  }

  p.breadcrumb a:hover {
    text-decoration: underline;
    color: var(--color11);
  }

  p.tags {
    font-style: italic;
  }

  .thumbnail {
    width: 100%;
  }
  .thumbnail > p {
    text-align: left;
    margin: 0;
    padding: 0.2rem 0;
    font-size: 0.8rem;
    line-height: 1rem;    
  }
  

/* Embedded Videos ----------------------------------------------------------------- */
  .video-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    background-color: var(--color8);
  }
  
  .video-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border-radius: 0.5rem;
  }
  
/* Code within Main Content ----------------------------------------------------------------- */
pre {
    font-family: monospace;
    line-height: 1.2rem;
    background-color: #313131;
    font-size: 0.8rem;
    color: #4caf50;
    padding: 0.5rem 0.5rem 1rem 0.5rem;
    display: block;
    tab-size: 2;
    white-space: pre-wrap;
    border-radius: 0.2rem;
    overflow: hidden;
  }
  pre::before, code::before {
    display:block;
    color:#dedede;
    margin-bottom:1rem;
    text-align: right;
    font-size:0.7rem;
  }
  
  pre .language-markdown::before { content: "markdown"; }
  pre .language-python::before { content: "python"; }
  pre .language-javascript::before { content: "javascript"; }
  pre .language-json::before { content: "json"; }
  pre .language-html::before { content: "html"; }
  pre .language-jinja::before { content: "html/jinja"; }  

/* Hamburger Menu ----------------------------------------------------------------- */
.hamburger-menu {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.menu-toggle {
    position: absolute;
    right: 1rem;
    top: 1.5rem;
    width: 2rem;
    height: 1.5rem;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color1);
    position: absolute;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.menu-toggle span:first-child {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:last-child {
    bottom: 0;
}

.hamburger-menu:checked ~ .menu-toggle span:first-child {
    transform: rotate(45deg);
    top: 50%;
    margin-top: -1px;
}

.hamburger-menu:checked ~ .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu:checked ~ .menu-toggle span:last-child {
    transform: rotate(-45deg);
    top: 50%;
    margin-top: -1px;
    bottom: auto;
}

.menu-content {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    max-width: 430px;
    background: var(--color0);
    padding: 0;
    z-index: 100;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hamburger-menu:checked ~ .menu-content {
    display: block;
    opacity: 1;
}

.menu-content nav {
    background: transparent;
    position: relative;
    padding: 1rem 1rem;
    border-top: 1px dotted var(--color1);
}

.menu-content ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-content li {
    margin: 0.5rem 0;
}

.menu-content a {
    color: var(--color1);
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    padding: 0;
}

.menu-content a:hover {
    color: var(--accent2);
}

.menu-content h4 {
    color: var(--color82);
    margin: 2rem 0 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.menu-content a span[data-emoji]::before {
    content: attr(data-emoji);
    margin-right: 1rem;
}

/* Roulette ----------------------------------------------------------------- */
.roulette {
    display: block;
    margin: 1rem 0;
    padding: 1rem 0;
    border-bottom: 1px dotted var(--color0);
}

.roulette-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.roulette-container > button {
    background-color: var(--color0);
    color: var(--color1);
    border-radius: 0.2rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.roulette-result {
    display: inline-block;
}

/* Seasons Table ----------------------------------------------------------------- */
table.seasons {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 0;
    font-size: 1rem;
}

table.seasons th, table.seasons td {
    padding: 0.7rem;
    text-align: center;
    font-size: 1rem;
    border-left: 1px solid var(--color0Alpha2);
    border-right: 1px solid var(--color0Alpha2);
    border-top: none;
    border-bottom: none;
}

table.seasons th {
    white-space: nowrap;
    height: 90px;
    text-align: right;
    position: relative;
    vertical-align: top;
    border-left: 1px solid var(--color1);
    border-right: 1px solid var(--color1);
}

table.seasons th span {
    display: inline-block;
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%) rotate(90deg);
}

table.seasons th:first-child, table.seasons td:first-child {
    text-align: left;
}

table.seasons th:first-child {
    vertical-align: bottom;
}

table.seasons tbody tr:nth-child(even) {
    background-color: var(--color0Alpha2);
}

table.seasons tbody {
    border-bottom: 1px solid var(--color0Alpha2);
}

/* Characteristics ----------------------------------------------------------------- */
table.characteristics, table.common-names {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
    border: none;
}

table.characteristics td, table.common-names td {
    padding: 0.2rem 0;
    font-size: 1.125rem;
    line-height: 1.575rem;
    border: none;  
    font-weight: 200;
    text-align: left;
    vertical-align: top;
}

table.characteristics td:nth-child(2) {
    padding-left: 1rem;
}   

table.characteristics .characteristics-header,
table.characteristics .characteristics-header-second {
    font-size: 1.4rem;
    line-height: 1.6rem;
    font-weight: 400;
    padding-bottom: 0.5rem;
}

table.characteristics .characteristics-header-second {
    padding-top: 1rem;
}

.column:has(table.characteristics) {
    margin-bottom: 1rem;
}

@media only screen and (min-width: 960px) {
    .column:has(table.characteristics) {
        margin-bottom: 0;
    }

}



/* Questions and Answers ----------------------------------------------------------------- */
.faq-list summary {
    cursor: pointer;
    padding: 1rem;
    background-color: var(--color0Alpha2);
    color: var(--color0);
    font-weight: 400;
}

.faq-list details {
    margin-bottom: 1rem;
    padding: 0;
    border: 1px solid var(--color0Alpha2);
    border-radius: 0 0.3rem 0 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.faq-list details[open] {
    max-height: 100rem; /* Large enough to fit content */
    opacity: 1; /* Fully visible when open */
}

.faq-list p {
    padding: 1rem;
    margin: 0;
}

/* Simulations ----------------------------------------------------------------- */
#simulation-controls {
    padding: 0.5rem 0;
    margin: 0;
}

#simulation-controls button {
    border-radius: 0.2rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: 0;
}

#simulation-controls button#start-btn {
    background-color: var(--accent2);
    color: var(--color1);
}

#simulation-controls button#pause-btn, #simulation-controls button#continue-btn {
    background-color: var(--accent1c);
    color: var(--color1);
}

#simulation-controls button#stop-btn {
    background-color: var(--accent2c);
    color: var(--color1);
}

#simulation-counters .counter {
    display: block;
    padding: 0.2rem 0;
}


/* Video Gallery ----------------------------------------------------------------- */
ul.video-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.video-gallery li {
    width: 200px;
}

ul.video-gallery li a {
    display: block;
    width: 100%;
    height: 100%;
}