/*
  Name: Zizhen Song
  Date: July 25, 2020
*/

:root {
  /* --dark-clay: #1f2833;
  --teal: #66FCF1;
  --gold: #66FCF1;
  --dark-brown: #080c10;
  --light-gray: #c5c6c7;
  --white: white;
  --terminal-green: #16C60C; */

  --dark-clay: #353C3F;
  --teal: #66FCF1;
  --gold: #F9D342;
  --dark-brown: #292826;
  --light-gray: lightgray;
  --white: white;
  --terminal-green: #16C60C;
  --padding-web: 15vw;
  --padding-mobile: 10vw;
  --nav-height: 8vh;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--dark-clay);
  overflow-x: hidden;
  font-size: 1.25rem;
}

header {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url('img/profilebackground.jpg');
  color: white;
}

header h1 {
  font-size: 14vw;
  padding-bottom: 0.5vh;
  border-bottom: 1px solid white;
  font-family: 'Permanent Marker', cursive;
  text-shadow: 5px 5px var(--dark-clay);
  margin-top: 10vh;
}

header h3 {
  font-size: 1.5rem;
  text-shadow: 2px 2px var(--dark-clay);
  text-transform: uppercase;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

#navbar {
  height: var(--nav-height);
  display: none;
  justify-content: center;
  align-items: center;
  background-color: #080c10; /* var(--dark-brown); */
  font-size: 4vh;
}

#navbar a:link, #navbar a:visited {
  color: var(--light-gray);
  margin: 0 2vw;
  cursor: pointer;
  border-bottom: 2px solid transparent;

  /* left to right highlight */
  overflow: hidden;
  background: linear-gradient(to right, var(--gold), var(--gold) 50%, var(--light-gray) 50%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  background-position: 100%;
  transition: background-position 375ms ease;
}

#navbar a:hover {
  background-position: 0 100%;
}

a, a:hover {
  text-decoration: none;
  color: var(--white);
}

.row {
  padding-bottom: 20px;
}

section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: var(--padding-mobile);
  padding-right: var(--padding-mobile);
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 20px;
}

section h2, section h3, section a {
  color: var(--gold);
}

section p, section h4 {
  color: var(--light-gray);
}

section h4, footer {
  text-align: center;
}

section h2 {
  font-size: 3rem;
  padding-top: 1rem;
}

section h3 {
  font-size: 2rem;
  padding: 0.5rem 0;
}

section h4 {
  font-size: 1.5rem;
  padding-bottom: 2rem;
  padding-top: 1rem;
}

section h5 {
  color: var(--white);
  padding: 0.5rem 0;
}

footer {
  color: var(--white);
}

.column {
  width: 100%;
}

.active {
  border-color: var(--gold) !important;
}

#profile, #projects {
  background-color: var(--dark-brown);
}

#profile > div {
  background-image: url(img/svg/letter-background-mobile.svg);
  height: 200vw;
  width: 100vw;
  background-position: center;
  background-repeat: no-repeat;
}

#profile article {
  padding: 23vw 15vw;
}

#profile article p {
  font-size: 3vw;
  color: var(--dark-clay);
  font-family: 'Kalam', cursive;
}

#letter-counter {
  font-size: 1.5vw !important;
  color: gray !important;
  margin: 0.5vw;
}

#polar-left, #polar-right {
  cursor: pointer;
}

.polaroid-controls {
  font-size: 20px !important;
  position: absolute;
  top: -50px;
  right: 50px;
}

#letter-footer{
  text-align: right;
}

#letter-end a{
  color: blue;
}

#letter-end a:hover{
  text-decoration: underline;
}

#letter-footer span {
  font-family:'Mr De Haviland', cursive;
  font-size: 6vw;
}

.polaroid {
  margin:0 auto 15px;
}

.polaroid a {
  background: #ffffff;
  display: inline-block;
  padding: 1vw;
  text-align: center;
  text-decoration: none;
  -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, .3);
  -moz-box-shadow: 0 4px 6px rgba(0, 0, 0, .3);
  box-shadow: 0 4px 6px rgba(0, 0, 0, .3);
  -webkit-transition: all .20s linear;
  -moz-transition: all .20s linear;
  transition: all .20s linear;
  z-index: 0;
  position: relative;
  cursor: auto;
}

.polaroid a:after {
  color: #333;
  font-size: 2vw;
  content: attr(title);
  position: relative;
  top: 0 px;
  font-family: 'Permanent Marker', cursive;
}

.polaroid img {
  display: block;
  width: 18vw;
  height: 15vw;
}

.polaroid a:hover {
  -webkit-transform: scale(1.50);
  -moz-transform: scale(1.50);
  transform: scale(1.50);
  z-index: 5;
  -webkit-box-shadow: 0 0.5vw 1vw rgba(0, 0, 0, .7);
  -moz-box-shadow: 0 0.5vw 1vw rgba(0, 0, 0, .7);
  box-shadow: 0 0.5vw 1vw rgba(0, 0, 0, .7);
}

#profile-pic {
  max-width: 18rem;
  max-height: 18rem;
  border-radius: 50%;
  float: center;
  margin-right: 0;
}

#experiences img {
  border-radius: 20px;
}

#contact-links a {
  color: #F9D342;
  font-size: 3rem;
  margin-right: 0.5rem;
  margin-left: 0.5rem;
}

#project-spotlight{
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 0.5rem;
  padding-bottom: 3rem;
}

.curly-brace {
  width: 70%;
}

.flip {
  transform: rotate(180deg);
}

.card {
  box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(16, 24, 32, 0.8);
  background-color: rgba(16, 24, 32, 0.85);
  margin-bottom: 18px;
}

.card-title {
  color: #F9D342;
  margin-bottom: 0;
}

.card-body p {
  font-size: 1rem;
}

.card-body ul, #project-spotlight ul {
  list-style-type: none;
  display: inline;
  padding-left: 0;
}

.card-body ul li, #project-spotlight ul li {
  border: 1px solid #50a9d1;
  color: white;
  margin-right: 5px;
  text-transform: uppercase;
  font-weight: 500;
  width: auto;
  display: inline-block;
  font-size: 0.65rem;
  line-height: 1.33333em;
  padding: 6px 15px;
  margin-top: 0.8em;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
  border-radius: 8px;
}

.experience-images {
  display: block;
  width: 80%;
  margin-top: 10px;
  margin-bottom: 30px;
}

.hidden {
  display:none;
}

.slide-right-focus-in {
  -webkit-animation: slide-right-focus-in 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation: slide-right-focus-in 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation-delay: 1s;
}

@-webkit-keyframes slide-right-focus-in {
  0% {
    -webkit-transform: translateX(-75px);
    transform: translateX(-75px);
    -webkit-filter: blur(12px);
    filter: blur(12px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    -webkit-filter: blur(0px);
    filter: blur(0px);
    opacity: 1;
  }
}

@keyframes slide-right-focus-in {
  0% {
    -webkit-transform: translateX(-75px);
    transform: translateX(-75px);
    -webkit-filter: blur(12px);
    filter: blur(12px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    -webkit-filter: blur(0px);
    filter: blur(0px);
    opacity: 1;
  }
}

.terminal {
  background-color: black;
  font-family: 'Courier Prime', monospace;
  color: #CCCCCC;
  border: 3px double #CCCCCC;
  padding: 20px;
  font-size: 8pt;
  box-shadow: 10px 10px 20px black;
}

.terminal ul {
  list-style: none;
  padding: 0;
}

.terminal ul li:hover {
  color: var(--terminal-green);
}

.terminal ul li:before {
  content: '\00a0 \00a0 ';
}

.terminal ul li:hover:before {
  content: '>\00a0 ';
}

@media (min-width: 768px) {
  #navbar {
    display: flex;
  }

  header {
    height: 92vh;
    /* Create the parallax scrolling effect */
    background-attachment: fixed;
  }

  header h1 {
    font-size: 15vh;
  }

  section {
    padding-left: var(--padding-web);
    padding-right: var(--padding-web);

    /* proper scrolling from nav bar */
    margin-top: - var(--nav-height);
    padding-top: var(--nav-height);
    padding-bottom: var(--nav-height);
  }

  section h2 {
    font-size: 4rem;
    padding: 0;
  }

  #experiences {
    z-index: 1000;
  }

  #profile > div {
    height: 105vw;
    width: 70vw;
  }

  #profile > div {
    background-image: url(img/svg/letter-background.svg);
  }

  #profile article p {
    font-size: 1.8vw;
  }

  #profile article {
    padding: 10vw;
  }

  #project-spotlight {
    display: flex;
  }

  .polaroid-controls {
    font-size: 30px !important;
    position: absolute;
    bottom: 0;
    right: 0;
  }

  .polaroid a:after {
    top: 1vw;
  }

  .polaroid a {
    -webkit-transform: rotate(-4deg);
    -moz-transform: rotate(-4deg);
    padding: 1vw 1vw 2.5vw;
  }

  #letter-detail {
    font-size: 1.6vw !important;
  }

  #letter-footer span {
    font-size: 4vw;
  }

  .card {
    opacity: 0.6;
    transition: opacity 0.4s ease-in-out;
    -moz-transition: opacity 0.4s ease-in-out;
    -webkit-transition: opacity 0.4s ease-in-out;
  }

  .card:hover {
    opacity: 1;
  }

  .terminal {
    font-size: 1.2vw;
  }
}