.twox{
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.twox-b{
   width: 370px;
   height: 480px;
   display: flex;
   flex-direction: column;
   align-items: center;
   text-align: center;
   background-color:aliceblue;
   box-shadow: 0px 10px 100px gray;
   border-radius: 20px;
   margin-bottom: 10px;
   margin-top: 5px;
   border: 10px solid #0D6EFD;

}

.twox-h{
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    width: 180px;
    margin-top: 10px;

    transition: transform 0.2s ease-in-out;
    transform: scale(1);
    user-select: none;

}

.twox-h:hover {
    transform: scale(1.06);
}

/* Tıklandığında içeri doğru basılma/küçülme efekti */
.twox-h:active {
    transform: scale(0.95);
}

.score-tab{
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size:x-large;
    margin-top: 10px;
}

.twox-b .grid-x {
  width: 300px;
  height: 300px;
  display: flex;
  flex-wrap: wrap;
  border: 10px solid transparent;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  margin-top: 15px;
  box-shadow: 0 0 15px #0d6efd, 0 0 35px rgba(13, 110, 253, 0.4);

}

/* .div noktası kaldırıldı */
.grid-x div{
  width: 60px;
  height: 60px;
  border: solid 1px rgb(14, 11, 11);
  box-sizing: border-box;
  box-shadow: inset 2px 2px 0px rgba(255, 255, 255, 0.5),
  inset -2px -2px 0px rgba(0, 0, 0, 0.25);
  border-radius: 5px;
  margin: 5px;
  font-size: x-large;
  text-align: center;
  font-weight: bold;
  color: #984f00;
  font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;

    display: flex;
  align-items: center;      /* dikey */
  justify-content: center;  /* yatay */
}

.result{
    display: none;
    position: absolute;
    top: 20%;
    align-items: center;
    margin: 0 auto;
    flex-direction: column;
    z-index: 10;
    width: 300px;
    height: 400px;
    border: 1px solid #0D6EFD;
    background-color: #0D6EFD;
    border-radius: 22.5px;

  background: rgba(13, 110, 253, 0.15);
  backdrop-filter: blur(3px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
}


.result h2{
    margin-top: 20px;
    display: flex;

}

.result .close-btn{
    position: absolute;
    display: flex;
    text-decoration: none;
    background-color: transparent;
    background: none;
    border: none;
    font-weight: bold;
    font-size: large;
    top: 0;
    right: 0;
    margin: 7.5px;

    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.result .tryagnbtn{
    position: absolute;
    display: flex;
    margin: 10px;
    bottom: 0;
    text-decoration: none;
    border-radius: 17.5px;
    border:1px solid #004cbf;
    background-color: #0D6EFD;
    font-weight: bold;
    width: 200px;
    height: 35px;
    justify-content: center;
    align-items: center;

    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;

}

.result .tryagnbtn:hover {
    background-color: #0b5ed7; /* Biraz daha koyu ve canlı mavi */
    border-color: #0a58ca;
    box-shadow: 1px 1px 14px rgba(13, 110, 253, 0.45); /* Parlayan gölge */
    transform: translateY(-2px); /* Buton hafifçe havaya kalkar */
}

/* ── ACTIVE: Tıklandığında (Basılma Hissi) ── */
.result .tryagnbtn:active {
    background-color: #0a58ca; /* Daha koyu ton */
    transform: translateY(1px) scale(0.97); /* Basılma/küçülme efekti */
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.3); /* Gölge içeri gömülür */
}

.tryagnbtn .try-agan{
    color: white;
    display: flex;
    position: absolute;
}


.result.show{
    display: flex !important;
}



.result-win{
    display: none;
    position: absolute;
    top: 20%;
    align-items: center;
    margin: 0 auto;
    flex-direction: column;
    z-index: 10;
    width: 300px;
    height: 400px;
    border: 1px solid #0D6EFD;
    background-color: #0D6EFD;
    border-radius: 22.5px;

  background: rgba(13, 110, 253, 0.15);
  backdrop-filter: blur(3px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.result-win .tryagnbtn{
    position: absolute;
    display: flex;
    margin: 10px;
    bottom: 0;
    text-decoration: none;
    border-radius: 17.5px;
    border:1px solid #004cbf;
    background-color: #0D6EFD;
    font-weight: bold;
    width: 200px;
    height: 35px;
    justify-content: center;
    align-items: center;

    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;

}


.result-win .close-btn{
    position: absolute;
    display: flex;
    text-decoration: none;
    background-color: transparent;
    background: none;
    border: none;
    font-weight: bold;
    font-size: large;
    top: 0;
    right: 0;
    margin: 7.5px;

    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.result-win h2{
    margin-top: 20px;
    display: flex;

}


.result-win .tryagnbtn:hover {
    background-color: #0b5ed7; /* Biraz daha koyu ve canlı mavi */
    border-color: #0a58ca;
    box-shadow: 1px 1px 14px rgba(13, 110, 253, 0.45); /* Parlayan gölge */
    transform: translateY(-2px); /* Buton hafifçe havaya kalkar */
}

/* ── ACTIVE: Tıklandığında (Basılma Hissi) ── */
.result-win .tryagnbtn:active {
    background-color: #0a58ca; /* Daha koyu ton */
    transform: translateY(1px) scale(0.97); /* Basılma/küçülme efekti */
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.3); /* Gölge içeri gömülür */
}

.result-win .tryagnbtn .try-agan{
    color: white;
    display: flex;
    position: absolute;
}

.result-win.show{
    display: flex !important;
}

.result-win .scoreui{
  font-weight: 500;
  margin: 20px;
}

.scr-txt{
    font-weight: bolder;
    margin: 20px;
}