:root {
    --primary-color: #8b1d50;
    --secondary-color: rgb(170, 185, 250);
    --tertiary-color: #1e2761;
  }

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    color: var(--tertiary-color);
    font-family: Helvetica, Arial, sans-serif;
  }

  /* header styles */

  header {
      display: flex;
      justify-content: space-between;
      background-color: var(--tertiary-color); 
  }

  header nav {
      margin: 7px 30px 7px 0;
  }

  header nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    list-style: none;  
    margin-right: 60px;
  }

  header nav ul li {
    margin: 10px 30px 10px 0;

  }

  header nav ul li a:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    text-shadow: none;
    transition: all 0.4s ease-in;
  }

  header h1 { 
    margin: 5px 0 5px 0;
    font-size: 27px;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    padding: 5px 18px 5px 60px;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    border-radius: 0 25px 25px 0;
    
  }

  header a {
    text-decoration: none;
    color: var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
  }
  
  /* hero styles start */
  
  .hero {
      background-image: url('../images/background.jpg');
      background-size: cover;
      display:flex;
      justify-content: flex-start;
      flex-wrap: wrap;
      align-items: center;
      background-attachment: fixed;
      background-position: 99%;
      height: 200px;  
  }

  .logo {
    height:150px;
    opacity: 0.8;
    margin: 0 0 0 30px;
    align-self: center;

  }

  .subtitle {
      color: var(--primary-color);
      background-color: var(--secondary-color);
      margin: 0 0 15px 0;
      padding: 5px;
     font-size: 12px;
      width: fit-content;
      align-self: flex-end;
      position: absolute;
      left: 55%;
      opacity: 0.8;
      border:3px solid var(--primary-color)
  }

  /*big body */
  .big-body {
    margin: 0 10% 0 0;
  }

  /* about styles */
  .about-text {
      color: var(--tertiary-color);
      display: flex;
      flex-wrap: wrap;
      width: 80%;
      font-size: 18px;
      padding: 0 0 0 15px;
      margin: 0 0px 0 0;
      border-left: 3px solid var(--tertiary-color);
      text-align: justify;
  }

  /* work styles */

 .nav-style {
     width: 20%;
     color: var(--primary-color);
     text-align: right;
     font-size: 36px;
     padding: 0 15px 0 0;
 }

 .work {
     width: 100%;
     margin: 0 auto;
     display: flex;
     flex-wrap: wrap;
     justify-content: space-around;
 }

/* WORK IMAGES*/
  .flex-projects {
      display: flex;
      align-items: flex-start;
      margin: 15px 0 15px 0;
  }

  .flex-images {
      flex: 1; 
      border-left: 3px solid var(--tertiary-color);  
      display: flex; 
      flex-flow: row wrap;
      padding: 0 0 0 30px;
      margin: auto 60px auto auto;
      justify-content:space-between;
  }

  .flex-images img {
    border: 3px solid var(--secondary-color);

  }

  .first-image {
      width: 100%;
  }

  .parent {
    width: 80%;  
    padding: 30px;
    justify-content: space-between;
    border-left: 3px solid var(--tertiary-color);
    padding: 0 0 0 15px;
}

.div1 {   
    box-sizing: border-box;
    width: 100%;
    flex: 1;
    margin: 3px 0 0 0;
    display: flex; 
}

.runbuddy  {
  width: 100%;
  border: 3px solid var(--primary-color);
  opacity: 0.75;
  transition: opacity 1s;
}

.runbuddy:hover {
  opacity: 1;
}

.div-span {
    display: flex;
    align-self: flex-end;
    flex-direction: column;
    margin: 0 0 25px 20px;
    position:absolute;
    font-size: 18px;
    color:var(--primary-color);
    background-color: var(--secondary-color);
    border: 3px solid var(--primary-color);
    padding: 2px;
    opacity: 0.75;
    transition: opacity 1s;
}

.div-span a {
  text-decoration: none;
}

.div-span h5 {
  color:var(--tertiary-color);
}

.div-span:hover {
  opacity: 1;
}

.div2 {
    height: auto;
    display: flex;
    width: 49.5%;
    margin: 0 0 0.5% 0;
    z-index: 99;
}

.other-flex {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content:space-between;
}

.other-img {
  height: 100%;
  margin: auto;
  width: 100%;
  border: 3px solid var(--primary-color);
  object-fit: fill;
  opacity: 0.75;
  transition: opacity 1s;
}

.other-img:hover {
  opacity: 1;
}
  
  /* utility */
  .flex-row {
    display: flex;
    margin: 30px 0 15px 0;
  }

  /* contact info styles */

  .flex-projects-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 15px 0 15px 0;
  }

  .contact-ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex: 1;    
    border-left: 3px solid var(--tertiary-color);
    padding: 30px 0 15px 30px;  
  }

  .contact-ul li {
    margin: 10px;
    border-bottom: 3px solid var(--primary-color);
  }

  .contact-ul a {
    text-decoration: none;
    color: var(--tertiary-color);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 16px;
  }

  /*MEDIA QUERIES START */

  /* first breakpoint = 724px */


  @media screen and (max-width: 777px) {
    h2 {
      font-size: 18px;
    }

    header {
      flex-direction: column;
      align-items: center;
    }

    header h1 {
      padding: 5px 20px 5px 20px;
      font-size: 36px;
      border-radius: 25px;
    }
    header nav {
      margin: 0;
    }

    header nav ul {
      margin: auto;
    }
    
    
    header nav ul li {
      margin: auto;
      padding: 5px;
      font-size: 20px;
    }

    .hero {
      justify-content: center;
      flex-direction: column;
      flex-wrap: nowrap;
      height:auto;
    }

    .logo {
      margin: 5px 0 0 0;
      height: 200px;
      }
    .subtitle {
      margin: 5px;
      left: 0%;
      position: relative;
      align-self:auto;
    }

    .big-body {
      margin: auto;
    }

    .flex-row {
      flex-direction: column;
      align-items: center;
    }

    .nav-style {
      padding: 5px;
      text-align: left;
      width: 80%;
      font-size: 30px;
      border-bottom: 3px solid var(--tertiary-color);
      
    }

    .about-text {
      padding: 5px;
   
      border-left: none;
      font-size: 14px;
     
    }

    .flex-projects {
      flex-direction: column;
      align-items: center;
    }

    .parent {
  
      border-left: none;
      padding: 5px;
    }
    .div-span {
      font-size: 10px;
      margin: 0 0 15px 5px;
      border: 2px solid var(--primary-color)
    }
   
    .flex-projects-contact {
      flex-direction: column;
      align-items: center;
    }

    .contact-ul {
      margin:auto;
      padding:5px;
      font-size: 12px;
      flex-wrap: nowrap;
      width:100%;
      font-size: 10px;
      border-left: none;
  
    }

    .contact-ul li {
      margin: 3px;
     
    }

    .contact-ul a {
      font-size: 10px;
    }
  }