/*

SCSS by Clement Faisandier

clementfaisandier@outlook.com

Table of Contents:

1. Imports
2. Variables
3. Header
4. Main
5. Text
6. Banner
7. About


*/
@import url("../node_modules/bootstrap/dist/css/bootstrap.min.css");
@import url("../node_modules/@fortawesome/fontawesome-free/css/all.min.css");
@import url("https://fonts.googleapis.com/css2?family=Geo:ital@0;1&display=swap");
.logo {
  display: block;
  background: url("../images/android-chrome-192x192.png");
  background-size: cover;
  height: 3em;
  width: 3em;
  align-self: flex-start;
}

.logo::after {
  margin-top: 50%;
}

#toggle {
  display: none;
}

nav {
  display: block;
  background: linear-gradient(90deg, #0055a4, #57B8FF);
  color: white;
  font-family: 'Geo', sans-serif;
  font-size: 130%;
  position: fixed;
  z-index: 98;
}

nav ul {
  width: 100vw;
  list-style: none;
  display: flex;
  justify-content: stretch;
  margin: 0px;
  padding: 0px;
  height: 3em;
}

nav li {
  flex-grow: 1;
  text-align: center;
  display: block;
}

nav a {
  display: block;
  height: 3em;
  padding-top: 0.7em;
  color: inherit;
}

nav a:hover {
  color: inherit;
  text-decoration: none;
}

nav a::after {
  content: "";
  display: block;
  height: 3px;
  width: 0px;
  margin-left: 50%;
  background-color: #ef4135;
  position: relative;
  top: 14px;
}

nav a:hover::after {
  width: 100%;
  margin-left: 0px;
  transition: all 0.5s ease;
}

.banner {
  display: block;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(90deg, #0055a4, #57B8FF);
}

.banner div {
  position: absolute;
  margin-top: 40vh;
  width: 100%;
  align-content: center;
}

.banner div * {
  color: white;
  display: block;
  width: max-content;
  margin: 0px auto;
}

* {
  max-width: 100vw;
}

main {
  padding: 0px 30px;
}

main > * {
  margin-top: 1em;
}

.chip-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 70%;
  margin: 0px 15%;
}

.chip {
  margin: 0.25em;
  padding: 0.2em 0.75em;
  background-color: #0055a4;
  color: white;
  border: 1px solid #0055a4;
  font-size: 1.1em;
  border-radius: 1em;
  box-shadow: 1px 3px 2px 1px darkgray;
}

a:hover {
  text-decoration: none;
  cursor: pointer;
}

.button {
  background-color: #0055a4;
  color: white;
  font-size: 1.3em;
  padding: 0.5em;
  border-radius: 2px;
  display: block;
  width: max-content;
  border: none;
}

.button:hover {
  text-decoration: none;
  color: white;
}

a::after {
  content: "";
  display: block;
  height: 3px;
  width: 0px;
  margin-left: 50%;
  background-color: #ef4135;
  position: relative;
  top: 10px;
  border-radius: 0px 0px 2px 2px;
}

a:hover::after {
  width: calc(100% + 1em);
  margin-left: -0.5em;
  transition: all 0.5s ease;
}

div.horizontal-space {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.center {
  display: block;
  width: max-content;
  margin: 0px auto;
}

.tile {
  margin: 2em 1em;
  padding: 1em 2em;
  box-shadow: 3px 4px 3px darkgray, 0px 0px 2px 2px darkgray;
}

.br-line {
  display: block;
  width: 90vw;
  height: 2px;
  background: linear-gradient(90deg, white, #0055a4, #57B8FF, #ef4135, white);
  margin: 1em 0px;
}

h1 {
  font-size: 4em;
}

h2 {
  display: block;
  width: max-content;
  margin: 0 auto;
}

h3 {
  padding-left: 1em;
  font-weight: 600;
}

h4 {
  font-size: 1.2em;
  font-style: italic;
}

#about {
  padding: 1em 0px;
  display: grid;
  grid-template-columns: 35% 65%;
}

#about h2 {
  grid-column: span 2;
}

#about div {
  margin: 1em;
  grid-row: 2;
}

#about img {
  width: 100%;
}

#projects {
  position: relative;
}

#projects > a:hover::after {
  width: 0px;
  height: 0px;
}

#projectCarousel {
  margin: 2em 0em;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.7);
  width: max-content;
  margin: 0px auto;
  padding: 0.5em 1em;
  border-radius: 1em;
}

.carousel-caption a {
  display: inline-block;
  background-color: #0055a4;
  width: 30%;
  border-radius: 0.2em;
  color: white;
  padding: 0.2em 0em;
}

.carousel-caption a:hover {
  text-decoration: none;
  color: white;
}

.carousel-caption a::after {
  top: 0.2em;
}

.carousel-caption a:hover::after {
  width: 100%;
  margin: 0px;
}

.project-detail {
  display: block;
  position: fixed;
  top: 100vh;
  left: 30vw;
  width: 40vw;
  height: 90vh;
  border-radius: 2em;
  background-color: white;
  padding: 1em;
  box-shadow: 3px 3px 3px 3px darkgray;
  z-index: 99;
  opacity: 0;
  grid-template-columns: 90% 10%;
  grid-template-rows: 10% 33% auto;
  grid-template-areas: "title close" "picture picture" "text text";
}

.project-title {
  grid-area: title;
}

.project-close {
  grid-area: close;
  font-size: 3em;
  text-align: center;
  margin-top: 5px;
}

.project-close:hover {
  color: #ef4135;
  border-radius: 1em;
}

.project-detail a:hover::after {
  height: 0px;
  width: 0px;
}

.image-link {
  margin: auto 5px;
}

.image-link img {
  width: 100%;
}

.gallery {
  grid-area: picture;
  display: flex;
}

.project-text {
  grid-area: text;
}

#experience {
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: auto;
}

#experience h2 {
  grid-row: 1;
  grid-column: span 2;
}

#culture {
  display: flex;
  width: 100%;
  height: 80vh;
  flex-wrap: nowrap;
}

.usa {
  order: 1;
  background-color: #0055a4;
}

.france {
  order: 2;
  background-color: white;
}

.language {
  order: 3;
  background-color: #ef4135;
}

.trio {
  padding: 3em;
  flex-grow: 1;
  flex-basis: 16%;
  transition: all 0.5s ease;
}

.trio * {
  display: none;
  opacity: 0;
  transition: all 0.5s ease;
}

.trio p {
  margin-top: 1em;
}

.trio:hover {
  display: block;
  flex-grow: 4;
  transition: all 0.5s ease;
}

.trio:hover * {
  display: block;
  opacity: 1;
  transition: all 0.5s ease;
}

.usa *, .language * {
  color: white;
}

div.half-half {
  margin-top: 1em;
  display: flex;
}

div.half-half > * {
  width: 50%;
  text-align: center;
  align-content: center;
}

.half-half div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.half-half div h3 {
  width: 100%;
}

.half-half div a {
  margin: 0.5em 1em;
}

form {
  display: grid;
  width: 100%;
  grid-template-columns: 20% 80%;
  row-gap: 1em;
  align-items: baseline;
}

form h3 {
  grid-column: span 2;
}

form label {
  grid-column: 1;
  justify-self: end;
  margin-right: 0.5em;
}

form input {
  grid-column: 2;
  width: 70%;
}

form textarea {
  grid-column: 2;
  grid-row: span 2;
}

form input[type="submit"] {
  grid-column: span 2;
  justify-self: center;
}

footer {
  margin: 1em 0em;
  text-align: center;
}

.clearfix {
  clear: both;
}

@media (max-width: 700px) {
  #toggle {
    display: block;
    cursor: pointer;
    margin: 1em;
  }
  nav {
    position: relative;
  }
  nav ul {
    display: flex;
    flex-direction: column;
    padding-bottom: 100vh;
    position: relative;
  }
  nav a {
    margin: 0px auto;
  }
  #experience h2 {
    grid-column: 1;
  }
  #culture {
    height: fit-content;
    padding-bottom: 2em;
  }
}
