/* 
	Css Document for Tracey Dodd's Website
	Written By Brandon Amato
*/
@media all and (max-width: 1000px) { /* screen size until 1000px */
    body {
        font-size: 0.8em; /* 1.2x default size */
    }
}
@media all and (max-width: 640px) { /* screen size until 500px */
    body {
        font-size: 0.5em; /* 0.8x default size */
    }
	.custom-header {
		margin-top: 5%;
	}
	.header-text {
		margin-top: 1.5%;
	}
	.about-me-header {
		margin-top: 5%;
	}
}

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;800&display=swap');

/* Default Vairables */
:root {
	/* Primary Colours */
	--primary-text-color: #333333;
	--primary-hover-color: #707070;
	--primary-background-color: #f7f7f7;
	--primary-underline-color: var(--primary-hover-color);
	/* Secondary Colours */
	--secondary-text-color: #000000;
	/* Default Fonts & Sizes */
	--default-navigation-spread: 20px;
	--default-header-font-family: 'Open Sans', sans-serif;
	--default-about-me-font-family: 'Inter', sans-serif;
	--default-header-title-size: 400%;
}

/*
	Navigation Color & Underline Override
*/
a, a:focus, a:active {
	text-decoration: none;
    color: var(--primary-text-color);
}
a:hover {
	text-decoration: none;
    color: var(--primary-hover-color);
}

.nav-toggler {
	color: var(--primary-text-color);
}
.nav-toggler:hover {
	color: var(--primary-hover-color);
}

/*
	Navigation changes
*/
.header-text {
	color: var(--primary-text-color);
	font-size: var(--default-header-title-size);
	font-family: var(--default-header-font-family);
	font-weight: 800;
}
.link-text {
	color: var(--default-text-color);
	font-size: 80%;
	font-weight: 300;
	font-family: var(--default-header-font-family);
}
.navbar .navbar-collapse {
    text-align: center;
}
.navbar-light .navbar-brand:hover {
	color: var(--default-hover-color);
}
.navbar-nav > li {
 	margin-left: var(--default-navigation-spread);
  	margin-right: var(--default-navigation-spread);
}
.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;..");
}
	

/*
	About me Section
*/
.background-color {
	background-color: var(--primary-background-color);
}
.tracey-image {
	width: 80%;
	border-radius: 50%;
}
.text-left {
	text-align: left;
}
.custom-header {
	color: var(--secondary-text-color);
	font-family: var(--default-about-me-font-family);
	margin-bottom: 0;
	font-size: 180%;
	font-weight: bold;
}
.custom-sub-header {
	color: var(--secondary-text-color);
	font-family: var(--default-about-me-font-family);
	font-size: 80%;
	font-weight: 300;
}
.custom-paragraph {
	color: var(--secondary-text-color);
	font-family: var(--default-about-me-font-family);
	font-size: 70%;
	font-weight: 400;
	text-align: justify;
}
.custom-link {
	text-decoration: underline;
    color: var(--secondary-text-color);
}
.embed-error-text {
	color: var(--secondary-text-color);
	font-family: var(--default-about-me-font-family);
	font-size: 70%;
	font-weight: 400;
}

/*
	Carousel
*/
.carousel-arrow {
	color: var(--primary-text-color);
	cursor: pointer;
	font-size: 180%;
	margin-right: 10%;
	margin-left: 10%;
}
.carousel-arrow:hover {
	color: var(--primary-hover-color);
}

/*
	Social Media Icons
*/
.social-icons {
	color: var(--default-text-color);
	font-size: 170%;
}
.copyright {
	color: var(--default-text-color);
	font-size: 80%;
	font-family: var(--default-header-font-family);
}

/* 
	Underline From Center 
	From: https://ianlunn.github.io/Hover/
	Edited by Brandon Amato
*/
.hvr-underline-from-center {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  position: relative;
  overflow: hidden;
}
.hvr-underline-from-center:before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 51%;
  right: 51%;
  bottom: 0;
  background: var(--primary-underline-color);
  height: 2px;
  -webkit-transition-property: left, right;
  transition-property: left, right;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}
.hvr-underline-from-center:hover:before, .hvr-underline-from-center:focus:before, .hvr-underline-from-center:active:before {
  left: 0;
  right: 0;
}

/*

*/
.label {
	float: left;
}

.input_error {
	display: block;
	margin: auto;
	font-size: 70%;
	color: red;
}

.feedback {
	color: green;
}

input[type=text], select {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

input[type=submit] {
  width: 100%;
  background-color: var(--primary-text-color);
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type=submit]:hover {
  background-color: var(--primary-hover-color);
}