* {margin: 0; padding:0; box-sizing: border-box;}

main, nav {display: block;}

html {
	background-image: url("images/services.jpg");
	background-repeat: no-repeat;
	background-size: 1200px;
	background-position: 27% 19%;
	z-index: -2;
	
}

body {
	background-color: #EEEEEE;
	
}

main {
	padding: calc(65px + 10vh) 1.4em 0 2.7em;
	width: 100%;
	font-family: 'Abel', sans-serif;
	color: black;
	background-color: rgba(245, 241, 242, 0.59);
	
	font-weight: bold;
	position: absolute;
	height: 100%;
	
}
h1 {font-size: 2.2em; padding-bottom: 0.5em;}

p {padding-bottom: 0.5em; font-weight: bold; font-size: 1.3em;}

.uniquep, .responsivep, .managep, .socialp {
	max-height: 0px;
	opacity: 0;
	box-sizing: unset;
	transition: all 0.8s;
	padding: 1.3em;
	/*margin-right: 1.3em;*/
	margin: auto;
	font-weight: bold;
	color: #363636;
	font-size: 1em;
	border-radius: 0.4em;
	background-color: #EFEFEF;
	border: 1px solid black;
	box-shadow: 0.3em 0.3em 0.3em #363636;
	position: absolute;
	right: 3em;
	max-width: 500px;
	background-image: url("images/bluey.jpg");
}

.services label {
	border-radius: 0.3em;
	background-color: #9b9b9b;
	padding: 0 0.3em;
	
	width: 70%;
	overflow: hidden;	
}

label:hover {
	cursor: pointer;
	background-color: #8EE5EE;
}

a:visited {color: black;}
a {color: black;}

a:hover {
	color: #8EE5EE;
	transition: all 0.3s;}

a.nonmobile {visibility: hidden;}

h3 {padding: 0.6em 0;}
h3 > label, h3 > input {position: fixed; right: 0px;}


.unique-checkbox, .responsive-checkbox, 
.manage-checkbox, .social-checkbox,
.samples {
	display: none;
}

.unique, .responsive, .manage, .social {
	cursor: pointer;
	position: relative;
	user-select: none;
}

.unique-checkbox:checked ~ .uniquep,
.responsive-checkbox:checked ~ .responsivep,
.manage-checkbox:checked ~ .managep, 
.social-checkbox:checked ~ .socialp {
	
	max-height: 7.6em;
	opacity: 1;
	/*padding: 1.3em 1.3em 1.9em 1.3em;*/
	margin: auto;

	
	
}

.unique-checkbox:checked ~ .uniquep {z-index: 4;}
.responsive-checkbox:checked ~ .responsivep {z-index: 3;}
.manage-checkbox:checked ~ .managep {z-index: 2;} 
.social-checkbox:checked ~ .socialp {z-index: 1;}

@-webkit-keyframes fadeIn {
  from {opacity: 0;} 
  to {opacity: 1;}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity:1 ;}
}

@media screen and (min-width: 700px){

	html {
		background-image: url("images/crete.jpg");
		background-size: cover;
		background-repeat: no-repeat;
		
	}

	body {background-color: unset;}
	main {
		position: relative;
		display: grid;
		grid-template-columns: 1fr 1fr;
		padding: 3.5em 0 0 0;
		height: 100%;
	}

	.services2 {
		background-image: url("images/servicesmain1.jpg");
		background-size: cover;
		min-height: 500px;

	}


	.services {
		padding: 1.3em;
		margin: auto;		
	}

	a.nonmobile {

		visibility: visible;
		display: block;
		border-radius: 0.3em;
		text-decoration: none;
		background-color: #a5bfa2;
		font-weight: bold;
		width: 150px;
		margin-top: 3em;
		padding: 0.4em;
		text-align: center;
		z-index: 10;
	}

	.services a.nonmobile:visited {color: black;}

	.samples {
		display: block;
		grid-column-start: 1;
		grid-column-end: 3;
		font-weight: bold;
		padding-top: 0.7em;
		background-image: url("images/bluey.jpg");
		background-size: cover;
		padding: 1em;
	}
}

@media screen and (min-width: 1100px){

	

	.unique-checkbox:checked ~ .unique,
	.responsive-checkbox:checked ~ .responsive,
	.manage-checkbox:checked ~ .manage, 
	.social-checkbox:checked ~ .social {
			position: absolute;
			top: 11em;
			right: 30em;
			width: 1.5%;
			z-index: 10;
			transform: rotate(45deg);
			transition: transform 0.5s;
			background-color: inherit;
			font-weight: bold;
			
		}


	.unique-checkbox:checked ~ .uniquep,
	.responsive-checkbox:checked ~ .responsivep,
	.manage-checkbox:checked ~ .managep, 
	.social-checkbox:checked ~ .socialp {
	
		height: 7%;
		top: 11em;
		right: 2em;
		width: 80%;
		background-color: white;



	}

	.unique-checkbox:not(:checked) ~ .uniquep,
	.responsive-checkbox:not(:checked) ~ .responsivep,
	.manage-checkbox:not(:checked) ~ .managep, 
	.social-checkbox:not(:checked) ~ .socialp {
	
		transition: unset;
	}
}
@media screen and (min-height: 680px){
    html {
    background-size: calc(1200px + (140vh - 720px));
   
    }
}
@media screen and (min-height: 680px){
    
    main {height: 100vh;}
    
}