body {
  font-family: 'Minecraftia', sans-serif;
  text-align: center;
  background-color: #1e1e2e; 
  color: #f5f5ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Minecraftia';
  src: url('assets/Minecraftia-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

h1 {
  font-size: 2.5rem;
  color: #50fa7b; /* Yeşil tonu */
  text-shadow: 3px 3px 0px #ff79c6; 
  margin-bottom: 20px;
}

.main-container {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Elemanları yukarıdan hizala */
  flex-wrap: wrap;/* Küçük ekranlarda alt satıra geç */
  gap: 30px;
}

.video-container, .game-container {
  border: 5px solid #44475a; /* Çerçeve */
  border-radius: 10px;
  overflow: hidden; /* Köşelerden taşmayı engelle */
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.game-container {
  line-height: 0; 
}

.video-container {
  width: 480px;
  height: 360px;
}

#board {
  background-image: url("./assets/flappybirdbg.png");
}

#webcam {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Videoyu alana sığdır */
  transform: scaleX(-1); 
}

.info-card {
  width: 300px; /* 300 den 275'e çektim */
  padding: 20px;
  background-color: #282a36; /* Kart arka planı */
  border: 5px solid #44475a;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.info-card h2 {
  color: #ff79c6; 
  font-size: 1.2rem;
  margin-top: 0;
}

.info-card p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #bd93f9; 
}

p#kolsecim {
  font-size: 14px;
}

.info-card hr {
  border: 1px solid #44475a;
}

/* From Uiverse.io by andrew-demchenk0 */ 
.switch {
  --input-focus: #2d8cf0;
  --bg-color: #fff;
  --bg-color-alt: #666;
  --main-color: #323232;
  --input-out-of-focus: #ccc;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  width: 150px;
  height: 36px;
  transform: translateX(calc(50% - 10px));
}

.toggle {
  opacity: 0;
}

.slider {
  box-sizing: border-box;
  border-radius: 100px;
  border: 2px solid var(--main-color);
  box-shadow: 4px 4px var(--main-color);
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--input-out-of-focus);
  transition: 0.3s;
}

.slider:before {
  content: "sol";
  box-sizing: border-box;
  height: 30px;
  width: 30px;
  position: absolute;
  left: 2px;
  bottom: 1px;
  border: 2px solid var(--main-color);
  border-radius: 100px;
  background-color: var(--bg-color);
  color: var(--main-color);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  line-height: 31px;
  transition: 0.3s;
}

.toggle:checked + .slider {
  background-color: var(--input-focus);
  transform: translateX(-19px);
}

.toggle:checked + .slider:before {
  content: "sağ";
  transform: translateX(19px);
}

.kolsecim {
  display: flex;
  justify-content: space-around;
  gap: 30px;
}


