@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* garantili tam ekran */
}

header {
  display: flex;
  align-items: center;
  position: fixed;
  top: 0px;
  z-index: 999;
  font-family: "Noto Serif", serif;
  color: #2e2f33;
  width: 100vw;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background-color:rgba(255, 255, 255, 0.90);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

#logo {
  text-align: center;
  margin-right: auto;
  margin-left: 20px;
}

#logo a {
  text-decoration: none;
  color: #2e2f33;
}

#logo .ustlogo{
  text-decoration: none;
  font-family: "Noto Serif", serif;
  font-size: 34px;
  font-weight: 400;
  font-style: normal;
}

#menu {
  position: absolute;
  right: 150px;
  display: flex;
}

#menu a {
    text-decoration: none;
    color: #2e2f33;
    font-size: 18px;
    padding: 20px;
}

#menu a:hover {
  color: teal;
}

#burger {
  display: none;
}

#lang {
  margin-left: auto;
  margin: 20px;
  padding: 0px 20px;
}

#lang button {
  border: 0px;
  border-radius: 5px;
  color:black;
}

#lang button:hover {
  background-color: teal;
  color: white;
}

#lang button.active {
    background-color: #2e2f33;
    color: white;  /* aktif renk kontrastı */
}

main {
  flex: 1;
}

footer {
  padding: 10px;
  margin: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  background-color: #2e2f33;
  color: white;
  font-family: "Noto Serif", serif;
  font-size: 14px;
}

@media (max-width: 992px) {
  #logo .ustlogo{
    text-decoration: none;
    font-family: "Noto Serif", serif;
    font-size: 28px;
    font-weight: 400;
    font-style: normal;
  }
  header {
    background-color: rgba(255, 255, 255, 0.9);
  }
  #menu {
    display: none;
  }

  #burger:checked ~ #menu {
    background-color:white;
    position: absolute;
    height: 100vh;
    top: 0px;
    right: 0px;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0.95;
    z-index: -1;
  }

  /*Hamburger Menü*/
  .burger {
    position: relative;
    width: 30px;
    height: 25px;
    background: transparent;
    cursor: pointer;
    display: block;
  }

  .burger input {
    display: none;
  }

  .burger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 25px;
    background: black;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
  }

  .burger span:nth-of-type(1) {
    top: 2px;
    transform-origin: left center;
  }

  .burger span:nth-of-type(2) {
    top: 12px;
    transform: translateY(-50%);
    transform-origin: left center;
  }

  .burger span:nth-of-type(3) {
    top: 22px;
    transform-origin: left center;
    transform: translateY(-100%);
  }

 /* 1. çizgi */
  #burger:checked + .burger span:nth-child(1) {
  transform: rotate(45deg) translate(6px, -6px);
  }

  /* 2. çizgi */
  #burger:checked + .burger span:nth-child(2) {
  opacity: 0;
  }

  /* 3. çizgi */
  #burger:checked + .burger span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, 5px);
  }
  /*Hamburger Menü Bitişi*/
  #logo img {
    height: 35px;   /* istediğin yükseklik */
    width: auto;
    margin: 20px;
  }

  #lang {
    margin: 0px;
    font-size: 16px;
  }
}

