/* RESET */
html, body {
    margin: 0; padding: 0;
}

/* BODY */
body {
    color: #444444;
    background-color: #ffffff;
}


/* NAVIGATION */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    line-height: 70px;
    background-color: #ffffff;
    text-align: center;
    z-index: 5;
    box-shadow: 0 0 30px rgba(0,0,0,.2);
}

.brandon-tran {
    max-width: 400px;
    border-radius: 100%;
    padding: 12px;
}

.logo {
  text-decoration: none;
  display: inline-block;
  vertical-align: top;
  margin: 0;
}
.icon-home {
  background-image: url('https://storage.googleapis.com/brandontran-196302.appspot.com/icon-home.png');
  background-repeat: no-repeat;
  background-size: 30%;
  background-position: center center;
  width: 70px;
  height: 70px;
  vertical-align: top;
  cursor: pointer;
  display: inline-block;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0;
}

/* ICON TRANSITIONS */
.icon-home,
.logo {
  transition: transform 300ms;
}

.icon-home:hover,
.logo:hover {
  transform: scale(1.1);
}


/* HERO */
.hero {
    min-height: 100vh;
    background-image: url('https://storage.googleapis.com/brandontran-196302.appspot.com/hero-brandon-wendy-tran-bridge-opt.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    overflow: hidden;
    background-color: #222222;
    color: #ffffff;
    margin-bottom: 2.5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-top: 30vw;
}
@media all and (max-width:700px) {
    .hero {
        min-height: 90vh;
        padding-top: 40vw;
        justify-content: flex-end;
        background-image: url('https://storage.googleapis.com/brandontran-196302.appspot.com/hero-brandon-wendy-tran-bridge-mobile-opt.jpg');
    }
}
.hero h1 {
    font-weight: bold;
    margin: 0;
}
.hero h2 {
    margin: 0;
    max-width: 920px;
    margin-bottom: 4vh;
}
.hero h1, .hero h2 {
    text-shadow: 0px 0px 40px rgba(0,0,0,1);
}
.home h2 {
    margin-top: 0;
}

/* PRIMARY SECTIONS */
section {
    padding: 2.5vw 5vw;
    box-sizing: border-box;
    border-bottom: #f1f1f1 1px solid;
}
article {
    padding: 100px 5vw 5vw 5vw;
    box-sizing: border-box;
    max-width: 1400px;
    margin: auto;
}

/* New Grid 2022 */
.grid { 
  display: flex;
  flex-flow: row wrap;
  width: 100%;
  grid-gap: 20px;
}

.grid figure {
  flex: auto;
  height: auto;
  width: 30%;
  min-width: 150px;
  margin: 0;
  box-sizing: border-box;
}

.grid img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* 2 column for some */
.grid figure:nth-child(4),
.grid figure:nth-child(5),
.grid figure:nth-child(9),
.grid figure:nth-child(10),
.grid figure:nth-child(14),
.grid figure:nth-child(15){
  width: 40%;
}

/* Mobile Gallery  */
@media all and (max-width:768px) {
    .grid figure {
        width: 40%;
        min-width: 100px;
    }
}


/* FOOTER */
footer {
    text-align: center;
    padding: 40px;
}




/* FORMS */
input[type="text"] {
  padding: 8px;
  font-size: 1em;
}

/* LISTS */
li { margin-bottom: 12px; }


/* Link Colors */
a {
  color: #337ab7;
}
a:hover {
  filter: brightness(1.75);
}


/* Primary Button */
.primary {
    display: inline-block;
    padding: 8px 28px;
    color: #fff;
    background-color:#337ab7;
    text-decoration: none;
    border-radius: 2px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, .4);
    margin-bottom: 8px;
}
.primary:hover {
    filter: brightness(1.5);
    box-shadow: 0px 0px 15px rgba(0, 0, 0, .4);
    color: #fff;
}

/* Articles */
.youtube,
.youtube_iframe {
    display: block;
    margin: 0 auto;
    background-color: black;
    height: 50.625vw;
    width: 100%;
    border: none;
}


/* IMAGES */
img {
  display: block;
  width: 100%;
  margin: 0 auto;
  height: auto;
}



/* HELPERS */

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-justify { text-align: justify; }


.maxw200 { 
    max-width: 200px; 
}
.maxw400 {
    max-width: 400px;
}    
.maxw600 {
    max-width: 600px;
}   
.maxw800 {
    max-width: 800px;
}   
    
	


/* MOBILE */
@media all and (max-width:700px){
    .icon-home {
        width: 60px;
        height: 60px;
    }
    nav {
        height: 60px;
        line-height: 60px;
    }
    .gallery img {
        width: 33.333%;
    }
    .grid-item {
        max-width: 100%;
    }
}



@media print {
  body {
    width:100%
  }
  *{
    -webkit-print-color-adjust:exact
  }
}


/* TYPOGRAPHY */

/* DEFAULT */
body {
    font-family: 'Trebuchet MS', Arial;
    font-size: 1.5em;
}
p {
    line-height: 1.5;
}
.hero h1 {
    font-size: 5rem;
    letter-spacing: -1px;
}
.hero h2 {
    font-size: 2.4rem;
}
/* TABLET */
@media all and (min-width: 701px) and (max-width: 1400px) {
    body {
        font-size: 1.4em;
    }
    .hero h1 {
        font-size: 4rem;
    }
    .hero h2 {
        font-size: 2rem;
    }
}
/* MOBILE */
@media all and (max-width:700px) {
    body {
        font-size: 1.3em;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
}

h1, h2, h3, h4, h5 {
    text-align: center;
    font-weight: bold;
}

h2, h3, h4, h5 {
    margin-top: 3em;
}


/* BUTTON Icon Scroll Down */ 
.icon-down {
    position: relative;
    width: 48px;
    height: 48px;
    font-size: 0;
    background-color: transparent;
    border: none;
    opacity: .7;
    cursor: pointer;
}
.icon-down:before {
    content: "";
    position: absolute;
    top: 45%;
    left: 10%;
    background-color: #fff;
    height: 4px;
    width: 24px;
    transform: rotate(45deg);
}
.icon-down:after {
    content: "";
    position: absolute;
    top: 45%;
    right: 10%;
    background-color: #fff;
    height: 4px;
    width: 24px;
    transform: rotate(-45deg);
}
.icon-down:hover {
    opacity: 1;
}

/* Support Dark Theme */
@media (prefers-color-scheme: dark) {
  body {
    color: #ffffff;
    background-color: #111111;
  }
  section {
       border-color: rgba(255, 255, 255, .1);
  }
  nav {
      background-color: rgba(0, 0, 0, .9);
  }
  .icon-home {
      filter: brightness(2);
  }
}

.left {
    text-align: left;
}