/*
colors used

Text color (light-blue): #99bbff;
Primary color(White): "#ffffff;
Secondary color (light-blue): #80aaff;
*/


/* style color organization*/

:root {

    --background_color: white;
    --maintext_color: #000000;
    --interactive_color: #0855ef;
    --buttons_background_color: white;
    --primary_buttons_background_color:#0855ef;
    
    --secondary_buttons_backgound_color: #e0b354;
    --secondary_buttons_text_color: #000000;
    }
    
    
    
    
    
    /*start color*/
    
    
    body {
      background-color: var(--background_color);
      color: var(--maintext);
      font-family: 'Merriweather', serif;
      font-weight: 400;
      font-size: 16px;
      /*font size to 16px */
      line-height: 1.7;
      /* Sets line-height to 1.7 */
    }
    
    h1 {
      color: var(--maintext_color);
      font-size: 50px;
      font-weight: 800px;
      line-height: 2;
      text-emphasis-color: var(--maintext_color);
    }
    
    h3 {
      font-size: 24px;
      font-weight: 700px;
      line-height: 1.75;
    }
    
    footer {
      color: var(--maintext_color);
      font-size: 20px;
      font-weight: 600px;
    }
    
    p {
      color: var(--maintext_color);
      font-size: 24px;
      font-weight: 700px;
    }
    
    
    
    
    
    
    /*interactive elements and hover states*/
    a {
      color: var(--interactive_color);
    }
    
    a:visited {
      /* visited link */
      color: var(--interactive_color);
    }
    
    a:hover {
      /* No underlining when hovering over a link */
      text-decoration: none;
    }
    
    a:active {
      /* selected link */
      color: var(--interactive_color);
    }
    
    
    
    
    
    
    
    
    /*end color schemes*/
    
    
    
    
    
    
    /*accessibility in active elements*/
    
    a:hover,
    a:focus {
      /* No underlining when hovering over a link */
      text-decoration: none;
    }
    
    
    /*button elements section*/
    button {
      /* overwrites browser defaults and resets the border */
      border: none;
      /* takes the font from the outer container */
      font-family: inherit;
      /* styles the background color, font color, and text decoration (underline, etc.) of the button */
      background-color: var(--buttons_background_color);
      color: white;
      text-decoration: none;
      /*adds spacing to the button (this will be discussed more in-depth later) */
      padding: 25px;
      border-radius: 5px;
      /* gives the button a bottom border with a width of 2px, a type of solid, and a color in RGBA format */
      border-bottom: 2px solid rgba(0, 0, 0, 0.3);
    }
    
    button:hover,
    button:focus {
      /* lets the mouse appear as a hand when hovering over the button */
      cursor: pointer;
      /* reduces the opacity of the button to 80% */
      opacity: 0.8;
    }
    
    /*secondary Button*/
    .button__secondary {
      background-color: var(--secondary_buttons_backgound_color);
      color: var(--secondary_buttons_text_color);
    }
    
    
    .button, button {
      /* overwrites browser defaults */
      /* resets the border */
      border: none;
      display: inline-block;
      /* takes the font from the outer container */
      font-family: inherit;
      /* style button */
      background-color: var(--primary_buttons_background_color);
      color: white;
      text-decoration: none;
      padding: 10px;
      border-radius: 3px;
      /* width of the border, type, color */
      border-bottom: 2px solid rgba(0, 0, 0, 0.3);
      transition: opacity 0.2s;
    }
    
    /*border box section*/
    * {
      box-sizing: border-box;
    }
    
    
    /*profile picture section*/
    
    .profile {
      max-width: 700px;
      margin: 0 auto;
    }
    
    .profile__portrait {
      float: left;
      width: 250px;
      margin-right: 40px;
      border-radius: 50%;
    }
    
    
    /*header section*/
    
    .page-header {
      display: flex;
      width: 100%;
      padding: 20px;
    }
    
    .page-header__item {
    
      width: 100px;
    }
    
    .page-header-img {
      width: 200px;
    
    }
    
    .page-header__item:last-child {
      flex-grow: 1;
      text-align: right;
    }
    
    .navigation-list {
      list-style-type: none;
    }
    
    .navigation-list li {
      display: inline-block;
      margin-left: 15px;
    }
    
    
    /* Grid Section*/

    .grid-container {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 20px;
      padding: 20px;
    }
    
    .project-card {
      border: 1px solid #ccc;
      border-radius: 8px;
      background-color: #fff;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      overflow: hidden;
      transition: transform 0.2s;
    }
    
    .project-card:hover {
      transform: scale(1.02);
    }
    
    .project-card img {
      width: 100%;
      height: auto;
    }
    
    .project-card h3,
    .project-card p,
    .project-card .links {
      margin: 16px;
    }
    
    /*footer section*/
    
    .page-footer {
      clear: both;
      display: flex;
      flex-direction: column;
      text-align: center;
    
    }
    
    .page-footer button {
      width: 150px;
      margin: 5px auto;
    
      }
    
    
    /*social media logos*/
    
    .social-media img {
      width: 40px;
    }
    
    
    /*Responsive*/
    
    @media all and (max-width: 500px) {
      #grid-container {
        grid-template-columns: 1fr;
      }
    }
    @media all and (min-width: 500px) and (max-width: 750px){
      #grid-container {
        grid-template-columns: 1fr;
      }
    }
    @media all and (max-width: 750px) {
      .grid {
        grid-gap: 10px;
      }
      .grid__item:last-child {
        grid-column: auto / auto;
        grid-row: auto / auto;
      }
      h1 {
        font-size: 22px;
      }
    }