/* ________________________________________________________________________ //
// 																																				  //
//	Custom CSS File for Emma's "You Matter" mental health resource website  //
//																																				  //
// ________________________________________________________________________ */


/* #region Charset & Root Information */

/* Defines the character set for this stylesheet. */
@charset "UTF-8";

/* Tells the browser that this site supports dark mode and light mode, two common color schemes. */
:root {
  color-scheme: dark light;
}

/* #endregion */



/* ___________________________ //
// Styles for basic HTML tags  //
// ___________________________ */
/* #region HTML Tag Styles 		 */

/* #region Dark Mode & Light Mode Styles */

body {
	--bkg-img: url("images/background_dark.png");

	--text-color: whitesmoke;
  --bkg-color: black;
  --sub-bkg-color: #3A3B3C;
	--menu-color: #232323;
	--block-border-color: darkgray;

	--link-color: lightyellow;
	--link-hover-color: #FFFF80;
	--link-visit-color: #DCDC80;

	--rsrc-color: skyblue;
	--rsrc-hover-color: #3EB6E9;

	--tagline-color: lightpink;
}

body.light-theme {
	--bkg-img: url("images/background_light.png");

	--text-color: #3A3B3C;
	--bkg-color: whitesmoke;
	--sub-bkg-color: #D4CDCD;
	--menu-color: #E4E4E4;
	--block-border-color: gray;

	--link-color: #7E42FF;
	--link-hover-color: #BF1FF4;
	--link-visit-color: #380A9B;

	--rsrc-color: #5E81FF;
	--rsrc-hover-color: #729FFF;

	--tagline-color: #5855AE;
}


/* Alternate system for those whose browsers are set to prefer light mode.
   It's just the inverse of the body code above it, really. */

@media (prefers-color-scheme: light) {
  body {
    --bkg-img: url("images/background_light.png");

		--text-color: #3A3B3C;
		--bkg-color: whitesmoke;
		--sub-bkg-color: #D4CDCD;
		--menu-color: #E4E4E4;
		--block-border-color: gray;

		--link-color: #7E42FF;
		--link-hover-color: #BF1FF4;
		--link-visit-color: #380A9B;

		--rsrc-color: #5E81FF;
		--rsrc-hover-color: #729FFF;

		--tagline-color: #5855AE;
}
  body.dark-theme {
  	--bkg-img: url("images/background_dark.png");

		--text-color: whitesmoke;
  	--bkg-color: black;
  	--sub-bkg-color: #3A3B3C;
		--menu-color: #232323;
		--block-border-color: darkgray;

		--link-color: lightyellow;
		--link-hover-color: #FFFF80;
		--link-visit-color: #DCDC80;

		--rsrc-color: skyblue;
		--rsrc-hover-color: #3EB6E9;

		--tagline-color: lightpink;
  }
}

/* #endregion */


/* #region Subdivision Tag Styles */

body {
	background-image: var(--bkg-img);
	background-color: var(--bkg-color);
	color: var(--text-color);
	position: relative;
}

header,
footer {
	background-image: url("images/titleplate.png");
}

section {
	width: 80%;
	margin: auto;
	background-color: var(--sub-bkg-color);
	border: 2pt solid var(--text-color);
	border-radius: 20px;
	padding: 15px;
	padding-left: 3%;
	padding-right: 3%;
}

article {
	width: 100%;
	padding-top: 20px;
}

/* #endregion */


/* #region Heading & Body Text Styles */

h1 {
	font-family: 'Architects Daughter', cursive;
	text-align: center;
	text-shadow: 0 0 5px whitesmoke;
	font-size: 100pt;
	-webkit-text-fill-color: lightyellow;
	-webkit-text-stroke-width: 1px;
	-webkit-text-stroke-color: yellow;
}

h2 {
	font-family: 'Roboto Slab', serif;
	padding-bottom: 10px;
	padding-top: 10px;
	border-bottom: 2pt solid var(--text-color);
	border-top: 2pt solid var(--text-color);
	margin-bottom: 30px;
}

h5 {
	text-align: center;
	text-shadow: 0 0 5px black;
	color: skyblue;
}

h4,
h5,
h6,
p,
a {
	font-family: 'Montserrat', sans-serif;
}

blockquote {
	background-color: var(--menu-color);
	font-family: 'Ubuntu', sans-serif;
	padding: 8px;
	border: 2pt solid var(--block-border-color);
	border-radius: 8pt;
}

footer p {
	color: black;
	text-align: center;
	margin: 25px;
}

/* #endregion */


/* #region Image Styles */

aside img {
	min-width: 220px;
	width: 100%;
	max-width: 300px;
  max-height: 100%;
  border: 2pt solid var(--text-color);
	border-radius: 8px;
}

/* #endregion */


/* #region Link Styles */

a {
	color: var(--link-color);
	text-decoration: underline;
}

footer a {
	color: black;
	text-decoration: underline;
}

h6 a {
	color: var(--rsrc-color);
	text-decoration: none;
}

h4 a,
.resource a {
	text-decoration: none;
}

.nav-item a {
  display: inline-block;
  vertical-align: middle;
  line-height: 1.5;
  font-size: 14pt;
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
	color: var(--link-hover-color);
	text-decoration: none;
}

a:visited {
	color: var(--link-visit-color);
}

h6 a:visited,
.contact,
.contact:visited {
  color: var(--rsrc-color);
	text-decoration: none;
}

h6 a:hover,
.contact:hover {
	color: var(--rsrc-hover-color);
	text-decoration: none;
}

footer a:hover {
	color: yellow;
	text-decoration: none;
}

.nav-item a:hover,
.active {
  font-size: 16pt !important;
  color: var(--link-hover-color) !important;
}

.nav-item a:visited {
  display: inline-block;
  vertical-align: middle;
  line-height: 1.5;
  font-size: 14pt;
  color: var(--link-color);
  text-decoration: none;
}

/* #endregion */


/* #region Line Styles */

hr {
	background-color: var(--text-color);
}

/* #endregion */

/* #endregion */



/* ______________________________________________________________ //
// Styles for custom classes & their subcomponents					      //
// ______________________________________________________________ */
/* #region Custom Class Styles     																*/

/* #region Quote-Source */

.quote-source {
	font-size: 9pt;
	padding-left: 30px;
}

/* #endregion */


/* #region Resource */

.resource {
	background-color: var(--sub-bkg-color);
	color: var(--text-color);
	font-family: 'Arvo', serif;
	width: 380px;
	height: auto;
	border: 2pt solid var(--text-color);
	border-radius: 8px;
	margin: 0px 20px 20px 0px;
	position: relative;
}

.resource h4 {
	color: var(--link-color);
	border-bottom: 2pt solid var(--text-color);
	border-top: 2pt solid var(--text-color);
	padding-left: 1%;
	padding-bottom: 5px;
}

.resource h6,
#emmaTagline {
	color: var(--tagline-color);
}

.resource div {
	padding: 10px;
}

.resource img {
	width: 100%;
	max-width: 380px;
	height: auto;
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
}

/* #endregion */

/* #endregion */



/* ______________________________________________________________ //
// Override styles for Bootstrap classes & their subcomponents    //
// ______________________________________________________________ */
/* #region Bootstrap Override Styles												      */

/* #region Navbar & its Subcomponents */

.navbar {
	border-bottom: 2px solid var(--text-color);
}

.nav-item {
	line-height: 70px;
}

.navbar-collapse {
	padding-bottom: 20px;
}

/* #endregion */


/* #region Grid Columns */

.col-4 {
	margin-bottom: 20px;
}

.col-4 img {
	height: 50px;
	width: 50px;
}

.col-4 img:hover {
	height: 55px;
	width: 55px;
}

/* #endregion */


/* #region Gallery */

.gallery {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-content: space-between;
	padding-bottom: 10px;
}

/* #endregion */


/* #region Buttons */

.btn-outline-light,
.btn-outline-dark {
	color: var(--link-color);
	position: absolute;
	bottom: 10px;
  left: 10px;
	font-size: 18px;
}

.btn-dark,
.btn-light {
	color: var(--link-color);
	border: 1pt solid var(--block-border-color);
}

#censor {
	margin-bottom: 20px;
}

article .btn {
	color: var(--link-color);
	float: right;
	font-size: 24pt;
	padding: 0px;
	margin-right: 4pt;
	line-height: 20pt;
}

article .btn:hover,
.btn-dark:hover,
.btn-light:hover {
	color: var(--link-hover-color);
}

/* #endregion */


/* #region Dropdowns & their Subcomponents */

.dropdown-menu {
	background-color: var(--menu-color);
	border: 2pt solid var(--text-color);
}

.dropdown-item {
	color: var(--link-color);
}

.dropdown-item:hover,
.dropdown-menu .active {
	background-color: var(--sub-bkg-color);
	color: var(--link-hover-color);
}

/* #endregion */

/* #endregion */