body {
	background-image: url(../images/golden-balls-on-blue.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}
	
.values {
	display:flex;
	align-content: center;
	justify-content: center;
	margin-bottom: 50px;
}
	
.value-box {
	width: 100px;
	height: 100px;
	border-radius: 4px;
	color: #FFF;
	text-align: center;
	line-height: 100px;
	cursor: pointer;
	display: inline-block;
	box-sizing: border-box;
	background-image: url(../images/Crystal-ball-blue.png);
	background-repeat: no-repeat;
	background-size: 100px 100px;
	background-repeat: no-repeat;
	background-size: 100px 100px;
	background-color: rgb(0, 0, 0, 0);
	border-color: rgb(0, 0, 0, 0);
	font-family: Montserrat, Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
	font-weight: 800;
	font-size: 32px;
	margin-bottom:30px;
}

.logo {
	text-align: center;
	width: 100%;
	height: 200px;
}

.logo img {
	text-align: center;
	width: 300px;
	height: 200px;
}

.logo-2 img {
	text-align: center;
	width: 200px;
	height: 120px;
}

.input-box {
  width: 100px;
  height: 100px;
  margin: 6px;
  border-radius: 4px;
  position: relative;
  box-sizing: border-box;
  background-image: url(../images/grid-box-grey.png);
  background-repeat: no-repeat;
  background-size: 100px 100px;
  background-repeat: no-repeat;
  background-color: rgb(0, 0, 0, 0);
  border-color: rgb(0, 0, 0, 0);
  font-family: Montserrat, Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
  font-weight: 800;
  font-size: 32px;
}

.win-box {
  width: 100px;
  height: 100px;
  margin: 6px;
  border-radius: 4px;
  position: relative;
  box-sizing: border-box;
  background-image: url(../images/grid-box-green-win.png);
  background-repeat: no-repeat;
  background-size: 100px 100px;
  background-repeat: no-repeat;
  background-color: rgb(0, 0, 0, 0);
  border-color: rgb(0, 0, 0, 0);
  font-family: Montserrat, Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
  font-weight: 800;
  font-size: 32px;
  color: #FFF;
  text-align: center;
  line-height: 100px;
}

.grid {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	width: 224px;
	align-content: center;
	align-items: center;
}

.win-grid {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	width: 224px;
	align-content: center;
	align-items: center;
	z-index: -10;
}

.start-button {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	width: 200px;
	margin: 0 30px;
	align-content: center;
	align-items: center;
}

#grids-container {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: auto;
}

.start {
  background-color: red;
  border: none;
  color: white;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  cursor: pointer;
  font-family: Montserrat, Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
  font-weight: 800;
  font-size: 32px;
  background:linear-gradient(to bottom, #f78f8f 5%, #ff0000 100%);
  border: 3px solid #b50404;
  margin-top: -70px;
}

.start:hover {
  background-color: #04BB6D; /* Change color on hover */
  background:linear-gradient(to bottom, #07E06F 5%, #04BB6D 100%);
  transform: translateY(-5px); /* Slight lift effect */
  box-shadow: 0 0 15px 5px rgba(0, 255, 0, 0.8); /* Outer glow effect */
  transition: box-shadow 0.3s ease; /* Smooth transition for hover effect */
  border: 3px solid #04BB6D;
}

.start:active {
  background-color: #04BB6D; /* Darker color when pressed */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Smaller shadow when pressed */
  transform: translateY(2px); /* Slightly pressed effect */
}

.start:focus {
  outline: none; /* Remove outline on focus */
}

.grid-container {
  position: relative; /* Ensure the container is positioned relative to its normal flow */
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 224px;
  height: 224px;
  align-content: center;
  align-items: center;
	margin-right: 20px;
}

.grid-container-1 {
  position: relative; /* Ensure the container is positioned relative to its normal flow */
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 224px;
  height: 224px;
  align-content: center;
  align-items: center;
}

.grid-container-2 {
  position: absolute; /* Ensure the container is positioned relative to its normal flow */
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 224px;
  height: 224px;
  align-content: center;
  align-items: center;
  z-index: 10;
}

.gridbox1 {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  position: absolute; /* Position Box 1 absolutely within the container */
  top: 0;
  left: 0;
  width: 224px;
  height: 224px;
  text-align: center;
}

.gridbox2 {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  position: absolute; /* Position Box 2 absolutely within the container */
  top: -55px;
  left: -300px;
  width: 224px;
  height: 224px;
  text-align: center;
}

.gridbox3 {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  position: absolute; /* Position Box 2 absolutely within the container */
  top: -55px;
  left: 10px;
  width: 224px;
  height: 224px;
  text-align: center;
}

.heading-container {
  text-align: center;
  margin-top: 50px;
}

.heading-1 {
  font-family: Montserrat, Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
  font-weight: 600;
  font-size: 32px;
  text-align: center;
  color: #FFF;
  margin-bottom: 30px;
  opacity: 0; /* Initially hidden */
  transform: translateY(-50px); /* Start above the view */
  animation: dropIn 1s ease-out forwards; /* Animation applied */
}

.heading-2 {
  font-family: Montserrat, Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
  font-weight: 700;
  font-size: 32px;
  color: #AF913B;
}

.win-heading {
  font-family: Montserrat, Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
  font-weight: 700;
  font-size: 22px;
  color: #FFF;
  margin-left: 30px;
}

.instructions {
  font-family: Montserrat, Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
  line-height: 1.7em;
  font-weight: 500;
  font-size: 16px;
  color: #6F6F6F;
}


@keyframes dropIn {
  0% {
    opacity: 0; /* Start invisible */
    transform: translateY(-50px); /* Start above */
  }
  100% {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* Drop to its normal position */
  }
}

.buttons-container {
	display: flex;
	justify-content: center;
	gap: 20px;
	text-align: center;
	margin-top: 80px;
	height:60px;
}

/* Button to trigger the slide-in */

.buttons-container :nth-child(1) {
  background-color: #06ab5f;
  border: 0;
  border-radius: 56px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: system-ui,-apple-system,system-ui,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",sans-serif;
  font-size: 18px;
  font-weight: 600;
  outline: 0;
  padding: 16px 21px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: all .3s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.buttons-container :nth-child(1):before {
  background-color: initial;
  background-image: linear-gradient(#fff 0, rgba(255, 255, 255, 0) 100%);
  border-radius: 125px;
  content: "";
  height: 50%;
  left: 4%;
  opacity: .5;
  position: absolute;
  top: 0;
  transition: all .3s;
  width: 92%;
}

.buttons-container :nth-child(1):hover {
  box-shadow: rgba(255, 255, 255, .2) 0 3px 15px inset, rgba(0, 0, 0, .1) 0 3px 5px, rgba(0, 0, 0, .1) 0 10px 13px;
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .buttons-container :nth-child(1) {
    padding: 16px 48px;
  }
}

/* Generate resetGrid Grid */

.buttons-container :nth-child(3) {
  background-color: #6c757d;
  border: 0;
  border-radius: 56px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: system-ui,-apple-system,system-ui,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",sans-serif;
  font-size: 18px;
  font-weight: 600;
  outline: 0;
  padding: 16px 21px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: all .3s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.buttons-container :nth-child(3):before {
  background-color: initial;
  background-image: linear-gradient(#fff 0, rgba(255, 255, 255, 0) 100%);
  border-radius: 125px;
  content: "";
  height: 50%;
  left: 4%;
  opacity: .5;
  position: absolute;
  top: 0;
  transition: all .3s;
  width: 92%;
}

.buttons-container :nth-child(3):hover {
  box-shadow: rgba(255, 255, 255, .2) 0 3px 15px inset, rgba(0, 0, 0, .1) 0 3px 5px, rgba(0, 0, 0, .1) 0 10px 13px;
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .buttons-container :nth-child(3) {
    padding: 16px 48px;
  }
}

/* End Generate resetGrid Grid */



/* Exit Grid */

.buttons-container :nth-child(4) {
  background-color: red;
  border: 0;
  border-radius: 56px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: system-ui,-apple-system,system-ui,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",sans-serif;
  font-size: 18px;
  font-weight: 600;
  outline: 0;
  padding: 16px 21px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: all .3s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.buttons-container :nth-child(4):before {
  background-color: initial;
  background-image: linear-gradient(#fff 0, rgba(255, 255, 255, 0) 100%);
  border-radius: 125px;
  content: "";
  height: 50%;
  left: 4%;
  opacity: .5;
  position: absolute;
  top: 0;
  transition: all .3s;
  width: 92%;
}

.buttons-container :nth-child(4):hover {
  box-shadow: rgba(255, 255, 255, .2) 0 3px 15px inset, rgba(0, 0, 0, .1) 0 3px 5px, rgba(0, 0, 0, .1) 0 10px 13px;
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .buttons-container :nth-child(4) {
    padding: 16px 48px;
  }
}

/* End Exit Grid */



/* The sliding div */
  .side-panel {
  position: fixed;
  top: 0;
  right: -280px; /* Initially hidden off-screen */
  width: 250px;
  height: 100%;
  background-color: #FFF;
  color: black;
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 5;
  overflow-y: auto; /* Allow scrolling when content overflows */
}

@media (max-width: 767px) { /* Mobile Fix for scrolling */
  .side-panel {
    width: 80vw; /* Make the panel width responsive on smaller screens (mobile) */
    right: -80vw; /* Initially off-screen */
    padding: 15px; /* Reduce padding on mobile to fit better */
  }

  .side-panel.open {
    right: 0; /* When the panel is open, bring it into view */
  }
}

    .side-panel.open {
      right: 0; /* When open, it slides in */
    }

    .side-panel h2 {
      text-align: center;
    }

    .side-panel p {
      font-size: 16px;
    }

/*---End slide in---*/

/* Optional: Style for portrait mode on small devices */
@media (orientation: portrait) {
  body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
  }

  .rotate-message {
    text-align: center;
    font-size: 24px;
    color: #333;
  }
}

.coin {
  position: absolute;
  width: 50px;
  height: 50px;
  margin: 0;
  top: 60px;
  transition: all 0.3s ease; /* Smooth transition for appearance */
}

.credit-holder {
  position: relative;
  font-family: Montserrat, Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
  font-weight: 700;
  font-size: 32px;
  text-align: center;
  color: #FFF;
  padding: 10px;
  border: 3px solid #EBAC08;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  width: 180px;
  height: 100px;
  margin-left: 50px;
  padding-left: 40px;
}

.credits-heading {
  font-family: Montserrat, Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
  font-weight: 700;
  font-size: 18px;
  text-align: right;
  color: #EBAC08;
  display: flex;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-right: 30px;
}

.credits-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60px;
  margin-left: 0px;
}