/* remember to replace the fonts reference */

/* @font-face {
  font-family: "AkkuratLL-Regular";
  src: url("../akkurat/AkkuratLL-Regular.otf") format("opentype");
}

@font-face {
  font-family: "AkkuratLL-Light";
  src: url("../akkurat/AkkuratLL-Light.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "AkkuratLL-Italic";
  src: url("../akkurat/AkkuratLL-Italic.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "AkkuratLL-Bold";
  src: url("../akkurat/AkkuratLL-Bold.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
} */


 /* remember to replace the fonts reference */

@font-face {
  font-family: "AkkuratLL-Regular";
  src: url("/content/dam/spglobal/commodity-insights/en/content-design/infographics/common/fonts/AkkuratLL-Regular.otf") format("opentype");
}

@font-face {
  font-family: "AkkuratLL-Light";
  src: url("/content/dam/spglobal/commodity-insights/en/content-design/infographics/common/fonts/AkkuratLL-Light.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "AkkuratLL-Italic";
  src: url("/content/dam/spglobal/commodity-insights/en/content-design/infographics/common/fonts/AkkuratLL-Italic.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "AkkuratLL-Bold";
  src: url("/content/dam/spglobal/commodity-insights/en/content-design/infographics/common/fonts/AkkuratLL-Bold.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
} 

html, body {
  min-height: 90vh;
  margin: 0;
  background-color: #0a0a0a;
  color: #fff;
  font-family: "AkkuratLL-Regular";
  /* display: flex; */
  flex-direction: column;
  line-height: normal !important;

}

p {
  font-family: "AkkuratLL-Regular";
  line-height: normal !important;
  font-size: medium;
  margin-left: 0;
  margin-right: 0.75em;
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

#EuWrapper {
  width: 100%;
  height: 100%;
}

#container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 1em;
}

#clickHelper {
  display: none;
}

/* 
#container {
  outline: 2px solid red;
}

#left {
  outline: 2px solid rgb(49, 194, 57);
}

#right {
  outline: 2px solid rgb(177, 62, 148);
} */

#left {
   flex: 1;
   padding: 1em;
}

.button-container {
  line-height: normal;
  font-size: 14px;
}

/* .button-container button:not(:last-child) {
  margin-right: 0.75em;
} */

button#prodBtn, button#lngBtn {
  background: #edf86f;
  color: #0a0a0a !important;
  font-family: "AkkuratLL-Bold";
  padding: 0.75em;
  border: none;
  cursor: pointer;
}

button#prodBtn:hover, button#lngBtn:hover {
  background: #a4ac4a;
  padding: 0.75em;
  text-decoration: underline;

}

.highlighted  { 
   text-decoration: underline;
}

#mainGraph {
  margin-top: 2em;
}

#right {
 flex: 2;
  overflow: hidden; /* This prevents scrollbars */
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 90dvh; /* Use viewport height to fill the screen */
  align-items: center; /* Center the SVG horizontally */
  justify-content: flex-start; /* Center the SVG vertically */
  margin-top: 2em;
  position: relative;
}

#overlaySVG {
  position: absolute; 
  top: 0; 
  left: 0; 
}


footer {
  background-color: #0a0a0a;
  padding: 1rem;
  text-align: left;
}

#uk, #nl, #dk, #no, #ro, #bg, #cy, #lngImports {
  cursor: pointer;
  
}

#uk:hover, #nl:hover, #dk:hover, #no:hover, #ro:hover, #bg:hover, #cy:hover, #lngimports:hover {
   text-decoration: underline;
}


#uk:hover rect, #nl:hover rect, #dk:hover rect, #no:hover rect, #ro:hover rect, #bg:hover rect, #cy:hover rect, #lngimports:hover polygon {
  opacity: 0.70;
}

#lngImports:hover {
   text-decoration: underline;
}
#lngImports:hover polygon {
    opacity: 0.70;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #0a0a0a;
  color: #ffffff;
  padding-left:2%;
  padding-right: 5%;
  width: 100%;
  max-width: 39%;
  height: 100vh;
  position: absolute;
  overflow-y: auto; /* Enable vertical scrolling */
  top: 0%;
  left: 5%;
  transform: translateX(-10%);
  animation: slideIn 0.5s ease forwards;
}

/* Slide-in animation */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(-10%);
  }
}

#closeBtn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  color:#edf86f;
}

@media (max-width: 768px) {
 body h1 {
  font-size: 18px;
 }

  #container {
    flex-direction: column;
  }

  #container h2 {
    font-size: 18px;
    line-height: normal;
  }

  #container p {
    font-size: 14px;
    line-height: normal;
  }

  #left, #right {
    flex: 1 1 100%;
    margin-top: 0;
    width: 100%;
  }

  .modal-content {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    left: 0;
    top: 0;
    transform: none;
    animation: none;
    padding: 1em;
    box-sizing: border-box;
  }

  .mainGraph {
    margin-top: 1em;
    padding: 0.5em;
  }

/* #clickHelper {
  display: inline;
} */

}



::-webkit-scrollbar {
  width: 20px;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #edf86f;
  border-radius: 5px;
  border: 6px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #333333;
}