/* main *************************************************************/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: .5px;
    border-style: none;
}

html, body {
    background: #fff;
    color: #555;
    
    /* fonts */
    font-family: 'Barlow', sans-serif;
    text-rendering: optimizeLegibility;
}

body {
    margin: auto;
    max-width: 1000px;
}

.content {
    overflow-x: hidden;
}

main {
    width: 200%;
    display: inline-block;
}

.row {
    max-width: 800px;
    margin: 0 auto;
}

/* title ***********************************************************/

header {
    text-align: center;
    overflow: hidden;
}

header .logo {
    width: 50%;
    max-width: 500px;
    min-width: 100px;
    margin-top: 70px;
}

nav {
    margin-bottom: 50px;
}

nav img {
    height: 40px;
}

button {
    background: transparent;
    cursor: pointer;
    outline: none;
}

button:hover {
    opacity: 0.6;
}

.slash {
    padding: 0 20px;
}

/* content *********************************************************/

.work, .about {
    
    transition: .5s;
    
    transition-timing-function: cubic-bezier(.1, 0, 0, 1);
    width: 50%;
    display: inline;
    float: left;
}

.work, .about > * {
    margin: auto;
    padding: 0 10px;
}

.work, .about:last-child {
    padding-bottom: 10px;
}

.work-active {
    opacity: 100%;
    transform: translate(0%);
}

.about-active {
    opacity: 100%;
    transform: translate(-100%);
}

.work-inactive {
    opacity: 0%;
    transform: translate(-100%);
}

.about-inactive {
    opacity: 0%;
    transform: translate(0%);
}

.img-box {
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}

.vert img {
    max-width: 100%;
}

.horiz img {
    max-height: 100%;
}

.img-box img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: 0.3s;
}

.img-box img:hover {
    opacity: 70%;
}

/* about ************************************************************/

.about-img img {
    border-radius: 10px;
    max-width: 100%;
}

.about-text {
    padding-left: 20px;
    padding-bottom: 20px;
    line-height: 1.5;
}

.copy-text {
    padding-left: 20px;
    padding-top: 30px;
}

ion-icon {
    font-size: 20px;
    padding-left: 20px;
    padding-right: 10px;
    vertical-align: middle;
}

.link {
    padding: 2px 0px;
    display: inline-block;
    vertical-align: top;
}

a {
    font-weight: bold;
    color: #555;
}

a:hover,
a:focus {
    color: #999;
}

a:active {
   color: #eee; 
}

/* modal **************************************************************/

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
    transition: .3s;
    transition-timing-function: cubic-bezier(.1, 0, 0, 1);
}

.modal {
    animation-name: fade;
    animation-duration: 0.3s;
    animation-timing-function: cubic-bezier(.1, 0, 0, 1);
}

@-webkit-keyframes fade {
    from {background-color: rgba(0,0,0,0)}
    to {background-color: rgba(0,0,0,0.9)}
}

@keyframes fade {
    from {background-color: rgba(0,0,0,0)}
    to {background-color: rgba(0,0,0,0.9)}
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.modal-content {
    animation-name: zoom;
    animation-duration: 0.3s;
    animation-timing-function: cubic-bezier(.1, 0, 0, 1);
}

@-webkit-keyframes zoom {
    from {
        transform: scale(0.8)
    }
    to {
        transform: scale(1)
    }
}

@keyframes zoom {
    from {
        transform: scale(0.8)
    }
    to {
        transform: scale(1)
    }
}

#modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px, 0;
    padding-top: 30px;
    height: 150px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}

/* footer */

footer p {
    text-align: center;
    padding-top: 30px;
    padding-bottom: 100px;
}
















