.outer-grid {
	display: flex;
	flex-wrap: wrap;
	width: 95%;
	margin: 0 auto;
}

.inner-grid {
	position: relative;
	flex: 31.33%;
	max-width: 31.33%; /* make 100% with margins */
	height: auto; /* add for small devices */
	margin: 1%;
	flex-direction: column;
	display: flex;
	background-color: var(--white);
	border-radius: 10px;
	padding: 1px;
	box-shadow: 10px 10px 16px 4px var(--grayverydark);
}

.inner-grid p {
	width: 95%;
	float: left;
	transition: .6s ease-in;
	opacity: 1;
	height: 55px;
	line-height: 55px;
}

.inner-grid p img {
	height: 55px;
	width: auto;
	opacity: 1;
	padding: 1px;
}

.inner-grid span {
	float: right;
}

.inner-grid img {
	width: 100%;
}

.text {
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	text-align: center;
	width: 100%;
}

.textfollow a img {
	height: auto; /*75px;*/
	width: 20%;
}

.textfollow img {
	height: auto; /*75px;*/
	width: 40%;
}

/* for background, font 2, 1/3 font 1 */
/* for background thickness, 0.075 of font 1 */
/* here new */
/* for background, font 2, 1/2 font 1 */
/* for background thickness, 0.1 of font 1 */


.link1,
.link1 a:link,
.link1 a:visited,
.link1 a:hover,
.link1 a:active {
	font-size: 36px;
	color: var(--white);
	opacity: .8;
	text-decoration: underline;
	text-decoration-color: var(--orange);
	text-decoration-thickness: 3.6px;
}

.link2,
.link2 a:link,
.link2 a:visited,
.link2 a:hover,
.link2 a:active {
	font-size: 18px;
	color: var(--white);
	opacity: .8;
	text-decoration: none;
}

/* hovering */
.overlay {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100%;
	width: 100%;
	opacity: 0;
	transition: .6s ease-in;
	background-color: var(--black);
	border-radius: 10px;
}

.overlayfollow{
	background-color: var(--white);
}

.inner-grid:hover .overlay, 
.inner-grid:active .overlay {
	opacity: 0.75;
}

.inner-grid:hover span, 
.inner-grid:hover p {
	transition: .6s ease-in;
	opacity: 0;
}

.inner-grid:hover {
	box-shadow: none;
}

.inner-grid-soon:hover {
	box-shadow: 10px 10px 16px 4px var(--grayverydark);
}

/* slight movement of the containers use js */
.scroll-animate {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* iphone portrait */
@media only screen and (max-width: 450px) {
	.inner-grid {
		flex: 94%;
		max-width: 94%;
		margin: 3%; /* only for this screen */
	}
	.inner-grid p {
		height: 40px;
		line-height: 40px;
	}
	.inner-grid p img {
		height: 40px;
	}
	.link1, .link1 a:link, .link1 a:visited, .link1 a:hover, .link1 a:active {
		font-size: 25px;
		text-decoration-thickness: 2.5px;
	}
	.link2, .link2 a:link, .link2 a:visited, .link2 a:hover, .link2 a:active {
		font-size: 12.5px;
	}
}
	
/* iphone landscape */
@media only screen and (min-width: 450px) and (max-width: 900px) { 
	.inner-grid {
		flex: 48%;
		max-width: 48%;
	}
	.inner-grid p {
		height: 40px;
		line-height: 40px;
	}
	.inner-grid p img {
		height: 40px;
	}
	.link1, .link1 a:link, .link1 a:visited, .link1 a:hover, .link1 a:active {
		font-size: 25px;
		text-decoration-thickness: 2.5px;
	}
	.link2, .link2 a:link, .link2 a:visited, .link2 a:hover, .link2 a:active {
		font-size: 12.5px;
	}
}
	
/* ipad portrait */
@media only screen and (min-width: 900px) and (max-width: 1100px) { 
	.inner-grid {
		flex: 48%;
		max-width: 48%;
	}
	.inner-grid p {
		height: 45px;
		line-height: 45px;
	}
	.inner-grid p img {
		height: 45px;
	}
	.link1, .link1 a:link, .link1 a:visited, .link1 a:hover, .link1 a:active {
		font-size: 30px;
		text-decoration-thickness: 3px;
	}
	.link2, .link2 a:link, .link2 a:visited, .link2 a:hover, .link2 a:active {
		font-size: 15px;
	}
}
	
/* ipad landscape */
@media only screen and (min-width: 1100px) and (max-width: 1400px) { 
	.inner-grid {
		flex: 31.33%;
		max-width: 31.33%;
	}
	.inner-grid p {
		height: 45px;
		line-height: 45px;
	}
	.inner-grid p img {
		height: 45px;
	}
	.link1, .link1 a:link, .link1 a:visited, .link1 a:hover, .link1 a:active {
		font-size: 30px;
		text-decoration-thickness: 3px;
	}
	.link2, .link2 a:link, .link2 a:visited, .link2 a:hover, .link2 a:active {
		font-size: 15px;
	}
}
