/* Top bar styling */
.top-bar {
  background-color: #67c8a4; 
  height: 50px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 10px solid #d79898; 
  box-shadow: 0 6px 0 0 #f7c8c8, 
              0 10px 0 0 #c9edd7; 
}
.top-bar2 {
  background-color: #c9edd7; 
  height: 50px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 10px solid #d79898; 
  box-shadow: 0 6px 0 0 #f7c8c8, 
              0 10px 0 0 #67c8a4; 
}

/* Body styling */
body {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 16px;
  color: #72522a; 
  line-height: 1.6;
  background-color: #F4F6F8; 
  margin: 0 auto;
  max-width: 800px;
  padding-top: 60px;
}
body.embedded-body {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 16px;
  color: #72522a; 
  line-height: 1.6;
  background-color: #f2faf5;
  margin: 0 auto;
  max-width: 800px;
  padding-top: 60px;
}

/* Headings */
h1 {
  color: #023339; 
  margin-top: 24px;
  margin-bottom: 16px;
  margin-left: 24px;
  font-weight: 600;
  text-shadow: 2px 2px 5px rgba(124, 142, 143, 0.5);
}
h2, h3, h4, h5, h6 {
  color: #0a5656; 
  margin-top: 24px;
  margin-left: 24px;
  margin-bottom: 16px;
  font-weight: 600;
}

/* Text sizing */
.big {
  font-size: 3em;
}
h2 {
  font-size: 2.5em;
}
.small {
  font-size: 1.25em;
}
h1.big {
  font-size: 2.5rem; 
}

/* Paragraph styling */
p {
  font-size: 1rem; 
  margin-bottom: 1em;
  margin-left: 24px;
  color: #525A76; 
  font-weight: 300;
}

/* Section styling */
section {
  background-color: #FFFFFF; 
  margin: 20px 0;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1); 
  box-sizing: border-box; 
}

/* Links styling */
a {
  color: #69A6A0; 
  text-decoration: none;
}
a:hover {
  color: #2A2A72; 
  text-decoration: underline;
}

/* Images styling */
img {
  max-width: 100%;
  height: auto;
}

/* Width */
figure {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #525A76; /* Subtle color for the label */
  font-style: italic;
  text-align: center; /* Center the caption text */
}
/*Scaling */
.vega-embed svg,
.vega-embed canvas {
  max-width: 100% !important; 
  height: auto !important;
}

/* Charts description container */
.chart-description {
  width: 100%; 
  align-items: center;
  margin: 20px auto;
}

/* Iframe wrapper (ratio-based) */
.iframe-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio; adjust as needed */
  height: 0;
  overflow: hidden;
  border: 4px solid #f7c8c8;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(12, 5, 5, 0.1);
}

.iframe-overlay {
  position: absolute;
  top: 10px; /* Adjust as needed */
  right: 10px; /* Adjust as needed */
  z-index: 10; /* Above iframe */
  background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.iframe-overlay .portfolio-link {
  color: #69A6A0;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
}

.iframe-overlay .portfolio-link:hover {
  text-decoration: underline;
}

/* Embedded iframe */
.embedded-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 0;
  display: block;
  overflow: auto;
}

/* Styles for devices smaller than 768px */
@media screen and (max-width: 768px) {
  .big {
    font-size: 1.5em;
  }
  .chart-description {
    width: 100%;
  }
}

/* Styles for devices smaller than 480px */
@media screen and (max-width: 480px) {
  .big {
    font-size: 1.2em;
  }
}
