@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400&family=Sriracha&display=swap');

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: 'Montserrat', sans-serif;
}

/* styles for footer and header  */
/* mobile first */
header,
footer {
  background-color: black;
  text-align: center;
  color: white;
  padding: 30px 0;
}

h2 {
  font-weight: lighter;
  font-size: 37px;
}
article.flex-container {
  align-items: center;
}

.flex-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

/* header styles */
header {
  padding: 30px 0;
}

header h1 {
  font-size: 40px;
  font-family: 'Sriracha', cursive;
}

header nav {
  display: flex;
  justify-content: space-around;
}

header nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

header nav ul li a {
  margin-right: 40px;
  color: white;
}

header nav ul li a:visited {
  color: white;
}

header nav ul li:last-child a {
  margin-right: 0;
}

nav ul li a {
  font-size: 20px;
}

header nav ul li a:hover {
  border-bottom: 1px solid whitesmoke;
  padding-bottom: 4px;
}

/* end of header styles */
/* set color and font-weight for all p tags in the page */
main p {
  color: rgb(117, 111, 94);
  font-weight: lighter;
}

/* intro section styles */
.intro {
  padding: 30px;
}

.intro ul li {
  color: rgb(27, 60, 121);
  text-align: center;
  list-style-type: none;
  display: inline-block;
  margin-right: 5px;
}

.img-container {
  width: 100%;
  max-width: 500px;
}

.img-container img {
  width: 100%;
  max-width: 450px;
  object-fit: cover;
}

.intro-story {
  font-size: 20px;
}

.intro-story h2 {
  text-align: justify;
}

.intro-story p {
  font-weight: lighter;
}

.intro-story p a {
  border-bottom: 1px solid rgb(27, 60, 121);
  padding-bottom: 2px;
}

/* end of intro section styles */
/* about me  section styles*/
.about-me {
  background: whitesmoke;
  padding: 30px;
  align-items: center;
}

.about-story {
  padding: 0;
}

.about-me .about-story h2 {
  text-align: left;
  margin: 0;
}

.about-me .about-story p {
  text-align: justify;
  font-size: 20px;
  padding-right: 20px;
}

.about-story p strong {
  color: rgb(27, 60, 121);
}

.about-me .img-container img {
  width: 100%;
  object-fit: cover;
}

/* end of about-me section styles*/
/* projects section  styles*/
.projects {
  padding: 0 20px;
}

.projects .project {
  background: whitesmoke;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 450px;
}

.project h3,
.project p {
  padding: 0 20px;
}

.projects .project img {
  width: 100%;
}

.projects-links {
  padding: 10px 0px;
  display: flex;
  justify-content: space-around;
  margin-top: auto;
}

.projects-links a {
  margin-top: auto;
  font-size: 16px;
  display: inline-block;
  border-radius: 5px;
  background: rgb(103, 103, 224);
  color: white !important;
  padding: 15px 20px;
}

.projects-links a:hover {
  background: rgb(81, 81, 192);
}

/* end of projects section  styles*/
/* contact section styles */
.contact {
  display: flex;
  flex-direction: column;
  align-content: center;
  text-align: center;
  padding: 20px;
  background: whitesmoke;
}

.contact p {
  font-size: 20px;
}

.social-icons {
  display: flex;
  justify-content: space-evenly;
  margin: 20px;
}

.social-icons i {
  font-size: 40px;
}

form {
  text-align: left;
  display: block;
  width: 70%;
  margin: 0 auto;
}

form input,
form textarea {
  display: block;
  width: 100%;
  margin-bottom: 20px;
  padding: 10px;
}

form textarea {
  height: 140px;
}

.btn {
  background: rgb(103, 103, 224);
  border: 0;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  color: white;
  padding: 10px 20px;
}

.btn:hover {
  background: rgb(81, 81, 192);
}

/* end of contact section styles */
/* GENERIC STYLES FOR LINKS */
a {
  color: rgb(27, 60, 121);
  text-decoration: none;
  font-size: 20px;
}

a:visited {
  color: rgb(27, 60, 121);
}

a:hover {
  color: rgb(39, 86, 173);
}

a:active {
  color: rgb(7, 29, 70);
}

/* END OF GENERIC STYLES FOR LINKS */
/* MEDIA QUERIES FOR DESKTOP  */
@media all and (min-width: 770px) {
  .flex-container {
    flex-direction: row;
  }

  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 35px;
  }

  header nav {
    align-self: center;
    align-items: center;
  }

  header nav ul li {
    align-items: center;
  }

  /* main intro section */
  .intro {
    width: 90%;
    margin: 0 auto;
    justify-content: center;
  }

  .intro .intro-story {
    flex: 1;
  }

  .intro .img-container {
    flex: 1;
  }

  .intro .img-container img {
    width: 90%;
    margin: 0 auto;
  }

  /* about me section */
  .about-me {
    align-items: center;
    justify-content: space-evenly;
  }

  .about-me .about-story {
    flex: 2;
  }

  .about-me .img-container {
    flex: 1;
    flex-basis: 130px;
  }

  .about-me .img-container img {
    width: 100%;
    border-radius: 10px;
  }

  /* projects */
  .portfolio {
    justify-content: space-around;
    flex-wrap: wrap;
  }

  .portfolio .project {
    flex-basis: 350px;
    margin: 20px 5px;
    padding: 0;
    font-size: 18px;
  }
  .project img {
    height: 250px;
  }
  .portfolio .project .projects-links {
    padding: 20px 0;
  }

  .portfolio::after {
    content: '';
    display: block;
    flex-basis: 350px;
  }
}

/* sets space between to have the project card align in rows */
@media all and (min-width: 1120px) {
  .portfolio {
    flex-direction: row;
    justify-content: space-between;
  }

  .portfolio .project {
    flex-basis: 350px;
  }
}

.hidden {
  visibility: hidden;
}
