* {
    -webkit-tap-highlight-color: transparent;
    font-size: 18px;
  }  

a:focus,
a:active {
  color: inherit;
  outline: none;
}

body {
    font-family: sans-serif;
  }
  
.navbar {
  display: flex;
  align-items: center;         /* ✅ Vertically center children */
  justify-content: space-between; /* Optional: spread items horizontally */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(360deg, lightblue, yellow);
  border-bottom: solid gray 1px;
  padding: 0 16px; /* Optional padding for spacing */
  z-index: 10;
}
  
  @media (max-width: 500px) {
    .navbar {
      height: 50px;
    }
  }
  
  .navbar-items {
    position: absolute;
    right: 20px;
    font-size: 18px;
    display: flex;
    gap: 1.5em;
    top: 10px;
  }
  
  @media (max-width: 500px) {
      .navbar-items {
      position: absolute;
      display: flex;
      top: -3px;
    }
  }
  
  .navbar-items a {
    color: green;
    text-decoration: none;
  }
  
  .navbar-items a:hover {
    color: blue;
  }
  
   ul li {
    list-style: none;
    display: inline;
  }
  
.navbar-content {
  display: flex;
  align-items: center;         /* ✅ Vertically center both button and nav links */
  justify-content: space-between;
  width: 100%;
}

  .welcome-section {
    margin-top: 20vh;
    height: 100vh;
    text-align: center;
  }
  
  h1, h2 {
    text-align: center;
    font-size: 1.5em;
  }
  
  .welcome-section p {
    font-weight: bold;
    text-align: center;
  }
  
  .welcome-section img {
    height: auto;
    width: 50vh;
    display: flex;
    padding-top: 10px;
    align-items: center;
    border-radius: 80%;
  
    margin: 0 auto;
  }
  
  #welcome-section {
    scroll-margin-top: 100px;
  }
  
  p.info-text {
    color: green;
    padding: 1em;
    padding-left: 4em;
    padding-right: 4em;
  }
  
  .projects h2{
    padding-top: 100px;
  }
  
  .project-tile {
    align-items: center;
    width: 40vh;
    padding: 10vh;
  
  }
  
  .project-tile img {
    border: 2px solid gray;
    border-radius: 10px;
    padding: 8px;
    background-color: white; /* optional */
    box-shadow: 6px 6px 8px rgb(0 0 0 / 71%);
  }

  .project-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    
    align-items: flex-start;
  
    justify-content: center;
    
  }
  
  .project-label {
    font-weight: bold;
  }
  
  .projects-comment {
    font-size: 28px;
    text-align: center;
  }
  
  .contact-section {
    padding-bottom: 40px;
    text-align: center;
  }
  
  .contacts {
    
    font-size: 18px;
    display: flex;
    gap: 1.5em;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
  }
    
  .icon.github {
    height: auto;
    width: 20px;
  }
  
  .icon.buymeacoffee {
    height: auto;
    width: 36px;
    transform: translate(12px, 5px)
  }
  
  .icon.youtube {
    height: auto;
    width: 26px;
    transform: translate(0px, 6px);
  }

  .project-list a {
    color: green;
    text-decoration: none;
  }
  
  .project-list a:hover {
    color: blue;
  }
  
  .contacts a {
    color: green;
    text-decoration: none;
  }
  
  .contacts a:hover {
    color: blue;
  }
  
  comment {
    font-style: italic;
  }

  .lang-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.panel {
position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    padding: 20px;
    z-index: 9;
    overflow-y: auto;
    padding-top: 64px;
}

.language-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.lang-btn {
  padding: 12px 16px;
  font-size: 1em;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.lang-btn:hover {
  background: #eee;
}

.lang-btn.selected {
  background: #ccc;
}

.hidden {
  display: none !important;
}

#languageButton {
  display: flex;
  align-items: center;     /* ✅ Vertically center icon */
  justify-content: center; /* ✅ Horizontally center icon */
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1001;
}

#languageButton img {
  display: block;
  width: 100%;          /* force fill */
  height: 100%;         /* force fill */
  object-fit: contain;
}

.worksheet-tile img {
  background-color: lightgray;
}

.info-section {
  padding-top: 80px;
}