@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&family=Permanent+Marker&family=Shadows+Into+Light&family=Sora:wght@100..800&display=swap');

:root {
	/* Colors */
  --c_deep_blue: #0009A8;
  --c_shine_blue: #2837C6;
  --c_radient_blue: #0000FF;
  --c_csky_blue: #5C70E0;
  --c_gray: #6D6D6D;
  --c_mossy: #385E3C;

  /* Fonts */
  --marker: "Permanent Marker", cursive;
  --shadow: "Shadows Into Light", cursive;
  --mulish: "Mulish", sans-serif;
  --sora: "Sora", sans-serif;
}

::selection {
    background-color: var(--c_mossy);
    color: black;
}

* {
	margin: 0 auto;
	height: auto;
}

body {
	background: url("assets/background_mobile.jpg") no-repeat center center;
	background-size: cover;
	background-color: #00066d;
}

abbr {
    text-decoration: none;
}

header {
    text-align: center;
    padding: 2rem;
}

h1 {
	font-family: var(--marker);
	color: white;
	letter-spacing: 0.125rem;
	font-weight: 100;
	text-shadow: 0.188rem 0.188rem 0.188rem rgba(0, 0, 0, 0.5);
}

h2 {
	font-family: var(--shadow);
	color: white;
	font-weight: 100;
	font-size: 1.3em;
	text-shadow: 0.188rem 0.188rem 0.188rem rgba(0, 0, 0, 0.5);
}

h3 {
	font-family: var(--mulish);
	font-weight: 700;
	color: white;
	font-size: 1.5em;
	text-align: center;
	margin-top: 0.625rem;
	text-shadow: 0.188rem 0.188rem 0.188rem rgba(0, 0, 0, 0.1);
}

p {
	font-family: var(--sora);
	color: white;
	font-size: 0.9em;
	font-weight: 300;
	margin: 1rem 0;
	line-height: 1.4em;
}

a {
	color: white;
}

a:hover {
	color: var(--c_deep_blue);
}

li {
	font-family: var(--mulish);
	font-weight: 700;
	color: white;
}

/* Header */

header[role="banner"] {
	font-size: 0.8em;
	text-align: center;
	content: "";
    display: inline-block;
	height: 1.25rem;
	margin: 0 auto 3em;
}

/* Summary - Preamble */

#zen-summary,
#zen-preamble {
	position: relative;
	border: 0.125rem solid #ffffff4d;
	border-radius: 3.75rem 3.75rem 0 0;
	background-color: #ffffff4d;
	padding: 0.5rem 2rem;
	width: 15rem;
	margin: 0 auto;
	box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.05);
	z-index: 0; 
}

#zen-intro {
	display: flex;
	flex-direction: column;
	align-items: center;
}

#zen-summary {
	display: flex;
	flex-direction: column;
 	align-items: center;
	border-bottom: none;
	border-radius: 3.75rem 3.75rem 0 0;
}

#zen-summary::before {
	content: "Summary";
	font-family: var(--mulish);
	font-weight: 700;
	color: white;
	font-size: 1.5em;
	margin-top: 0.625rem;
	text-shadow: 0.188rem 0.188rem 0.188rem rgba(0, 0, 0, 0.1);
}

#zen-summary p {
	text-align: center;
}

#zen-preamble {
  border-top: none;
  border-radius: 0 0 3.75rem 3.75rem;
}

#zen-preamble::before {
	content: "";
	display: block;
	background: url("assets/separator.svg") no-repeat center / contain;
	width: 100%;
	height: 1.25rem;
	margin: 0 auto 0.5rem;
}



/* About - Participation - Benefit */

#zen-benefits,
#zen-participation,
#zen-explanation {
	border: 0.125rem solid #ffffff4d;
	background-color: #ffffff4d;
	padding: 0.5rem 2rem;
	max-width: 50rem;
	width: 15rem;
	margin: 0 auto;
	box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.05);
}

#zen-explanation {
	border-bottom: none;
	border-radius: 3.75rem 3.75rem 0 0;
	margin-top: 3.75rem;
}

#zen-participation {
	border-top: none;
	border-bottom: none;
}

#zen-participation::before {
	content: "";
	display: block;
	background: url("assets/separator.svg") no-repeat center / contain;
	width: 100%;
	height: 1.25rem;
	margin: 0 auto 0.5rem;
}

#zen-benefits {
	border-top: none;
	border-radius: 0 0 3.75rem 3.75rem;
}

#zen-benefits::before {
	content: "";
	display: block;
	background: url("assets/separator.svg") no-repeat center / contain;
	width: 100%;
	height: 1.25rem;
	margin: 0 auto 0.5rem;
}

/* Requirements */

#zen-requirements {
	border: 0.125rem solid #ffffff4d;
	border-radius: 3.75rem;
	background-color: #ffffff4d;
	padding: 0.5rem 2rem;
	max-width: 50rem;
	width: 15rem;
	margin: 3.75rem auto 0;
	box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.05);
	position: relative;
}

#zen-requirements [role="contentinfo"] {
	position: absolute;
	bottom: -89.5rem;
	left: 50%;
	transform: translateX(-50%);
	border: 0.125rem solid #ffffff4d;
	border-radius: 3.75rem;
	background-color: #ffffff4d;
	padding: 2rem 1rem;
	max-width: 50rem;
	font-family: var(--mulish);
	text-align: center;
	font-size: 1.01em;
	font-weight: 700;
	width: 15.625rem;
	margin: 0 auto;
	box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.05);
}



/* Select A Design */

.sidebar nav[role="navigation"],
.design-archives nav[role="navigation"] {
	display: flex;
    justify-content: center;
    align-items: center;
	border: 0.125rem solid #ffffff4d;
	border-radius: 63.75rem;
	background-color: #ffffff4d;
	padding: 0.5rem 2rem;
	max-width: 50rem;
	width: 6.5rem;
	margin: 0 auto;
	box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.05);
}

.sidebar h3 {
	font-family: var(--marker);
	letter-spacing: 0.125rem;
	text-shadow: 0.188rem 0.188rem 0.188rem rgba(0, 0, 0, 0.5);
	font-weight: 200;
	padding: 1.25rem 0 0;
}

.sidebar ul {
	list-style: none;
	padding: 0;
}

.sidebar nav ul {
	position: relative;
	display: flex;
	flex-direction: column;
}

.sidebar nav ul li {
	padding: 0.625rem;
    text-align: center;
}

.sidebar nav ul li a:first-child {
	text-decoration: none;
	font-size: 1.2em;
	content: "";
    display: inline-block;
    width: 100%;
	height: 1.25rem;
	margin: 0 auto 0.5rem;
}

.sidebar nav ul li a:nth-child(2) {
	font-size: 0.9em;
}

.sidebar nav ul li a:first-child::before {
    content: "";
    display: inline-block;
    width: 100%;
	height: 1.25rem;
	margin: 0 auto 0.5rem;
    background: url("assets/separator.svg") no-repeat center / contain;
}

.sidebar nav ul li:first-child a:first-child::before {
    display: none;
}

.sidebar nav ul li a:nth-child(2)::before {
	content: "";
	display: block;
}

/* Archives */

#design-archives {
	margin-top: 15.625rem;
}

.design-archives a:nth-child(2)::before {
    display: block;
	background: url("assets/separator.svg") no-repeat center / contain;
	width: 100%;
	height: 1.25rem;
	margin: 0 auto 0.5rem;
	transform: rotate(90deg) translateY(26.125rem);
}


/* Resources */

#zen-resources {
	display: flex;
	flex-direction: column;
    justify-content: center;
    align-items: center;
}

.zen-resources ul {
	border: 0.125rem solid #ffffff4d;
	border-radius: 60px;
	background-color: #ffffff4d;
	padding: 2rem;
	max-width: 50rem;
	width: 104px;
	margin: 0 auto;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#zen-resources ul li a:first-child::before {
    content: "";
    display: inline-block;
    width: 100%;
	height: 20px;
	margin: 0 auto 0.5rem;
    background: url("assets/separator.svg") no-repeat center / contain;
}

#zen-resources ul li:first-child a::before {
    display: none;
}

#zen-resources a {
	text-decoration: none;
}

#zen-resources li {
	text-align: center;
	padding: 5px;
	font-size: 1.08em;
}

/* Footer */

footer {
    position: absolute;
    bottom: -6120px;
    left: 0;
	right: 0;
    max-width: 100%;
	height: auto;
    display: flex;
    flex-direction: column;
	gap: 15px;
    padding: 1.5rem;
	border: 2px solid #ffffff4d;
	border-radius: 60px;
	background-color: #ffffff4d;
	width: 150px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

footer a {
	display: inline-block;
  	width: 25px;
	height: 25px;
	text-indent: -10000px;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	padding: 50px;
	border: 1px solid #ffffffbf;
	border-radius: 70px;
}

footer .zen-validate-html { 
	background-image: url("assets/1.jpg"); 
}

footer .zen-validate-css { 
	background-image: url("assets/2.jpg"); 
}

footer .zen-license { 
	background-image: url("assets/3.jpg"); 
}

footer .zen-accessibility { 
	background-image: url("assets/4.jpg"); 
}

footer .zen-github { 
	background-image: url("assets/5.jpg"); 
}

/* Extra Responsive */



@media (min-width: 82.25rem) and (max-width: 122.938rem) {
  #zen-participation::before,
  #zen-benefits::before {
	display: none;
  }
}

@media (min-width: 48rem) and (max-width: 53.4375rem) {
  .sidebar nav ul li a:first-child::before {
	display: none;
  }
}

@media (min-width: 82.688rem) {
  #zen-requirements [role="contentinfo"] {
    left: 50%;
    transform: translateX(-50%);
    bottom: -30rem;
  }
}

/* Tablet Responsive */
@media (min-width: 48rem) {
	body {
	background: url("assets/tablet.jpg") no-repeat center center;
	}

	#zen-preamble,
	#zen-summary {
		height: 100%;
		width: 18.75em;
		width: 37.5em;
	}

	#zen-explanation,
	#zen-participation,
	#zen-benefits,
	#zen-requirements {
		width: 400px;
	}

	#zen-participation::before {
		transform: rotate(180deg) translateY(9px);
	}

	#zen-benefits::before {
        right: 65px;
	}

	.sidebar nav ul {
		flex-direction: row;
	}

	.sidebar nav ul li a:first-child {
		font-size: 0.8em;
	}

  	.sidebar nav ul li a:first-child::before {
    	position: absolute;
        top: 50px;
        margin: 0;
        transform: rotate(90deg) translateY(418px) scaleX(0.8);
        height: 10px;
  	}

	.sidebar nav[role="navigation"], .design-archives nav[role="navigation"] {
		width: auto;
	}

	nav ul li {
    	flex-direction: row;
	}

	#zen-requirements [role="contentinfo"] {
		bottom: -26rem;
	}

	.design-archives nav[role="navigation"] {
    	width: 110px;
	}

	.design-archives nav ul li a:first-child::before {
  		transform: rotate(90deg) translateY(87px) translateX(-17px) scale(0.6);
	}
	
	.zen-resources ul {
		display: flex;
        align-items: center;
		width: auto;
		position: relative;
	}

	#zen-resources ul li a:first-child::before {
		position: absolute;
        top: 45px;
        margin: 0;
        transform: rotate(90deg) translateY(355px);
        height: 7px;
	}

	footer {
    	bottom: -2785px;
		flex-direction: row;
    	width: auto;
		margin: 50px;
    }

	footer a {
		width: 0px;
    	height: 0px;
	}
}


/* Desktop Responsive */

@media (min-width: 82.25rem) {
	body {
	background: url("assets/desktop.jpg") no-repeat center center;
	}

	#zen-intro {
		display: grid;
		grid-template-areas:
			"banner banner"
			"summary preamble";
		grid-template-columns: auto auto;
		grid-template-rows: auto 1fr;
		gap: 0;
		margin-top: 50px;
		align-items: start;
		justify-content: center;
	}

	#zen-intro > header {
		grid-area: banner;
		font-size: 1em;
		margin-bottom: 65px;
	}

	#zen-summary {
		grid-area: summary;
		border-bottom: 2px solid #ffffff4d;
		border-right: none;
		border-radius: 60px 0 0 60px;
		width: 580px;
		height: 300px;
	}

	#zen-preamble {
        position: relative;
        padding-left: 40px;
		grid-area: preamble;
		border-top: 2px solid #ffffff4d;
		border-left: none;
		border-radius: 0 60px 60px 0;
		width: 580px;
		height: 300px;
	}

	#zen-preamble::before {
        margin: 0;
        float: left;
        transform: rotate(90deg);
		position: absolute;
        top: 144px;
        right: 327px;    
    }

	#zen-supporting {
    	display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 4.1rem;
        margin: 65px 215px;
        position: relative;
	}

	#zen-benefits,
	#zen-participation,
	#zen-explanation {
		border: 2px solid #ffffff4d;
		background-color: #ffffff4d;
		padding: 0.5rem 2rem;
		max-width: 800px;
		width: 100%;
		margin: 0 ;
		box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
		height: 100%;
	}

	#zen-requirements {
		grid-column: 1 / span 3;
    	grid-row: 2;
    	width: 70%;
    	justify-self: center;
    	border-radius: 35px;
		margin-top: 0;
	}

	#zen-explanation {
		border-right: none;
		border-radius: 60px 0 0 60px;
		height: auto;
	}

	#zen-participation {
		border-left: none;
		border-right: none;
		height: auto;
	}

	#zen-participation::before,
	#zen-benefits::before {
		margin: 0;
        float: left;
        transform: rotate(90deg);
        position: absolute;
        top: 144px;
	}

	#zen-participation::before {
		background: url("assets/separator2.svg") no-repeat center / contain;
		transform: rotate(90deg) translateY(827px) translateX(209px) scale(0.48);
	}

	#zen-benefits::before {
		background: url("assets/separator2.svg") no-repeat center / contain;
        transform: rotate(90deg) translateY(115px) translateX(209px) scale(0.48);
	}
	
	#zen-benefits {
		border-left: none;
		border-radius: 0 60px 60px 0;
		height: auto;
		margin-left: -2px;
	}

	.sidebar nav ul li a:first-child {
		font-size: 0.9em;
	}

	#zen-requirements [role="contentinfo"] {
        bottom: -30rem;
        margin: 0 auto;
        justify-self: center;
    }
	.design-archives nav[role="navigation"] a::before {
		display: none;
	}

	.design-archives nav ul li a:first-child::before {
  		transform: rotate(90deg) translateY(94px) translateX(-17px) scale(0.6);
	}

	footer {
    bottom: -1050px;
	flex-direction: row;
    width: auto;
	max-width: 800px;
    margin: 0 auto;
    }
}



/* Animation */
@keyframes jackInTheBox {
  from {
    opacity: 0;
    transform: scale(0.1) rotate(30deg);
    transform-origin: center bottom;
  }

  50% {
    transform: rotate(-10deg);
  }

  70% {
    transform: rotate(3deg);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.jackInTheBox {
  animation-name: jackInTheBox;
}

#zen-summary,
#zen-preamble,
#zen-explanation,
#zen-participation,
#zen-benefits,
#zen-requirements,
.sidebar nav[role="navigation"],
.design-archives nav[role="navigation"],
#zen-resources ul,
footer {
    opacity: 0;
    animation: jackInTheBox 1s ease forwards;
}
