/* Homepage styles.

   developer:   marionm, yhechler
   requires:    /common/framework/css/framework.en.css
                /common/framework/css/gui.en.css
   ========================================================================== */

/* ==========================================================================
   shared page styles
   ========================================================================== */

html {
	color: #313131;
	font-family: 'Source Sans Pro', Arial, sans-serif;
}
main a {
	color: #dd1100;
}
main a:hover {
	color: #f77700;
}
main h1 {
	color: #dd1100;
	font-size: 3.125rem;
	font-weight: 600;
	margin: 2rem 0;
	text-align: center;
}
main h2 {
	color: #dd1100;
	font-size: 2rem;
	font-weight: 600;
	margin-bottom: 2rem;
	text-align: center;
}
main h3 {
	color: #dd1100;
	font-size: 1.25rem;
	font-weight: 600;
}
main p {
	color: #5d5d5d;
	line-height: 1.5;
}
.page-width {
	max-width: 1000px;
	min-width: 294px;
	padding: 2.5rem 1rem 3.0rem 1rem;
}
/* centered card
   ========================================================================== */

.card-centered {
	display: block;
	text-align: center;
}
.card-centered.top-links div, .card-centered.secondary-links div {
	display: inline-block;
	float: none;
}
.card-centered.top-links {
	font-size: 1.3rem;
	margin: 0 0 1.5rem;
}
.card-centered.secondary-links {
	margin: 0 0 2rem;
}
.card-centered.secondary-links a {
	color: #5d5d5d;
}
.card-centered.secondary-links a:hover {
	color: #f77700;
}
.card-centered a:hover h3 {
	color: #f77700;
}
.card-centered div>a {
	display: block;
	margin: 0 auto;
	text-align: center;
}
.card-centered img:not(#misc img) {
	border-radius: 1rem;
	margin-bottom: 1.25rem;
}
.card-centered p {
	display: block;
	margin: 0 auto;
	text-align: center;
}
/* flex-block
   ========================================================================== */

.flex-wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
}
.flex-item {
	flex: 1 1 calc(49% - 1rem);
	margin-right:15px;
	margin-bottom: 3rem;
}
.flex-wrapper.three-columns .flex-item {
	flex: 1 1 calc(33% - 1rem);
	margin-right:8px;
}
.flex-item a, .flex-item-wrapper {
	align-items: flex-start;
	color: inherit;
	display: flex;
	text-decoration: none;
}
.flex-item .img-wrapper {
	align-items: center;
	display: flex;
	flex: 0 0 75px;
	justify-content: right;
	margin-right: 1rem;
}
.flex-item .img-wrapper img {
	display: block;
	height: auto;
	max-width: 100%;
}
.flex-item .text {
	display: flex;
	flex-direction: column;
}
.flex-item h3 {
	color: #313131;
	font-size: 1.25rem;
	margin: 0 0 0.25rem 0;
}
.flex-item p {
	color: rgba(93, 93, 93, 1);
	font-size: 1rem;
	line-height: 1.4;
	margin: 0;
	max-width: 300px;
}
.flex-wrapper.three-columns .flex-item p, .flex-wrapper.three-columns .flex-item h3 {
	max-width: 200px;
}

/* header
   ========================================================================== */

#header p {
	color: #575757;
	font-size: 1.3125rem;
	font-weight: 300;
	line-height: 1.5;
	margin-bottom: 2rem;
}
#header .cols-3 {
	font-size: 1.25rem;
	margin-bottom: 2rem;
	text-align: center
}
#header .cols-3 a:not(:last-of-type) {
	margin-right: 2rem;
}
#header .cols-2 a {
	color: #5d5d5d;
}
#header .cols-2 a:hover {
	color: #dd1100;
}
#header .cols-2 a span {
	font-size: 1.125rem;
}
/* instant access
   ========================================================================== */

#instant-access {
	background: #fdd47c;
}
#instant-access h2, #instant-access h3 {
	color: #000;
}
#instant-access a {
	color: #000;
}
#instant-access a:hover, #instant-access a:hover h3 {
	color: #f77700;
}
#instant-access a:first-of-type h3 {
	line-height: 1.4;
}
#instant-access a:last-of-type h3 {
	margin-bottom: .2rem;
}
/* learn wolfram language
   ========================================================================== */

#learn-wl a {
	color: #5d5d5d;
	font-weight: 600;
	margin-right:0.5rem;
}
#learn-wl .flex-item h3 {
	color: #dd1100;
}
#learn-wl .card-centered h3 {
	margin-bottom: 1rem;
}
#learn-wl a:hover {
	color: #dd1100;
}
#learn-wl p+p {
	margin-top: .5rem;
}
#learn-wl img.border{
	border:1px solid #d1d1d1;
}
/* development environments
   ========================================================================== */

#dev-environments {
	background: #ededed;
}
#dev-environments a:hover h3, #dev-environments a:hover, #dev-environments a:hover span {
	color: #dd1100;
}
#dev-environments a span {
	font-size: 1.0625rem;
	font-weight: 600;
}
#dev-environments .flex-item {
	margin-bottom: 0.5rem;
}
#dev-environments .three-columns .flex-item .img-wrapper {
	flex: 0 0 30px;
	margin-right: 0.7rem;
}
#dev-environments span.chevron-after{
	margin-right:0.5rem;
}
/* development communities
   ========================================================================== */

#dev-communities .page-width {
	max-width: 1098px;
}
#dev-communities .flex-wrapper.three-columns .flex-item {
	flex: 0 0 calc(33.333% - 1rem);
}
#dev-communities .flex-wrapper.three-columns .flex-item a{
	align-items: center; 
}
#dev-communities .flex-wrapper.three-columns .flex-item .text{
	/* margin-top:1.25rem; */
	justify-content: center;
}
#dev-communities .flex-wrapper.three-columns .flex-item a:hover h3{
	color: #dd1100;
}
/* deployment channels
   ========================================================================== */

#deployment-channels a:hover h3 {
	color: #f77700;
}
/* repositories
   ========================================================================== */

#repositories {
	background: #ededed;
}
#repositories h3, #repositories a {
	color: #313131;
}
#repositories p a {
	color: #5d5d5d;
}
#repositories a:hover h3, #repositories a:hover, #repositories p a:hover {
	color: #dd1100;
}
/* education material
   ========================================================================== */

#education-material {
	background: #dd1100;
}
#education-material h2, #education-material h3, #education-material p {
	color: #fff;
}
#education-material a {
	color: #fff;
}
#education-material a:hover h3, #education-material a:hover {
	color: #000;
}
#education-material .img-wrapper {
	justify-content: center;
	width: 100px;
}
/* misc
   ========================================================================== */

#misc {
	padding: 3.625rem 1rem;
}
#misc .page-width{
	padding: 0;
}
#misc a {
	color: #fff;
}
#misc a:hover {
	color: #000;
}
#misc span:first-child {
	display: block;
	margin: 0 auto;
	max-width: 468px;
	position: relative;
}
#misc span.chevron-after {
	background: #dd1100;
	bottom: 2rem;
	display: block;
	font-size: 1.25rem;
	padding: .25rem 1rem;
	position: absolute;
	right: 0;
	text-align: right;
}
/* ==========================================================================
   responsive breakpoint styles
   ========================================================================== */

/* styles for large screens (1200px)
   ========================================================================== */

@media all and (max-width: 1200px) {
	.page-width{
		padding: 2.5rem 4rem 3.0rem 4rem;
	}
}
/* styles for medium screens (900px)
   ========================================================================== */

@media all and (max-width: 900px) {
	.page-width{
		padding: 2.5rem 2rem 3rem 2rem;
	}
	#dev-environments .mini-m>div:first-child {
		padding: .5rem 0;
	}
	#deployment-channels .two-columns {
		max-width: 560px;
	}
	#dev-communities .flex-wrapper.three-columns .flex-item {
		flex: 0 0 calc(50% - 1rem);
	}
	#misc span.chevron-after {
		font-size: 1.1rem;
	}
}
/* styles for small screens (600px)
   ========================================================================== */

@media all and (max-width: 600px) {
	main h1 {
		margin-top: 0;
	}
	main h2 {
		text-align: left;
	}
	.page-width {
		padding: 2.5rem 2rem 1.5rem;
	}
	.card-centered.top-links a {
		margin: 12px 0;
	}
	.card-centered div>a {
		text-align: left;
	}
	.flex-item, .flex-wrapper.three-columns .flex-item, #dev-communities .flex-wrapper.three-columns .flex-item {
		flex: 1 1 100%;
	}
	.flex-item {
		margin-bottom: 2.0rem;
	}
	.flex-item img {
		margin-right: 1.0rem;
	}
	.flex-item:not(#instant-access .flex-item, #learn-wl .flex-item, #dev-environments .flex-item) img {
		height: auto;
		max-width: 45px;
	}
	.flex-item p {
		max-width: unset;
	}
	.flex-wrapper.three-columns .flex-item p, .flex-wrapper.three-columns .flex-item h3 {
		max-width: unset;
	}
	.flex-item .img-wrapper {
		flex: 0 0 50px;
		margin-right: 0;
	}
	#dev-communities .flex-wrapper.three-columns .flex-item .text{
		margin-top:0.5rem;
	}
	#dev-environments .flex-item {
		margin-bottom: 1.0rem;
	}
	#dev-environments .flex-wrapper.two-columns .flex-item .img-wrapper {
		flex: 0 0 60px;
		margin-right: 2.5rem;
	}
	#dev-environments .flex-wrapper.three-columns .flex-item a {
		align-items: center;
	}
	#dev-environments .flex-wrapper.three-columns img{
		max-width:75%;
	}
	#dev-environments .flex-item .img-wrapper {
		justify-content: space-around;
	}
	#dev-environments .three-columns .flex-item .img-wrapper {
        margin-right: 0.4rem;
    }
	#education-material .img-wrapper {
		width: auto;
	}
	#instant-access .flex-wrapper, #learn-wl .flex-wrapper {
		display: flex;
		flex-wrap: wrap;
	}
	#instant-access .flex-item, #learn-wl .flex-item {
		align-items: center;
		display: flex;
		flex: 1 1 100%;
	}
	#instant-access .flex-item:first-child, #learn-wl .flex-item:first-child, #learn-wl .flex-item:nth-child(2n) {
		margin-bottom: 41px;
	}
	#instant-access .flex-item img, #learn-wl .flex-item img {
		border-radius: 1rem;
		margin-right: 2rem;
	}
	#learn-wl .flex-item img.border{
		border: 1px solid #d1d1d1;
	}
	#instant-access .flex-item .text, #learn-wl .flex-item .text {
		display: flex;
		flex-direction: column;
	}
	#instant-access .flex-item .link-row, #learn-wl .flex-item .link-row {
		display: flex;
		gap: 1rem;
		margin-top: 0.25rem;
	}
	#instant-access .flex-item h3, #learn-wl .flex-item h3 {
		margin: 0 0 0.5rem 0;
	}
}
/* styles for minimum supported screen width (320px)
   ========================================================================== */

@media all and (max-width: 320px) {}
/* printer styles
   ========================================================================== */

@media print {}