@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');

* {
  font-family: "Nunito", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: none;
  outline: none;
  text-decoration: none;
  transition: .2s linear;
}

html,
body {
  height: 100%;
  cursor: none;
}

.header,
.footer {
  position: fixed;
  left: 0;
  right: 0;
  height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #fff;
  z-index: 1000;
}

.header {
  top: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header .logo {
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  text-align: center;
  text-shadow: 2px 2px 4px #000000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header .logo span {
  color: orangered;
  font-size: 1.5rem;
  vertical-align: middle;
  margin-left: .5rem;
  text-align: center;
}

.footer {
  bottom: 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

.footer a img {
  width: 4rem;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}


.card {
  background: #fff;
  border-radius: 0.625rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  width: 1500px;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-header {
  position: relative;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#image {
  width: 100%;
  object-fit: cover;
  display: block;
}


.card-content {
  padding: 20px;
}



.part2 {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  border: .5px solid gainsboro;
  border-radius: 5px;
  justify-content: flex-start;
  align-items: flex-start;
  display: block;
  flex-wrap: wrap;
  text-align: left;
  font-size: 2rem;
  line-height: 2.5rem;
  gap: 0.4rem;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  letter-spacing: 5px;
  user-select: none;
}

/* Normal harfler */
.part2 span {
  font-weight: normal;
  color: #333;
  transition: transform 0.2s ease, color 0.2s ease;
  cursor: none;
  display: inline;
}

/* Hedef O harfleri */
.part2 .targetO {
  color: #333;
  /* text-shadow: 0 0 8px rgba(255,0,0,0.7); */
  cursor: none;
  /* font-weight: bold; */
  /* transition: transform 0.2s ease, color 0.2s ease; */
  cursor: none;
  transition: transform 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;

}




.part2 .targetO.active {
  transform: scale(1.3);
  color: red;
  text-shadow: 0 0 16px rgba(255, 0, 0, 0.9);
  animation: pulseGlow 1.5s infinite alternate;

}

@keyframes pulseGlow {
  from {
    text-shadow: 0 0 6px rgba(255, 0, 0, 0.6);
  }

  to {
    text-shadow: 0 0 16px rgba(255, 0, 0, 1);
  }
}




.scope {
  position: absolute;
  width: 35px;
  top: 50%;
  left: 50%;
  /* transform: translate(-50%, -50%); */
  pointer-events: none;
}













.part4 {
  width: 100%;
  padding: 1rem;
  background: #fff;
  border: .5px solid gainsboro;
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  text-align: center;
  display: flex;
}

.player {
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  gap: 15px;
}

.player1,
.player2 {
  font-size: 18px;
  font-weight: bold;
  padding: 5px 10px;
  transition: all 0.3s ease;
}

.player1 {
  background-color: rgba(255, 0, 0, 0.8);
}

.player2 {
  background-color: rgba(0, 106, 255, 0.8);
}


/* Player1 sırası için kırmızı glow */
.player1.active {
  animation: redGlow 1s infinite alternate;
}

@keyframes redGlow {
  from {
    box-shadow: 0 0 10px red;
  }

  to {
    box-shadow: 0 0 30px red;
  }
}

/* Player2 sırası için mavi glow */
.player2.active {
  animation: blueGlow 1s infinite alternate;
}

@keyframes blueGlow {
  from {
    box-shadow: 0 0 10px blue;
  }

  to {
    box-shadow: 0 0 30px blue;
  }
}


.card-footer {
  background: #fff;
  padding: .5rem;
  text-align: center;
  border-top: .5px solid #ddd;
  box-shadow: 0px -1px 10px rgba(0, 0, 0, 0.1);
}

.card-footer button {
  display: inline-block;
  margin: .5rem;
  padding: .5rem 1.2rem;
  font-size: 1.3rem;
  color: #fff;
  background: orangered;
  cursor: pointer;
}

.card-footer button:hover {
  opacity: .85;
}

.card .card-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  color: orangered;
}















/* MEDIA QUERIES  */


@media screen and (max-width: 480px) {
  .card {
    width: 100%;
    border-radius: 8px;
  }

  #image {
    height: 50px;
  }

  .card-content {
    padding: 6px;
  }

  .part2 {
    height: 300px;
    padding: 0.6rem;
    font-size: 1.6rem;
    line-height: 2rem;
    letter-spacing: 2px;
  }

  .part4 {
    height: 60px;
    padding: 0.5rem;
  }

  .player {
    gap: 4px;
    flex-direction: column;
  }

  .player1,
  .player2 {
    font-size: 0.9rem;
    padding: 3px 5px;
    width: 100%;
    text-align: center;
  }

  .card-footer button {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    margin: 0.2rem;
    width: 100%;
    display: block;
  }
}

@media screen and (min-width: 481px) and (max-width: 767px) {
  .card {
    width: 95%;
    border-radius: 10px;
  }

  #image {
    height: 50px;
  }

  .card-content {
    padding: 8px;
  }

  .part2 {
    height: 360px;
    padding: 0.8rem;
    font-size: 1.6rem;
    line-height: 2.2rem;
    letter-spacing: 2px;
  }

  .part4 {
    height: 60px;
    padding: 0.6rem;
  }

  .player {
    gap: 12px;
  }

  .player1,
  .player2 {
    font-size: 1rem;
    padding: 5px 8px;
  }

  .card-footer button {
    font-size: 1rem;
    padding: 0.4rem 1rem;
    margin: 0.3rem;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .card {
    width: 90%;
    border-radius: 12px;
  }

  #image {
    height: 70px;
  }

  .card-content {
    padding: 10px;
  }

  .part2 {
    height: 420px;
    padding: 1rem;
    font-size: 1.7rem;
    line-height: 2.4rem;
    letter-spacing: 3px;
  }

  .part4 {
    height: 60px;
    padding: 0.8rem;
  }

  .player {
    gap: 15px;
  }

  .player1,
  .player2 {
    font-size: 1rem;
    padding: 6px 8px;
  }

  .card-footer button {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    margin: 0.4rem;
  }
}

@media screen and (min-width: 1025px) and (max-width: 1440px) {
  .card {
    width: 75%;
    border-radius: 14px;
  }

  #image {
    height: 80px;
  }

  .card-content {
    padding: 15px;
  }

  .part2 {
    height: 380px;
    padding: 1rem;
    font-size: 1.8rem;
    line-height: 2.6rem;
    letter-spacing: 4px;
  }

  .part4 {
    height: 70px;
    padding: 1rem;
  }

  .player {
    gap: 20px;
  }

  .player1,
  .player2 {
    font-size: 1rem;
    padding: 6px 10px;
  }

  .card-footer button {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    margin: 0.5rem;
  }
}

@media screen and (min-width: 1441px) {
  .card {
    width: 80%;
    border-radius: 16px;
  }

  #image {
    height: 90px;
  }

  .card-content {
    padding: 20px;
  }

  .part2 {
    height: 430px;
    padding: 1rem;
    font-size: 2rem;
    line-height: 2.8rem;
    letter-spacing: 4px;
  }

  .part4 {
    height: 80px;
    padding: 1.2rem;
  }

  .player {
    gap: 20px;
  }

  .player1,
  .player2 {
    font-size: 1.2rem;
    padding: 6px 10px;
  }

  .card-footer button {
    font-size: 1.2rem;
    padding: 0.6rem 1.2rem;
    margin: 0.6rem;
  }
}