@use "../../scss/abstracts/colors" as *;
@use "../../scss/abstracts/fonts" as *;

.item-card {
	max-width: 40vw;
	margin-top: 15px;
	margin-left: auto;
	margin-right: auto;

	.item-card-image {
		height: auto;
		max-width: 40vw;
		margin-left: auto;
		margin-right: auto;
	}

	.item-text {
		padding: 5px;
		display: flex;
		flex-direction: column;
		align-items: center;

		.item-card-name {
			font-size: 1.1rem;
			font-weight: bold;
			margin-top: 0;
			margin-bottom: 10px;
		}
		.item-card-description {
			font-size: 0.8rem;
			font-weight: normal;
			margin-top: 0;
			margin-bottom: 10px;
		}
	}

	@media screen and (min-width: 900px) {
		.tech-tag-list {
			display: flex;
			flex-direction: row;
			justify-content: center;

			.tech-tag {
				display: block;
				margin: 0 7px;
				padding: 2px 10px;
				background: $light;
				color: $primary;
				font-size: 0.8rem;
				border-radius: 6rem;
			}
		}
	}

	@media screen and (max-width: 900px) {
		.tech-tag-list {
			display: flex;
			flex-direction: column;
			align-items: center;
			height: auto;

			.tech-tag {
				display: block;
				margin: 5px 7px;
				padding: 2px 10px;
				background: $light;
				color: $primary;
				font-size: 0.8rem;
				border-radius: 6rem;
			}
		}
	}
}

img.item-card:first-of-type {
	margin-top: 0px;
}
