/* Delcaring global variables to be used in css */
:root {
  --font-light: #f7ebec;
  --font-dark: #0a0908;
  --font-hover: #50d8d7;
  --nav-bg: #a54657;
  --background: #22333b;
  --itemText-bg: rgba(34, 51, 59, 0.9);
  --contact-bg: rgba(165, 70, 87, 0.75);
}

/* setting global font-family */
* {
  font-family: "Cabin", sans-serif;
}

body {
  background-color: var(--background);
  margin-bottom: 2%;
}

/* ********** NAV ********** */

nav {
  background-color: var(--nav-bg);
}

.navContainer {
  width: 100%;
  display: flex;
  flex-wrap: inherit;
  align-items: center;
  justify-content: center;
}

.togglerIconSpan {
  display: flex;
  justify-content: center;
  align-items: center;
}

.togglerIcon {
  color: var(--font-light);
  font-size: 2rem;
}

.navItemsContainer {
  width: 100%;
  justify-content: center;
}

.nav-item {
  display: flex;
  justify-content: center;
}

.nav-link {
  color: var(--font-light);
  text-shadow: 0px 2px 8px var(--font-dark);
  font-family: "Poppins", sans-serif;
}

/* changing color and adding text-shadow to certain elements when hovered on */
.togglerIcon:hover,
.nav-link:hover,
.githubLinksItem:hover,
.resumeDownload:hover {
  color: var(--font-hover);
  text-shadow: 0px 2px 8px var(--font-light);
}

/* ********** MAIN CONTENT ********** */

main {
  margin: 2% 0;
  margin-bottom: 5%;
}

.titleContainer {
  text-align: center;
}

.titleName {
  color: var(--nav-bg);
  text-shadow: 2px 2px 2px var(--font-hover);
  font-size: 5rem;
  letter-spacing: 1.5rem;
  font-family: "Redressed", cursive;
}

.titleDescription {
  color: var(--font-light);
  letter-spacing: 0.25rem;
  padding: 2%;
}

.github,
.linkedIn {
  font-size: 5rem;
}

#aboutMe,
#myWork,
#contactMe {
  text-align: center;
  border: none;
  margin: 2%;
  color: var(--font-light);
}

#aboutMe h5,
#myWork h5,
#contactMe h5 {
  font-size: 2.5rem;
  font-family: "Redressed", cursive;
}

/* styling hr to pop a little more on the page to help split sections apart */
#aboutMe hr,
#myWork hr,
#contactMe hr {
  width: 30%;
  margin: 1% auto;
  border: 0;
  height: 1px;
  background-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0)
  );
  opacity: 1;
  box-shadow: 0px 0px 8px 1px var(--font-hover);
}

/* ***** about me ***** */

.aboutMeTextContainer {
  display: flex;
  justify-content: center;
  padding: 5px;
}

.aboutMeText {
  max-width: 75%;
}

.resumeDownload {
  text-decoration: none;
  color: var(--font-light);
  font-size: 1.5rem;
}

/* ***** my work ***** */

#myWorkCarousel {
  display: flex;
  justify-content: center;
}

.myWorkItems {
  border-radius: 25px;
  max-width: 80%;
  box-shadow: 0;
  transition: box-shadow 0.4s ease-in-out;
}

.myWorkItems:hover {
  box-shadow: 0px 0px 10px 10px var(--font-hover);
}

.myWorkText {
  background: var(--itemText-bg);
  border-radius: 25px;
  padding: 20px;
}

.myWorkText h5,
.myWorkText p {
  color: var(--font-light);
}

.githubLinks {
  list-style: none;
  padding: 0;
}

.githubLinksItem {
  text-decoration: none;
  color: var(--font-light);
}

/* changing cursor when hovered over */
.carousel-item a:hover,
.githubLinksItem:hover {
  cursor: grab;
}

/* changing cursor when active */
.carousel-item a:active,
.githubLinksItem:active {
  cursor: grabbing;
}

/* ***** Contact Me Form ***** */

.contactMeContainer {
  position: relative;
  width: 100%;
  padding: 0 20px;
}

.contactForm {
  max-width: 550px;
  margin: 0 auto;
  background-color: var(--contact-bg);
  padding: 30px;
  border-radius: 5px;
  display: flex;
  box-shadow: 0 0 10px var(--font-light);
}

.inputFields {
  display: flex;
  flex-direction: column;
  margin-right: 4%;
}

.inputFields,
.msg {
  width: 48%;
}

.inputFields .contactInput,
.msg textarea {
  margin: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--font-light);
  padding: 10px;
  color: var(--font-light);
  width: 100%;
}

.msg textarea {
  height: 244px;
}

/* changing color and opacity of placeholder across several browsers */
::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: var(--font-light);
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: var(--font-light);
}

::-ms-input-placeholder {
  /* Microsoft Edge */
  color: var(--font-light);
}

.contactBtn {
  background: var(--background);
  text-align: center;
  padding: 15px;
  border-radius: 5px;
  color: var(--font-light);
  text-transform: uppercase;
  width: 100%;
}

/* changing height, width, and flex-direction of certain elements when the screen is a certain size */
@media screen and (max-width: 600px) {
  .contactForm {
    flex-direction: column;
  }

  .msg textarea {
    height: 80px;
  }

  .inputFields,
  .msg {
    width: 100%;
  }
}
