/* introduction */

.introduction {
    max-width: 700px;
    height: 180px;
    margin: 120px auto 180px;
    text-align: center;
}

.introduction h1 {
    font-size: 48px;
    font-family: var(--header-font);
    color: var(--highlight-color);
}

.introduction p {
    font-family: var(--text-font);
    font-size: 28px;
    font-weight: 300;
    line-height: 1.5;
}

.introduction a:hover {
    color: var(--bg-color);
    background-color: var(--highlight-color);
}

/* buttons */

.outer {
  margin: 0 30px;
  display: inline-block;
}

.outer a:link, .outer a:visited, .outer a:hover, .outer a:active {
  text-decoration: none;
}

.button {
  border: 2px solid var(--highlight-color);
  width: 120px;
  height: 35px;
  display: block;
  text-align: center;
  background-color: var(--highlight-color);
}

.button:hover {
  background-color: var(--bg-color);
  border: 2px dotted var(--highlight-color);
}

.text {
  text-align: center;
  font-size: 20px;
  line-height: 30px; 
  color: var(--text-color);
  display: block;
}

.text:hover {
  color: var(--highlight-color);
}

/* projects */

.project-section {
    width: 900px; 
    margin: 0 auto 90px;
}

.row {
    max-height: 600px;
    max-width: 900px;
    margin: 0 auto 30px;
    text-align: center;
    box-shadow: 0 3px 6px 3px #d8d8d8;
}

.column {
    position: relative;
}

.column:hover .overlay {
  visibility: visible;
  opacity: .8;
}

.column:hover .overlay-text {
    transform: translateY(0);
}

img {
    width: 50%;
    transition: transform .4s;
}

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, .9);
    color: white;
    visibility: hidden;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    
    transition: opacity .2s, visibility .2s;
}

.overlay-text {
    transition: .2s;
    transform: translateY(1em);
}

.project-name {
    font-family: var(--header-font);
    font-size: 36px;
    font-weight: 600;
}

.project-type {
    font-family: var(--text-font);
    font-size: 20px;
    font-weight: 300;
    line-height: 2;
}

/* projects fade in when scrolled to */

.fade {
	opacity: 1;
	pointer-events: all;
}

.fade-hidden {
	opacity: 0;
	pointer-events: none;
}

.fade-visible {
	opacity: 1;
	pointer-events: all;
}

.fade-animate {
	transition: opacity 0.3s ease-in-out;
}