/* GDES306 | MMDD253 - Coding Your Portfolio     */
/* Extra small devices (phones, less than 600px) */
/* No media query since this is the default CSS */

/*Basic page styling*/
:root {
    /* These global variables that you can use in your css*/
    --black:black;
    --dark-grey:#333;
    --mid-grey:#666;
    --light-grey:#999;
    --white:white;
    --accent-color:rgb(0, 26, 255);
    --headline-font: font-family: "Oak Sans", sans-serif;  
    --body-font: "Oak Sans", sans-serif; 
    --horizontal-shift: 6px;
    --section-padding-top: 120px;
}

.footer {
    max-width: 10rem;
}

.padding {
    margin-top: 5%;
}

.padding2 {
    margin-top: 10%;
}



*{
    margin:0;
    padding: 0;
    transition: 0.5s;
}

body {
    font-family: var(--body-font);
    }
    h1, h2, h3, h4, h5, h6 {
     font-family: var(--headline-font);
    }
    h1 {
     font-size: calc(40px + (72 - 40) * (100vw - 400px) / (1800 - 400));
     margin-bottom: 3rem;
    }
    h2 {
     font-size: calc(32px + (48 - 32) * (100vw - 400px) / (1800 - 400));
     margin-bottom: 1.5rem;
    }
    h3 {
     font-size: calc(20px + (28 - 20) * (100vw - 400px) / (1800 - 400));
    }
    p {
     font-size: calc(16px + (20 - 16) * (100vw - 400px) / (1800 - 400));
     margin-bottom:2rem;
    }

    a {
        font-size: calc(16px + (20 - 16) * (100vw - 400px) / (1800 - 400));
        text-decoration: none;
        color: var(--black);
       }
       a:visited {
        color: var(--black);
       }
       .btn {
        background-color: var(--black);
        border: none;
        color: var(--white);
        padding: 15px 32px;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: calc(16px + (20 - 16) * (100vw - 400px) / (1800 - 400));
        width: fit-content;
       }
       .btn:hover {
        background-color: var(--accent-colour);
        color: var(--black);
        padding-left: calc(32px + var(--horizontal-shift));
       }
       .btn:visited {
        color: var(--white);
       }
       .btn:hover:visited {
        color: var(--black);
}

/* Styling the Navigation */
header {
    position: fixed;
    width: 100%;
    z-index: 10;
   }
nav {
    overflow: hidden;
    background: var(--white);
    height: 200px;
   }

.navexpanded {
    height: 50px;
   }

nav ul {
    display: flex;
    list-style-type: none;
    flex-wrap: wrap;
    text-align: center;
}

nav ul > li {
    margin-top: 14px;
    flex-basis: 100%;
   }

nav ul li a {
    text-decoration: none;
    color: var(--black);
    margin: 30px;
}
   
nav ul li a:hover {
    text-decoration: none;
    color: var(--dark-grey);
    background: var(--accent-colour);
}

   
#logo {
    margin-right: auto;
    flex-basis: 50%;
    text-align: left;
   }
   
#logo img {
    height: 2rem;
    width: auto;
   }
  
#menu-icon, #close-icon {
    margin-left: auto;
    flex-basis: 50%;
    text-align: right;
    font-size: 40px;
    margin-top: 0px;
}

#close-icon {
    display:none;
}
.navexpanded #close-icon {
    display:inline-block;
}
.navexpanded #menu-icon {
    display:none;
}
   
#logo a:hover,
#menu-icon a:hover,
close-icon a:hover {
    background: none;
   }

/* Styling for the Sections */
section {
    display: grid;
    min-height: calc(100vh - var(--section-padding-top));
    padding-top: var(--section-padding-top);
    grid-template-columns: 5% 1fr 5%;
    align-content: start;
   }
section > * {
    grid-column: 2;
   }

/* Styling for the Introduction */
#introduction {
    align-content: center;
   }

/* Styling for the Portfolio Section */
#portfolio a:hover h3,
#portfolio a:hover p {
 padding-left:var(--horizontal-shift);
}

/* Styling for the About */
#about ul {
    list-style: none;
   }

/* Styling the Contact section */
#contact {
    min-height:auto;
   }
   #contact ul {
    display: flex;
    list-style-type: none;
    margin-bottom:1rem;
   }
   #contact ul li a {
    text-decoration: none;
    color: var(--accent-colour);
    margin: 0 20px 0 0;
    font-size: 32px;
   }
   #contact ul li a:hover {
    text-decoration: none;
    color: var(--mid-grey);
   }

/* Styling for the About */
#about .intro-paragraph {
    font-size: calc(20px + (28 - 20) * (100vw - 400px) / (1800 - 400));
    grid-column: 1/-1;
   }

/* Styling to invert the colour scheme. Add this class to a section */
.inverted-colours {
    background:var(--black);
    color:var(--white);
   }
   .inverted-colours a {
    color:var(--white);
   }
   .inverted-colours a:visited {
    color:var(--white);
   }
   .inverted-colours .btn {
    color:var(--black);
    background:var(--white);
   }
   .inverted-colours .btn:hover {
    color:var(--white);
    background:var(--accent-colour);
   }


/* Small devices (i.e. tablets in portrait) */
@media (min-width: 600px) {
    nav {
    height: 60px;
    }
    .navexpanded {
        height: 170px;
    }

    .navexpanded #close-icon {
        display: none;
    }
    nav ul {
    flex-direction: row;
    align-items: baseline;
    }
    nav ul > li {
    flex-basis: auto;
    }
    #logo {
    flex-basis: auto;
    }
    #menu-icon, #close-icon {
    display: none;
    }  
    section {
    grid-template-columns: 15% 1fr 15%;
    }
    .two-columns {
        grid-template-columns:1fr 1fr;
        }
}

#topBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #000000;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 0px;
  }
  #topBtn:hover {
    background-color: #555;
    padding-left: calc(32px + var(--horizontal-shift));
  }
/*sections*/

/* Scale all images to their parent container */
img {
    width:100%;
   }


   .featured {
    grid-column: 1/-1; /*This Class can be used to stretch an item the entire width of the parent grid */
   }

/* Styling the Sections */
   .two-columns {
    display: grid;
    grid-template-columns:1fr;
    grid-gap:2rem;
    margin-bottom:2rem;
   }
   
   .two-columns-fixed {
    display: grid;
    grid-template-columns:1fr 1fr;
    grid-gap:2rem;
    margin-bottom:2rem;
   }

   .three-columns {
    display: grid;
    grid-template-columns:1fr 1fr;
    grid-gap:2rem;
    margin-bottom:2rem;
   }

   .auto-height {
    min-height: auto;
    }

    html {
        scroll-behavior: smooth;
        }


/* Small devices (i.e. tablets in portrait) */
@media (min-width: 600px) {

    .two-columns {
    grid-template-columns:1fr 1fr;
    }
}

@media (min-width: 600px) {
    .three-columns {
     grid-template-columns:1fr 1fr 1fr;
    }
}

/* Medium devices (i.e. tablets in landscape */
@media (min-width: 900px) {


}

/* Large devices (i.e. desktop) */

@media (min-width: 1200px) {


}

/* X-Large devices (i.e. big desktop) */

@media (min-width: 1800px) {

    
}
