/* Basic variables */
:root {
  --ff-primary: "Spartan", sans-serif;
  --ff-secondary: "Montserrat", sans-serif;

  --fw-light: 100;
  --fw-regular: 300;
  --fw-bold: 700;

  --clr-light: #53a1b5;
  --clr-dark: #011128;
  --clr-bright: #fce181;

  --fs-h1: 2.7rem;
  --fs-h2: 2rem;
  --fs-h3: 1.4rem;
  --fs-body: 1.1rem;
}

@media (min-width: 768px) {
  :root {
    --fs-h1: 5rem;
    --fs-h2: 2.7rem;
    --fs-h3: 1.7rem;
    --fs-body: 1.25rem;
  }
}

/* General Style */
body {
  background-color: var(--clr-light);
  color: var(--clr-dark);
  margin: 0;
  font-family: var(--ff-primary);
  font-size: var(--fs-body);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--clr-dark);
}
a:visited {
  color: var(--clr-dark);
}
a:hover {
  color: var(--clr-bright);
}
a:active {
  color: var(--clr-dark);
}
a:focus {
  color: var(--clr-dark);
}

.bright-color-text {
  color: var(--clr-bright);
}

/* Typography */

strong {
  font-weight: var(--fw-bold);
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}

.section-title {
  margin: 0;
  font-size: var(--fs-h2);
  font-family: var(--ff-secondary);
}

p {
  font-size: var(--fs-body);
  line-height: 1.9;
}

/* navegation bar top */
.nav-list {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: stretch;
}
.nav-item {
  padding: 0 0.5em;
  list-style: none;
}
.nav-item a {
  text-decoration: none;
}

@media (min-width: 480px) {
  .nav-list {
    margin-right: 0.5em;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: baseline;
    align-content: space-between;
  }
}

/* Home page */
.home-page {
  margin-left: 13%;
  margin-right: auto;
  margin-top: 30%;
  margin-bottom: 20%;
}

.home-subtitle {
  padding-left: 10px;
  margin: 0;
}

/* Basic design structure for main sections*/
.about-section,
.projects-section {
  border-bottom: 2px solid var(--clr-dark);
  margin-left: auto;
  margin-right: auto;
  width: 85%;
  margin-bottom: 4em;
}

.section-title {
  margin-top: 1em;
  text-align: center;
}

/* Project section */
.project {
  margin: 5px;
}

.project1 {
  background-image: url("../img/project-01.jpg");
}
.project2 {
  background-image: url("../img/weather-dashboard.png");
}
.project3 {
  background-image: url("../img/inventory.png");
}
.project4 {
  background-image: url("../img/project04.jpg");
}
.project5 {
  background-image: url("../img/project05.jpg");
}

.main-project {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  height: 250px;
  width: 300px;
  border: 4px solid var(--clr-dark);
  margin-top: 35px;
  margin-right: 10px;
}

.secondary-project {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  height: 250px;
  width: 200px;
  border: 4px solid var(--clr-dark);
  margin-top: 35px;
  margin-left: 5px;
  margin-right: 5px;
}

.project-text {
  position: absolute;
  background-color: var(--clr-dark);
  color: var(--clr-light);
  border-radius: 0 15px 15px 0;
  bottom: 15px;
  left: 0;
  padding: 20px 20px 1px 15px;
}

.project-text h3 {
  text-decoration: underline;
}

.projects-section {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  align-content: flex-start;
}

.secondary-project:hover .project-text {
  background-color: var(--clr-dark);
  color: var(--clr-bright);
  border-color: var(--clr-bright);
  border-style: solid;
  border-width: 3px 3px 3px 0;
}

.secondary-project:hover {
  border: 4px solid var(--clr-bright);
}

.main-project:hover .project-text {
  background-color: var(--clr-dark);
  color: var(--clr-bright);
  border-color: var(--clr-bright);
  border-style: solid;
  border-width: 3px 3px 3px 0;
}

.main-project:hover {
  border: 4px solid var(--clr-bright);
}

@media (min-width: 900px) {
  .main-project {
    height: 500px;
    width: 820px;
  }

  .secondary-project {
    height: 500px;
    width: 400px;
  }
}

/* Contact Section Desing */
.contact-section p {
  text-align: center;
  padding-top: 10px;
}

.social-media {
  margin-left: -4.5%;
  margin-right: auto;
}

/* Social Media bar bottom*/
.social-list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-end;
  align-content: stretch;
}

.social-item {
  padding: 0 0.8em;
  list-style: none;
}

/* Media query breakpoints used
480px: Mobile devices.
768px: iPads, Tablets.
*/
