*{
    margin: 0;
    padding: 0;
    webkit-box-sizing: border-box;
    moz-box-sizing: border-box;
    box-sizing: border-box;
}

body{
    background-color: black;
    transition: background-color 0.8s ease-in-out;
}

body.bounced {
    background-color: #111111;
}

.intro{
    position: fixed;
    padding-top: 10vh;
    height: 80vh;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    transition: all ease-in-out 0.3s;
    z-index: -1;
}

.intro.bounced{
    opacity: 0 !important;
    z-index: -1;
    transform: translate(0, -30px) scale(1.1, 1.1);
}

.intro img{
    display: flex;
    width: 7.4em;
    height: 7.4em;
    border-radius: 50%;
    border: 4px solid #424242;
}

.intro p{
    margin-left: 30px;
    color: white;
    max-width: 50%;
    margin-bottom: 0px;
    font-size: 1.8em;
    font-weight: 500;
    line-height: 1.3;
}


.evenset {
    color: #51A8FF;
}

.tali {
    color: #FFB40D;
}

.madeira {
    text-decoration: line-through;
    color: grey;
}

.lisbon {
    text-decoration: line-through;
    color: grey;
}


@media(max-width: 580px){
    .intro{
        flex-direction: column;
        padding: 20% 10px 10px 10px;
        transition: all ease-in-out 0.6s;
        z-index: 200;
    }
    .intro p{
        margin: 0;
        padding-top: 10px;
        max-width: 98%;
        font-size: 20px;
    }
    .intro.bounced{
        filter:blur(2px);
        transform: translate(0, -200px) scale(1.1, 1.1);
    }
}

#work{
    /*this card should always = 2 * galleryCard height + 2 * galleryContainer vertical padding*/
    /*min-height: 1160px;*/
    width: 100%;
    z-index: 100;
}

body.   {
    background-color: #111;
}

.galleryContainer{
    margin: 200px 3vw 100px 3vw;
    transform: scale(0.9, 0.9) translate(0px, 300px);
    transition: all 0.8s ease-in-out, transform 0.6s cubic-bezier(0.3, 0, 0.5, 1.3);
    filter: brightness(0.2);
}

.galleryContainer.bounced{
    transform: none;
    filter: none;
}


@media(max-width: 580px){
    .galleryContainer{
        margin-top: 200px;
        transform: scale(0.9, 0.9) translate(0px, 100px);
    }
}
.gallery-column-container{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: stretch;
    box-sizing: border-box;
    width: 100%;
}

.gallery-column{
    /* column wide feature*/
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.galleryCard-container{
    padding: 0.5vw;
}

.galleryCard {
    width: 30vw;
    height: 30vw;
    background: #000000;
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0px 0px 3px rgba(30,30,30,0.7);
    transition: all 0.25s ease-in-out;
    z-index: 20;
    
}

.galleryCard_2 {
    width: 30vw;
    height: 45vw;
    background: #000000;
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0px 0px 3px rgba(30,30,30,0.7);
    transition: all 0.25s ease-in-out;
    z-index: 20;
    
}
.galleryCard:hover{
    transform: scale(1.01, 1.01);
    box-shadow: 4px 4px 70px rgba(30,30,30,0.6);
    z-index: 10;
}

.galleryCard_2:hover{
    transform: scale(1.01, 1.01);
    box-shadow: 4px 4px 70px rgba(30,30,30,0.6);
    z-index: 10;
}


@media (min-width: 580px) and (max-width: 960px){
    .galleryCard{
        width: 46vw;
        height: 46vw;
        max-width: none;
        max-height: none;
        margin: 8px 0 0 0;
    }
    .galleryCard_2{
        width: 46vw;
        height: auto;
        max-width: none;
        max-height: none;
        margin: 8px 0 0 0;
    }
    .gallery-column:last-child{
        flex-direction: row;
        flex-wrap: wrap;
    }
    .work-filler{
        height:0;
    }
}

@media(max-width: 580px){
    .galleryCard{
        width: 92vw;
        height: 92vw;
        max-width: none;
        max-height: none;
        margin: 8px 0 0 0;
    }
    .galleryCard_2{
        width: 92vw;
        height: auto;
        max-width: none;
        max-height: none;
        margin: 8px 0 0 0;
    }
    .work-filler{
        height:0;
    }
}

.about{
    height: 100vh;
    position: relative;
}

.galleryCard img {
    width: 100%;
    height: auto;
    display: block;
}

.galleryCard_2 img {
    width: 100%;
    height: auto;
    display: block;
}

.gallerycard video {
    width: 100%;
    height: auto;
    display: block;
}

.contact{
    color: white;
    height: 300px;
    padding-top: 0px;
}

.contact_cs{
    color: white;
    height: 400px;
    padding-top: 130px;
}

.contact h1, .contact_cs h1{
    font-size: 30px;
    font-weight: 400;
    font-family: helvetica;
}

.contact p, .contact_cs p{
    margin-top: 10px;
    font-weight: 400;
    font-family: helvetica;
    display: inline-block;
    max-width: 500px;
    color: #C8C8C8;
}

.button-primary{
    border-radius: 25px;
    border: none;
    background-color: #232323;
    font-size: 12pt;
    padding: 12px 24px;
    color: white;
    transition: all 0.2s ease-in-out;
    display: inline-block;
}

.button-primary:hover{
    opacity: 0.8;
}

.contact .contact-button{
    margin-top: 20px;
}

.contact .contact-button:hover{
    /*background-color: #2570BB;*/
    opacity: 0.8;
}

.contact_cs .contact-button{
    margin-top: 20px;
}

.contact_cs .contact-button:hover{
    /*background-color: #2570BB;*/
    opacity: 0.8;
}

#footer {
    width: 100%;
    height: 200px;
    border-top: 1px solid #5e5e5e;
}

#copyright {
    width: 25%;
    float: left;
}

#copyright p{
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    color: white;
    padding-top: 20px;
    padding-left: 50px;
}

#credits {
    float: right;
    width: 75%;
    height: auto;
}

#credits p{
    width: 35%;
    font-size: 14px;
    padding-top: 20px;
    line-height: 1.4em;
}

#credits p:hover{
    color: #5e5e5e;
    transition: all 0.35s cubic-bezier(.32,.08,.24,1);
    cursor: crosshair;
}


.modal {
    background-color: rgba(0,0,0,0.2);
}

.modal .modal-dialog{
    max-width: 1056px;
    width: calc(100vw - 60px);
    box-shadow: 0 50px 200px rgba(0,0,0,.5);
    border: 1px solid #2c2e30;
    border-radius: 5px;
    margin: 1% auto;
}


.modal.fade .modal-dialog {
    transform: translate3d(0, 60%, 0);
    transition: opacity .3s linear, transform 0.3s ease-in-out;
}
.modal.fade.show .modal-dialog{
    transform: translate3d(0, 0, 0);
}

@media(max-width: 768px){
    #copyright {
        width: 50%;
    }

    #credits {
        width: 50%;
    }

    #credits p{
        width: 80%;
    }
}

@media(max-width: 580px){
    #copyright {
        width: 100%;
    }

    #copyright p{
        padding-left: 10px;
    }

    #credits {
        width: 100%;
    }

    #credits p{
        padding-left: 10px;
    }
}


@media(max-width: 580px){
    .modal .modal-dialog{
        width: 100vw
    }
}

.modal .modal-content{
    overflow: hidden;
    padding-bottom: 20px;
    background-color: rgb(16,16,16);
}

.modal .modal-header{
    padding: 0;
    position: relative;
    border-bottom: none;
}

.modal img, .modal video{
    width: 100%;
}

.modal .modal-body{
    padding: 1.5rem 6rem;
}

.modal-tag{
    font-size: 11pt;
    font-weight: 400;
    letter-spacing: 1.4;
    margin-top: 1.5rem;
    margin-bottom: 0.1rem;
    font-family: helvetica;
    color: #8a8a8a;
}

.modal-title{
    font-size: 21pt;
    font-family: helvetica;
    font-weight: 500;
    border-bottom: 1px solid #414141;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

.modal-intro, .modal-comment {
    color: #d1d1d1;
    font-size: 1.1em;
}

.modal-more{
    color: #00CDCD;
    font-size: 14pt;
    transition: all 0.1s ease-in-out;
    display: inline-block;
    opacity: 0.7;
    }

.modal-more:hover{
    cursor: pointer;
    transform: translate(5px, 0);
}

.modal-more a:hover{
    text-decoration: none !important;
}

.modal-more-2{
    color: #747474;
    font-size: 13pt;
    display: inline-block;
    opacity: 0.7;
    }

.modal-more-2 a:hover{
    text-decoration: none !important;
}

.modal-more.collapsed{
    opacity: 1;
}

.modal-comment{
    margin-top: 1rem;
    margin-bottom: 1rem;
}
button:focus{
    outline: none;
}
.modal button.close{
    position: fixed;
    left: 30px;
    top: 20px;
    color: white;
    font-weight: 100;
    font-size: 20px;
    opacity: 1;
    z-index: 1500;
    font-size: 36px;
}

@media(max-width: 1200px){
    .modal button.close{
        left: 1vw;
        top: 1vw;
    }
}

.modal .swipe-down{
    display: none;
    width: 100%;
    height: 30px;
    position: absolute;
    z-index: 1200;
    background-color: transparent;
    color: white;
    text-align: center;
    filter: drop-shadow(0 5px 7px rgba(0,0,0,.7));
}
.modal .swipe-down span{
    display: inline-block;
    padding-top: 5px;
    width: 50px;
    font-size: 20px;
    opacity: 0.8;
    transform: scale(2, 1);
}
hr {
    background-color: #414141;
}

@media(max-width: 580px){
    .modal button.close{
        display: none;
    }
    .modal .swipe-down{
        display: block;
    }
    .modal .modal-body{
        padding: 1.5rem 1.2rem;
    }
}

.modal-footer{
    justify-content: center;
    border-top: none;
    padding: 3rem 1rem 1rem 1rem;

}

.contactForm{
    background-color: black;
    padding: 40px 0;
    font-family: helvetica;
}

.container{
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: 80px;
    box-sizing: border-box;
}

.contactForm h1{
    color: white;
    margin-top: 6rem;
    margin-bottom: 2rem;
}

.contactForm p{
    color: white;
}

.contactForm hr{
    display: block;
    unicode-bidi: isolate;
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    margin-inline-start: auto;
    margin-inline-end: auto;
    overflow: hidden;
    border-style: inset;
    border-width: 1px;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.contactInputs{
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 20px 0;
    border: 0;
    background-color: rgb(21,21,21);
    padding: 12px 30px;
    border-radius: 5px;
    outline: none;
    color: white;
    transition: 0.5s;
}

.contactInputs:focus{
    box-shadow: 0 0 10px 4px #3399FF;
}

textarea.contactInputs{
    resize: none;
    height: 140px;
}

.submitButton{
    float: right;
    border-radius: 25px;
    border: none;
    background-color: #3399FF;
    font-size: 10pt;
    padding: 10px 20px;
    color: white;
    transition: all 0.2s ease-in-out;
    display: inline-block;
}

.submitButton:hover{
    opacity: 0.8;
}

#back-to-top-btn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  font-size: 26px;
  width: 60px;
  height: 60px;
  background-color: #000000;
  color: #c4c4c4;
  cursor: pointer;
  outline: none;
  border: 2px solid #2c2c2c;
  border-radius: 50%;
  transition-duration: 0.2s;
  transition-timing-function: ease-in-out;
  transition-property: background-color, color;
}
#back-to-top-btn:hover, #back-to-top-btn:focus {
  background-color: #2c2c2c;
  color: #fff;  
}

@media(max-width: 992px) {
  #back-to-top-btn { font-size: 22px; width: 50px; height: 50px; bottom: 20px; right: 20px; }
}
@media(max-width:768px) {
  #back-to-top-btn { font-size: 18px; width: 50px; height: 50px; bottom: 15px; right: 15px; }
}

/* Animations */
.btnEntrance {
  animation-duration: 0.5s;
  animation-fill-mode: both;
  animation-name: btnEntrance;
}
/* zoomIn */
/* @keyframes btnEntrance { 
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  to {
    opacity: 1;
  }    
} */

/* fadeInUp */
@keyframes btnEntrance {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.btnExit {
  animation-duration: 0.25s;
  animation-fill-mode: both;  
  animation-name: btnExit;
}
/* zoomOut */
/* @keyframes btnExit {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
} */

/* fadeOutDown */
@keyframes btnExit {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
}

.caseIntro {
    width: 100%;
    height: auto;
    display: flex;
    background-color: white;
}

.caseTitle {
    width: 50%;
    height: 100%;
    padding-top: 200px;
    justify-content: space-around;
    align-items: center;
    float: left;
    background-color: white;
}

.caseTitle h1 {
    font-family: helvetica;
    font-size: 36px;
    width: 75%;
    padding-left: 20%;
}

.caseTitle p {
    font-family: helvetica;
    font-size: 18px;
    padding-top: 25px;
    padding-left: 20%;
}

.prototype {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    float: right;
    background-color: white;

}

#partial_prototype{
    width: 40%;
    height: auto;
    padding-top: 100px;
}

#greenpeace_prototype {
    width: 40%;
    height: auto;
    padding-top: 100px;
}

.case_study {
    width: 100%;
    height: auto;
    display: block;
}

@media(max-width: 580px) {
    .caseIntro{
        display: block;
    }

    .caseTitle {
        width: 100%;
        height: 50%;
        padding-top: 120px;
    }

    .caseTitle h1 {
        font-size: 28px;
        padding-left: 10%;
    }

    .caseTitle p {
        font-size: 14px;
        padding-left: 10%;
        width: 90%;
    }

    .prototype {
        width: 100%;
    }

    #partial_prototype, #greenpeace_prototype {
        width: 50%;
        padding-top: 50px;
        padding-bottom: 50px;
    }
}





.noScroll{
    overflow-y: hidden;
}