@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%;
}

.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;
    /* padding-top: 3.75rem; */
    /* padding-bottom: 3.75rem; */
}


.card {
    background: #fff;
    border-radius: 0.625rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 1200px;
    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%;
    height: 70px;
    object-fit: cover;
    display: block;
}
.card-header h1{
    position: absolute;
}

.card-content {
    padding: 20px;
}

.part2 {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fff;
    border: .5px solid gainsboro;
    border-radius: 5px;
    justify-content: center;
    align-items: center;
    display: flex;
    height: 150px;
}



.consonants {
    display: flex;
    gap: 1rem;
}

.letter-box {
    width: 100px;
    height: 100px;
    border: 1px solid #333;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: hsl(0, 0%, 98%);
    flex-direction: column;
    overflow: hidden;
    display: inline-block;
    margin: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.reel {
    display: flex;
    flex-direction: column;
}

.reel img {
    width: 100%;
    height: 100px;
    object-fit: contain;
}

@keyframes spin {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100%);
    }
}




.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;
    height: 80px;
}

.player {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.player1,
.player2 {
    font-size: 18px;
    font-weight: bold;
    padding: 5px 10px;
    /* border-radius: 3px; */
    /* background-color: #f9f9f9;  */
    transition: all 0.3s ease;
}

.player1 {
    background-color: rgba(255, 0, 0, 0.8);
    /* border: 1px solid red; */
}

.player2 {
    background-color: rgba(0, 106, 255, 0.8);
    /* border: 1px solid blue; */
}


/* 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;
}


/* Overlay katmanı */
#countdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    visibility: hidden;
}

/* Geri sayım sayısı */
#countdown-number {
    font-size: 8rem;
    color: white;
    font-weight: bold;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}














/* MEDIA QUERIES  */


@media screen and (max-width: 480px) {

  .card {
    width: 95%;
    border-radius: 8px;
  }

  #image {
    height: 50px;
  }

  .card-content {
    padding: 10px;
  }

  .part2 {
    height: 120px;
    padding: 0.5rem;
  }

  .letter-box {
    width: 70px;
    height: 70px;
    margin: 3px;
  }

  .reel img {
    height: 70px;
  }



  .part4 {
    height: 60px;
    padding: 0.5rem;
  }

  .player {
    gap: 20px;
    margin-top: 10px;
  }

  .player1, .player2 {
    font-size: 14px;
    padding: 4px 8px;
  }

  .card-footer button {
    font-size: 1rem;
    padding: 0.4rem 1rem;
    margin: 0.3rem;
  }

  #countdown-number {
    font-size: 5rem;
  }
}

@media screen and (min-width: 481px) and (max-width: 767px) {
    .card {
    width: 90%;
    border-radius: 10px;
  }

  #image {
    height: 60px; 
  }

  .card-content {
    padding: 15px;
  }

  .part2 {
    height: 130px;
    padding: 0.8rem;
  }

  .letter-box {
    width: 85px;
    height: 85px;
    margin: 4px;
  }

  .reel img {
    height: 85px;
  }



  .part4 {
    height: 70px;
    padding: 0.8rem;
  }

  .player {
    gap: 30px;
    margin-top: 15px;
  }

  .player1, .player2 {
    font-size: 16px;
    padding: 5px 10px;
  }

  .card-footer button {
    font-size: 1.1rem;
    padding: 0.5rem 1.1rem;
    margin: 0.4rem;
  }

  #countdown-number {
    font-size: 6rem; 
  }

}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .card {
    width: 85%;
    border-radius: 12px;
  }

  #image {
    height: 80px;
  }

  .card-content {
    padding: 18px;
  }

  .part2 {
    height: 140px;
    padding: 1rem;
  }

  .letter-box {
    width: 95px;
    height: 95px;
    margin: 5px;
  }

  .reel img {
    height: 95px;
  }



  .part4 {
    height: 75px;
    padding: 1rem;
  }

  .player {
    gap: 35px;
    margin-top: 15px;
  }

  .player1, .player2 {
    font-size: 17px;
    padding: 6px 12px;
  }

  .card-footer button {
    font-size: 1.2rem;
    padding: 0.6rem 1.3rem;
    margin: 0.5rem;
  }

  #countdown-number {
    font-size: 7rem; 
  }
}

@media screen and (min-width: 1025px) and (max-width: 1440px) {
    .card {
    width: 75%;
    border-radius: 14px;
  }

  #image {
    height: 100px; 
  }

  .card-content {
    padding: 20px;
  }

  .part2 {
    height: 160px;
    padding: 1.2rem;
  }

  .letter-box {
    width: 110px;
    height: 110px;
    margin: 6px;
  }

  .reel img {
    height: 110px;
  }


  .part4 {
    height: 85px;
    padding: 1rem;
  }

  .player {
    gap: 40px;
    margin-top: 20px;
  }

  .player1, .player2 {
    font-size: 18px;
    padding: 8px 14px;
  }

  .card-footer button {
    font-size: 1.3rem;
    padding: 0.7rem 1.5rem;
    margin: 0.5rem;
  }

  #countdown-number {
    font-size: 8rem; 
  }
}

@media screen and (min-width: 1441px) {
    .card {
    width: 70%;
    border-radius: 16px;
  }

  #image {
    height: 120px; 
  }

  .card-content {
    padding: 25px;
  }

  .part2 {
    height: 180px;
    padding: 1.5rem;
  }

  .letter-box {
    width: 130px;
    height: 130px;
    margin: 8px;
  }

  .reel img {
    height: 130px;
  }



  .part4 {
    height: 90px;
    padding: 1.2rem;
  }

  .player {
    gap: 50px;
    margin-top: 25px;
  }

  .player1, .player2 {
    font-size: 20px;
    padding: 10px 16px;
  }

  .card-footer button {
    font-size: 1.4rem;
    padding: 0.8rem 1.6rem;
    margin: 0.6rem;
  }

  #countdown-number {
    font-size: 9rem; 
  }
}