﻿/*<meta conditions="" />*/

/**************************************************/
/*           CARD CONTAINER PROPERTIES            */
/**************************************************/

#card-container
{
	width: 100%;
	display: flex;
	margin-top: 30px;
	justify-content: center;
	align-items: center;
}

#card-delimiter
{
	width: 680px;
	height: auto;
	display: flex;
	justify-content: space-between;
	align-items: space-between;
	flex-wrap: wrap;
}

/**************************************************/
/*             GLOBAL CARD PROPERTIES             */
/**************************************************/
/* All the cards look the same, but it's possible to overwrite some parts (see below) */

.card-items,
.card-block
{
	width: 215px;
	height: 180px;
	border-radius: 16px;
	background-color: white;
	border: 1px solid #E1E1E1;
	box-shadow: 0px 0px 20px 0px #32323214;
	padding: 8px;
	box-sizing: border-box;
	margin-bottom: 16px;
	transition: box-shadow .3s ease-in-out;
	position: relative;
}

.card-fake
{
	width: 215px;
	height: 180px;
	padding: 8px;
	box-sizing: border-box;
	position: relative;
}

.card-items:hover,
.card-block:hover
{
	box-shadow: 0px 10px 30px 0px rgba(50, 50, 50, 0.2);
}

/* Overwrite a card with no blue border at the bottom and grey background. 
Use this *ONLY* when a card contains links that point outside the current website project. */

.card-items.card-external,
.card-block.card-external
{
	background-color: #f9f9f9;
}

/* Global card title properties. */

.card-items-title,
.card-block-title
{
	width: 100%;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
	color: #00436C;
	box-sizing: border-box;
}

/* To mark a card as New */

.card-block-new,
.card-items-new
{
	font-size: 10px;
	text-transform: capitalize;
	border-radius: 0 8px 0 8px;
	color: white;
	background-color: #D23467;
	padding: 2px 8px;
	position: absolute;
	top: 0;
	right: 0;
}

/**************************************************/
/*    SPECIFIC PROPERTIES FOR ITEMS CARD (LIST)   */
/**************************************************/
/* Specific padding for card items title */

.card-items-title
{
	padding: 12px 0;
}

/* When a title is too big (2 lines), use also title-2lines to overwrite the padding */

.card-items-title.title-2lines,
.card-items.title-2lines .card-items-title
{
	padding: 3.5px 0;
}

.card-items-title img
{
	width: 20px;
	margin: 0 6px 0 0;
	vertical-align: middle;
}

/* Specific styles for list items. */

.card-items ul
{
	list-style: none;
	padding: 0;
	margin: 0;
	text-align: left;
}

.card-items li
{
	font-size: 14px;
	line-height: 28.5px;
	color: #0077C0;
	border-bottom: .5px solid #D3D3D3;
	padding: 0 4px;
	box-sizing: border-box;
	margin-bottom: 0px;
	margin-top: 0px;
}

.card-items ul li:nth-child(4)
{
	border-bottom: none;
}

.card-items li a
{
	text-decoration: none;
}

.card-items li.item-2lines
{
	line-height: 1.5rem;
}

/* When a link of the list points outside the Technical Documentation website */

.card-items li a[target=_blank]::after
{
	content: '\f08e';
	font-family: "Font Awesome 6 Free";
	font-size: 11px;
	line-height: 28px;
	margin: 0 0 0 6px;
	float: right;
}

/* To mark an item of the list as New */

.card-items li a.new-item::after
{
	content: 'New';
	font-size: 10px;
	line-height: 14px;
	border-radius: 8px;
	color: white;
	background-color: #D23467;
	padding: 1px 6px;
	margin: 5px;
	position: relative;
	top: -2px;
}

/**************************************************/
/*         SPECIFIC BLOCK CARD PROPERTIES         */
/**************************************************/
/* Specific height for card block title */

.card-block-title
{
	line-height: 24px;
}

/* For card with no text (title only with a button) */

.card-block-title.title-only, 
.card-block.title-only .card-block-title
{
	height: 60px;
}

.card-block.title-2lines .card-block-title
{
	line-height: 17px;
  	margin-bottom: 2px;
}

div.card-block img
{
	height: 40px;
	display: block;
	margin: 8px auto 8px auto;
}

.card-block-txt
{
	height: 36px;
	color: #5F5F5F;
	text-align: center;
	padding: 0 4px;
	box-sizing: border-box;
	font-size: 12px;
}

.card-block.title-2lines .card-block-txt
{
	height: 24px;
}

/* Red button for links that point to the Technical Documentation website. */

a.card-button
{
	font-size: 13px;
	border-radius: 24px;
	padding: 5px 15px;
	border: 1px solid #D23467;
	color: #D23467;
	background-color: #FFFFFF;
	margin: 9px auto 8px;
	box-sizing: border-box;
	box-shadow: 0px 2px 3px rgba(0, 0, 0, .1);
	display: block;
	transition: box-shadow 0.3s ease;
	font-weight: 600;
	max-width: fit-content;
}

a.card-button:hover
{
	box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.2);
	cursor: pointer;
}

/* Overwrite the color of the button to blue for links that point outside the Technical Documentation website. */

.card-block.card-external a.card-button[target=_blank]
{
	border: 1px solid #0077C0;
	color: #0077C0;
}

.card-block a.card-button[target=_blank]::after
{
	content: '\f08e';
	font-family: "Font Awesome 6 Free";
	font-size: 10px;
	margin: 0 0 0 6px;
}

/**************************************************/
/*  SPECIFIC WIDTH AND HEIGHT FOR OTHER DEVICES   */
/**************************************************/

@media (max-width: 800px)
{
	.card-items,
	.card-block
	{
		width: 49%;
		margin-bottom: 16px;
	}

	#card-container
	{
		align-items: baseline;
	}
	
	#card-delimiter
	{
		width: 100%;
	}
}

@media (max-width: 500px)
{
	.card-items,
	.card-block
	{
		width: 100%;
		margin-bottom: 16px;
	}

	#card-container
	{
		align-items: baseline;
	}
}