
/********** GENERAL ***********/
* {
	box-sizing: border-box;
}

html {
	text-align: center;
}

body {
	background-image: url('../images/Site/BG.jpg');
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: cover;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

p {
	text-align: justify;
	margin-top: 3em;
	margin-left: 5em;
	margin-right: 5em;
	display: flex;
	text-justify: center;
}

a {
	text-decoration: none !important;
	color: black !important;
	transition: color 0.15s;
}

a:hover {
	text-decoration: none !important;
	color: #b32c6f !important;
}

/********** NAVBAR DROPDOWN ***********/
#navbar-dropdown-menu {
	border-radius: 10px !important;
	border: 1px solid rgba(0,0,0,0.08) !important;
	box-shadow: 0 8px 24px rgba(0,0,0,0.10) !important;
	padding: 0.4rem !important;
	min-width: 160px !important;
	background: rgba(255,255,255,0.95) !important;
	backdrop-filter: blur(12px) !important;
}
#navbar-dropdown-menu .dropdown-item {
	border-radius: 7px !important;
	font-size: 0.85rem !important;
	padding: 0.45rem 0.85rem !important;
	color: #1b1b1c !important;
	transition: background 0.15s !important;
}
#navbar-dropdown-menu .dropdown-item:hover {
	background: rgba(27,27,28,0.07) !important;
	color: #1b1b1c !important;
}
#navbar-dropdown-menu .dropdown-divider {
	margin: 0.3rem 0.5rem !important;
	border-color: rgba(0,0,0,0.07) !important;
}
#navbar-dropdown-button {
	font-size: 0.875rem !important;
	align-items: center !important;
	gap: 0.4rem !important;
}

/********** NAVBAR ***********/
#navbar .navbar-brand {
	font-family: 'Courier New', Courier, monospace;
	font-size: 1.1rem;
	letter-spacing: 0.15em;
	font-weight: 700;
}

#navbar {
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	background-color: rgba(255,255,255,0.80) !important;
	border-bottom: 1px solid rgba(0,0,0,0.06);
	position: relative;
	z-index: 1040 !important;
}

.dropdown-menu {
	z-index: 1050 !important;
}

#navbar .nav-link {
	font-size: 0.875rem;
	letter-spacing: 0.03em;
}

#custom-footer {
	font-family: 'Courier New', Courier, monospace;
	font-size: 0.75em;
	text-align: center;
	color: #7b8787;
	background-color: rgba(238,238,238,0.95);
	border-top: 1px solid rgba(0,0,0,0.05);
}

#custom-footer.hidden {
	display: none;
}

#navbar.hidden {
	display: none;
}

#app-general-container {
	padding-top: 6em;
	padding-bottom: 4em;
}

#app-general-container.hidden {
	display: none;
}

/********** GLASS CARD — formulaires / contenus sur fond béton ***********/
.glass-card {
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
	padding: 2.5rem 2rem;
	max-width: 520px;
	margin: 0 auto;
}

/********** HOME — labels boutons ***********/
.home-btn-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.home-btn-label {
	font-family: 'Courier New', Courier, monospace;
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #1b1b1c;
	background: rgba(255,255,255,0.7);
	border-radius: 4px;
	padding: 2px 8px;
}

/********** CONTACT PAGE ***********/
.contact-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2rem 1.5rem;
	text-align: center;
}

.contact-avatar {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid rgba(0,0,0,0.08);
	margin-bottom: 1rem;
}

.contact-name {
	font-family: 'Courier New', Courier, monospace;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	margin-bottom: 0.75rem;
	color: #1b1b1c;
}

.contact-quote {
	font-size: 0.85rem;
	color: #444;
	font-style: italic;
	line-height: 1.6;
	flex: 1;
	margin-bottom: 1.25rem;
	border: none;
	padding: 0;
}

.contact-gh-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: 'Courier New', Courier, monospace;
	font-size: 0.78rem;
	color: #1b1b1c !important;
	background: rgba(0,0,0,0.07);
	border: 1px solid rgba(0,0,0,0.12);
	border-radius: 6px;
	padding: 0.35rem 0.75rem;
	transition: background 0.2s, color 0.2s;
	text-decoration: none !important;
	margin-top: auto;
}

.contact-gh-btn:hover {
	background: #1b1b1c;
	color: #fff !important;
}

.contact-gh-icon {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

/********** HOME CARD PAGE ***********/
.image-container {
	position: relative;
	width: 300px;
	height: 200px;
	overflow: hidden;
	margin: 0 auto;
}

.original-image,
.hover-image {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 100%;
	max-height: 100%;
	transition: opacity 0.3s ease;
}

.hover-image {
	opacity: 0;
}

.image-container:hover .hover-image {
	opacity: 1;
}

.buttons-container {
	display: flex;
	justify-content: space-between;
	width: 300px;
	margin: 0 auto;
	margin-top: 1em;
}

.buttons-container button {
	padding: 8px 20px;
	border-radius: 7px;
	border: none;
	background-color: #1b1b1c;
	color: #fff;
	transition: background-color 0.3s;
}

.buttons-container button:hover {
	background-color: #b32c6f;
} 

/***** SETTINGS Forms ******/
.image-radio {
	display: none;
}

.image-label img {
	opacity: 0.5;
	border-radius: 3px;
}

.image-radio:checked + .image-label img {
	opacity: 1;
	border: 2px solid #a1a1a1;
	border-radius: 3px;
}

/********** PONG ***********/
#pong-renderer {
	width: 100vw;
	height: 100vh;
	margin: 0;
}

#pong-renderer.hidden {
	display: none;
}

#pong-score {
	font-family: 'Courier New', Courier, monospace;
	font-size: 2em;
	color: #7b8787;
}

#pong-score.hidden {
	display: none;
}

#pong-screens {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
}

#pong-screens.hidden {
	display: none;
}

#custom-endgame {
	display: flex;
	justify-content: center;
	padding: 7em;
	margin: 0 auto;
}

.scoreboard {
	padding: 20px;
	border-radius: 10px;
	margin-top: 20px;
	position: fixed;
	bottom: 0;
	width: 100%;
}

.score {
	font-size: 1rem;
}

/********** POKEMAP ***********/
.PokeGB {
	position: relative;
	margin: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.game-boy-background {
	display: flex;
	width: 52vw;
	z-index: 2;
	position: relative;
}

.pokecanva {
	position: absolute;
	top: 12%; /* Position of the rectangle inside the image */
	left: 50%;
	transform: translate(-50%, 0);
	width: 50%; /* Size of the rectangle inside the image */
	height: auto;
	z-index: 1;
}
