/* style.css */
/* PURPOSE: MAIN STYLES FOR THE HYPNOSIS GAME */

.am-wrapper{
	float:left;
	position:relative;
	overflow:hidden;
	width:100%;
	background: rgba(255, 0, 0, .5);
	z-index:2;
}
.am-wrapper img{
	position:absolute;
	outline:none;
	width:100%;
	height:100%;
	object-fit:cover;
	background: rgba(0, 0, 255, .5);
	z-index:3;
}
#am-container{
	background: rgba(0, 255, 0, .0);
	width:100%;
	height:100%;
	min-width:100%;
	min-height:100%;
	font-size: 0;
	z-index:1;
}

/* MODAL STYLES */
#ImageLoadModal {
	display: none;
	position: fixed;
	z-index: 10000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
}

#ImageLoadModalContent {
	position: relative;
	background-color: #fff;
	margin: 10% auto;
	padding: 30px;
	border: 2px solid #cc00ff;
	border-radius: 10px;
	width: 500px;
	max-width: 90%;
	box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

#ImageLoadModalClose {
	position: absolute;
	top: 10px;
	right: 20px;
	color: #cc00ff;
	font-size: 35px;
	font-weight: bold;
	cursor: pointer;
}

#ImageLoadModalClose:hover {
	color: #ffb84d;
}

.modal-tabs {
	display: flex;
	margin-bottom: 20px;
	border-bottom: 2px solid #cc00ff;
}

.modal-tab {
	flex: 1;
	padding: 15px;
	text-align: center;
	background: #f0f0f0;
	color: #666;
	cursor: pointer;
	font-size: 18px;
	font-weight: bold;
	border: none;
	border-bottom: 3px solid transparent;
}

.modal-tab.active {
	background: #fff;
	color: #cc00ff;
	border-bottom: 3px solid #cc00ff;
}

.modal-tab:hover {
	background: #ffb84d;
	color: #fff;
}

.modal-content-section {
	display: none;
	padding: 20px 0;
}

.modal-content-section.active {
	display: block;
}

.modal-button {
	padding: 15px 30px;
	background: #cc00ff;
	color: #fff;
	border: none;
	cursor: pointer;
	font-size: 18px;
	font-weight: bold;
	border-radius: 5px;
	width: 100%;
	margin-bottom: 10px;
}

.modal-button:hover {
	background: #ffb84d;
}

.modal-input {
	padding: 12px;
	width: 100%;
	border: 2px solid #ccc;
	border-radius: 5px;
	font-size: 16px;
	margin-bottom: 15px;
	box-sizing: border-box;
}

.modal-input:focus {
	border-color: #cc00ff;
	outline: none;
}

/* LOAD IMAGES BUTTON IN HEADER */
#LoadImagesButton {
	padding: 0px 0px;
	background: #ffb84d;
	color: #cc00ff;
	border: none;
	cursor: pointer;
	font-weight: bold;
	text-shadow: 1px 1px 1px #000;
	border-radius: 3px;
	font-size: 16px;
	margin-left: 20px;
}

#LoadImagesButton:hover {
	background: #cc00ff;
	color: #ffb84d;
}

/* LOADING SCREEN STYLES */
#LoadingScreen {
	position: relative;
	top: 0;
	left: 0;
	margin-top: 0;
	padding-top: 0;
	width: 100%;
	/* height: calc(100% - 50px); */
	min-height: calc(100vh - 50px);
	background: #4b27e8;
	z-index: 500;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	text-align: center;
	padding: 20px;
	overflow-y: auto;
	overflow-x: hidden;
	box-sizing: border-box;
}


#LoadingScreen h1 {
	font-size: 60px;
	color: #ffb84d;
	font-family: 'Monoton', Arial, sans-serif;
	text-shadow: 2px 2px 4px #000;
	margin-bottom: 40px;
	letter-spacing: 5px;
	width: 100%;
}

#LoadingScreen .instructions {
	font-size: 24px;
	color: #ffb84d;
	font-family: 'PT Sans Narrow', Arial, sans-serif;
	text-shadow: 1px 1px 2px #000;
	line-height: 1.8;
	max-width: 800px;
	width: 100%;
	margin: 0 auto;
	max-height: 70vh;
	overflow-y: auto;
}

#LoadingScreen .instructions p {
	margin: 15px 0;
	padding: 0 10px;
}

#LoadingScreen .instructions strong {
	color: #fff;
	font-weight: bold;
}

/* FIND THE @media SECTIONS IN style.css AND REPLACE WITH THESE IMPROVED VERSIONS */

/* TABLET AND SMALL SCREENS */
@media screen and (max-width: 768px) {
	#ImageLoadModalContent {
		margin: 5% auto;
		padding: 20px;
		width: 85%;
		max-width: 90%;
	}
	
	.modal-tab {
		font-size: 16px;
		padding: 12px 8px;
	}
	
	.modal-button {
		font-size: 16px;
		padding: 12px 20px;
	}
	
	.modal-input {
		font-size: 14px;
		padding: 10px;
	}
	
	#LoadingScreen h1 {
		font-size: 36px;
		letter-spacing: 2px;
		margin-bottom: 20px;
	}
	
	#LoadingScreen {
		padding: 15px 20px;
		justify-content: flex-start;
		padding-top: 50px;
	}
	
	#LoadingScreen .instructions {
		font-size: 18px;
		line-height: 1.6;
		max-width: 90%;
		text-align: left;  /* ADD THIS LINE */
	}

}

/* VERY SMALL SCREENS (IPHONE SE, ETC) */
@media screen and (max-width: 480px) {
	#ImageLoadModalContent {
		margin: 3% auto;
		padding: 20px 15px;
		width: 90%;
		max-width: 95%;
		box-sizing: border-box;
	}
	
	#ImageLoadModalClose {
		font-size: 30px;
		top: 8px;
		right: 12px;
	}
	
	.modal-tabs {
		margin-bottom: 15px;
	}
	
	.modal-tab {
		font-size: 15px;
		padding: 10px 5px;
	}
	
	.modal-button {
		font-size: 15px;
		padding: 12px 15px;
	}
	
	.modal-input {
		font-size: 14px;
		padding: 10px 8px;
	}
	
	.modal-content-section {
		padding: 15px 0;
	}
	
	.modal-content-section p {
		font-size: 13px;
	}
	
	#LoadingScreen h1 {
		font-size: 28px;
		letter-spacing: 1px;
	}
	
	#LoadingScreen {
		padding: 10px 15px;
		padding-top: 30px;
	}
	
	#LoadingScreen .instructions {
		font-size: 16px;
		line-height: 1.5;
	}
}

/* EXTRA SMALL SCREENS (BELOW 375px) */
@media screen and (max-width: 374px) {
	#ImageLoadModalContent {
		margin: 2% auto;
		padding: 18px 12px;
		width: 92%;
		max-width: 96%;
	}
	
	#ImageLoadModalClose {
		font-size: 26px;
		top: 6px;
		right: 10px;
	}
	
	.modal-tab {
		font-size: 14px;
		padding: 8px 4px;
	}
	
	.modal-button {
		font-size: 14px;
		padding: 10px 12px;
	}
}

/* PROGRESS BAR STYLES */
#ProgressBarContainer {
	display: none;
	position: relative;
	width: 80%;
	max-width: 600px;
	height: 30px;
	margin: 0 auto;
	background: rgba(255, 184, 77, 0.3);
	border: 2px solid #ffb84d;
	border-radius: 5px;
	overflow: hidden;
}

#ProgressBarFill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #ffb84d 0%, #cc00ff 100%);
	transition: width 0.3s ease;
	position: relative;
}

#ProgressBarLabels {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: space-between;
	padding: 0 0;
	align-items: center;
	pointer-events: none;
	z-index: 1;
}

#ProgressBarLabels span {
	font-size: 14px;
	font-weight: bold;
	color: #fff;
	text-shadow: 1px 1px 2px #000;
}

@media screen and (max-width: 768px) {
	#ProgressBarContainer {
		width: 90%;
		height: 25px;
	}
	
	#ProgressBarLabels span {
		font-size: 12px;
	}
}

@media screen and (max-width: 480px) {
	#ProgressBarContainer {
		width: 95%;
		height: 20px;
	}
	
	#ProgressBarLabels span {
		font-size: 11px;
	}
}


