/*
    GENERAL STYLING
*/

*, body, html {
    margin: 0;
    padding: 0;
    font-family: 'Prata', serif;
    font-weight: 400;
   
    
}

nav {
    background-color: #A4C3BE;
    display: flex;
    justify-content: flex-end;
}

nav ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    padding: 2em 6em;
}

nav li {
    margin-left: 3vw;
    font-size: 1em; 
    letter-spacing: 0.05em;   
}

a {
    color: black;
    text-decoration: none;
}

h1 {
    font-size: 7em;
    letter-spacing: 0.1em;
   
}

h2 {
    font-size: 2.75em;
    letter-spacing: 0.075em;
    padding-bottom: 0.75em;
}

h3 {
    font-size: 1.5em;
    margin-bottom: -.75em;
}


p {
    font-size: 0.9em;
    letter-spacing: 0.075em;
    line-height: 1.75em;
    margin-top: 2em; 
}

.tealeContainer {
   background-color: #A4C3BE;
}


.textBlack {
    color: black;
}










/*
    STYLING FOR HOMEPAGE
*/

.tealeSection {
    background-color: #A4C3BE;
}



/*
    ABOUT SECTION
*/

.aboutSection {
    padding: 15em 0 7.5em 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.workTypesSection {
    padding-top: 5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  
}

.textContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45vw;
    padding-bottom: 5em;
    text-align: justify;
    text-justify: inter-word;
  
}

.textHeader {
    text-align: center;
    margin: 2em 0 0em 0;
}

.viewWork-button {
    padding-top: 3.5em;
    border-bottom: 1px solid black;
}



/*
    PRESS AND CONTACT PAGE
*/


.offWhiteWrapper {
     background-color: #eae8e1; 
}


.main--container {
    margin-top: 2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contactDetails-container {
    margin-top: 2em;
}

.pressContainer {
    margin-top: 1em;
    margin-bottom: 3em;
}

.pressText {
    line-height: 3em;
    text-decoration: underline;
    text-underline-offset: 0.75em;
    
}




.divider {
    background-color: black;
    height: 1px;
    width: 9vw;
    opacity: 0;
}

.bottom {
    margin-top: 2em;
}

.hiddenLine {
    opacity: 0;
}

.showLine {
    opacity: 1;
    animation: growingLine;
    animation-duration: 0.5s;
    animation-iteration-count: 1;
    animation-timing-function: linear;
    -webkit-animation: growingLine;
    -webkit-animation-duration: 0.5s;
    -webkit-animation-iteration-count: 1;
    -webkit-animation-timing-function: linear;
    -moz-animation: growingLine;
    -moz-animation-duration: 0.5s;
    -moz-animation-iteration-count: 1;
    -moz-animation-timing-function: linear;

}

@keyframes growingLine {
    0% {
        width: 0vw;

    }
      100% {
        width: 9vw;
    }
}

@-webkit-keyframes growingLine {
    0% {
        width: 0vw;

    }
      100% {
        width: 9vw;
    }
}

@-moz-keyframes growingLine {
    0% {
        width: 0vw;

    }
      100% {
        width: 9vw;
    }
}






/* 
    RESTORATION PAGE
*/



.titleContainer-restoration {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 10em;
}

/* for some reason the restoration header needed a padding value to sit as low as the press and contact headers. I couldn't find out why. */

.restorationLetters {
    padding-top: 2em;
}


.aboutSection-restoration {
    margin-top: 3em;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}



/* 
    PHOTO SECTION
    I've given this a width of 75vw and used the content plus margins to achieve Ellie's desired aesthetic.
*/

.containerRow {
    margin-top: 15em;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.photoContainer-restoration {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.image {
    position: relative;
    width: 20vw;
    height: auto;
    object-fit: cover;
}

.before {
    padding-right: 2vw;
    /* This is to produce a gap between the two images but removing the padding frfom the container makes it easier to reach 80vw for the full container */
}

.small {
    width: 15vw;
}

.large {
    width: 30vw;
    margin-right: 11vw;
}

.cornice {
    margin-right: 0;
    margin-left: 11vw;
}

.restorationText-large {
    text-align: left;
    width: 27vw;
}


.restorationText-small {
    text-align: left;
    width: 15vw;
}

.smallMargin-right {
    margin-right: 12vw;
}

.smallMargin-left {
    padding-left: 12vw;
}


.bigMargin-right {
    margin-right: 24vw;
}

.bigMargin-left {
    margin-left: 24vw;
}









/*
    ANIMATIONS
*/



.hidden {
    opacity: 0;
    transition: all 2s;
}

.hiddenTop {
    transform: translateY(-100px);
    opacity: 0;
    transition: all 1s;
}

.showHidden, .showTop {
    opacity: 1;
    transform: translateX(0);
    transform: translateY(0);
}

.fadeIn {
    animation: fadeIn 1.5s 1 ease-in-out;
    animation-delay: 0.5s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.dropDown {
    animation: dropDown 0.75s 1 ease-in-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes dropDown {
    0% {
        opacity: 0;
        transform: translateY(-30%);
    }
    100% {
        opacity: 1;
        transform: translateY(-0%);
    }
}



/*
    ON HOVER UNDERLINE ANIMATION TAKEN FROM - https://www.30secondsofcode.org/css/s/hover-underline-animation/
*/

.hover-underline-animation {
    display: inline-block;
    position: relative;
    color: black;
  }
  
  .hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: black;
    transform-origin: bottom right;
    transition: transform 0.5s ease-out;
  }
  
  .hover-underline-animation:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
  }






/*
    ROLLING TEXT
*/


.rollingText-Container {
    display: flex;
  
    align-items: center;
    justify-content: center;
    margin-top: 6em;
}

.rollingText-Container-homepage {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8em;
}



.secondLine {
    margin-top: -1em;
}


.lettersContainer {
   height: 12vw;
   overflow: hidden;
}

.letter {
    font-size: 8vw;
    display: inline;
    position: relative;
    animation: rollingText 0.6s 1;
    animation-fill-mode: forwards;
    top: 100%;
}

.homepageLetter {
    font-size: 11vw;
    display: inline;
    position: relative;
    animation: rollingText 0.6s 1;
    animation-fill-mode: forwards;
    top: 100%;
}

@keyframes rollingText {
    from { 
        top: 100%;
    }
    to { 
        top: 0%;
     }
}


/*
    CORNICE SVG ANIMATION
*/

.SVG-main-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.SVG-sub-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45vw;
}

#SVG-All1, #SVG-All2  {
    stroke-dasharray: 1750;
	stroke-dashoffset: 1750;
  
}


.animateSVG {
    animation: dash 4s linear forwards;
   
}

@keyframes dash {
  0% {
    opacity: 1;
    stroke-dashoffset: 1750;
  
  }
  100% {
    opacity: 1;
    stroke-dashoffset: 635;
  }
}




/*
    ROLLING TEXT - TRISTAN SALAZAR
*/

.homepage-T {
    animation-delay: 0s;
}

.homepage-R {
    animation-delay: 0.05s;
}

.homepage-I {
    animation-delay: 0.1s;
}

.homepage-S {
    animation-delay: 0.15s;
}

.homepage-T2 {
    animation-delay: 0.2s;
}

.homepage-A {
    animation-delay: 0.25s;
}

.homepage-N {
    animation-delay: 0.3s;
}




.homepage2-S {
    animation-delay: 0.35s;
}

.homepage2-A {
    animation-delay: 0.4s;
}

.homepage2-L {
    animation-delay: 0.45s;
}

.homepage2-A2 {
    animation-delay: 0.5s;
}

.homepage2-Z {
    animation-delay: 0.55s;
}

.homepage2-A3 {
    animation-delay: 0.6s;
}

.homepage2-R {
    animation-delay: 0.65s;
}



/*
    ROLLING TEXT - RESTORATION
*/

.restoration-R {
    animation-delay: 0s;
}

.restoration-E {
    animation-delay: 0.05s;
}

.restoration-S {
    animation-delay: 0.1s;
}

.restoration-T {
    animation-delay: 0.15s;
}

.restoration-O {
    animation-delay: 0.2s;
}

.restoration-R2 {
    animation-delay: 0.25s;
}

.restoration-A {
    margin-left: 0.075em;
    animation-delay: 0.3s;
}

.restoration-T2 {
    animation-delay: 0.35s;
}

.restoration-I {
    animation-delay: 0.4s;
}

.restoration-O2 {
    animation-delay: 0.45s;
}

.restoration-N {
    animation-delay: 0.5s;
}





/*
    ROLLING TEXT - PRESS
*/


.press-P {
    animation-delay: 0;
}

.press-R {
    animation-delay: 0.05s;
}

.press-E {
    animation-delay: 0.1s;
}

.press-S {
    animation-delay: 0.15s;
}

.press-S2 {
    animation-delay: 0.2s;
}





/*
    ROLLING TEXT - CONTACT
*/

.contact-C {
    animation-delay: 0;
}

.contact-O {
    animation-delay: 0.05s;
}

.contact-N {
    animation-delay: 0.1s;
}

.contact-T {
    animation-delay: 0.15s;
}

.contact-A {
    animation-delay: 0.2s;
}

.contact-C2 {
    animation-delay: 0.25s;
}

.contact-T2 {
    animation-delay: 0.3s;
}




/*
    FOOTER
*/

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10em 0;
    font-size: 0.75em;
}

.verticalDivider {
    Float: left;
    height: 20px;
    position: relative;
    top: 50%;
    transform: translate(-50%, 50%);
    width: 1px; /* edit this if you want */
    background-color: black;
    margin: 0 50px;
   } 










/*
    MOBILE NAV
*/


.mobileNav, .mobileNavGreen {
    position: fixed;
    margin: 0;
    padding: 0;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background-color: #A4C3BE;
    z-index: 10;
    transition: 0.4s;
}


.mobileNav.whiteBackground {
    background-color: #eae8e1;
}

.mobileNav.is-active {
    left: 0;
}

.mobileNav ul {
    padding: 0;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
 
}

.mobileNav li {
    list-style: none;
    padding: 1em 0;
    
}

/* https://www.youtube.com/watch?v=OFKBep95lb4 */

.hamburger {
    margin: 2em 4em;
    display: none;
    width: 35px;
    cursor: pointer;
    color: black;
    appearance: none;
    background: none;
    outline: none;
    border: none;
    z-index: 15;
}

.hamburger .bar, .hamburger:before  {
    content: '';
    display: block;
    position: relative;
    width: 100%;
    height: 3px;
    margin: 0px 0px;
    transition: 1.5s;
}

.hamburger:before, .hamburger:after {
    content: '';
    display: block;
    position: relative;
    width: 100%;
    height: 2px;
    margin: 5px 0px;
    background-color: black;
    transition: 0.4s;
}


.hamburger.is-active:before {
    display: block;
    top: 7px;
    transform: rotate(45deg);
}

.hamburger.is-active:after {
    top: -8px;
    transform: rotate(-45deg);
    opacity: 1;
}

.hamburger.green.is-active:before, .hamburger.green.is-active:after {
  background-color: #A4C3BE;
}



.smallScreen {
    display: none;
}

.mobile {
    visibility: visible;
}

@media screen and (max-width: 700px) {

    body .smallScreen {
        display: block;
    }

    body .largeScreen {
        display: none;
    }
    
    body .nonMobile {
        display: none;
    }


    body .mobile {
            visibility: visible;
    }

    body a {
        font-size: 1.5em;
    }

    body p {
        font-size: 0.9em;
    }

    body .footerLink {
        font-size: 1em;
    }


    body .hamburger {
        display: block;
    }

    body h2 {
        font-size: 2em;
    }

    body .textContainer {
        text-align: center;
        text-align: justify;
        text-justify: inter-word;
        width: 80vw;
    }

    body .SVG-sub-container {
        margin: -5rem 0 -1rem 0;
        width: 100vw;
    }

    body #SVG-All1, body #SVG-All2 {
        transform: scale(2)
    }

    body .animateSVG {
        animation-duration: 3s;
    }

  

    body .aboutSection {
        padding: 10em 0 5em 0;
    
    }

    body .viewWork-button {
        font-size: 0.9em;
    }


    /*
        ANIMATED HEADINGS - ROLLING TEXT
    */

    body .rollingText-Container-homepage {
        margin-top: 9em;
    }

    body .rollingText-Container {
        margin-top: 2em;
    }

    body .lettersContainer {
        height: 5em;
     }

     body .secondLine {
        margin-top: -1em;
    }

    body .homepageLetter {
        font-size: 16vw;
    }

    .letter {
        font-size: 9vw;
    }
    




    /*
        PRESS AND CONTACT
    */

    
    body .pressLink {
        font-size: 0.6em;
       
    }

    body .pressContainer {
        width: 80vw;
    }

    body .contactDetails-container {
        width: 80vw;
        margin-top: 0em;
    }

    body .numberSize {
        font-size: 0.75em !important;
    }


 


    /*
        RESTORATION PAGE FOR MOBILE
    */

    .aboutSection-restoration {
        margin-top: 0em;
        margin-bottom: -5em;
    }

    body .containerRow {
        margin-top: 10em;
        flex-direction: column;
    }
    
    body .photoContainer-restoration {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin-bottom: 5em;
    }

    body .fireplace-container {
        margin-bottom: -11em;
        
    }
    
    body .image {
        width: 35vw;
        margin-bottom: -2em;
    }
    
    body .before {
        padding-right: 5vw;
        /* This is to produce a gap between the two images but removing the padding frfom the container makes it easier to reach 80vw for the full container */
    }
    
    body .small {
        width: 25vw;
    }
    
    body .large {
        width: 60vw;
        margin-right: 0;
    }
    
    
    body .mobileText {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 80vw;
    }
    


    body .divider {
        text-align: center;
        width: 40vw;
    }
    
  

    .cornice, .restorationText-large, .restorationText-small, .smallMargin-right, .smallMargin-left, .bigMargin-right, .bigMargin-left {
        margin: 0;
        padding: 0;
    }

    /*
        RESTORATION ANIMATIONS
    */

    @keyframes growingLine {
        0% {
            width: 0vw;
    
        }
          100% {
            width: 40vw;
        }
    }
    
    @-webkit-keyframes growingLine {
        0% {
            width: 0vw;
    
        }
          100% {
            width: 40vw;
        }
    }
    
    @-moz-keyframes growingLine {
        0% {
            width: 0vw;
    
        }
          100% {
            width: 40vw;
        }
    }
     

    /*
        FOOTER
    */

    body .verticalDivider {
        margin: 0 20px;
    }

    body .footer {
        padding: 7.5em 0 2em 0;

    }


}




@media screen and (min-width: 2100px) {

    

    body a {
        font-size: 1.5em;
    }
    

    body h2 {
        font-size: 3.5em;
    }

    
    body h3 {
        font-size: 3em;
    }

    

    body .text {
        font-size: 1.5em;
    }

    body .lettersContainer {
        height: 14em;
     }

     body .footerLink {
        font-size: 1em;
    }


}





