@charset "utf-8";
/* CSS Document */
:root {
    --nintendo-red: #e70012;
	--game-BG-alpha: 0.1;
    --3DS: #02A4B9;
    --3DS-game: rgb(from var(--3DS) r g b / var(--game-BG-alpha));
    --Switch: var(--nintendo-red);
    --Switch-game: rgb(from var(--Switch) r g b / var(--game-BG-alpha));
	--Switch2: var(--nintendo-red);
    --Switch2-game: rgb(from var(--Switch2) r g b / var(--game-BG-alpha));
	--WiiU: Gray;
    --WiiU-game: rgb(from var(--WiiU) r g b / var(--game-BG-alpha));
}
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
}
header {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
nav {
	display: flex;
	justify-content: space-between !important;
	align-items: center;
	background-color: #f8f9fa;
	padding: 10px;
}
.navbar-light .navbar-brand,
.navbar-light .navbar-nav .nav-link,
.navbar-light .navbar-brand:hover,
.navbar-light .navbar-nav .nav-link:hover {
	color: white;
	font-size: 1rem;
}
.nav-link {
	padding-left: 10px !important;
	padding-right: 10px !important;
}
nav a {
	color: #fff;
	padding: 10px 20px;
	text-decoration: none;
	border-radius: 5px;
	background-color: #007bff;
	transition: background-color 0.3s;
	margin: 2px;
}
nav a:hover {
	color: #fff;
	text-decoration: none;
	background-color: #0056b3;
}
.container {
	max-width: 100vw;
	margin: 0 auto;
	background: white;
	overflow: hidden;
}

.header,
.footer {
	background: linear-gradient(0deg, #80000a, var(--nintendo-red));
	color: white;
	padding: 15px;
	border-radius: 15px;
	text-align: center;
}
.header h1 {
	font-size: 2rem;
	margin-bottom: 10px;
}
.stats {
	display: flex;
	justify-content: center;
	gap: 30px;
	margin-top: 15px;
}
.stat-item {
	text-align: center;
}
.stat-number {
	font-weight: bold;
}
#sync-now {
	font-style: normal;
}
.sync-message {
	font-style: italic;
	margin: 15px 0;
}
#newList {
	font-weight: bold;
	margin-left: 10px;
}
#newList ul {
	font-weight: normal;
	margin-left: 30px;
}
.table-container {
	overflow-x: auto;
}
.filters-container {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 8px;
	border: 1px solid #dee2e6;
	margin-top: 5px;
}
.filters-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 15px;
	align-items: end;
}
.filter-group {
	display: flex;
	flex-direction: column;
}
.filter-group label {
	font-weight: 500;
	margin-bottom: 5px;
	color: #555;
}
.filter-group select {
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: white;
	font-size: 14px;
}
.filter-actions {
	display: flex;
	gap: 10px;
}
.amiibo-btn {
	background: none;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}
.amiibo-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.amiibo-name {
	background: var(--nintendo-red);
	color: white;
	font-weight: bold;
	font-size: 1rem;
	transition: all 0.3s ease;
}
.amiibo-name:hover {
	background: #80000a;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.results-info {
	margin-top: 5px;
	padding: 10px;
	background: #e9ecef;
	border-radius: 4px;
	font-weight: 500;
}
table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 5px;
}
th, td {
	padding: 12px;
	text-align: center;
	border-bottom: 1px solid #ddd;
}
th {
	background: #f8f9fa;
	font-weight: 600;
	cursor: pointer;
	user-select: none;
	transition: background-color 0.3s;
}
th:hover {
	background: #e9ecef;
}
th a {
	text-decoration: none;
	color: #333;
	display: block;
}
th a:hover {
	text-decoration: none;
}
td a {
	text-decoration: none;
	color: var(--nintendo-red);
}
.amiibo-image {
	width: 60px;
	height: 60px;
	object-fit: contain;
}
.release_date {
	font-size: smaller;
}
.collection-status {
	background: none;
	border: 2px solid #ddd;
	padding: 8px 16px;
	border-radius: 20px;
	cursor: default;
	transition: all 0.3s ease;
	font-weight: 500;
	outline: 2px solid rgba(255, 255, 255, 0.7);
}
.collection-status.owned {
	background: #28a745;
	color: white;
	border-color: #28a745;
}
.collection-status.not-owned {
	background: #6c757d;
	color: white;
	border-color: #6c757d;
}
.collection-status:not(.collection-toggle) {
  cursor: default; 
}
.collection-toggle {
	cursor: pointer;
}
.collection-toggle.add-to-collection {
	background: white;
	color: #28a745;
	border-color: #28a745;
}
.collection-toggle.remove-from-collection {
	background: white;
	color: #6c757d;
	border-color: #6c757d;
}
.collection-toggle:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.loading {
	display: none;
	text-align: center;
	padding: 20px;
	color: #666;
}
.spinner {
	border: 3px solid #f3f3f3;
	border-top: 3px solid #3498db;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	animation: spin 1s linear infinite;
	margin: 0 auto 10px;
}
@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}
.alert {
	padding: 15px;
	margin: 20px;
	border-radius: 5px;
	display: none;
}
.footer a {
	text-decoration: none;
	color: white;
	font-weight: bold;
}
.amiibo-modal {
	display: none;
	position: fixed;
	z-index: 1001;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
}
.modal-content {
	position: relative;
	margin: 2% auto;
	width: 95%;
	height: 95%;
	background-color: #fff;
	border-radius: 10px;
	overflow: auto;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.modal-header {
	background-color: var(--nintendo-red);
	color: white;
	padding: 15px 20px;
	display: grid;
	grid-template-areas:
		"modal-header-name modal-header-in_collection modal-header-close";
	grid-template-columns: 4fr 1fr 4fr;
	gap: 5px;
	justify-content: space-between;
	align-items: center;
	position: sticky;
    top: 0;
    z-index: 1002;
}
.modal-header > div.modal-header-name {
	grid-area: modal-header-name;
	justify-self: start;
}
.modal-header > div.modal-header-in_collection {
	grid-area: modal-header-in_collection;
	justify-self: center;
}
.modal-header > div.modal-header-close {
	grid-area: modal-header-close;
	justify-self: end;
}
.modal-title {
	margin: 0;
	font-size: 1.5rem;
}
.regions {
	display: grid;
	grid-template-columns: 90px 90px;
	align-items: self-end;
}
.region {
	padding-bottom: 10px;
}
.region-date {
	font-weight: normal;
    font-size: small;
}
.region-flag {
	width: 50px;
	height: auto;
	border: 1px solid lightgray;
}
.region-flag-tiny {
	width: 14px;
	height: auto;
	border: 1px solid lightgray;
	margin: 0 2px;
}
.share-btn {
	background-color: white;
	color: var(--nintendo-red);
	padding: 8px 16px;
	border-radius: 25px;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 2px solid white;
	outline: 2px solid rgba(255, 255, 255, 0.7);
	transition: all 0.3s ease;
}
.share-btn:hover {
	background-color: rgba(255, 255, 255, 0.2);
	color: white;
}
.close-btn {
	border: 2px solid white;
	outline: 2px solid rgba(255, 255, 255, 0.7);
	background-color: white;
	color: var(--nintendo-red);
	font-size: 1.5rem;
	font-weight: bold;
	cursor: pointer;
	padding: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.3s;
}
.close-btn:hover {
	background-color: rgba(255, 255, 255, 0.2);
	color: white;
}
.modal-body {
	padding: 20px;
	font-size: 1.25em;
	font-weight: bold;
	display: grid;
	grid-template-areas:
		"modal-body-header modal-body-header"
		"modal-body-image modal-body-details"
		"modal-body-footer modal-body-footer";
	grid-template-columns: 1fr 3fr;
	gap: 5px;
}
.modal-body a {
	text-decoration: none;
	color: var(--nintendo-red);
}
.modal-body p {
	margin-bottom: 12px;
}
.modal-body > div.modal-body-header {
	grid-area: modal-body-header;
	text-align: center;
}
.modal-body > div.modal-body-image {
	grid-area: modal-body-image;
}
.modal-body > div.modal-body-details {
	grid-area: modal-body-details;
}
.modal-body > div.modal-body-footer {
	grid-area: modal-body-footer;
}
#amiiboDetails-img {
	width: 400px;
	height: 400px;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	margin-right: 20px;
	padding: 25px;
}
.modal-footer {
	display: flex;
	margin-top: 10px;
	padding: 15px 20px;
	justify-content: space-between;
	align-items: center;
	position: relative;
}
.game-info {
	padding: 10px;
}
.platform-usage {
	padding-left: 10px;
}
.platform-name {
	padding: 10px;
	border-radius: 10px;
	color: white;
}
.platform-label {
	padding: 1px 4px;
	border-radius: 5px;
	color: white;
	font-size: small;
}
.platform-3DS {
	background-color: var(--3DS);
}
.platform-Switch {
	background-color: var(--nintendo-red);
}
.platform-Switch2 {
	background-color: var(--nintendo-red);
}
.platform-WiiU {
	background-color: var(--WiiU);
}
.game-usage-item {
	padding-left: 10px;
}
.usage-list {
	font-size: small;
	font-weight: normal;
	padding-left: 20px;
}
.current-game {
	padding-top: 5px;
	border-radius: 5px;
}
.current-3DS-game {
	background-color: var(--3DS-game);
}
.current-Switch-game {
	background-color: var(--Switch-game);
}
.current-Switch2-game {
	background-color: var(--Switch2-game);
}
.current-WiiU-game {
	background-color: var(--WiiU-game);
}
.current-game > * {
	font-weight: bold;
}

input[type="checkbox"] {
	display: block;
	width: 30px;
	height: 30px;
	margin-left: 12px;
}

@media (max-width: 768px) {
	body {
		padding: 0;
		margin: 0;
	}
	.container {
		max-width: 100vw;
	}
	.stats {
		flex-direction: column;
		gap: 15px;
	}
	table {
		font-size: 14px;
	}
	th, td {
		padding: 8px;
	}
	.amiibo-image {
		width: 40px;
		height: 40px;
	}
	.modal-header {
		grid-template-areas:
			"modal-header-close"
			"modal-header-name"
			"modal-header-in_collection";
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.modal-header > div.modal-header-name {
		justify-self: center;
	}
	.modal-body {
		grid-template-areas:
			"modal-body-header"
			"modal-body-image"
			"modal-body-details"
			"modal-body-footer";
		grid-template-columns: 1fr;
		gap: 5px;
	}
	.modal-body > div.modal-body-header, .modal-body > div.modal-body-image, .modal-body > div.modal-body-details {
		text-align: center;
	}
	.modal-body > div.modal-body-details {
		font-size: larger;
		display: grid;
		justify-items: center;
	}
	.regions {
		grid-template-columns: 150px 150px;
		margin-top: 10px;
	}
	.region-date {
		font-size: smaller;
	}
	.region-flag {
		width: 80px;
	}
	#amiiboDetails-img {
		width: 90%;
		height: 90%;
		margin-right: 0;
	}
}

.show-password-button {
	cursor: pointer;
	padding: 5px;
	border: none;
	background-color: #f8f9fa;
	border-radius: 5px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	margin-left: 5px;
	font-style: italic;
}
.show-password-button:hover {
	background-color: #e2e6ea;
}