/* 
Author: Dorothy McBane
Date: 10/1/2024
File Name: styles.css
*/

/*CSS reset*/
body, header, nav, main, footer, h1, div, img, ul, section, aside, figure, figcaption {
	margin: 0;
	padding: 0;
	border: 0;
}

body {
	background-color: #dfdff5;
}

img {
	max-width: 100%;
	display: block;
}

/*Box sizing rule applies to all elements*/
*{
	box-sizing: border-box;
}

/*Style Rules for mobile viewport*/


/* Hide tab-desktop*/
.tab-desk, #menu-links {
	display: none;
}

span {
	color: #ccccfe;
}
/* Mobile rules for header*/

header {
	top: 0;
	background-color: #373684;
}

header img {
	height: 190px;
	margin: 0 auto;
}

/*Mobile rules for nav*/
nav {
	background-color: #373684;
}

.mobile-nav a {
	color: #fff;
	text-align: center;
	font-size: 2em;
	text-decoration: none;
	padding: 3%;
	display: block;
}

.mobile-nav a.menu-icon {
	display: block;
	position: absolute;
	right: 0;
	top: 0;
}

.menu-icon div {
	height: 50px;
	width: 50px;
}

/*Mobile rules for main content */

main {
	padding: 2%;
	background-color: #ccccfe;
	overflow: auto;
	font-family: "francois one", sans-serif;
	font-weight: 400;
	font-style: normal;
}

main p {
	font-size:1.25;
}

.round {
	border-radius: 8px;
}

#contact {
	text-align: center;
}

.tel-link {
	background-color : #373684;
	padding: 2%;
	margin: 0 auto;
	width: 80%;
	text-align: center;
	border-radius: 5px;
}

.tel-link a {
	color: #fff;
	text-decoration: none;
	font-size: 1.5em;
	display: block;
}

#contact .email-link {
	color: #4645a8;
	text-decoration: none;
	font-weight: bold;
}

.map {
	border: 5px solid #373684;
	width: 95%;
	height: 50%;
}

table {
	border:1px solid #373684;
	border-collapse: collapse;
	margin: 0 auto;
	width: 100%;
}
caption {
	font-size: 1.5em;
	font-weight: bold;
	padding: 1%;
}
th, td {
	border: 1px solid #373684;
	padding: 2%;
}

th {
	background-color: #373684;
	color: #fff;
	font-size: 1.15em;
}
tr:nth-child(odd) {
	background-color: #b7b7e1;
}

aside {
	text-align: center;
	font-size: 1.5em;
	font-weight: bold;
	color: #373684;
	text-shadow: 3px 3px 10px #8280cb;
}

figure {
	position: relative;
	max-width: 275px;
	margin: 2% auto;
	border: 8px solid #373684;
}

figcaption {
	position: absolute;
	bottom: 0;
	background-color: purple;
	opacity: 0.6;
	color: #fff;
	width: 100%;
	padding: 5% 0;
	text-align: center;
	font-family: verdana, arial, sans-serif;
	font-size: 1.5em;
	font-weight: bold;
}

fieldset, input {
	margin-bottom: 2%;
}

fieldset legend {
	font-weight: bold;
	font-size: 1.25em;
}

label {
	display: block;
	padding-top: 3%;
}

form #submit {
	margin: 0 auto;
	display: block;
	padding: 3%;
	background-color: #b7b7e1;
	font-size: 1em;
}

video {
	width: 100%;
	height: auto;
}

/*mobile rules for footer*/

footer {
	text-align: center;
	font-size: 0.65em;
	clear: left;
}

footer a {
	color: #4645a8;
	text-decoration: none;
}

.social img {
	display: inline-block;
	padding: 4%;
}

/*Media Query for Tablet Viewport */
@media screen and (min-width: 550px), print {
	
	 /*Tablet Viewport: Show tab-desk class, hide mobile class */
	.tab-desk {
		display: block;
	}
	
	.mobile, .mobile-nav {
		display:none;
	}
	
	/*tablet rules for header*/
	
	header h1 {
		margin: 0;
		padding:0;
		font-size: 2em;
	}
	/*tablet rules for nav*/
	
	nav ul {
		list-style-type:none;
		text-align: center;
	}
	
	Nav li {
		border-top: none;
		display: inline-block;
		font-size: 1.5em;
		border-right: 1px solid #e5e9fc;
	}
	
	nav li:last-child {
		border-right: none;
	}
	
	nav li a {
		display: block;
		color: #fff;
		text-align: center;
		text-decoration: none;
		padding: 0.25em 0.5em;
	}
	 /*Tablet rules for main*/
	 
	.map {
		width: 70%;
		margin: 0 auto;
	}
	
	form {
		width: 70%;
		margin: 0 auto;
	}
	
	#clothing, #amigurumi, #blankets {
		width: 29%;
		float: left;
		margin: 0 2%; 
	}
	
	#img1, #img2, #img3 {
		width: 29%;
		float: left;
		margin: 0 2%; 
	}
	
	#canvas, #drills {
		width: 50%;
		float: left;
		margin: 0 2%; 
	}
	
	#beaded, #resin {
		width:50%;
		float: left;
		
	}
	
	#FAQs h2, h1, h2, h3 {
		text-shadow: 3px 3px 10px #8280cb;
	}
	
	caption {
		text-shadow: 3px 3px 10px #8280cb;
	}
	
	figure {
		box-shadow: 10px 10px #5251B9;
	}	
	
	span {
		color:#ccccfe;
	}
	
	.grid {
		display: grid;
		grid-template-columns: auto auto auto auto;
		grid-gap: 10px;
	}	
	
	aside { 
		text-align: center;
		grid-column: 1 / span 4;
	}
	
	#grid {
		display: grid;
		grid-template-columns: auto auto auto;
		grid-gap: 10px;
	}
	
	
	/*tablet ruels for footer*/
	.copyright {
		float: left;
		width: 65%;
	}
	
	.social {
		float: right;
		width: 25%;
	}
	
	/* keyframes animation */
	@-webkit-keyframes text-animation {
		0% {font-size:1em;}
		50% {font-size: 2em;}
		100% {font-size: 1.35em;}
	}
	
	@keyframes text-animation {
		0% { font-size: 1em;}
		50% { font-size: 2em;}
		100% {font-size: 1.35em;}
	}
	
	figcaption {
		-webkit-animation-name: text-animation;
		animation-name: text-animation;
		-webkit-animation-delay: 3s;
		animation-delay: 3s;
		-webkit-animation-duration: 5s;
		animation-duration: 5s;
	}
	
}

/*media query for desktop viewport*/
@media screen and (min-width 765px), print {
	
	/*desktop ruels for header*/
	
	header {
		padding: 2%;
	}
	
	/*desktop rules for nav*/
	
	na li a {
		padding: 0.5em 1.5em;
	}
	
	nav li a:link {
		color: #fff;
	}
	
	nav li a:visited {
		color: #fff;
	}
	
	nav li a:hover {
		color:#373684;
		background-color: #fff;
		transform: scale(1.2);
	}
	
	nav li a:active {
		color: #000;
		background-color: #fff;
	}
	
	/*desktop rules for main*/
	
	.grid {
		display: grid;
		grid-template-columns: auto auto auto auto;
	}
	
	
	figcaption {
		font-size: 1em;
	}
	
	aside { 
	grid-column: 1 / span 4;
	}
	
	table {
		width: 70%;
	}
	
	.form-grid {
		display: grid;
		grid-template-columns: auto auto;
		grid-gap: 20px;
	}
	
	.btn {
		grid-column: 1 / span 2;
	}
	
}

/*Media Query for Large Desktop Viewports*/
@media screen and(min-width:1921px){
	
	#container {
		width: 1920px;
		margin: 0 auto;
	}
	
	table{
		width: 80%;
	}
	
}

/*Media Query for print*/
@media print {
	
	body {
		background-color: #fff;
		color: #000;
	}
}


