@font-face {
  font-family: myFont_1;
  src: url(cmu.serif-roman.ttf);
  font-weight: lighter;
  font-style: normal;
}

@font-face {
  font-family: myFont_2;
  src: url(cmu.serif-roman.ttf);
  font-weight: lighter;
  font-style: normal;
}

@font-face {
  font-family: myFont_3;
  src: url(cmu.serif-roman.ttf);
  font-weight: lighter;
  font-style: normal;
}

:root {
  font-size: 16px;
  /* font-family: myFont_2; */
  --primary-color: rgb(255, 255, 255);
  --secondary-color: rgb(0, 0, 0);
  --text-primary: rgb(0, 0, 0);
  --text-secondary: rgb(255, 255, 255);
  --bg-primary: #070f1d;
  --bg-secondary: white;
  --nav-bg-primary: rgb(0, 0, 0);
  --nav-bg-secondary: rgb(10, 74, 170) ;
  --transition-speed: 300ms;
  --fade-in-speed: 500ms;
}

body {
  color: var(--text-color);
  background-color: var(--bg);
  margin:0;
  padding: 0;
  transition: background 500ms ease-in-out, color 1000ms ease-in-out;
  overflow-x: hidden;
}

.image-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  height: auto;
}


.image-container img {
  margin: 10px; /* Add spacing between images */
  max-width: 100%; /* Ensure images don't exceed their original size */
  max-height: 300px; /* Set the maximum height for the images */
  height: auto; /* Maintain aspect ratio of images */
}

.image-container canvas {
  margin: 10px; /* Add spacing between images */
  max-width: 100%; /* Ensure images don't exceed their original size */
  max-height: 500px; /* Set the maximum height for the images */
  height: auto; /* Maintain aspect ratio of images */
}

h1 {
  color: var(--text-color);
  font-family: myFont_2;
}

h2 {
  color: var(--text-color);
  font-family: myFont_2;
}

p {
  font-size: 1.121rem;
  color: var(--text-color);
  font-family: myFont_2;
}

main {
  margin-left: 5rem;
  padding: 1rem;
}



body::-webkit-scrollbar {
  width:0.65rem;
}

body::-webkit-scrollbar-track {
  background:#070f1d;
}

body::-webkit-scrollbar-thumb {
  background: var(--nav-bg-secondary);
}

.navbar{
  position: fixed;
  background: var(--nav-bg-secondary);
  transition: width 0.25s ease-in-out;
  width: 6rem;
  height: 100%;
}

.navbar-nav {
  list-style:none;
  padding:0;
  margin:0;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* height: 100%; */
}

.nav-item {
  width: 100%;
}


.nav-item:last-child{
  margin-top: auto;
}

.nav-link {
  display:flex;
  align-items: center;
  height: 5rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-speed);
}

.nav-link:hover{
  background: var(--nav-bg-primary);
  color:white;
}



.link-text{
  display: none;
  margin-left: 1rem;
} 


.nav-link svg{
  min-width: 2rem;
  margin: 0 1.5rem;
  width: 2rem;
}

.nav-logo{
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text-primary);
  background-color: var(--nav-bg-primary);
  font-size: 1.5rem;
  letter-spacing: 0.3ch;
  width: 100%;
}

.navbar.open {
  width:16rem;
}

.navbar.open .link-text {
  display:block;
  opacity: 0;
  animation-name: fade-in;
  animation-duration: var(--fade-in-speed);
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

.nav-logo .link-text{
  color: white;
}

.nav-logo .svg-icon{
  color: white;
}

.svg-icon{
  pointer-events: none;
}

.submenu {
  display: none;
  width: 6rem;
  margin-top: 1rem;
  margin-left: 2rem;
  list-style: none;
}

.submenu:last-child {
  margin-bottom: 1rem;
}

.linkide-sisu {
  margin: 10px;
}

.linkide-sisu .alapeatykk{
  color: black;
}

.linkide-sisu:hover a:hover {
  color: white;
}


.navbar.open .nav-item.active .submenu {
  display: block;
  transition: opacity 300ms;
}

.light{
  --bg: var(--primary-color);
  --text-color: var(--text-primary);
}

.dark{
  --bg: var(--secondary-color);
  --text-color: var(--text-secondary);
}

.sisu-konteiner {
  margin-left:20%;
  margin-right:20%;
  margin-top: 5rem;
}

.moon-icon{
  width: 40%;
  height: 40%;
  margin-bottom: 1rem;
  margin-left: 0.5rem;
  justify-content: center;
}


.nightmode_button {
  width: 50px;
  position: fixed;
  top: 1rem;
  right:1rem;
}
.nightmode_button label{
  display: block;
  width: 40px;
  height: 20px;
  border-radius: 20px;
  background-color: #bbb;
  position: relative;
  cursor: pointer;
}

.nightmode_button label:before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: all 0.3s ease;
}

.nightmode_button input[type="checkbox"] {
  display: none;
}

.nightmode_button input[type="checkbox"]:checked + label {
  background-color: var(--nav-bg-secondary);
}

.nightmode_button input[type="checkbox"]:checked + label:before {
  transform: translateX(20px);
}

.nightmode_button input[type="checkbox"]:not(:checked) + label:before {
  transform: translateX(0px);
}

canvas {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: -1;
}

.sketch-container {
  position: relative;
  width: 100%;
  height: 0;
  margin-top:5rem;
  margin-left: 20%;
}
.sketch-container canvas{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


    /* unvisited link */
    a:link {
      color: var(--text-color);
      font-size: 1rem;
      font-family: myFont_2;
      text-decoration: none;
    }

    a:visited {
      color: var(--text-color); /* Set the same color as unvisited links */
    }

    /* Style for link when hovered */
    a:hover {
      color: blue; /* Change this to your desired hover color */
    }

    /* Style for selected link */
    a:active {
      color: var(--text-color);
    }

    .alapeatykk {
      opacity: 0;
      animation-name: fade-in;
      animation-duration: var(--fade-in-speed);
      animation-timing-function: ease-in-out;
      animation-fill-mode: forwards;
      text-decoration: none;
    }

    @keyframes fade-in {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }



    .resizable-input {
      resize: vertical; /* Enable vertical resizing */
      overflow: auto; /* Add scrollbar when content exceeds the input field */
      border: 1px solid #ccc;
      width: 100%;
      min-height: 250px; /* Set a minimum height */
      padding: 5px;
      background-color: var(--bg);
      color: var(--text-color);
  }






.dropdown_title {
    text-align: center; /* Center the title */
    margin-top: 25px; /* Adjust the spacing below the title */
    font-size: 16px; /* Adjust font size as needed */
    /* Additional styling for the title */
}

.dropdown-container {
  display: flex;
  flex-direction: row;
  /* Add other styles for desktop layout */
}

@media (max-width: 768px) {
  .dropdown-container {
      flex-direction: column;
      /* Add other styles for mobile layout */
  }
  .dropdown_title{
    font-size: 24px;
  }
  /* Add styles for each dropdown in mobile view */
}

  .dropdown {
    max-width: 200px; 
    position: relative;
    margin: 2em 1em;
    min-width: 20em; /* Adjust the width as needed */
  }
  
  .dropdown * {
    box-sizing: border-box;
  }

  .select {
    background: #2a2f3b;
    color: #fff;
    display:flex;
    justify-content: space-between;
    align-items: center;
    border: 2px #2a2f3b solid;
    border-radius: 0.5em;
    padding: 1em;
    cursor: pointer;
    transition: background 0.3s;
  }

  .select-clicked{
    border: 2px #26489a solid;
    box-shadow: 0 0 0.8em #26489a;
  }

  .select:hover {
    background: #323741;
  }

  .caret {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #fff;
    transition: 0.3s;
  }

  .caret-rotate {
    transform: rotate(180deg);
  }

  .menu {
    list-style: none;
    padding: 0.2em 0.5em;
    background: #323741;
    border: 1px #363a43 solid;
    box-shadow: 0 0.5em 1em rgba(0, 0, 0, 0.2);
    border-radius: 0.5em;
    color: #9fa5b5;
    position: absolute;
    top: 3em;
    left: 50%;
    width: 100%;
    max-height: 200px; /* Set a maximum height for the menu */
    overflow-y: auto; /* Enable vertical scrolling */
    transform: translateX(-50%);
    opacity: 0;
    display: none;
    transition: 0.2s;
    z-index: 1;
}

  .menu li {
    padding: 0.7em 0.5em;
    margin: 0.3em 0;
    border-radius:0.5em;
    cursor: pointer;
  }

  .menu li:hover{
    background: #2a2d35;
  }

  .activeChoice{
    background: #23242a;
  }

  .menu-open {
    display: block;
    opacity: 1;
  }

