/*BRAND COLOR CUSTOM CSS PROPERTIES DECLARATION*/
:root {
  --brand-blue-darkest: #0041a8;
  --brand-blue-darker: #004ecc;
  --brand-blue: #3380ff;
  --brand-blue-lighter: #5294ff;
  --brand-blue-pale: #d6e4ff;
  --brand-brown-darkest: #414c29;
  --brand-brown-darker: #505b33;
  --brand-brown: #99aa66;
  --brand-brown-lighter: #bc8;
  --brand-brown-pale: #dee9ce;
  --navbar-desktop-height: 50px;
  --min-viewport-width: 360px;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.navbar {
  background-color: var(--brand-blue-darkest);
  height: var(--navbar-desktop-height);
  display: flex;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  min-width: var(--min-viewport-width);
}

.navbar__icon-div,
.navbar__nav-div {
  display: flex;
  align-items: center;
  height: 100%;
}
.navbar__icon {
  height: 100%;
  padding: 0 var(--navbar-desktop-height);
}
@media (max-width: 432px) {
  .navbar__icon {
    padding: 0;
  }
}

/* I DON'T KNOW WHY THE PADDING IS OFF BY 2.5px, but this fudge factor appears necessary*/
.navbar__nav-link {
  color: white;
  text-decoration: none;
  padding: calc((var(--navbar-desktop-height) - 1em - 5px) / 2);
  vertical-align: bottom;
  border-radius: 0.3em;
}

.navbar__nav-link:link,
.navbar__nav-link:visited {
}
.navbar__nav-link:hover,
.navbar__nav-link:active {
  background-color: var(--brand-brown-lighter);
  color: var(--brand-blue-darkest);
}

/*CSS to allow navbar not to cover the content.
  Don't apply to the first section, so the content remains
  vertically centered within the viewport*/

main {
  text-align: center;
  min-width: var(--min-viewport-width);
}

.welcome-section {
  overflow: none;
  height: 100vh;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  color: white;
  background-color: var(--brand-blue);
}

.welcome-section__contents {
  padding: 0;
  margin: 0;
}

.welcome-section__bubbly-text {
  font-weight: 900;
  font-size: 4em;
  width: 100%;
  padding: 0;
  margin: 0;
}

.welcome-section__tagline {
  background: linear-gradient(
    90deg,
    var(--brand-blue),
    var(--brand-brown-lighter),
    var(--brand-blue)
  );
  color: var(--brand-blue-darker);
  padding: 0;
  margin: 0;
  font-size: 1.33em;
}

.welcome-section__text {
  font-size: 1.2em;
  width: 75vw;
}
.welcome-section__interests {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
}
.welcome-section__interest-list {
  width: 300px;
  list-style: circle;
  text-align: left;
}

.section {
  border-top: var(--navbar-desktop-height) solid transparent;
  margin-top: calc(-1 * var(--navbar-desktop-height));
  background-clip: padding-box;
}

.section--portfolio {
  background-color: var(--brand-blue-lighter);
  color: var(--brand-brown-darker);
}

.major-project {
  background: rgba(255, 255, 255, 0.1);
  margin: auto;
  display: flex;
  align-items: center;
  flex-flow: row nowrap;
  width: 80%;
  border: 2px solid var(--brand-brown-darker);
}

.major-project__image-div {
  flex: 1 1 400px;
}
.major-project__image {
  width: 100%;
  height: auto;
}

.major-project__description {
  flex: 1 1 400px;
  padding: 20px;
  box-sizing: border-box;
  /* font-size: calc(100vw-1170) * 16; */
  font-size: calc((100vw / 1170) * 16);
}

.major-project__link:link,
.major-project__link:visited {
  color: var(--brand-brown-darker);
}

.major-project__link:hover,
.major-project__link:active {
  color: white;
}

@media screen and (max-width: 1170px) {
  .major-project {
    display: block;
  }
  .major-project__description {
    font-size: 1.2em;
  }
}
.small-projects-container {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
}

.project__panel {
  flex: 0 0 300px;
  max-width: 300px;
  border: 2px solid var(--brand-brown-darker);
  display: flex;
  flex-flow: column nowrap;
  justify-content: stretch;
}
.project__thumbnail {
  border-bottom: 2px solid var(--brand-brown-darker);
  display: block;
  margin: auto;
}

.project__title {
  border: 2px solid var(--brand-brown);
  font-weight: 700;
  flex: 1 0 1em;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
}
/*Polyfill hack below for iOS Safari's weird flexbox: column height problem*/
@supports (-webkit-overflow-scrolling: touch) {
  .project__title--two-lines {
    flex: 1 0 2.7em;
  }
}

.section__header {
  font-weight: 500;
  font-size: 2em;
  padding: 1em;
  margin: 0;
}

/*todo: update contact css*/
.section--contact,
.icon-row__icon {
  background-color: var(--brand-blue);
  color: white;
}
.icon-row {
  display: flex;
  flex-flow: row wrap;
  width: 50vw;
  margin: auto;
  min-width: 235px;
  justify-content: space-between;
  font-size: 4em;
}

/*shrink icons for smaller viewports or they will flow to another row and look weird*/
@media (max-width: 560px) {
  .icon-row {
    font-size: 3em;
  }
}

/* .mcatvip {
  flex: 1 1 50vw;
}

.mcatvip > img {
  display: block;
  width: 50vw;
  max-width: 100%;
  height: auto;
} */

.footer {
  text-align: right;
  background-color: var(--brand-blue-darkest);
  color: white;
  padding: 1em 3em;
}
