/* Game details (title, publisher, year etc.), screenshots and review */

/* Container for storing reviews and their corresponding screenshots */

div.review-container {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	background-color: #242424;
	padding: 7px 5px 7px 5px;
	border-radius: 12px;
	margin: 12px auto 12px auto;
	width: auto;
}

div.review-container:last-of-type {
	margin-bottom: 0;
}

div.review-container figure.screenshot {
	display: block;
	background-color: transparent;
	border-radius: 0;
	box-sizing: border-box;
	flex: 0 1 384px;
	margin: 8px;
	padding: 0;
}

div.review-container figure.screenshot > figcaption {
	margin-top: 0.75em;
}

div.review-container div.review {
	box-sizing: border-box;
	flex: 1 1 562px;
	margin: 8px;
	vertical-align: top;
	width: auto;
}

img.review-screenshot {
	display: block;
	margin-left: auto; margin-right: auto;
	vertical-align: middle;
}

.review-title {
	margin-bottom: 0;
	text-align: center;
}

h2.review-title {
	font-size: 150%;
	font-weight: bold;
	line-height: 1.4em;
	margin-top: 0;
}

div.review-title-info {
	margin-top: 0; margin-bottom: 0;
	text-align: center;
}

p.reviewer {
	font-style: italic;
	margin-top: 0;
	text-align: center;
}

p.publisher {
	margin: 0;
	text-align: center;
}

p.review {
	font-size: 100%;
	margin-top: 1em; margin-bottom: 1.4em;
}

p.rating {
	font-size: 180%; font-weight: bold;
	margin-top: 0.8em; margin-bottom: 0;
	text-align: center;
}

p.tacgr, p.cpcsofts {
	text-align: left;
}

p.youtube-links {
	display: table-row;
	text-align: left;
	border: solid red 1px;
}

p.youtube-links > span:first-of-type {
	display: inline-block;
	margin-right: 6px;
	width: max-content;
}

p.youtube-links > span:nth-of-type(2) {
	display: table-cell;
}

p.youtube-links img {
	vertical-align: middle;
}

/* Additional notes associated with a review */

div.review-notes {
	background-color: #383838;
	border-radius: 6px;
	margin: 1em 0;
	padding: 6px;
}

div.review-notes img {
	display: inline-block;
	vertical-align: middle;
}

div.review-notes ul {
	display: table;
	margin: 0;
	padding-left: 0;
}

div.review-notes ul > li {
	display: table-row;
}

div.review-notes ul > li > span {
	display: table-cell;
}

div.review-notes ul > li > span:first-of-type {
	display: inline-block;
	margin-right: 6px;
	text-align: center;
	width: max-content;
}

div.review-notes ul > li > span {
	text-align: justify;
	vertical-align: top;
}

.screenshot-thumbnail-container {
	box-sizing: border-box;
	border-radius: 12px;
	padding: 12px;
	background-color: #242424;
	width: 282px;	/* = 256px for thumbnail + 2*12px for padding */
	max-width: 282px;
}

div.screenshot-thumbnail {
	display: table;
	margin-left: auto; margin-right: auto;
	max-width: 100%;
}

div.screenshot-thumbnail > div {
	display: table-cell;
	text-align: center;
	vertical-align: middle;
	margin-top: 0; margin-bottom: 0;
	width: 256px; height: 160px; max-width: 100%;
}

div.screenshot-thumbnail img.review-screenshot {
	width: auto; max-width: 100%; height: auto; max-height: 100%;
	object-fit: scale-down;
}

.screenshot-thumbnail-container p {
	margin-top: 0.5em; margin-bottom: 0.5em;
}

.screenshot-thumbnail-container p.review-title {
	margin-top: 0.5em; margin-bottom: 0;
}
.screenshot-thumbnail-container p.publisher {
	margin-top: 0; margin-bottom: 0;
	white-space: wrap;
}

/* Use a different background colour for the sample review on the 'About' page */

div#about-review-container div.review-container {
	background-color: #303030;
}
