@custom-media --motionOK (prefers-reduced-motion: no-preference);


.github-corner {
  fill: hotpink;
  color: Canvas;

  &:hover .octo-arm {
    animation: octocat-wave 560ms ease-in-out
  }

  @nest [data-theme="dark"] & {
    fill: indigo;
  }
}

@keyframes octocat-wave{
  0%,100% {
    transform: rotate(0)
  }
  20%,60% {
    transform: rotate(-25deg)
  }
  40%,80% {
    transform: rotate(10deg)
  }
}

body {
  background-color: #fff;
  margin: 0;
  text-align: left;
  transition: 0.5s;
  padding-top: 120px;
}

.simple-spa {
  font-family: sans-serif;
  font-weight: bold;
}

.laatikko {
  background-color: #ffd700;
  height: 3.5em;
  width: 100%;
  margin: 20px;
  text-align: center;
  padding: 0;
}

.nav {
  padding: 20px;
}

a {
  font-family: sans-serif;
  padding: 1em;
  text-decoration: none;
  color: white;
  font-weight: bold;
  text-align: center;
}

.app-container {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  min-height: 90vh;
  width: 100%;
}

#app {
  width: 100%;
}

.home-cards {
  padding-left: 20px;
  padding-right: 20px;
}

.app-container h2 li {
  padding: 0;
  margin: 0;
  margin-bottom: 10px;
}

.kuva-container {
  margin-top: 50px;
  text-align: center;
}

.links line {
  stroke: #000;
  stroke-width: 2px;
}

.nodes circle {
  stroke: #fff;
  stroke-width: 1.5px;
}

#tooltip {
  position: absolute;
  width: 230px;
  height: auto;
  padding: 10px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 4px 4px 10px rgb(0 0 0 / 40%);
  pointer-events: none;
}

#tooltip.hidden {
  display: none;
}

#tooltip p {
  margin: 0;
  font-family: sans-serif;
  font-size: 16px;
  line-height: 20px;
}

.link {
  fill: none;
  stroke: #ccc;
  stroke-width: 1.5px;
}

.chart-block {
    display: flex;
    width: 100%;
}

.tabs-wrapper {
  width: 500px;
  position: fixed;
  right: 100px;
}

#chart {
  width: 100%;
  height: 100vh;
}

#chart svg {
  width: 100%;
  height: 100%;
}

.dropdown-nav {
  padding-top: 0.6rem;
}

.dropdown button {
  background-color: transparent;
  border:1px solid #253849;
  width: max-content;
  height: 40px;
  border-radius: 5px;
  color: white;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  justify-content: space-evenly;
  margin-left: 10px;
}

.dropdown button img {
  margin: 0 5px 0 0;
}

.dropdown button img,
.dropdown-content li img {
  width: 28px;
}

.dropdown button,
.dropdown-content li {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 500;
}

.dropdown-content li a {
  padding: 0;
  background-color: transparent;
  color: #000;
  font-weight: normal;
}

.arrow-down {
  width: 0;
  height: 0;
  display: inline-block;
  vertical-align: middle;
  border-style: solid;
  border-width: 4px 4px 0;
  border-color: #fff transparent transparent;
  margin: 0 0 0 5px;
}

.dropdown button:hover {
  cursor: pointer;
  background-color: #3c5b77;
}

/* Style for the dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  margin: 1px 0 0;
  padding: 0;
  background-color: #f5f5f5;
  min-width: 160px;
  box-shadow: 0 8px 16px 0 rgb(0 0 0 / 20%);
  z-index: 1;
  border-radius: 5px;
  overflow-y: scroll;
  max-height: 315px;
}

/* Style for the dropdown content items */
.dropdown-content li {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  justify-content: end;
}

.dropdown-content li img {
  margin: 0 20px;
}

/* Style for the dropdown content items on hover */
.dropdown-content li:hover {
  background-color: #f1f1f1;
  cursor: pointer;
  color: blue;
  border-radius: 5px;
}

/* Show the dropdown content when the dropdown button is clicked */
.dropdown:focus-within .dropdown-content {
  display: block;
}

/* Animate the dropdown content */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-content {
  animation: slideIn 0.3s ease-out;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 8px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: #c2c9d2;
}

/**
 * Tabs Container
 */
 .tabs-container {
	padding: 2rem;
}

/**
 * Tabs Block
 */
.tabs-block {
	display: flex;
	align-items: center;
	justify-content: center;
}

/**
 * Tabs
 */
.tabs {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
}

.tabs > label {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 2rem;
	margin-right: 0.0625rem;
	cursor: pointer;
	background-color: #000;
	color: #fff;
	font-family: Roboto, sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	transition: background-color ease 0.3s;
}

.tabs label .material-icons {
	margin-right: 0.3rem;
}

.tabs .tab {
	flex-grow: 1;
	width: 100%;
	height: 100%;
	display: none;
	padding: 1rem 2rem;
	color: #000;
	background-color: #fff;
	box-shadow: 0 10px 10px rgb(0 0 0 / 40%);
}

.tabs .tab > *:not(:last-child) {
	margin-bottom: 0.8rem;
}

.tabs [type="radio"] {
	display: none;
}

.tabs [type="radio"]:checked + label {
	background-color: #fff;
	color: #0067b8;
	border-top: 4px solid #0067b8;
	box-shadow: 0 10px 10px rgb(0 0 0 / 40%);
}

.tabs [type="radio"]:checked + label + .tab {
	display: block;
}

.theme-switcher {
  padding: 1.2rem 20px;
}
#language-switcher {
  margin: 0.6rem 20px;
}

.theme-switcher label{
  position: relative;
  width: 50px;
  height: 20px;
  display: block;
  background: #d9d9d9;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: inset 0px 5px 15px rgba(0,0,0,0.3), inset 0px -5px 15px rgba(255,255,255,0.3);
}
.theme-switcher label:after{
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  background: #f2f2f2;
  border-radius: 100px;
  top: 2px;
  left: 2px;
  transition: 0.5s;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}
.theme-switcher input:checked ~ label:after{
  left: 45px;
  transform: translateX(-100%);
  background: linear-gradient(180deg,#777,#3a3a3a);
}
.theme-switcher input:checked ~ label{
  background: #242424;
}
.theme-switcher input{
  display: none;
}

.navbar-brand img {
  width: 100%;
  max-width: 350px;
  max-height: 90px;
}

.main-menu.navbar-nav > .nav-item > a {
  text-transform: uppercase;
  font-weight: 900 !important;
  color: #000;
}

.main-menu.navbar-nav > .nav-item.active > a {
  color: #00decf !important;
}

article {
  --img-scale: 1.001;
  --title-color: black;
  --link-icon-translate: -20px;
  --link-icon-opacity: 0;
  position: relative;
  border-radius: 16px;
  box-shadow: none;
  background: #fff;
  transform-origin: center;
  transition: all 0.4s ease-in-out;
  overflow: hidden;
}

article a::after {
  position: absolute;
  inset-block: 0;
  inset-inline: 0;
  cursor: pointer;
  content: "";
}

/* basic article elements styling */
article h2 {
  margin: 0 0 18px 0;
  font-family: "Bebas Neue", cursive;
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  color: var(--title-color);
  transition: color 0.3s ease-out;
}

figure {
  margin: 0;
  padding: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

article img {
  max-width: 100%;
  transform-origin: center;
  transform: scale(var(--img-scale));
  transition: transform 0.4s ease-in-out;
}

.article-body {
  padding: 24px;
}

article a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #28666e;
}

article a:focus {
  outline: 1px dotted #28666e;
}

article a .icon {
  min-width: 24px;
  width: 24px;
  height: 24px;
  margin-left: 5px;
  transform: translateX(var(--link-icon-translate));
  opacity: var(--link-icon-opacity);
  transition: all 0.3s;
}

/* using the has() relational pseudo selector to update our custom properties */
article:has(:hover, :focus) {
  --img-scale: 1.1;
  --title-color: #28666e;
  --link-icon-translate: 0;
  --link-icon-opacity: 1;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px,
    rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}

.menu-wrap {
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1001;
  width: 300px;
  height: 100%;
  padding: 40px;
  background-color: #222;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  transition: all 0.5s cubic-bezier(0.7,0,0.3,1);
  transform: translate3d(360px,0,0);
}
.menu-wrap.active {
  transform: translate3d(0px,0,0);
}

.menu-wrap .menu .icon-list a {
  position: relative;
  display: block;
  text-align: left;
  padding: 20px;
  text-decoration: none;
  color: #eee;
  font-size: 20px;
  transition: all 0.3s ease;
}
.menu-wrap .menu .icon-list a::before {
  position: absolute;
  content: "";
  width: 0%;
  height: 2px;
  top: 80%;
  transition: all 0.3s ease;
}
.menu-wrap .menu .icon-list a:hover {
  color: #FF3333;
}
.menu-wrap .menu .icon-list a:hover::before {
  width: 50%;
  background-color: #FF3333;
}
.menu-wrap .menu .icon-list a.active::before {
  width: 50%;
  background-color: #FF3333;
}
/* Buttons */
.menu-button {
  position: fixed;
  top: 50px;
  width: 50px;
  height: 50px;
  background-color: #fff;
  font-size: 20px;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
.close-button {
  position: fixed;
  top: 50px;
  width: 50px;
  height: 50px;
  background-color: #fff;
  font-size: 20px;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
.menu-button {
  right: 0px;
  z-index: 102;
}
.close-button {
  left: -50px;
  z-index: 100;
}

.menu-toggle {
  cursor: pointer;
  width: 40px; /* You can adjust the width */
  height: 30px; /* You can adjust the height */
  z-index: 1003;
  position: absolute;
  right: 20px;
  top: 48px;
}


.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px; /* Gap between lines */
}
.hamburger span {
  display: block;
  width: 100%;
  height: 4px; /* Thickness of the hamburger lines */
  background-color: #FF3333; /* Color of the hamburger lines */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active .hamburger span {
  background-color: #FF3333;
}
.menu-toggle.active .hamburger span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

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

.menu-toggle.active .hamburger span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}


body.dark {
  background: #242424 !important;
  color: #fff;
}

body.light .accordion-button {
  color: #000;
}
body.light .accordion-button:not(.collapsed) {
  color: #000;
}

@media (prefers-color-scheme: dark) {
  body.dark {
    background: #242424 !important;
    color: #fff;
  }

  body.dark .main-menu.navbar-nav > .nav-item > a {
    color: #fff;
  }
}

#ftco-nav {
  padding-right: 80px;
  justify-content: flex-end;
}


#notfound {
  position: relative;
  height: 100vh;
  width: 100%;
}

#notfound .notfound {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

.notfound {
  max-width: 520px;
  width: 100%;
  line-height: 1.4;
  text-align: center;
}

.notfound .notfound-404 {
  position: relative;
  height: 240px;
}

.notfound .notfound-404 h1 {
  font-family: 'Montserrat', sans-serif;
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  font-size: 252px;
  font-weight: 900;
  margin: 0px;
  color: #262626;
  text-transform: uppercase;
  letter-spacing: -40px;
  margin-left: -20px;
}

.notfound .notfound-404 h1>span {
  text-shadow: -8px 0px 0px #fff;
}

.notfound .notfound-404 h3 {
  font-family: 'Cabin', sans-serif;
  position: relative;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #262626;
  margin: 0px;
  letter-spacing: 3px;
  padding-left: 6px;
}

.notfound h2 {
  font-family: 'Cabin', sans-serif;
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
  color: #000;
  margin-top: 0px;
  margin-bottom: 25px;
}

@media all and (max-width: 767px) {
  .notfound .notfound-404 {
  height: 200px;
  }
  .notfound .notfound-404 h1 {
  font-size: 200px;
  }
}

@media all and (max-width: 480px) {
  .notfound .notfound-404 {
  height: 162px;
  }
  .notfound .notfound-404 h1 {
  font-size: 162px;
  height: 150px;
  line-height: 162px;
  }
  .notfound h2 {
  font-size: 16px;
  }
}

#ftco-navbar {
  position: fixed;
  top: 0;
  width: 100%;
  transition: top 0.3s;
  z-index: 1000;
  min-height: 116px;
}

.breadcrum-list {
  width: 780px;
  margin: 20px auto;
}

.breadcrum-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrum-list ul li {
  display: inline;
  padding-left: 0;
}

.breadcrum-list ul li:not(:last-child)::after {
  content: "›";
  margin: 0 5px;
  font-size: 12px;
}

.breadcrum-list ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 12px;
}
.breadcrum-list ul li:first-child a {
  padding-left: 0;
}

.breadcrum-list ul li a:hover {
  text-decoration: underline;
}


.light .breadcrum-list ul li a {
  color: #333;
}
.accordion-body {
  padding: 0;
  margin-top: 15px;
}
.accordion-item {
  background-color: transparent;
}
.accordion-button {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #ccc;
  box-shadow: none;
  color: #fff;
  font-size: 18px;
  text-transform: uppercase;
  border-radius: 0 !important;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background-color: transparent;
  box-shadow: none;
}

.accordion-button::after {
  filter: invert(50%); 
}

.accordion-item {
  background-color: transparent;
  border: none; 
}

.accordion-item:not(:last-of-type) .accordion-button {
  border-bottom: 1px solid #ccc;
}
.accordion-button:not(.collapsed) {
  color: #fff;
}

.banner {
  width: 100%;
  position: relative;
  height: 100vh;
  z-index: 9;
  overflow: hidden;
  margin-top: -120px;
  margin-bottom: 20px;
}
.banner::after {
  --tw-content: "";
  content: var(--tw-content);
  width: 100%;
  height: 100vh;
  z-index: 10;
  left: 0;
  top: 0;
  position: absolute;
  background: linear-gradient(0deg, transparent, rgba(0, 0, 0, .741));
}

  .banner .banner-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .banner .banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

.banner .banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 11;
}

.banner .banner-content h2 {
  font-size: 44px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
}

.banner .banner-content h3 {
  font-size: 20px;
  font-weight: 400;
  color: #fff;
}

@media all and (width >= 768px) {
	body {
		font-size: 1.125rem;
	}

	.tabs-container {
		padding: 4rem;
	}

	.tabs label {
		order: 1;
		width: 49%;
	}

	.tabs .tab {
		order: 9;
    overflow-y: auto;
    max-height: 500px;
	}

	.tabs [type="radio"]:checked + label {
		border-bottom: none;
	}
}

@media all and (width >= 992px) {
	.tabs {
		width: 800px;
	}
}

@media all and (width <= 780px) {
  #app {
    flex-direction: column;
  }

  #chart {
    width: 100%;
    height: auto !important;
  }

  #chart svg {
    width: 320px;
  }

  .chart-block, .tabs-wrapper {
    width: 100%;
  }

  .tabs > label {
    width: 49%;
    font-size: 0.8rem;
  }
}

@media all and ( width <= 780px ) {

  .breadcrum-list {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
  .navbar-brand {
    margin-right: 0 !important;
  }

  .navbar-brand img {
    width: auto;
    height: 40px;
  }

  .tabs-wrapper {
    position: relative;
    right: auto;
  }

  .chart-block{
    height: 100vh;
    border: 1px solid #ccc;
  }
  .menu-toggle {
    cursor: pointer;
    width: 30px;
    height: 20px;
    z-index: 1003;
    position: absolute;
    right: 16px;
    top: 50px;
  }
  .banner {
    width: 100%;
    position: relative;
    height: 100vh;
    z-index: 9;
    overflow: hidden;
  }
  .banner::after {
    --tw-content: "";
    content: var(--tw-content);
    width: 100%;
    height: 70vh;
    z-index: 10;
    left: 0;
    top: 0;
    position: absolute;
    background: linear-gradient(0deg, transparent, rgba(0, 0, 0, .741));
  }

  .banner .banner-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .banner .banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .banner .banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 11;
    width: 70%;
  }

  .banner .banner-content h2 {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
  }

  .banner .banner-content h3 {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
  }
  .accordion {
    padding-left: 20px;
    padding-right: 20px;
  }
}
