/** ------- Generating Artworks Styling START ------- **/

/* Roboto Mono Font Family */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400&display=swap');

/* Root Variables */
:root {
	--primary: #7D64DE;
	--primary-dim: rgba(125, 100, 222, 0.6);
	--gradient-1: rgba(135, 69, 255, 0.42);
	--gradient-2: rgba(20, 241, 149, 0.08);
	--gradient-3: rgba(3, 225, 255, 0.08);
}

/* General Styling */
body {
	background-color: #000000;
	color: #7D64DE;
	margin: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}

/** ------- Generating Artworks Styling START ------- **/ 
/* Main container styling */
#main-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 40px;
	gap: 20px;
	position: relative;
}

#main-content {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 20px;
	width: 80%;
	margin: 0 auto;
	padding-top: 20px;
}

/* Main Card Styling */
.main-card {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	padding: 20px;
	border-radius: 7px;
	height: 610px;
	width: 1200px;
	margin-top: 70px;
	overflow: hidden;
	z-index: 1;
	box-shadow: 
		0 0 18px var(--gradient-1),
		0 0 30px var(--gradient-2),
		0 0 18px var(--gradient-3),
		0 0 18px var(--gradient-1),
		0 0 30px var(--gradient-2),
		0 0 18px var(--gradient-3);
}

.main-card::before {
	content: '';
	position: absolute;
	top: -3px;
	left: -3px;
	right: -3px;
	bottom: -3px;
	border-radius: inherit;
	background: linear-gradient(45deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
	z-index: -1;
	padding: 3px;
}

.main-card::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: inherit;
	background-color: #000000;
	z-index: -1;
}

/* Navbar Styling */
.navbar {
	font-family: 'Roboto Mono', monospace;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	background-color: #000000;
	color: #ffffff;
	width: 100%;
	box-sizing: border-box;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
	overflow: hidden;
}

.buttons {
	display: flex;
	justify-content: center;
	gap: 7px;
}

.buttons a {
	text-decoration: none;
}

.nav-button {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Roboto Mono', monospace;
	color: #000000;
	padding: 8px 30px;
	width: auto;
	height: auto;
	border: 1.5px solid var(--primary);
	border-radius: 20px;
	background: #7D64DE;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
	box-sizing: border-box;
	max-width: 100%;
	position: relative;
	overflow: hidden;
	gap: 8px;
}

.nav-button:hover {
	background: var(--primary);
	color: #ffffff;
	transform: scale(1.05);
	animation: pulse-glow 1.4s infinite alternate;
}

.nav-button:active {
	transform: scale(0.95);
	box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.nav-button .gitbook-text,
.nav-button .telegram-text,
.nav-button .twitter-text,
.nav-button .cave-text  {
	font-family: 'Roboto Mono', monospace;
	font-size: 1.2em;
}

.gitbook-logo {
	width: 18px;
	height: 18px;
	display: inline-block;
	vertical-align: center;
	margin-left: -10px;
}

.telegram-logo {
	width: 20px;
	height: 20px;
	display: inline-block;
	vertical-align: center;
	margin-left: -10px;
}

.twitter-logo {
	width: 14px;
	height: 14px;
	display: inline-block;
	vertical-align: center;
	margin-left: -10px;
}

.nav-button:hover .gitbook-logo,
.nav-button:hover .twitter-logo,
.nav-button:hover .telegram-logo {
	filter: invert(1);
}

/* Responsive Adjustments */
/* Mobile View of Mining Page */
@media (max-width: 768px) { 
	.nav-button {
		font-size: 10px;
		padding: 5px 20px;
	}
	.navbar {
		justify-content: center;
		position: absolute;
		margin-top: 10px;
	}
	.navbar .buttons {
		padding: 5px 2px;
	}
	.logo {
		display: none;
	}
	#main-container {
		top: 45px;
		flex-direction: column;
		align-items: center;
		overflow: hidden;
		width: 100%;
	}
	#main-container #title-card {
		transform: unset;
		position: absolute;
		left: unset;
		margin-top: -17px;
	}
	#main-container .main-card {
		margin-top: 140px;
		width: 83%;
		height: auto;
		display: flex;
		flex-direction: column;
		align-self: center;
	}
	#main-container .main-card .left-card {
		width: 100%;
		margin: 0px;
	}
	#main-container .main-card .left-card .image-card {
		height: 281.25px;
	}
	#main-container .main-card .left-card #progress-wrapper {
		width: 100%;
		gap: 10px;
		margin-top: 30px;
	}
	#main-container .main-card .left-card #progress-wrapper #progress-bar-container {
		width: 100%;
		margin-left: 5px;
	}
	#main-container .main-card .right-card {
		width: 90%;
		align-self: center;
	}
	#main-container .main-card .right-card .mining-container {
		width: 100%;
	}
	#main-container .main-card .right-card .mining-container .mining-progress {
		height: auto;
		white-space: normal;
	}
	#main-container .tracker-hub { 
		height: auto;
		position: unset;
		bottom: unset;
		left: unset;
		transform: unset;
		margin-left: 13px;
		margin-right: 13px;
		margin-top: -10px;
		width: 90%;
		padding: 10px;
		font-size: 12px;
		border-radius: 10px;
		box-sizing: border-box;
	}
	#main-container .main-card .tracker-hub .generated-artwork-tracker {
		width: 90%;
		height: auto;
	}
	#main-container .main-card .tracker-hub .total-pixels-generated {
		width: 90%;
		height: auto;
	}
}

/* Small Mobile View of Nav buttons */
@media (max-width: 480px) { 
	.nav-button {
		font-size: 10px;
		padding: 5px 15px;
		border-radius: 15px;
	}
}

/* Left card styling */
.left-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 45%;
	margin-left: -35px;
	margin-top: 20px;
}

.image-card {
	width: 460px;
	height: 440px;
	text-align: center;
	color: #7D64DE;
	display: grid;
	grid-template-columns: repeat(20, 1fr);
	margin-top: 20px;
	border-radius: 8px;
	padding: 10px;
	align-items: center;
	justify-content: space-between;
	transform: translateZ(0);
	box-shadow:
		0 0 15px var(--gradient-1),
		0 0 30px var(--gradient-2),
		0 0 45px var(--gradient-3);
	position: relative;
}

.image-card div {
	width: 100%;
	height: 100%;
	transition: opacity 0.3s ease;
}

.pixelated-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 1 !important;
	z-index: 1;
}

.overlay-container {
	z-index: 2;
}

.overlay-block {
	z-index: 3;
	transition: opacity 0.3s ease;
}

.current-pixels-generated {
	font-family: 'Roboto Mono', monospace;
	font-weight: 100;
	font-size: 1rem;
	color: #000000;
	background-color: #7D64DE;
	padding: 5px 10px;
	border-radius: 8px;
	box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
	border: 1px solid #7D64DE;
	text-align: center;
	margin-top: 5px;
}

/* Keyframes for the Navigation Button Pulse Glow Animation */
@keyframes pulse-glow {
	0% {
		box-shadow: 0 0 10px rgba(125, 100, 222, 0.5), 0 0 20px rgba(125, 100, 222, 0.5);
	}
	100% {
		box-shadow: 0 0 15px rgba(125, 100, 222, 1), 0 0 30px rgba(125, 100, 222, 1);
	}
}

/* Title Card Styling */
#title-card {
	position: fixed;
	top: 34px;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 650px;
	padding: 15px;
	background-color: transparent;
	text-align: center;
	z-index: 1000;
	animation: card-glow 0.5s infinite;
}

.contract-address {
	position: absolute;
	right: -280px;
	font-family: 'Roboto Mono', monospace;
	font-size: 0.85rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	top: 85%;
	gap: 5px;
}

.custom-notification {
    position: fixed;
    top: 20px;
    left: 40%;
    transform: translateX(-50%);
    background-color: #08D27D;
    color: white;
    padding: 6px 15px;
    border-radius: 5px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.875rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    animation: fadeInOut 2.5s ease;
    text-align: center;
}

.custom-notification.error {
    background-color: #E32C2C;
}

/* Keyframes for the Custom Contract Address Animation */
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    10%, 90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.address-label {
	color: white;
}

.address-wrapper {
	display: flex;
	align-items: center;
	gap: 5px;
	background-color: #191919;
	border-radius: 5px;
	padding: 4px 8px;
	transition: background-color 0.3s;
}

.address-wrapper:hover {
	background-color: rgb(120 108 108 / 16%);
}

.address-value {
	color: #7D64DE;
	font-weight: bold;
}

/* Mobile View of Contract Address */
@media (max-width: 768px) {
	.contract-address {
		position: relative;
		right: -70px;
		top: 5px;
	}
	.contract-address .address-wrapper {
		padding: 4px 12px;
		display: inline-flex;
		cursor: pointer;
		align-items: center;
		justify-content: flex-start;
	}
	.contract-address .address-label {
		font-size: 0.9rem;
	}
	.contract-address .address-value {
		font-size: 0.85rem;
	}
	.address-wrapper:hover {
	    background-color: rgba(0, 0, 0, 0.05);
	}
	.custom-notification {
        position: fixed;
        top: 20px;
        left: 5%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 350px;
        text-align: center;
        font-size: 0.75rem;
        padding: 5px 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

.copy-address-icon {
	width: 16px;
	height: 16px;
	filter: invert(1);
}

#title-card .logo {
	position: absolute;
	left: -20vw;
	top: 35%;
	transform: translate(-100%, -50%);
	width: 20vw;
	max-width: 150px;
	height: auto;
}

/* Responsive Adjustments */
/* Tablet view of Mining Page */
@media (max-width: 1024px) {
	.nav-button {
		font-size: 10px;
		padding: 6px 25px;
	}
	.nav-button {
		font-size: 10px;
		padding: 5px 20px;
	}
	.navbar {
		justify-content: center;
		position: absolute;
		margin-top: 10px;
	}
	.logo {
		display: none;
	}
	#main-container {
		top: 45px;
		flex-direction: column;
		align-items: center;
		width: 100%;
	}
	#main-container #title-card {
		transform: unset;
		position: absolute;
		left: unset;
		margin-top: -25px;
	}
	#main-container .main-card {
		margin-top: 140px;
		width: 83%;
		height: auto;
		display: flex;
		flex-direction: column;
		align-self: center;
	}
	#main-container .main-card .left-card {
		margin: 0px;
	}
	#main-container .main-card .left-card .image-card {
		width: 100%;
		height: 281.25px;
	}
	#main-container .main-card .left-card #progress-wrapper {
		width: 100%;
		gap: 10px;
		margin-top: 30px;
	}
	#main-container .main-card .left-card #progress-wrapper #progress-bar-container {
		width: 100%;
		margin-left: 5px;
	}
	#main-container .main-card .right-card {
		width: 90%;
		align-self: center;
	}
	#main-container .main-card .right-card .mining-container {
		width: 100%;
	}
	#main-container .main-card .right-card .mining-container .mining-progress {
		height: auto;
		white-space: normal;
	}
	#main-container .tracker-hub { 
		height: auto;
		position: unset;
		bottom: unset;
		left: unset;
		transform: unset;
		margin-left: 13px;
		margin-right: 13px;
		margin-top: -10px;
		width: 90%;
		padding: 10px;
		font-size: 12px;
		border-radius: 10px;
		box-sizing: border-box;
	}
	#main-container .main-card .tracker-hub .generated-artwork-tracker {
		width: 90%;
		height: auto;
	}
	#main-container .main-card .tracker-hub .total-pixels-generated {
		width: 90%;
		height: auto;
	}
}

/* Mobile View of Title Card & Logo */
@media screen and (max-width: 768px) {
	#title-card .logo {
		left: -12vw;
		width: 25vw;
		max-width: 120px;
	}
}

/* Smaller Mobile View of Title Card & Logo */
@media screen and (max-width: 480px) {
	#title-card .logo {
		left: -10vw;
		width: 30vw;
		max-width: 100px;
	}
}

#title-card .logo img {
	height: 160px;
	width: auto;
	cursor: pointer;
	transition: transform 0.3s ease;
}

#title-card .logo img:hover {
	transform: scale(1.15);
}

#title-card .title {
	font-family: 'Roboto Mono', monospace;
	font-weight: 100;
	font-size: 5rem;
	color: var(--primary);
	margin-top: -10px;
	text-shadow: 0 0 10px var(--primary);
	animation: glow 5s infinite;
}

#title-card .subtitle {
	font-family: 'Roboto Mono', monospace;
	font-size: 1rem;
	font-weight: normal;
	margin-top: -12px;
	color: var(--primary-dim);
}

/* Keyframes for Text Glow Animation */
@keyframes glow {
	0%, 100% {
		text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 30px var(--primary);
	}
	50% {
		text-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary), 0 0 40px var(--primary);
	}
}

/* Right Card Styling */
.right-card {
	height: 550px;
	width: 40%;
	color: #7D64DE;
	background-color: #000000;
	flex-direction: column;
	padding: 30px 20px 20px 20px;
	position: relative;
	border-radius: 8px;
	box-shadow: 0 0 3px rgba(125, 100, 222, 0.4);
	margin-top: 17px;
	margin-left: -5px;
	overflow: hidden;
	background: 
		radial-gradient(circle at top left, #151122, transparent 15%),
		radial-gradient(circle at top right, #151122, transparent 15%),
		radial-gradient(circle at bottom left, #151122, transparent 15%),
		radial-gradient(circle at bottom right, #151122, transparent 15%);
}

.mining-status-title {
	font-family: 'Roboto Mono', monospace;
	font-size: 1.2rem;
	color: #7D64DE;
	text-align: center;
	margin: 0;
	margin-bottom: 10px;
}

.mining-container {
	margin-bottom: 20px;
}

.clock-status-title {
	font-family: 'Roboto Mono', monospace;
	font-size: 1.2rem;
	color: #7D64DE;
	text-align: center;
	margin: 0;
	margin-bottom: 10px;
}

.mining-progress {
	margin: 0;
	padding-left: 10px;
	font-size: 1rem;
	color: #7D64DE;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 1.5em;
	min-height: 1.5em;
	line-height: 1.5em;
	white-space: nowrap;
}

/* Keyframes for blocks slightly shaking & fading when being reversed */
@keyframes shake-fade {
	0% {
		transform: scale(1) rotate(0deg);
		opacity: 1;
	}
	25% {
		transform: scale(0.9) rotate(5deg) translateY(-2px);
	}
	50% {
		transform: scale(0.7) rotate(-10deg) translateY(-5px);
	}
	75% {
		transform: scale(0.5) rotate(15deg) translateY(-8px);
	}
	100% {
		transform: scale(0) rotate(30deg) translateY(-10px);
		opacity: 0;
	}
}

/* Apply crumble effect */
.block-shake-fade {
	animation: shake-fade 0.5s ease-out forwards;
}

.mining-pickaxe {
	display: inline-block;
	margin-right: 8px;
	animation: pickaxe-hit-animation 1.4s infinite;
	transform-origin: bottom center;
	font-size: 1.5rem;
}

.mining-clock {
	font-family: 'Roboto Mono', monospace;
	font-size: 1.2rem;
	color: #ffffff;
	position: relative;
	left: 10px;
	position: relative;
}

/* Keyframes for Pickaxe hitting animation */
@keyframes pickaxe-hit-animation {
	0% {
		transform: rotate(0deg);
	}
	25% {
		transform: rotate(-20deg);
	}
	50% {
		transform: rotate(0deg);
	}
	75% {
		transform: rotate(20deg);
	}
	100% {
		transform: rotate(0deg);
	}
}

/* Keyframes for Color dimming animation */
@keyframes dimming {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.4;
	}
}

.info-title {
	font-family: 'Roboto Mono', monospace;
	font-size: 1.2rem;
	color: #7D64DE;
	margin: 10px 0;
	margin-top: 32px;
}

.divider {
	border: 0;
	height: 1px;
	background-color: #7D64DE;
	margin: 5px 0;
}

.right-card {
	margin-bottom: 15px;
}

.right-card h3 {
	color: #7D64DE;
	text-align: left;
}

.right-card p {
	font-family: 'Roboto Mono', monospace;
	font-weight: 100;
	color: #575757;
	font-size: 1rem;
	overflow-y: auto;
	overflow-x: hidden;
	max-height: 300px;
	padding: 5px;
	margin: 0;
	scrollbar-width: thin;
	scrollbar-color: #7D64DE #ffffff;
}

.right-card p .content {
	color: #ffffff;
}

/* Custom Scrollbar for Webkit-based Browsers (Chrome, Edge, Safari) */
.right-card p::-webkit-scrollbar {
	background: #7D64DE;
	width: 6px;
}

.right-card p::-webkit-scrollbar-thumb {
	background: #7D64DE;
	border-radius: 4px;
}

.right-card p::-webkit-scrollbar-track {
	background: #7D64DE;
}

#creation-counter-container {
	display: flex;
	flex-direction: column;
	align-items: left;
	color: #7D64DE;
	font-weight: bold;
	font-size: 1rem;
	margin-top: 140px;
	margin-bottom: 5px;
}

/* Progress Bar Styling */
#progress-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	max-width: 450px;
	margin: 14px;
	margin-top: 20px;
	margin-bottom: 10px;
}

#progress-bar-container {
	display: flex;
	width: 100%;
	max-width: 400px;
	height: 20px;
	background-color: #333;
	border-radius: 4px;
	overflow: hidden;
	border: 2px solid #ffffff;
	box-sizing: border-box;
	margin-left: 20px;
}

/* Segment Styling */
.segment {
	flex: 1;
	height: 100%;
	background-color: #333;
	transition: background-color 0.10s ease;
	position: relative;
}

.segment.red-filled {
	background-color: #E32C2C;
}

.segment.yellow-filled {
	background-color: #FFEA00;
}

.segment.green-filled {
	background-color: #08D27D;
}

.segment::before {
	content: '';
	position: absolute;
	top: 0;
	left: -1px;
	width: 1px;
	height: 100%;
	background-color: #ffffff;
	opacity: 1;
}

.segment:first-child::before {
	display: none;
}

#progress-percent {
	font-family: 'Roboto Mono', monospace;
	font-size: 1rem;
}

/* Tracker Hub Styling */
.tracker-hub {
	position: absolute;
	bottom: -60px;
	left: 50%;
	transform: translateX(-620px);
	display: flex;
	gap: 20px;
}

.generated-artwork-tracker, .total-pixels-generated {
	font-family: 'Roboto Mono', monospace;
	font-weight: 100;
	font-size: 1rem;
	color: #000000;
	background-color: #7D64DE;
	padding: 7px 15px;
	border-radius: 8px;
	box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
	border: 1px solid #7D64DE;
	text-align: center;
}

/** ------- Generating Artworks Styling END ------- **/ 
