

/* global styles */
body {
    background-color: #5a34af;
}

button {
    font-family: crystal;
    text-transform: uppercase;
    letter-spacing: 2px;
}


/* font styles */

@font-face {
    font-family: crystal;
    src: url('../fonts/CrystalCathedral-W8AE.ttf');
}

h1 {
    font-family: crystal;
    font-size: 5em;
    color: #ffffff;
    padding: 0;
    margin: .25em 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 200;
}

h2 {
    font-family: crystal;
    font-size: 2.5em;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 200;
}

p {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 2em;
    font-weight: 200;
    color: #ffffff;
    padding: 0;
    margin: .5em 0;
}

/* home page styles */

#mainPage {
    width: 100%;
    min-height: 100vh;
    display: grid;
    justify-content: center;
    margin: auto;
    align-items: center;
    grid-template-columns: 250px 250px 250px;
    grid-template-areas:
        'about blank contact'
        'logo logo logo'
        'branding print digital';

    #about {grid-area: about;background-image:url('../images/about_button.jpg');background-size:cover;background-color:#5a34af;color:#ffffff;border:5px solid #5a34af;}
    #contact {grid-area: contact;background-image:url('../images/contact_button.jpg');background-size:cover;background-color:#5a34af;background-repeat:no-repeat;background-position:center; color:#ffffff;border:5px solid #5a34af;}
    #branding {grid-area: branding;background-image:url('../images/brand_button.png');background-size:cover;background-color:#5a34af;color:#ffffff;border:5px solid #5a34af;background-repeat:no-repeat;background-position:center;}
    #print {grid-area: print;background-image:url('../images/print_button.jpg');background-size:cover;background-color:#5a34af;color:#ffffff;border:5px solid #5a34af;background-repeat:no-repeat;background-position:center;}
    #digital {grid-area: digital;background-image:url('../images/web_button.jpg');background-size:cover;background-color:#5a34af;color:#ffffff;border:5px solid #5a34af;background-repeat:no-repeat;background-position:center;}
    #logo {grid-area: logo}
    #about:hover, #contact:hover, #branding:hover, #print:hover, #digital:hover {background-color: #5a34af;background-image:none;border: 5px solid #ffffff;cursor: pointer;}
}

.portfolioButton {
    background-color: #ffffff;
    width: 200px;
    height: 200px;
    border-radius: 100%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: crystal;
    font-size: 2em;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    transition: 1s;
}

.mainLogo {
  max-width: 500px;
  margin: auto;
}

/* global page styling */

#frame {
    opacity: 0;
    transition: 1s;
}

#pageBody {
    margin: auto;
    width: 60%;
}

#pageGallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: auto;
}

.galleryItem {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: .5em;
    width: 400px;
    max-height: 250px;
    border-radius: 50px;
    overflow: hidden;
    transition: .5s;
    border: 5px solid #5a34af;
    text-align: center;
}

.galleryItem:hover {
    cursor:pointer;
    border-color: #ffffff;
    .galleryImg {opacity: .3;}
    .galleryTitle {display: inherit;}
}

.galleryImg {
    margin: auto;
    width: 100%;
}

.galleryTitle {
    position: absolute;
    display: none;
    z-index: 3;
}

/* navbar Styling */

#navBar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#navFrame {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    transition: 1s;
}

.navLogo {
    max-width: 300px;
}

.navItem {
    background-color: #ffffff;
    width: 200px;
    height: 50px;
    border-radius: 50px;
    border: 5px solid #5a34af;
    transition: .5s;
    font-size: 1.5em;
}

.navItem:hover {
    cursor: pointer;
    background-color: #5a34af;
    border-color: #ffffff;
}

/* lightbox styling */

.lightBoxBG {
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: start;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0, 0.5);
    transition: 2s;
    
}

.lightBox {
    width: 60%;
    height: 80%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 3em 1em;
    padding: 2em;
    background-color: #ffffff;
    border-radius: 50px;
    overflow: scroll;
    scrollbar-color: #5a34af transparent;
    scroll-margin-block-start: 5em;
    transition: 1s;
    h1 {color: #000000;width:100%;};
    p {color: #000000;};
}

.closeLightBox {
    letter-spacing: -1px;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    margin: 2em 0;
    background-color: rgba(0,0,0, 0);
    color: #fff;
    z-index: 5;
    font-size: 2em;
    border: 3px solid white;
    text-align: center;
}

.closeLightBox:hover {
    background-color: #5a34af;
    cursor: pointer;
}

/* contact form styling */

#c_form {
  margin: auto;
  max-width: 600px;
}

.c-label {
  font-family: crystal;
  font-size: 20px;
  color: #ffffff;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin: .25em 0;
}

.c-input {
  border-radius: 40px;
  font-size: 20px;
  padding: 1em;
  border: 3px solid #5a34af;
  width: 100%;
}

#c_submitButton {
  margin: .5em 0;
  background-color: #ffffff;
  color: #5a34af;
  font-family: crystal;
  border: 3px solid #5a34af;
  border-radius: 50px;
  font-size: 1.5em;
  padding: .25em 1em;
  transition: 1s;
}

#c_submitButton:hover {
  background-color: #5a34af;
  color: #ffffff;
  border-color: #ffffff;
}

/* about page styling */

.aboutBody {
  display: flex;
  justify-content: center;
  align-items: center;
  .textBox {width: 50%;}
}

.pfp {
  width: 333px;
  height: 333px;
  object-fit: cover;
  border-radius: 100%;
  margin: 1em;
}

/* lightBox image style */

.asacPrntImg, .cndrPrntImg, .mmpPrntImg, .cmpChmrImg, .mamaPrchImg, .dzDscImg, .cndrLogoImg {
  max-width: 100%;
}

.emailImg {
  max-width: 25%;
  margin: 0.5em;
  object-fit: contain;
}

.emailImg:hover {
  cursor: pointer;
  opacity: .5;
}

/* mobile nav styling */

#expandMenu {
    display: none;
}


/* mobile rendering */

@media (max-width: 1000px) {
  .aboutBody {flex-wrap: wrap;flex-direction: column-reverse;justify-content: center;}  
}

@media (max-width: 760px) {
    #mainPage {display: flex;flex-wrap:wrap; img{width:100%;}}
    .portfolioButton {margin: 0 1em; width: 150px;height: 150px;}
    .aboutBody {.textBox{width:100%;}}
  }

  @media (max-width: 561px) {
    #expandMenu {display:block;}
    #navFrame {height: 50px; overflow:hidden;}
    #navBar {max-width: 300px; margin:auto; }
    .portfolioButton {border-radius: 50px;width: 100%;height: 100px;}
    .pfp {width: 250px;height: 250px}
    .lightBox {width: 100%; img{width:100%;}}
    .closeLightBox {width: 40px;height: 40px;font-size: 25px;position: absolute;z-index: 5; border-color: #5a34af; color: #5a34af;right: 25px;top: 15px;}
  }

  /* animations */

  @keyframes expand {
    from {
      height: 0;
    }
  
    to {
      height: 80%;
    }
  }

  @keyframes collapse {
    from {
      height: 80%;
    }
  
    to {
      height: 0;
    }
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
  
    to {
      opacity: 100%;
    }
  }

  @keyframes fadeOut {
    from {
      opacity: 100%;
    }
  
    to {
      opacity: 0;
    }
  }