img, div { behavior: url(/iepngfix.htc) }

html, body {
  //font-family: "Joti One", serif;
  font-family: "Merienda", cursive;
  font-size: 14px;
  margin: 0;
  padding: 0;
  background-color:whitesmoke;
  word-wrap: break-word;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 0;
    background-color: #d5a021; /* Color of the progress bar */
    z-index: 9999; /* Ensures the progress bar is on top */
    animation: loadingBar 0.5s ease-out forwards; /* Adjust the duration as needed */
}

p {
    margin-bottom:8px;
}

@keyframes loadingBar {
    0% { width: 0; }
    99% { width: 100%; }
    100% { width: 0; }
}

/* Flex container to layout header, main, and footer */
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* Allow main to grow and fill the space */
.main {
  flex: 1;
  padding:5px;
  width:auto;
}

#navigation-block{
	overflow: auto;
	margin:0;
  border-bottom:1px solid lightgrey;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:10px;
}

#main-menu{
	margin-left:10px;
	margin-right:10px;
  display: flex;
  gap: 15px;
  align-items: center;
  display: flex;
  justify-content: space-between;
  width:100%;
}

.nav-left img {
  height: 50px;
  width: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

#main-menu a:link {
	text-decoration:  none;
	text-decoration: none;  
    text-shadow: none;  
    -webkit-transition: 500ms linear 0s;  
    -moz-transition: 500ms linear 0s;  
    -o-transition: 500ms linear 0s;  
    transition: 500ms linear 0s;  
    outline: 0 none;	
}

/* Hamburger Menu Styles */
.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation Menu */
.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: linear-gradient(135deg, #2f4f4f 0%, #1a2323 100%);
  display: flex;
  flex-direction: column;
  padding: 10px 20px 10px 20px;
  transition: right 0.3s ease;
  z-index: 1000;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  overflow-y: auto;
}

.nav-menu.active {
  right: 0;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Menu Items */
.menu-section {
  margin-bottom: 15px;
  flex-shrink:0;
}

.menu-section h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 6px;
  margin-top:4px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  font-weight: 600;
}

.menu-item {
  display: block;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 6px 0;
  font-size: 14px;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.menu-item:hover {
  color: #fff;
  padding-left: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding-right: 10px;
}

.menu-item:last-child {
  border-bottom: none;
}

.notice {
	background-color:yellow;
	padding:10px;
	border:1px solid #999;
	margin-top:15px;
	margin-bottom:8px;
}

.alert {
	color:red;
	font-weight:bold;
	margin-left:5px;
	margin-right:5px;
}

div#content {
	margin:auto;
  -moz-box-sizing:border-box;
  box-sizing:border-box;
  -webkit-box-sizing:border-box;
  font-size:13px;
  padding: 10px; /* Add some padding so content doesn't touch edges */
}

h1 {
	font-family: 'Open Sans' sans-serif;
	font-size:18pt;
	color:black;
	margin-bottom:5px;
}

h2 {
	font-size:14pt;
	color:#333;
  font-weight:normal;
}

h3 {
	font-size:11pt;
	padding-top:4px;
	color:#333;
}

h4 {
	font-size:10pt;
	color:#333;
}

.info {
	font-size:8pt;
	font-weight:bold;
	color:#494949;
	margin-top:5px;
}

.visible_link
{
        color:#d5a021;
        font-weight:bold;
}

.mainbox {
        margin-top:5px;
        font-size:10pt;
        padding-top:5px;
        padding-left:10px;
        padding-right:10px;
        padding-bottom:10px;
}

.topcontent {
  color:black;
	margin-left:10px;
	margin-right:10px;
}

label {
}

.connection {
	background-color:#f1f1f1;
	border:1px solid #a9a9a9;
	color:black;
	padding-top:8px;
  padding-bottom:8px;
  padding-left:12px;
  padding-right:12px;
	margin-top:10px;
}

.email {
        background-color:#cccccc;
        border-radius: 5px;
        border:2px solid #494949;
        color:black;
        padding:8px;
	font-size:12px;
	font-weight:normal;
	margin-top:10px;
	margin-bottom:10px;
	margin:auto;
	vertical-align:middle;
	position:relative;
	text-align:left;
}


a {
	color:black	
}

a:link {
	text-decoration:  none;
}

a:visited {
	text-decoration:  none;
}

a:active {
	text-decoration:  none;
}

a.nav {
	padding-left:5px;
	padding-right:7px;
	font-size:14px;
	font-weight:bold;
  color:white;
	text-decoration: none;
  line-height:2;
  white-space:nowrap;
}

.footer {
	text-align:center;
	margin:auto;
  color:white;
  font-size:11px;
  border-top:1px solid lightgrey;
  width:100%;
  background-color:darkslategrey;
  margin-top:10px;
}

.footer_inner {
	padding-left:10px;
  padding-right:10px;
	margin:auto;
}

a.footer_link {
  color:white;
}

.button {
	-moz-box-shadow:inset 0px 1px 0px 0px #f5f5f5;
	-webkit-box-shadow:inset 0px 1px 0px 0px #f5f5f5;
	box-shadow:inset 0px 1px 0px 0px #f5f5f5;
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #d9d9d9), color-stop(1, #f5f5f5) );
	background:-moz-linear-gradient( center top, #d9d9d9 5%, #f5f5f5 100% );
	background-color:#d9d9d9;
	-moz-border-radius:6px;
	-webkit-border-radius:6px;
	border-radius:6px;
	border:1px solid #a3a3a3;
	display:inline-block;
	color:#1d1d1d;
	font-size:12px;
	font-weight:normal;
	padding:2px 10px 2px 10px;
	margin-top:5px;
	margin-bottom:5px;
	text-decoration:none;
	text-shadow:1px 1px 0px #f0f0f0;
	cursor:pointer;
}

.button:hover {
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f5f5f5), color-stop(1, #d9d9d9) );
	background:-moz-linear-gradient( center top, #f5f5f5 5%, #d9d9d9 100% );
	background-color:#f5f5f5;
}

.button:active {
	position:relative;
	top:1px;
}

.button_disabled {
        -moz-box-shadow:inset 0px 1px 0px 0px #f5f5f5;
        -webkit-box-shadow:inset 0px 1px 0px 0px #f5f5f5;
        box-shadow:inset 0px 1px 0px 0px #f5f5f5;
        background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #d9d9d9), color-stop(1, #f5f5f5) );
        background:-moz-linear-gradient( center top, #d9d9d9 5%, #f5f5f5 100% );
        background-color:#d9d9d9;
        -moz-border-radius:6px;
        -webkit-border-radius:6px;
        border-radius:6px;
        border:1px solid #a3a3a3;
        display:inline-block;
        color:grey;
        font-size:12px;
        font-weight:normal;
        padding:2px 10px;
        margin-top:5px;
        margin-bottom:5px;
        text-decoration:none;
        text-shadow:1px 1px 0px #f0f0f0;
        cursor:pointer;
}

.button_black {
        -moz-box-shadow:inset 0px 1px 0px 0px #f5f5f5;
        -webkit-box-shadow:inset 0px 1px 0px 0px #f5f5f5;
        box-shadow:inset 0px 1px 0px 0px #f5f5f5;
        background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #000000), color-stop(1, #222222) );
        background:-moz-linear-gradient( center top, #222222 5%, #000000 100% );
        background-color:black;
        -moz-border-radius:6px;
        -webkit-border-radius:6px;
        border-radius:6px;
        border:1px solid #a3a3a3;
        display:inline-block;
        color:white;
        font-size:12px;
        font-weight:normal;
        padding:2px 10px;
        margin-top:5px;
        margin-bottom:5px;
        text-decoration:none;
        cursor:pointer;
}

.button_black:hover {
        background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #222222), color-stop(1, #000000) );
        background:-moz-linear-gradient( center top, #222222 5%, #000000 100% );
        background-color:black;
}

.button_black:active {
        position:relative;
        top:1px;
}

.button_black_big {
        -moz-box-shadow:inset 0px 1px 0px 0px #f5f5f5;
        -webkit-box-shadow:inset 0px 1px 0px 0px #f5f5f5;
        box-shadow:inset 0px 1px 0px 0px #f5f5f5;
        background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #000000), color-stop(1, #222222) );
        background:-moz-linear-gradient( center top, #222222 5%, #000000 100% );
        background-color:black;
        -moz-border-radius:6px;
        -webkit-border-radius:6px;
        border-radius:6px;
        border:1px solid #a3a3a3;
        display:inline-block;
        color:white;
        font-size:16px;
        font-weight:normal;
	padding-left:10px;padding-right:10px;padding-top:3px;padding-bottom:3px;
        margin-top:5px;
        margin-bottom:5px;
        text-decoration:none;
        cursor:pointer;
}

.button_black_big:hover {
        background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #222222), color-stop(1, #000000) );
        background:-moz-linear-gradient( center top, #222222 5%, #000000 100% );
        background-color:black;
}

.button_black_big:active {
        position:relative;
        top:1px;
}

.button_red {
        -moz-box-shadow:inset 0px 1px 0px 0px #f5f5f5;
        -webkit-box-shadow:inset 0px 1px 0px 0px #f5f5f5;
        box-shadow:inset 0px 1px 0px 0px #f5f5f5;
        background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, red), color-stop(1, black) );
        background:-moz-linear-gradient( center top, black 5%, red 100% );
        background-color:red;
        -moz-border-radius:6px;
        -webkit-border-radius:6px;
        border-radius:6px;
        border:1px solid #a3a3a3;
        display:inline-block;
        color:white;
        font-size:12px;
        font-weight:normal;
        padding:2px 10px;
        margin-top:5px;
        margin-bottom:5px;
        text-decoration:none;
        cursor:pointer;
}

.button_red:hover {
        background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, black), color-stop(1, red) );
        background:-moz-linear-gradient( center top, black 5%, red 100% );
        background-color:red;
}

.button_red:active {
        position:relative;
        top:1px;
}

.button_green {
        -moz-box-shadow:inset 0px 1px 0px 0px #f5f5f5;
        -webkit-box-shadow:inset 0px 1px 0px 0px #f5f5f5;
        box-shadow:inset 0px 1px 0px 0px #f5f5f5;
        background-color:#214E1A;
        -moz-border-radius:6px;
        -webkit-border-radius:6px;
        border-radius:6px;
        border:1px solid #a3a3a3;
        display:inline-block;
        color:white;
        font-size:12px;
        font-weight:normal;
        padding:2px 10px;
        margin-top:5px;
        margin-bottom:5px;
        text-decoration:none;
        cursor:pointer;
}

.button_green:hover {
        background-color:#214E1A;
}

.button_green:active {
        position:relative;
        top:1px;
}

.button_black_big_disabled {
        -moz-box-shadow:inset 0px 1px 0px 0px #f5f5f5;
        -webkit-box-shadow:inset 0px 1px 0px 0px #f5f5f5;
        box-shadow:inset 0px 1px 0px 0px #f5f5f5;
        background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #000000), color-stop(1, #222222) );
        background:-moz-linear-gradient( center top, #222222 5%, #000000 100% );
        background-color:black;
        -moz-border-radius:6px;
        -webkit-border-radius:6px;
        border-radius:6px;
        border:1px solid #a3a3a3;
        display:inline-block;
        color:grey;
        font-size:16px;
        font-weight:normal;
        padding-left:10px;padding-right:10px;padding-top:3px;padding-bottom:3px;
        margin-top:5px;
        margin-bottom:5px;
        text-decoration:none;
        cursor:pointer;
}


.email_address {
	background-color:#fac000;
	padding:4px 8px 4px 8px;
	font-size:13px;
        border:solid 1px grey;
        border-radius:3px;
}

.floorman {
	background-image: url('/assets/strip.png');
  height:158px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0; overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height:100%;
}

.video-wrapper {
    max-width: 600px;
    margin:auto;
}

.CSSTableGenerator {
	margin:0px;padding:0px;
	border:1px solid #a9a9a9;
	
	-moz-border-radius-bottomleft:5px;
	-webkit-border-bottom-left-radius:5px;
	border-bottom-left-radius:5px;
	
	-moz-border-radius-bottomright:5px;
	-webkit-border-bottom-right-radius:5px;
	border-bottom-right-radius:5px;
	
	-moz-border-radius-topright:5px;
	-webkit-border-top-right-radius:5px;
	border-top-right-radius:5px;
	
	-moz-border-radius-topleft:5px;
	-webkit-border-top-left-radius:5px;
	border-top-left-radius:5px;

	background-color:white;
	word-break:break-word;
}
.CSSTableGenerator table{
	width:100%;
	height:100%;
	margin:0px;padding:0px;
}
.CSSTableGenerator td{
	vertical-align:middle;
	border:1px solid #a9a9a9;
	border-width:0px 1px 1px 0px;
	text-align:left;
	padding:6px;
	font-size:12px;
	font-weight:normal;
}.CSSTableGenerator tr:last-child td{
	border-width:0px 1px 0px 0px;
}.CSSTableGenerator tr td:last-child{
	border-width:0px 0px 1px 0px;
}.CSSTableGenerator tr:last-child td:last-child{
	border-width:0px 0px 0px 0px;
}
.CSSTableGenerator tr:first-child td{
	border:0px solid #a9a9a9;
	border-width:0px 1px 1px 0px;
	font-weight:bold;
  color:white;
  background-color:darkslategrey;
  word-break:normal;
}
.CSSTableGenerator tr:first-child td:first-child{
	border-width:0px 1px 1px 0px;
}
.CSSTableGenerator tr:first-child td:last-child{
	border-width:0px 0px 1px 0px;
}

.thing { display:none; }

textarea {
   font-size: 10pt;
   font-family: Arial;
} 

.button_small {
        -moz-box-shadow:inset 0px 1px 0px 0px #f5f5f5;
        -webkit-box-shadow:inset 0px 1px 0px 0px #f5f5f5;
        box-shadow:inset 0px 1px 0px 0px #f5f5f5;
        background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #d9d9d9), color-stop(1, #f5f5f5) );
        background:-moz-linear-gradient( center top, #d9d9d9 5%, #f5f5f5 100% );
        background-color:#d9d9d9;
        -moz-border-radius:4px;
        -webkit-border-radius:4px;
        border-radius:4px;
        border:1px solid #a3a3a3;
        display:inline-block;
        color:#1d1d1d;
        font-size:10px;
        font-weight:normal;
        padding:2px 7px;
        margin-top:3px;
        margin-bottom:3px;
        text-decoration:none;
        text-shadow:1px 1px 0px #f0f0f0;
        cursor:pointer;
}

.button_small:hover {
        background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f5f5f5), color-stop(1, #d9d9d9) );
        background:-moz-linear-gradient( center top, #f5f5f5 5%, #d9d9d9 100% );
        background-color:#f5f5f5;
}

.button_small:active {
        position:relative;
        top:1px;
}

.button_small_disabled {
        -moz-box-shadow:inset 0px 1px 0px 0px #f5f5f5;
        -webkit-box-shadow:inset 0px 1px 0px 0px #f5f5f5;
        box-shadow:inset 0px 1px 0px 0px #f5f5f5;
        background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #d9d9d9), color-stop(1, #f5f5f5) );
        background:-moz-linear-gradient( center top, #d9d9d9 5%, #f5f5f5 100% );
        background-color:#d9d9d9;
        -moz-border-radius:4px;
        -webkit-border-radius:4px;
        border-radius:4px;
        border:1px solid #a3a3a3;
        display:inline-block;
        color:grey;
        font-size:10px;
        font-weight:normal;
        padding:2px 7px;
        margin-top:3px;
        margin-bottom:3px;
        text-decoration:none;
        text-shadow:1px 1px 0px #f0f0f0;
        cursor:pointer;
}

#video-container {
  text-align: center;
}

.button_to {
  display:inline-block;
}

.field {
  margin-top:10px;
  margin-bottom:10px;
}

.field_with_errors {
  display:inline-block;
}

#columns {
	-webkit-column-gap: 5px;
	column-gap: 5px;
	overflow:visible;
	text-align:center;
}

.pin {
        position:relative;
        display: inline-block;
        word-break:break-word;
	padding-bottom:8px;
}

.pin__front {
        display: inline-block;
        box-shadow: 1px 1px 3px 1px #aaa;
        -webkit-column-break-inside: avoid;
        -moz-column-break-inside: avoid;
        column-break-inside: avoid;
        page-break-inside: avoid;
        break-inside: avoid;
        background-color:white;
        opacity: 0.9;

        -webkit-transition: all .8s ease;
        -moz-transition: all .8s ease;
        -o-transition: all .8s ease;
        transition: all .8s ease;

        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-transition: -webkit-transform 0.8s ease;
        transition: transform 0.8s ease;

	padding:8px 8px 8px 8px;
	width:100%;
}

.pin__front:hover {
        background-color:#B3CBAE;
        -webkit-transition: all .8s ease;
        -moz-transition: all .8s ease;
        -o-transition: all .8s ease;
        transition: all .8s ease;
}

.pin__front p {
        font: 12px/18px Arial, sans-serif;
        color: #333;
        margin: 0;
}

.pin__back {
	font-size:11px;
        position:absolute;
        top:0;
        left:0;
        z-index:2;
        display: inline-block;
        box-shadow: 1px 1px 3px 1px #aaa;
        -webkit-column-break-inside: avoid;
        -moz-column-break-inside: avoid;
        column-break-inside: avoid;
        page-break-inside: avoid;
        break-inside: avoid;
        background-color:white;
        opacity: 0.9;

        -webkit-transition: all .8s ease;
        -moz-transition: all .8s ease;
        -o-transition: all .8s ease;
        transition: all .8s ease;

        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-transition: -webkit-transform 0.8s ease;
        transition: transform 0.8s ease;

        -webkit-transform: rotateY(-180deg);
        transform: rotateY(-180deg);

        width:100%;
}

.pin__back:hover {
        background-color:#B3CBAE;
}

.pin__back p {
        font: 12px/18px Arial, sans-serif;
        color: #333;
        margin: 0;
}

/* click effect */
.pin.effect__click.flipped .pin__front {
  -webkit-transform: rotateY(-180deg);
          transform: rotateY(-180deg);
}

.pin.effect__click.flipped .pin__back {
  -webkit-transform: rotateY(0);
          transform: rotateY(0);
}


/* Allow the layout to scroll on small screens */
.layout {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

/* Small screen specific adjustments */
@media (max-width: 767px) {
  .left-column {
    flex: 0 0 auto; /* Don't grow, don't shrink, auto height */
    /* Remove max-height restriction so content can be as tall as needed */
  }
  
  .right-column {
    flex: 0 0 auto; /* Don't grow, let it be its natural height */
    min-height: 0;
  }
  
  /* Allow the middle container to scroll */
  div#middle {
    overflow-y: auto; /* Allow scrolling */
  }

  .panel {
    margin:0;
  }

  #graph-content {
    margin:0;
    margin:auto;
  }
}

/* Large screen layout */
@media (min-width: 768px) {
  .layout {
    flex-direction: row;
    overflow: hidden; /* Restore hidden overflow for large screens */
    height: calc(100vh - 60px);
  }

  .left-column {
    min-width: 270px;
    max-width: 270px;
  }

  .right-column {
    flex: 1;
    min-width: 0;
  }

  .panel {
    max-width:90%;
    margin:0;
  }

  #graph-content {
    //max-width:85%;
    margin:0;
    margin:auto;
  }
}

.html_editor {
	background-color:#ede7d9;
}

#slider {
	border:1px solid grey;
	border-radius:5px;
	position:absolute;
	background-color:#b3cbae;
	margin-right:15px;
	text-align:center;
	width:260px;
	bottom:15px;
	z-index:10;
	overflow:hidden;
	position:fixed;
	font-weight:bold;
	-webkit-box-shadow: 2px 2px 8px 2px #333;
	-moz-box-shadow: 2px 2px 8px 2px #333;
	box-shadow: 2px 2px 8px 2px #333;
}

video#bgvid { 
    position: relative;
    left: 50%;
    min-width: 100%;
    min-height: 100vh;
    -ms-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    background-size: cover;
    z-index:-1;
}

.semitransbox {
  box-shadow: 0 1px 2px rgba(34, 25, 25, 0.4);
  background-color:whitesmoke;
  opacity: 0.8;
  padding:10px;
  max-width: 450px;
	text-align:center;
	margin:auto;
}

.semitransbox_outer {
	padding-left:5px;
	padding-right:5px;
	padding-top:15px;
}


#homepage_columns {
  -webkit-column-gap: 5px;
  column-gap: 5px;
  overflow:visible;
}

.feedback {
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:10;
  background-color:rgba(0,0,0,0.5);
  margin:auto;
    -webkit-animation: fadein 2s; /* Safari, Chrome and Opera > 12.1 */
       -moz-animation: fadein 2s; /* Firefox < 16 */
        -ms-animation: fadein 2s; /* Internet Explorer */
         -o-animation: fadein 2s; /* Opera < 12.1 */
            animation: fadein 2s;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Internet Explorer */
@-ms-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Clear floats after the columns */
.dir_row:after {
    content: "";
    display: table;
    clear: both;
}

img {
  max-width:100%;
}

.article img {
  height:auto;
}

@keyframes move-clouds-back {
    from {background-position:10000px 0;}
    to {background-position:0 0;}
}
@-webkit-keyframes move-clouds-back {
    from {background-position:10000px 0;}
    to {background-position:0 0;}
}
@-moz-keyframes move-clouds-back {
    from {background-position:10000px 0;}
    to {background-position:0 0;}
}
@-ms-keyframes move-clouds-back {
    from {background-position: 10000px 0;}
    to {background-position:0;}
}

.text_input {
  padding-left:5px;
  padding-top:27px;
  padding-bottom:10px;
  height:4px;
  border:1px solid #a9a9a9;
}

.text_label {
  position: relative;
  display:block;
  left:5px;
  cursor: text;
  border:none;
  font-size: 11px;
  top:-42px;
  margin-bottom:-15px;
  font-weight:bold;
  text-transform: uppercase;
}

.ta_label {
  padding-left:5px;
  font-size: 11px;
  background-color:white;
  font-weight:bold;
  border:1px solid #a9a9a9;
  text-transform: uppercase;
  padding-top:2px;
  padding:10px;
}

textarea {
  border:none;
  width:98%;
  padding-left:2px;
  margin-top:-5px;
}

input[type=text], textarea {
  -webkit-transition: all 0.30s ease-in-out;
  -moz-transition: all 0.30s ease-in-out;
  -ms-transition: all 0.30s ease-in-out;
  -o-transition: all 0.30s ease-in-out;
  outline: none;
  max-width:100%;
}
 
input[type=text]:focus, textarea:focus {
  box-shadow: 0 0 5px rgba(81, 203, 238, 1);
  border: 1px solid rgba(81, 203, 238, 1);
}

#subscription_columns {
        -webkit-column-gap: 5px;
        column-gap: 8px;
        overflow:visible;
}

.pin_sub {
        word-break:break-word;

        display: inline-block;
        box-shadow: 1px 1px 0 #aaa;
        -webkit-column-break-inside: avoid;
        -moz-column-break-inside: avoid;
        column-break-inside: avoid;
        page-break-inside: avoid;
        break-inside: avoid;
        background-color:white;
        opacity: 0.9;

        -webkit-transition: all .8s ease;
        -moz-transition: all .8s ease;
        -o-transition: all .8s ease;
        transition: all .8s ease;

        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-transition: -webkit-transform 0.8s ease;
        transition: transform 0.8s ease;

        padding:20px;
	margin-bottom:15px;
        text-align:center;
	display:block;
}

.submenu {
	color:#214E1A;
	font-weight:bold;
	font-style:italic;
}

body#tinymce {
	margin:8px;
}



    .container {
      margin: 0 auto;
      padding:5px;
    }


    /* Panel styles */
    .panel {
      border-radius: 8px;
      box-shadow: 0 1px 3px #a49694;
      padding: 20px;
      background-color:#f2fcff;
      overflow-y: auto; /* Each panel scrolls individually */
      min-height: 0; /* Important for flex children */
    }

    /* For the right column with the wide graph */
.right-column.panel {
  overflow-x: auto; /* Allow horizontal scroll for wide graph */
  overflow-y: auto; /* Allow vertical scroll if needed */
}

    /* Search input */
    .search-container {
      position: relative;
      margin-bottom: 1rem;
    }

    .search-input {
      width: -webkit-fill-available;
      padding: 8px 12px;
      border: 1px solid #d1d5db;
      border-radius: 6px;
      outline: none;
      font-size: 0.9rem;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .search-input:focus {
      border-color: #3b82f6;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    }

    /* Dropdown */
    .dropdown {
      position: absolute;
      width: 100%;
      max-height: 240px;
      overflow-y: auto;
      margin-top: 4px;
      border: 1px solid #e5e7eb;
      border-radius: 6px;
      background-color: white;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      z-index: 10;
      display: none;
    }

    .dropdown-item {
      padding: 8px 12px;
      cursor: pointer;
    }

    .dropdown-item:hover, .dropdown-item.active {
      background-color: #e6f7ff;
    }

    /* Dropdown */
    .bd-dropdown {
      position: absolute;
      width: 100%;
      max-height: 240px;
      overflow-y: auto;
      margin-top: 4px;
      border: 1px solid #e5e7eb;
      border-radius: 6px;
      background-color: white;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      z-index: 10;
      display: none;
    }

    .bd-dropdown-item {
      padding: 8px 12px;
      cursor: pointer;
    }

    .bd-dropdown-item:hover, .bd-dropdown-item.active {
      background-color: #e6f7ff;
    }

    /* Artist layers */
    .layer-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
    }

    .layer-title {
      font-size:1rem;
    }

    .refresh-btn {
      display: flex;
      align-items: center;
      color: #2563eb;
      cursor: pointer;
      background: none;
      border: none;
    }

    .refresh-btn:hover {
      color: #1d4ed8;
    }

    .spinner {
      animation: spin 1s linear infinite;
      display: inline-block;
      width: 24px;
      height: 24px;
      margin-right: 0.25rem;
    }

    @keyframes spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    .artist-layer {
      justify-content: space-between;
      align-items: center;
      padding: 8px 12px;
      margin-bottom: 8px;
      background-color: #add8e6;
      border-radius: 4px;
    }

    .artist-layer-top {
    }

    .artist-layer-checkbox {
      margin-right: 8px;
      vertical-align: middle;
    }

    .artist-layer-label {
      vertical-align: middle;
    }

    .backdrop-layer {
      justify-content: space-between;
      align-items: center;
      padding: 8px 12px;
      margin-bottom: 8px;
      background-color: #add8e6;
      border-radius: 4px;
    }

    .backdrop-layer-top {
    }

    .backdrop-layer-checkbox {
      margin-right: 8px;
      vertical-align: middle;
    }

    .backdrop-layer-label {
      vertical-align: middle;
    }

    .remove-btn {
      color: #6b7280;
      cursor: pointer;
      background: none;
      border: none;
      padding: 4px;
      float:right;
      vertical-align: middle;
    }

    .remove-btn:hover {
      color: #ef4444;
    }

    .no-artists {
      color: #9ca3af;
      font-style: italic;
    }

    .no-backdrops {
      color: #9ca3af;
      font-style: italic;
    }

    .debug-section {
      margin-top: 1.5rem;
    }

    .section-title {
      font-weight: 600;
      margin-bottom: 8px;
    }

    .debug-panel {
      background-color: #f9fafb;
      border: 1px solid #e5e7eb;
      border-radius: 6px;
      padding: 1rem;
      font-family: monospace;
      font-size: 0.75rem;
      overflow: auto;
    }

    .debug-panel-item {
      margin-bottom: 8px;
    }

    .debug-panel-label {
      font-weight: 600;
    }

    .debug-panel-value {
      color: #1d4ed8;
    }

    .debug-panel-method {
      color: #059669;
    }

    .debug-panel pre {
      padding: 8px;
      border-radius: 4px;
      margin-top: 4px;
      overflow: auto;
    }

    /* Graph container */
    .graph-container {
      width: 100%;
      height: 100%;
    }

    .graph-placeholder {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100%;
      color: #9ca3af;
      font-size:28px;
    }

      .right-column {
           flex: 1; /* Takes remaining space */
           min-width: 0; /* Important for flex */
      }

    .color-button {
      background-color: #f0f0f0;
      border: none;
      border-radius: 4px;
      padding: 6px 12px;
      cursor: pointer;
      display: flex;
      align-items: center;
      font-size: 14px;
    }
    .color-button:hover {
      background-color: #e0e0e0;
    }
    .color-picker-container {
      position: relative;
    }
    .color-picker {
      position: static;
      margin-top: 10px;
      background-color: white;
      border-radius: 4px;
      padding: 5px;
      display: flex;
      gap: 8px;
    }
    .color-grid {
      display: flex;
      gap: 8px;
    }
    .color-option {
      width: 16px;
      height: 16px;
      border-radius: 3px;
      cursor: pointer;
      border: 2px solid #f0f0f0;
      transition: all 0.2s;
    }
    .color-option:hover {
      opacity: 0.8;
    }
    .color-option.selected {
      border-color: #333;
    }



.scoring-selector {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.covers-btn {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Merienda';
}

.covers-btn:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.covers-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.covers-btn.active:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Add a checkmark icon for the active state */
.covers-btn.active::after {
    content: '\2713';
    font-size: 14px;
    font-weight: bold;
    margin-left: 8px;
}

.rating-btn {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Merienda';
}

.rating-btn:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.rating-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.rating-btn.active:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Add a checkmark icon for the active state */
.rating-btn.active::after {
    content: '\2713';
    font-size: 14px;
    font-weight: bold;
    margin-left: 8px;
}

/* Related Artists Container */
.related-artists-container {
  max-height: 300px;
  overflow-y: auto;
}

/* Individual Related Artist Item */
.related-artist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin-bottom: 6px;
  background-color: #ede7d9;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.related-artist-item:hover {
  background-color: #e9ecef;
}

/* Related Artist Info */
.related-artist-info {
  flex: 1;
  min-width: 0; /* Prevents text overflow issues */
}

.related-artist-name {
  font-weight: 500;
  font-size: 14px;
  color: #333;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-artist-meta {
  font-size: 12px;
  color: #666;
  font-style: italic;
}

/* Add Related Artist Button */
.add-related-artist-btn {
  background-color: #add8e6;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
  margin-left: 8px;
}

.add-related-artist-btn:hover {
  background-color: #0056b3;
}

.add-related-artist-btn:active {
  background-color: #004085;
}

/* Loading Message */
.loading-message {
  display: flex;
  align-items: center;
  padding: 12px;
  font-size: 14px;
  color: #666;
  justify-content: center;
}

.related-artists-container::-webkit-scrollbar {
  width: 6px;
}

.related-artists-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.related-artists-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.related-artists-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}


.dropdown-loading, .dropdown-error, .dropdown-no-results {
  padding: 12px;
  text-align: center;
  color: #666;
  font-style: italic;
}

.dropdown-error {
  color: #ef4444;
}

.artist-info {
  flex-grow: 1;
}

.artist-name {
  font-weight: 500;
  margin-bottom: 2px;
}

.artist-genres {
  font-size: 0.85em;
  color: #666;
  margin-bottom: 1px;
}

.artist-followers {
  font-size: 0.8em;
  color: #888;
}

.artist-image {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  margin-left: 12px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
}

#graph-content canvas {
  height: calc(100vh - 100px) !important;
}

.left-column.panel {
  overflow-y: auto !important;
  max-height: calc(100vh - 100px);
  min-height: 0;
}


/* Magical Link with Floating Sparkles */
.inverse-link {
    color: #000000;
    padding: 8px 12px;
    border: 1px solid #d5a021;
    border-radius: 8px;
    background: #d5a021;
    display:inline-block;
}

.inverse-link:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.header {
  background-color:darkslategrey;
  margin-bottom:10px;
}

#graph-content {
  padding-left:10px;
}
