@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,500;0,600;0,700;0,800;0,900;1,400&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Play:wght@400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background: linear-gradient(135deg, hsl(240, 15%, 8%) 0%, hsl(240, 15%, 12%) 100%);
  color: hsl(0, 0%, 95%);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.game-header {
  background: hsl(240, 15%, 12%);
  border-bottom: 2px solid hsl(34, 78%, 55%);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.game-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: hsl(0, 0%, 95%);
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-icon {
  font-size: 2rem;
  animation: pulse 2s ease-in-out infinite;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, hsl(34, 78%, 55%), hsl(34, 78%, 45%));
  color: hsl(240, 15%, 8%);
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), 0 0 15px hsl(34, 78%, 55%);
}

.nav-icon {
  font-size: 1.2em;
}

.main-div {
  display: flex;
  flex-grow: 1;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  font-family: "Poppins", "Play", sans-serif;
  flex-shrink: 0;
  width: 100%;
  max-width: 100vw;
  padding: 1rem;
  box-sizing: border-box;
}

.top-text {
  display: flex;
  margin-top: 0.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.heading-text {
  font-size: x-large;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}

.deposit-text {
  padding-top: 0.5vw;
  font-size: medium;
}

.deposit-button {
  background-color: #ece8ff;
  transition-duration: 0.2s;
  margin: 1vh;
  padding: 0.4rem 0.9rem;
}

.deposit-button:hover {
  background-color: #5465ff;
  color: white;
  box-shadow: 0.1rem 0.2rem 0.2rem #151515;
}

.deposit-button:active {
  box-shadow: 0px 2px 2px #adaabb;
  transform: translateY(1.5px);
}

.bet-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
  font-size: x-large;
}

.get-bet-button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #e8f5ff;
  transition-duration: 0.2s;
  margin: 1vh;
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

.get-bet-button:hover {
  background-color: #2b92ff;
  color: white;
  box-shadow: 0.1rem 0.2rem 0.2rem #151515;
}

.bet-value {
  padding-left: 0.5rem;
}

.main-grid {
  display: flex;
  flex-shrink: 0;
  padding-top: 0.5rem;
  flex-direction: row;
  gap: 1rem;
  width: 100%;
  max-width: 800px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.game-grid {
  display: grid;
  margin: auto;
  min-width: 0;
  grid-template-rows: repeat(3, 1fr);
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  width: min(33vw, 300px);
  max-width: 300px;
  aspect-ratio: 1 / 1;
}

.box {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2vw;
  font-family: "Play", "Poppins", sans-serif;
  text-shadow: 0.1vh 0.1vh 0.2vh rgba(221, 134, 39, 0.3);
  border-radius: 0.5rem;
  background: linear-gradient(145deg, hsl(240, 15%, 15%), hsl(240, 15%, 10%));
  color: hsl(34, 78%, 55%);
  cursor: pointer;
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  border: 2px solid hsl(34, 78%, 55%);
  box-shadow: 
    inset 0 0 20px rgba(0, 0, 0, 0.5),
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(221, 134, 39, 0.3);
}

.row1 {
  border-bottom: 2px solid hsl(34, 78%, 55%);
  border-top: 2px solid hsl(34, 78%, 45%);
}

.row2 {
  border-bottom: 2px solid hsl(34, 78%, 55%);
}

.row3 {
  border-bottom: 2px solid hsl(34, 78%, 45%);
}

.col1 {
  border-right: 2px solid hsl(34, 78%, 55%);
  border-left: 2px solid hsl(34, 78%, 45%);
}

.col2 {
  border-right: 2px solid hsl(34, 78%, 55%);
}

.col3 {
  border-right: 2px solid hsl(34, 78%, 45%);
}

.balance-container {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
  flex-direction: row;
  font-size: large;
}

.balance-text {
  width: 70%;
}

.balance-value {
  padding-left: 0.5rem;
  width: 30%;
}

.multiplier-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}

.multiply-val {
  padding-left: 0.3rem;
}

.multiply-bet {
  font-size: large;
  margin-left: 0.6vw;
  color: white;
  -webkit-text-stroke-width: 0;
}

.spin-container {
  display: flex;
  margin: 0.4rem;
  margin-bottom: 1rem;
  text-align: center;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.spin-button {
  display: flex;
  color: hsl(240, 15%, 8%);
  justify-content: center;
  align-items: center;
  font-size: large;
  transition-duration: 0.3s;
  cursor: pointer;
  padding: 0.8rem 2rem;
  font-weight: bold;
  background: linear-gradient(135deg, hsl(34, 78%, 55%), hsl(34, 78%, 45%));
  border: 2px solid hsl(34, 78%, 45%);
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.spin-button:hover {
  background: linear-gradient(135deg, hsl(34, 78%, 65%), hsl(34, 78%, 55%));
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), 0 0 20px hsl(34, 78%, 55%);
}

.spin-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.spin-button-contents {
  display: flex;
  width: fit-content;
  gap: 0.5rem;
  align-items: center;
}

.spin-icon {
  font-size: 1.2em;
  animation: pulse 2s ease-in-out infinite;
}

/* .a{
  color: rgb(0, 78, 167);
}

.b{
  color: rgb(72, 1, 127);
}

.c{
  color: rgb(114, 0, 30);
} */

/* 
.checkboxes {
  margin-right: 1.5vw;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  background-color: rgba(255, 255, 255, 0);
}

.check-button {
  display: flex;
  height: 4vw;
  width: 2.5vw;
  text-align: center;
  justify-content: center;
  align-items: center;
  transition-duration: 0.3s;
  color: white;
  font-size: x-large;
  cursor: pointer;
}

.checkboxes:hover{
  background-color: rgb(155, 255, 150);
}

.b1:active{
  transform: translateY(1px);
  box-shadow: 2px 0px 3px rgb(165, 165, 165);
}

.b2:active{
  transform: translateY(1px);
  box-shadow: 2px 0px 3px rgb(165, 165, 165);
}

.b3:active{
  transform: translateY(1px);
  box-shadow: 2px 0px 3px rgb(165, 165, 165);
} */
.spin-button:hover .spin-image {
  animation: spin 0.5s linear infinite;
  /* Adjust the animation duration as needed */
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
    /* Adjust the number of degrees for a full rotation */
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.footer {
  max-width: 170px;
  list-style-type: none;
  text-align: center;
  align-items: center;
}

.foot {
  display: flex;
  justify-content: space-between;
  font-family: sans-serif;
}

.connect {
  color: #f7f7f7;
  background: transparent;
  text-align: center;
  font-family: sans-serif;
  padding: 1rem;
}

.icon {
  height: 2.5rem;
  width: 2.5rem;
  padding: 0.3rem;
}

.iconAlign {
  text-align: center;
  padding: 1rem;
  background: #4d4c7d;
}

.money-stat-container {
  display: flex;
  width: 100%;
  max-width: 600px;
  justify-content: space-evenly;
  border: 0px solid yellow;
  align-items: center;
  align-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.individual-container {
  margin-top: 00px;
}
.inner-div {
  margin-top: 1px;
  background: linear-gradient(135deg, hsl(240, 15%, 15%), hsl(240, 15%, 10%));
  padding: 0.5rem;
  border-radius: 0.5rem;
  display: flex;
  width: 150px;
  height: 40px;
  border: 2px solid hsl(34, 78%, 55%);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}
.inner-div img {
  width: 60px;
  height: 60px;
  align-self: center;
  border: 0px solid black;
  margin: -30px auto auto -20px;
}
.money-value {
  margin: auto;
  margin-right: 5px;
  border: 0px solid black;
  font-size: 20px;
  color: hsl(34, 78%, 55%);
  font-weight: bold;
}
.money-add-button {
  min-width: 90px;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  border: 0px solid black;
  background-color: #2361b9;
  border-radius: 2px;
  margin: auto;
  margin-right: 2px;
  font-size: 20px;
  padding: 1px 2px;
  color: #a4d0ff;
}
.money-label {
  margin: auto;
  display: block;
  width: fit-content;
  font-size: 14px;
  margin-right: 5px;
  font-style: italic;
  color: hsl(0, 0%, 70%);
  margin-top: 0.5rem;
}
.bet-img {
  width: 50px;
  height: 50px;
  margin-top: -25px;
}

.bet-input {
  width: 120px !important;
  font-size: 1rem;
  padding: 0.3rem 0.5rem;
  border: 2px solid hsl(34, 78%, 55%);
  border-radius: 0.3rem;
  margin: 0 0.5rem;
  background: hsl(240, 15%, 8%);
  color: hsl(0, 0%, 95%);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bet-input:focus {
  border-color: hsl(34, 78%, 65%);
  box-shadow: 0 0 10px hsl(34, 78%, 55%);
}

.reel-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  will-change: transform;
  min-width: 100px;
}
.reel-symbol {
  font-size: 4rem;
  height: 100px;
  line-height: 100px;
  text-align: center;
  width: 100%;
  font-family: "Play", "Poppins", sans-serif;
  text-shadow: 0.1vh 0.1vh 0.2vh #400071cf;
  color: rgb(0, 78, 167);
  user-select: none;
  white-space: nowrap;
}

.multiplier-group {
  display: flex;
  min-width: 60px;
  justify-content: flex-start;
  align-items: center;
}
.bet-group {
  display: flex;
  min-width: 50px;
  justify-content: flex-end;
  align-items: center;
}

.slot-svg {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
  object-fit: cover;
  border: 2px solid #e0e0e0;
}
.reel-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
}

@media (max-width: 768px) {
  .game-nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-logo a {
    font-size: 1.25rem;
  }
  
  .nav-links {
    width: 100%;
    justify-content: center;
  }
  
  .nav-link {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .main-div {
    padding: 0.5rem;
  }
  
  .main-grid {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    padding-top: 1rem;
  }
  
  .game-grid {
    width: 90vw;
    max-width: 400px;
    min-width: 0;
    min-height: 90vw;
    height: 90vw;
    max-height: 400px;
    overflow: hidden;
    box-sizing: border-box;
    gap: 0.5rem;
  }
  
  .box {
    font-size: 4rem;
    min-width: 0;
    min-height: 0;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0.3rem;
  }
  
  .money-stat-container {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    align-items: center;
  }
  
  .individual-container {
    width: 100%;
    max-width: 300px;
  }
  
  .inner-div {
    width: 100%;
    height: 50px;
  }
  
  
  .spin-container {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
  
  .spin-button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .game-grid {
    width: 95vw;
    height: 95vw;
    gap: 0.3rem;
  }
  
  .box {
    font-size: 3rem;
    border-radius: 0.2rem;
  }
  
  .inner-div {
    height: 45px;
  }
  
  .money-value {
    font-size: 18px;
  }
  
  .spin-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}
