html {
    scroll-behavior: smooth;
}

body {
    text-align: center;
    line-height: 160%; 
    font-size: 16px;  
    margin: 0;  
    z-index:1;
    background-color: whitesmoke;
    font-family: "helvetica", "open sans";
}

a:link { color: #141DFF; text-decoration: none;}
a:visited{ color: #141DFF; }
a:hover {text-decoration: underline; background-color: #98ffff;}

/* The navigation bar */
.navbar {
    overflow: hidden;
    background-color: #0e005e;
    /* position: fixed; Set the navbar to fixed position */
    top: 0; /* Position the navbar at the top of the page */
    width: 100%; /* Full width */
    z-index: 999;
    border-style: solid;
    border-width: 0px;
    border-bottom-width: 2px;
    border-bottom-color: #0e005e;
}

/* Links inside the navbar */
.navbar a {
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 10px 7px;
    text-decoration: none;
    font-size: 30px;
    font-weight: bold;
    font-family: "helvetica", "open sans"; 
}
  
/* Change background on mouse-over */
.navbar a:hover {
background: white;
color: #0e005e;
}

p { font-size: 20px; font-family: Georgia, "Sans-serif", serif;}
span { font-size: 20px; font-family: Georgia, "Sans-serif", serif;}

article { text-align: left; width: 90%; margin: 0 auto;}
h1 { font-size: 48px; margin: 40px 10px 30px 10px; font-weight: bold; line-height: 54px;}
h2 { font-size: 32px; margin: 10px 10px 30px 10px; font-weight: bold; font-weight: normal; line-height: 38px;}
h3 { font-size: 18px; margin: 50px 0px 5px 0px; font-weight: bold; line-height: 24px;}

@media only screen and (min-width: 768px) {
  article { text-align: left; width: 50%; margin: 0 auto;}
  h1 { font-size: 52px; margin: 40px 10px 30px 10px; font-weight: bold; line-height: 56px;}
  h2 { font-size: 30px; margin: 10px 10px 30px 10px; font-weight: bold; font-weight: normal; line-height: 36px;}
  h3 { font-size: 22px; margin: 50px 0px 5px 0px; font-weight: bold; line-height: 28px;}
}

::-moz-selection { /* Code for Firefox */
    background: #98ffff;
    color: #0e005e;
}
::selection {
    background: #98ffff;
    color: #0e005e;
}
mark {
    background-color: #98ffff7e;
}

select{
    height: 30px;
}

div.container{
    width: 100%;
    margin-top: 25px;
    margin-bottom: 25px;
}

div.scatter_div{
    width: 100%;
    margin: auto;
}

svg {
    display: block;
    margin: auto;
}

svg.scatter{
    background-color:transparent;
}

div.buttonDiv{
    margin: auto;
}

button{
    height: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    border: 2px solid #0e005e;
    color: whitesmoke;
    background-color: #0e005e;
    line-height: 90%;
    border-radius: 5px;
    width: 75%;
}
button:hover{
    color: #0e005e;
    background-color: whitesmoke;
}
button:disabled {
    opacity: 0.6;
    cursor: default;
}


.bookmark_img {
    width: 75%;
    height: auto;
    margin: auto;
    display: block;
}

.nodes{
    cursor: pointer;
    display: none;
}

path { 
    stroke: rgb(56, 56, 56);
    /* fill:  rgb(56, 56, 56); */
}

.y-axis-label {
    font-size: 17px;
    font-family: Arial, sans-serif;
    text-anchor: middle;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none;
}
.x-axis-label {
    font-size: 17px;
    font-family: Arial, sans-serif;
    text-anchor: middle;
    alignment-baseline: middle;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none;
}
.halo {
    fill: whitesmoke;
    stroke: whitesmoke;
    stroke-opacity: 0.5;
    stroke-width: 3;
}

.circle{
    fill: none;
    stroke: whitesmoke;
}

.headLabels{
    text-anchor: middle;
    alignment-baseline: hanging;
    fill: none;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none;
    text-shadow: -1px -1px 10px #cfcfcf, -1px 1px 10px #cfcfcf, 1px 1px 10px #cfcfcf, 1px -1px 10px #cfcfcf, -1px 0 10px #cfcfcf, 0 1px 10px #cfcfcf, 1px 0 10px #cfcfcf, 0 -1px 10px #cfcfcf;
}

.breaker{
    color : #0e005e;
    border : 2px solid #0e005e;
    margin-bottom : 40px;
    margin-top: 120px;
}

.relatedContentContainer{
    height: 200px;
    margin-bottom: 25vh;
}

.relatedContentContainer a:hover{
    background-color: white;
    
}
.relatedContentContainer a{
    color: black;
}

.relatedContent{
    width: 20%;
    height: 100%;
    display: inline-block;
    padding: 5px;
    vertical-align:top;
    margin-bottom: 50px;
}

fieldset{
    border: none;
}
legend{
    font-weight: bold;
}

/* styles for photo grid */
.gallery {
    display: flex;
    flex-wrap: wrap;
    padding: 5px;
    justify-content: space-evenly;
}
.item {
    margin: 5px;
    width: 15%;
    flex: 1 0 25%;
}


.badge {
    background-color: #0e005e;
    color: white;
    padding: 4px 8px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none;
}
.badge:hover {
    background-color:darkblue;
}

.backFill {
    background-color:rgba(77, 50, 254, 0.25);
    padding: 3px;
    border-radius: 2.5px;
}


/* Mobile-optimized alignment chart grid */
.parent {
    display: grid;
    justify-content: center;
    padding: 10px;
    margin: 20px auto;
    grid-gap: 8px;
    
    /* Mobile-first approach: smaller grid cells */
    grid-template-columns: repeat(3, 28vw);
    grid-template-rows: repeat(3, 28vw);
    max-width: 100%;
}

.parent div {
    padding: 8px;
    border: 0px black solid;
    display: grid;
    place-items: center;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    background-color: white;
    border-radius: 8px;
}

.parent span {
    font-size: 12px;
    font-family: Arial, sans-serif;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 5px;
}

.parent img {
    width: 80%;
    height: auto;
    border-radius: 5px;
    max-width: 80px; /* Prevent images from getting too large */
}

/* Tablet breakpoint */
@media screen and (min-width: 480px) {
    .parent {
        grid-template-columns: repeat(3, 22vw);
        grid-template-rows: repeat(3, 22vw);
        grid-gap: 10px;
        padding: 15px;
    }
    
    .parent span {
        font-size: 16px;
    }
    
    .parent img {
        max-width: 100px;
    }
}

/* Desktop breakpoint */
@media screen and (min-width: 768px) {
    .parent {
        grid-template-columns: repeat(3, 14vw);
        grid-template-rows: repeat(3, 14vw);
        grid-gap: 10px;
        padding: 20px;
        max-width: 600px; /* Prevent it from getting too large on very wide screens */
    }
    
    .parent div {
        padding: 10px;
    }
    
    .parent span {
        font-size: 18px;
    }
    
    .parent img {
        max-width: none; /* Remove max-width restriction on desktop */
    }
}

/* Large desktop breakpoint */
@media screen and (min-width: 1024px) {
    .parent {
        grid-template-columns: repeat(3, 12vw);
        grid-template-rows: repeat(3, 12vw);
        max-width: 700px;
    }
    
    .parent span {
        font-size: 20px;
    }
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
    .item {
        width: 100%;
        flex: auto; 
    }

    .column {
        width: 20%;
        padding: 2.5px;
    }
}
  
/* mobile stuff */
@media only screen and (min-width: 768px) {

    div.container{
        margin-top: 25px;
        display: inline-flex;
    }

    div.buttonDiv{
        width: 25%;
        display: block;
        margin-top: 0px;
    }

    button{
        width: 50%;
    }

    .slideshow-container {
        width: 50%;
      }

    div.scatter_div{
        width: 50%;
    }
}

.instruction1 {
    fill: white;
    height: 100px;
    width: 400px;
    stroke: black;
    stroke-width: 1px; 
    text-anchor: middle;
    box-shadow: 0 1px 6px 0 rgba(32, 33, 36, .28);
    border-radius: 25px;
    cursor: pointer;
}

.instructionText{
   text-anchor: middle;
    alignment-baseline: central;
    font-weight: bold;
    pointer-events: none;
}

svg.summary {
    background-color:transparent;
    border: none;
}

.summaryDot {
    stroke: black;
    fill: white;
}

/* HEATMAP STYLES */
svg.heatmap_svg{
    background-color:transparent;
    border: 1px dashed rgb(207, 207, 207);
    padding: 10px;
}

.mini-y-axis-label {
    font-size: 14px;
    opacity: 1;
    font-family: Arial, sans-serif;
    text-anchor: middle;
}
.mini-x-axis-label {
    font-size: 14px;
    opacity: 1;
    font-family: Arial, sans-serif;
    text-anchor: middle;
    alignment-baseline: middle;
}
.mini-halo {
    fill: whitesmoke;
    stroke: whitesmoke;
    stroke-opacity: 0.5;
    stroke-width: 1;
}

.dot{
    fill: red;
    opacity: 0.8;
    stroke: white;
}

#names{
    margin-bottom: 15px;
}

/* Mobile-optimized beeswarm chart containers */
#evilGoodBeeswarm,
#lawfulBeeswarm {
    width: 100%;
    overflow-x: auto; /* Allow horizontal scrolling if needed */
    margin: 20px auto;
    padding: 10px 0;
}

/* Responsive SVG container */
#evilGoodBeeswarm svg,
#lawfulBeeswarm svg {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Mobile-specific adjustments for beeswarm charts */
@media screen and (max-width: 767px) {
    
    /* Reduce heading font size on mobile */
    h3 {
        font-size: 18px !important;
        margin: 30px 0px 15px 0px !important;
        text-align: center;
    }
    
    /* Make beeswarm containers more mobile-friendly */
    #evilGoodBeeswarm,
    #lawfulBeeswarm {
        margin: 15px auto;
        padding: 5px;
        border-radius: 8px;
    }
    
    /* Ensure SVGs scale properly */
    #evilGoodBeeswarm svg,
    #lawfulBeeswarm svg {
        width: 100% !important;
        min-width: 320px; /* Minimum width for very small screens */
    }
    
    /* Adjust axis labels for mobile */
    .summary g text {
        font-size: 14px !important;
    }
}

/* Tablet adjustments */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    
    h3 {
        font-size: 20px !important;
        text-align: center;
    }
    
    #evilGoodBeeswarm,
    #lawfulBeeswarm {
        margin: 25px auto;
        max-width: 90%;
    }
    
    #evilGoodBeeswarm svg,
    #lawfulBeeswarm svg {
        max-width: 90%;
    }
}

/* Desktop - maintain original styling */
@media screen and (min-width: 1024px) {
    
    h3 {
        font-size: 22px !important;
        text-align: center;
    }
    
    #evilGoodBeeswarm,
    #lawfulBeeswarm {
        margin: 30px auto;
        max-width: 800px;
    }
}