/* Dark Theme with Bootstrap */
body {
	background-color: #121212;
	color: #e0e0e0;
	font-family: Arial, sans-serif;
	padding-top: 30px; /* Reduced padding at the top */
}

h1 {
	color: #f5a623;
	font-size: 3em;
}

/* Center elements horizontally */
.container {
	text-align: center;
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 250px;
    background-color: #333;
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
	z-index: 1;
}

.sidebar.collapsed {
    width: 0px;
}

.sidebar .group-buttons {
    display: flex;
    gap: 10px;
}

.sidebar .group-btn, .sidebar .func-btn {
    width: 75%;
    text-align: left;
}

/* Sidebar Toggle Button */

.sidebar-toggle.collapsed {
	left: -1em;
	transform: rotate(0deg);
}

.sidebar-toggle {
    position: fixed;
    top: 10px;
    width: 40px;
    height: 40px;
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    transform: rotate(180deg);
	left: 14em;
	z-index: 2;
}

.sidewrap.collapsed .sidebar-toggle {
    transform: rotate(0deg);
}

/* Main Content */
.main-content {
    transition: margin-left 0.3s;
}

.sidebar.collapsed + .main-content {
    margin-left: 50px;
}

.game-item {
	margin: 10px 0;
	padding: 10px 20px;
	background-color: #333;
	border-radius: 12px; /* Round corners */
	width: 100%; /* Reduced width by 20% */
	text-align: right;
	transition: background-color 0.3s ease;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.game-item:hover {
	background-color: #444;
}

/* Game Name Section */
.game-name-container {
	display: flex;
	justify-content: space-between;
	width: 100%;
	align-items: center;
}

/* Game Name Styling - Aligned to the left */
.game-name {
	font-size: 1.5rem; /* Game name font size increased */
	color: #d5d3cd;
	font-weight: bold;
	text-align: left;
	width: 60%; /* Game name takes up 60% of the width */
}

/* Platform and Series Section */
.game-info {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	width: 35%; /* Platform and series take up 35% of the space */
}

.game-details {
	font-size: 0.8rem;
	color: #a0a0a0; /* Slightly gray text for platform and series */
	margin-top: 5px;
}

/* Game Icon - Aligned to the right of the platform/series section */
.game-icon {
	width: 30px;
	height: 30px;
	margin-left: 10px;
	align-self: center; /* Ensures icon is vertically aligned */
}

/* Checkbox Styling */
.game-checkbox {
	margin-right: 15px;
	box-shadow: 0px 0px 0px 1px rgb(245, 166, 35);
}

/* Group Buttons Styling */
.group-buttons {
	margin-top: 20px;
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.group-btn, .func-btn {
	padding: 8px 8px;
	background-color: #444;
	color: #e0e0e0;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	margin-top: 1px;
	margin-bottom: 1px;
}

.act-btn {
	padding: 8px 8px;
	background-color: #444;
	color: #e0e0e0;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	margin-top: 1px;
	margin-bottom: 20px;
	font-size: 1.25em;
	min-width: 250px;
}

.group-btn:hover, .func-btn:hover {
	background-color: #f5a623;
}


/* Active Group Button Styling */
.group-btn.active, .func-btn.active {
	background-color: #f5a623;
	color: #121212; /* Darker text color for contrast */
}

/* Loading and Game Display */
.game-display {
	display: block;
	margin-top: 20px;
	margin-bottom: 20px;
	font-size: 2.5em;
	font-weight: bold;
	color: #f5a623;
	min-height: 30px; /* Set a minimum height */
}

/* Button styling */
button {
	padding: 10px 20px;
	background-color: #444;
	color: #e0e0e0;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	margin: 10px;
}

/* Button Hover Effect */
button:hover {
	background-color: #f5a623;
}

/* Button Active (Clicked) Animation */
button:active {
	transform: scale(1); /* Slightly shrink the button when clicked */
}

/* Light animation when clicked for show all games and randomize game buttons */
#showAllBtn:active,
#randomizeBtn:active {
	animation: buttonClick 0.3s ease;
}

/* Define the click animation */
@keyframes buttonClick {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(0.9); /* Scale up slightly */
	}
	100% {
		transform: scale(1); /* Return to original size */
	}
}

/* Input styling */
.game-checkbox:checked {
	background-color: #f5a623;
	border-color: #f5a623;
	accent-color: #f5a623;
}

/* Responsive layout for buttons */
.btn-group {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

/* Hidden class for hiding unchecked games */
.hidden { display: none; }

/* Series Filter Styling */
.filter-filter {
    margin-top: 20px;
}

.group-button-label, .filter-label {
    color: #e0e0e0;
    font-size: 1rem;
    margin-bottom: 5px;
    display: block;
}

.filter-dropdown {
    width: 80%;
    padding: 8px;
    background-color: #444;
    color: #e0e0e0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.filter-dropdown:hover {
    background-color: #555;
}