@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');


.container-mine {
 height: 500px;

 
 

}


.grid-mine{
   width: 370px;
   height: 450px;
   display: flex;
   flex-wrap: wrap;
   margin: 0 auto; /* Gridi yatayda ortalar */
   background-color:aliceblue;
   box-shadow: 0px 10px 100px gray;
   border-radius: 20px;
   margin-bottom: 10px;
   margin-top: 20px;
   border: 10px solid #0D6EFD;

}

.grid-mine .sex{
   width: 350px;
   height: 250px;
   display: flex;
   flex-wrap: wrap;
   margin-left: 15px;
   margin-bottom: 65px;
}


.valid, .bomb{
    width: 35px;
    height: 35px;
    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;
}

.square.bomb-v{
 background-image: url(/public/pictures/bomb.webp);
 box-sizing: border-box;
     background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
}


.checked{
    width: 35px;
    height: 35px;
    box-sizing: border-box;
    box-shadow: none !important;           /* Varsa gölgeleri tamamen kaldırır */
    outline: none;
    background-color: rgb(251, 251, 251);
}


.square.flag{
    background-image: url(/public/pictures/flag.webp);
    background-size: 60%;
    box-sizing: border-box;
  background-repeat: no-repeat;
  background-position: center;
}

.square{
    display: flex;
  justify-content: center; /* Yatayda (sağ-sol) ortalar */
  align-items: center;     /* Dikeyde (yukarı-aşağı) ortalar */

  /* Rakamların görünümünü iyileştirmek için öneriler: */
  font-family: 'Press Start 2P', monospace;
  font-weight: bold;
  font-size: 18px;         /* Kutucuğunuzun boyutuna göre değiştirebilirsiniz */
  user-select: none;
}



.one{
    color: rgb(49, 203, 255);
    font-weight: bold;
}

.two{
  color: #00f75b;
  font-weight: bold;
}

.three{
    color: #e80000;
    font-weight: bold;
}

.four{
    color: #bb41d3;
    font-weight: bold;
}

.total{
    width: 35px;
    height: 35px;
}

.emotes{
    width: 105px;
    cursor: pointer;
    margin-bottom: 15px;

}

.emote{
    background-image: url(/public/pictures/gameover.webp);
    box-sizing: border-box;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;

}

.emote-s{
    background-image: url(/public/pictures/start.webp);
    box-sizing: border-box;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
}

.emote-w{
    background-image: url(/public/pictures/uwin.webp);
    box-sizing: border-box;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
}


.emotes{
  /* Büyümenin yumuşak geçişli olması için transition ekliyoruz */
  transition: transform 0.2s ease-in-out;
}

/* Üzerine gelince %15 büyüt */
.emotes:hover{
  transform: scale(1.15);
}

/* Tıklandığı an hafifçe küçülüp basılma hissi versin */
.emotes:active{
  transform: scale(0.95);
}

.emote,
 .emote-s, .emote-w{
  animation: zoomIn 0.3s ease-out forwards;
}

.result{
display: none; /* JS ile .show eklendiğinde flex olacak */
    position: absolute;
    
    /* Tam ortalama (Yatay ve Dikey) */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* İçerik hizalama */
    flex-direction: column;
    align-items: center;

    
    z-index: 10;
    width: 300px;
    height: 400px;
    border-radius: 22.5px;
    box-sizing: border-box;

  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; /* JS ile .show eklendiğinde flex olacak */
    position: absolute;
    
    /* Tam ortalama (Yatay ve Dikey) */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* İçerik hizalama */
    flex-direction: column;
    align-items: center;

    
    z-index: 10;
    width: 300px;
    height: 400px;
    border-radius: 22.5px;
    box-sizing: border-box;

  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;
}

.scr-txt{
    font-weight: bolder;
}

.result .scoreui, .result-win .scoreui{
    font-weight: 700;
    font-size: medium;
    border: 1px solid #0D6EFD;
    width: auto;
    height: 27px;
    border-radius: 12.5px;
    box-sizing: border-box;
    padding-inline: 5px;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    background-color: white;
}

.result .scoreuift, .result-win .scoreuift{
    font-weight: 700;
    font-size: medium;
    border: 1px solid #0D6EFD;
    width: auto;
    height: 27px;
    border-radius: 12.5px;
    box-sizing: border-box;
    padding-inline: 5px;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    background-color: white;
}

.scoreuift .flag-img{
    display: flex;
    box-sizing: border-box;
    object-fit: contain;
    zoom: 0.03;
}

