@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

nav {
    background: linear-gradient(90deg, #141E30, #243B55);
    color: white;
    height: 65px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

nav ul {
    list-style-type: none;
}

.home-btn {
    position: relative;
    right: 0;
  margin-left: auto;
  background: transparent;
  border: 2px solid white;
  color: white;
  font-size: 18px;
  padding: 5px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.home-btn:hover {
  background: white;
  color: black;
}

.gameContainer {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    position: relative;
    flex-wrap: wrap;
    gap: 40px;
}


.container {
    display: grid;
    grid-template-rows: repeat(3, 120px);
    grid-template-columns: repeat(3, 120px);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.box {
    border: 2px solid rgba(255, 255, 255, 0.6);
    font-size: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #222;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.box:hover {
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transform: scale(1.05);
    border-radius: 8px;
}

.game-info {
    min-width: 250px;
    text-align: center;
    color: #222;
}

.game-info h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #141E30;
}

.btns {
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 500;
}

.info {
    display: block;
    margin-bottom: 10px;
}

#reset {
    padding: 8px 25px;
    border-radius: 25px;
    border: none;
    background: linear-gradient(90deg, #ff9966, #ff5e62);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

#reset:hover {
    background: linear-gradient(90deg, #ff5e62, #ff9966);
    transform: scale(1.05);
}


.imgbox img {
    width: 0;
    transition: width 0.8s ease-in-out;
    border-radius: 12px;
    margin-top: 20px;
}

.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.popup.active {
  display: flex;
}

.popup-content {
    background: white;
    padding: 20px 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.3);
}

#popup-message {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

#popup-ok {
    background: linear-gradient(90deg, #ff9966, #ff5e62);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

#popup-ok:hover {
    background: linear-gradient(90deg, #ff5e62, #ff9966);
}

@media screen and (max-width: 800px) {
    .container {
        grid-template-rows: repeat(3, 80px);
        grid-template-columns: repeat(3, 80px);
    }
    .game-info {
        margin-top: 20px;
    }
    nav {
        font-size: 22px;
    }
}
@media screen and (max-width: 800px) and (min-width:700px) {
     .container {
        grid-template-rows: repeat(3, 80px);

    }
}
@media screen and (max-width: 600px) {
  nav {
    font-size: 20px;
    padding: 0 8px;
  }
  .home-btn {
    font-size: 14px;
    padding: 4px 10px;
  }
}