* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: black;
  padding: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
   position: relative; 
}

.cont {
  border: 2px solid #d6dfe7;
  padding: 30px;
  background: #ffffff;
  width: fit-content;
  border-radius: 10px;
  box-shadow: 0px 0px 10px #0000001f;
  display: flex;
  flex-direction: column;
  margin-right: 180px;
}

#startGame {
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  background: #ff4d4d;
  color: white;
  cursor: pointer;
}

#startGame:hover {
  background: #e60000;
}

#score {
  margin: 15px 0;
  text-align: center;
  font-size: 2rem;
  display: none;
}

#display {
  border: 2px solid black;
  height: 140px;
  width: 220px;
  font-weight: bolder;
  font-size: 2.6rem;
  background-color: #b7b0b0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px auto;
  border-radius: 8px;
  text-align: center;
}

.game {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.box {
  border: 0px solid white;
  padding: 20px;
  width: 80px;
  height: 80px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  opacity: 1;
}

.box:active {
  transform: scale(0.95);
}

span {
  font-size: 0.6rem;
  margin-top: 20px;
  text-align: center;
}

a {
  text-decoration: none;
  color: rgb(26, 26, 174);
  font-style: italic;
  letter-spacing: 1px;
}



iframe {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 10px;
}


/* ===== MOBILE FIX FOR ADS ===== */
@media (max-width: 768px) {

  body {
    flex-direction: column;
    align-items: center;
  }

  .cont {
    margin-right: 0;      /* side gap remove */
    width: 100%;
    max-width: 360px;     /* mobile friendly */
  }

  iframe {
    position: static;    /* absolute hata diya */
    transform: none;
    margin-top: 5px;
    width: 100% !important;
    max-width: 320px;
    height: 250px;
  }
}
