@font-face {
  font-family: 'Catamaran';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/catamaran/catamaran_n6.53b785de78da59300ed9a5635d606ccb7fe5e5b7.woff2') format('woff2'),
       url('assets/fonts/catamaran/catamaran_n6.c88557bf35f4fdfac7c412fe424f66692d09fcc3.woff') format('woff');
}

@font-face {
  font-family: 'Catamaran';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/catamaran/catamaran_n7.833cefb687fff43803eb5258b2a69a908a79f6b3.woff2') format('woff2'),
       url('assets/fonts/catamaran/catamaran_n7.61e26a080765a04cf6b3c3cb52334da048528798.woff') format('woff');
}

:root {
  --color-background: 30, 31, 36;
  --color-foreground: 238, 238, 238;
  --color-button: 221, 29, 29;
  --color-button-text: 255, 255, 255;
  --font-body-family: 'Catamaran', sans-serif;
}

body {
	font-family: Arial, sans-serif;
	background-color: #000;
	color: rgb(var(--color-foreground));
}

p {
	color: rgb(var(--color-foreground));
	line-height: 1.8rem;
}

.announcement-bar {
  background-color: #1e1f24;
  color: #eeeeee;
  text-align: center;
  padding: 10px 0;
}

header {
  background-color: #272b37;
  padding: 10px 0;
  text-align: center;
}

header img {
  width: 50px;
  height: auto;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.game-showcase {
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
}

.game-entry {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	text-align: left;
	max-width: 800px;
	margin: 0 auto;
}

.game-entry-steam {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	text-align: left;
	max-width: 800px;
	margin: 0 auto;
}

.game-entry-img-link {
	display: inline-block;
	text-decoration: none;
}

.game-entry-img-style,
.game-entry img {
	width: 40%;
	max-width: 300px;
	height: auto;
	border-radius: 10px;
	margin-right: 20px;
	object-fit: cover;
	margin-top: 5px;
}

.game-entry-img-style {
	width: 100%;
	max-width: 300px;
	height: auto;
	border-radius: 10px;
	margin-right: 20px;
	object-fit: cover;
	margin-top: 5px;
}

.game-info {
	width: 55%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.game-info h2 {
	margin: 0;
}

.game-info p {
	margin: 0;
	font-size: 14px;
	font-weight: 300;
}

.game-info .buttons {
	display: flex;
	gap: 10px;
	color: #ddd;
}

.game-info a {
	display: inline-block;
	color: red;
	text-decoration: none;
	font-weight: 700;
}

.game-info a:visited {
  color: #C1121F; /* Darker red */
}

.game-details a:visited {
  color: #C1121F; /* Darker red */
}

.game-info a:hover {
	text-decoration: underline;
}

.game-info a img {
	width: 24px;
	height: 24px;
	vertical-align: middle;
	margin-right: 0;
	margin-top: 0;
	border-radius: 0;
}

.game-entry:nth-child(odd) img {
	order: -1;
}

.title {
	white-space: nowrap;
	margin-bottom: 20px;
	font-size: 36px;
	color: white;
	text-align: center;
}

.title,
.subtitle {
	text-align: center;
	margin-left: 40px;
	margin-right: 40px;
}

.subtitle {
	margin-bottom: 2rem;
}

.search-container {
	display: flex;
	flex-wrap: wrap;
	border: none;
	justify-content: center;
	margin: 40px auto 20px;
}

.search-container input[type=text] {
	padding: 4px;
	font-size: 13px;
	border: 1px solid #5a5a5a;
	height: 30px;
	border-radius: 4px;
	width: 50%;
	max-width: 300px;
	margin: 10px;
	background: #3c3e4a;
	color: rgb(var(--color-foreground));
}

.search-container select {
	padding: 4px;
	font-size: 13px;
	border: 1px solid #5a5a5a;
	border-radius: 4px;
	width: 20%;
	max-width: 150px;
	margin: 10px;
	height: 30px;
	background: #3c3e4a;
	color: rgb(var(--color-foreground));
}

#searchBox {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid #666;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

#sortOption {
  padding: 10px;
  border: 1px solid #666;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

#loadMoreButton {
  background-color: rgb(var(--color-button));
  color: rgb(var(--color-button-text));
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

#loadMoreButton:hover {
  opacity: 0.9;
}

.review-score.red {
	color: red;
}

.review-score.orange {
	color: orange;
}

.review-score.green {
	color: green;
}

.red {
	color: #c60505;
}

.orange {
	color: #f9b81b;
}

.green {
	color: #89f245;
}

#gameList {
	width: 100%;
	text-align: center;
	display: flex;
	gap: 50px;
	flex-direction: column;
	margin-bottom: 60px;
}

.buy-button {
	padding: 10px 20px;
	background-color: #ED1C24;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}

.game-details {
	margin-bottom: 20px;
	margin-left: 20px; 
	margin-right: 20px;
}

a {
  color: rgb(var(--color-button));
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  background-color: #272b37;
  color: #eeeeee;
  text-align: center;
  padding: 15px 0;
}

@media (max-width: 768px) {
	.title {
		font-size: 24px;
	}
    
	.game-info h2 {
		margin-top: 10px;
		margin-bottom: 5px;
		text-align: center;
	}

	.game-entry {
		flex-direction: column;
		text-align: justify;
		align-items: center;
		margin: 20px 40px;
	}

	.game-entry img,
	.game-info {
		width: 100%;
		margin-top: 0;
		margin-right: 0;
	}

	.game-info .buttons {
		justify-content: flex-end;
		margin-left: 20px; 
		margin-right: 20px;
	}

	.game-entry:nth-child(odd) img {
		order: 0;
	}

	.search-container {
		margin: 40px;
	}

	.search-container input[type=text] {
		width: 100%;
		max-width: unset;
	}

	.search-container select {
		width: auto;
		flex: 1;
		max-width: unset;
	}
	
	.game-details {
		margin-bottom: 20px;
		margin-left: 20px; 
		margin-right: 20px;
	}
	
	.buy-button {
		padding: 10px 20px;
		background-color: #ED1C24;
		color: white;
		border: none;
		border-radius: 5px;
		cursor: pointer;
	}
	
	.game-entry-steam {
		max-width: 800px; 
		margin: 0 auto;
		display: flex;
		align-items: flex-start;
		justify-content: flex-start;
		text-align: left;
	}
    
    .search-container {
        flex-direction: column;
    }
}

@media (min-width: 768px) {
  .search-container {
    flex-direction: row;
  }
}