/* Animations */

h1 {
	font-size: 25px;
}


  
  /* Allows the honey comb to sway left, and right repeatedly */
  @keyframes sway {
	0% {
	  transform: translate(0, 0) rotate(0deg);
	}
	25% {
	  transform: translate(-2px, -1px) rotate(-2deg);
	}
	50% {
	  transform: translate(0, 1px) rotate(0deg);
	}
	75% {
	  transform: translate(2px, -1px) rotate(2deg);
	}
	100% {
	  transform: translate(0, 0) rotate(0deg);
	}
  }

/* Style for the container of building and upgrade buttons. */
#mt30 {
	margin-top: 30px;
}

body {
	font-family: "Press Start 2P", monospace;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

h1, h2, h3, p, span {
	font-family: "Press Start 2P", monospace;
	transform: scaleX(0.85); /* Try values from 0.8 to 0.95 */
}

.background-layer {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: -2;
	transition: opacity 0.3s ease-out;
}
  
  /* Sky at the back initially */
.background-layer.sky {
	background-image: url('Figs/SkyBackdrop.png');
	opacity: 1;
 }
  
  /* Honey on top, initially transparent */
  .background-layer.honey {
	background-image: url('Figs/HoneyCombBackdrop.png');
	opacity: 0;
  }
  
body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	pointer-events: none;
  
	background: linear-gradient(
	  rgba(0, 0, 0, 0.5) 0%,
	  rgba(0, 0, 0, 0.5) 80%,
	  rgba(0, 0, 0, 0.0) 100%
	);
}
  

.image-button-container {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background:  rgba(66, 69, 73, 0.5) ; /* Button background */
    padding-right: 150px; /* Padding for space on the right-hand side of the button. Will be used for text. */
    border-radius: 5px; /* Rounding the corners of the border */
    cursor: pointer;
	span {
		color: #fff;
	}
	border: #222 5px solid;

}

/* Style for the image buttons (buildings and upgrades) */
.image-button {
    width: 200px;
    height: auto;
    margin-right: 10px; /* Space between image and text */
	border-right: #222 5px solid;
}

/* Style for the text appearing to the right of the image buttons. */
.button-text {
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
	text-align: left;
}

/* Style for the Counter */
.counter-text {
	color: #fff;
	font-size: 45px;
	font-weight: 500;
	line-height: 10px;
}

/* Style for a grid layout used to place buttons */
.grid-container {
	place-content: center;
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 600px));
    gap: 10px;
}

.center-wrapper {
	display: flex;
	place-content: center;
	justify-content: center;
	padding-bottom: 10px;
}

.grid-container-bw {
	.grid-container-bw {
		display: grid;
		grid-template-columns: minmax(150px, 600px);
		width: 100%;
	}
}

/* To hide a button */
.hidden {
	visibility: hidden;
}

/* Style for a bonus button */
.image-bonus {
	position: absolute;
	width: 80px;
	height: auto;
    z-index: 10; /* To bring the image to the front */
}

/* Style for a regular message */
.message {
	background-color: #98FF98;  /* Light blue */
	padding: 10px;
	width: fit-content;
	height: 20px;
	z-index: 5; /* To bring the text to the front */
	border-radius: 5px;
}

.worker-bee-box {
	z-index: 5;
	position: absolute;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 4px;
}

.orbit-container {
	position: relative;
	width: 300px;
	height: 300px;
  }
  
.orbiter {
	position: absolute;
	width: 32px;
	height: 32px;
	background-image: url('Figs/WorkerBeeCircler.png');
	background-size: cover;

	/* Create circular path for WorkerBee tags to follow */
	offset-path: circle(180px at center);
	offset-rotate: auto;
	animation: orbit 20s linear infinite;
	transform: rotate(180deg);
}

/* Orbit animation for WorkerBees to follow */
@keyframes orbit {
	from {
		offset-distance: 0%;
	}
	to {
		offset-distance: 100%;
	}
}

.honey-comb {
	animation: sway 2.5s ease-in-out infinite;
	margin: 0 auto;
	width: 300px;
	height: auto;
	display: block;
	margin-top: 10px;
}

.plus-one {
	z-index: 10;
	position: absolute;
	top: 80px; /* Adjust as needed */
	left: 85%;
	transform: translateX(85%);
}


/* Style for an achievement message */
.achievement {
	background-color: #ffe98f;  /* Yellow-Gold */
	padding: 10px;
	width: fit-content;
	height: 20px;
	z-index: 5; /* To bring the text to the front */
	border-radius: 5px;
	font-size: 20px;
    font-weight: bold;
}

.prod-adjust-fullwidth {
	visibility: visible;
}

.prod-adjust-mobile {
	visibility: hidden;
	display: none;
}


.counter-text {
	font-size: 18px;
}

@media screen and (max-width: 900px){
	.mobileFullWidth{
		width:100% !important;
	}
	
	.grid-container {
		place-content: center;
		display: grid;
		grid-template-columns: repeat(1, minmax(150px, 600px));
		gap: 10px;
	}
}

@media screen and (max-width: 480px){
	.mobileFullWidth{
		width:100% !important;
	}

	.message {
		font-size: 11px;
		height: 11px;
	}
	
	.grid-container {
		place-content: center;
		display: grid;
		grid-template-columns: repeat(1, minmax(150px, 600px));
		gap: 10px;
		padding: 0px 20px 20px
	}

	.grid-container-bw {
		display: grid;
		grid-template-columns: minmax(150px, 600px); /* mimic repeat(1, ...) */
		width: 100%;
		padding: 20px 20px 0px 20px;
	}

	.title {
		font-size: 17px;
		padding: 20px 0px;
	}

	.counter-text {
		font-size: 15px;
		padding: 0px 0px 20px 0px;
		font-weight: bold;;
	}

	.button-text {
		font-size: 12px;
		font-weight: bold;
		white-space: nowrap;
		text-align: left;
	}

	.prod-adjust-fullwidth {
		visibility: hidden;
	}
	.prod-adjust-mobile {
		visibility: visible;
		display:contents;
	}

	.plus-one {
		left: 85%;
		transform: translateX(85%);
	}
}



