body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

/* HOMEPAGE */

#landing {
    position: relative;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    z-index:0;
    display:flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.text-container {
    width: 100vw;
    height: 100vh;
    padding: 2em;
    padding-top: 0;
    overflow: visible;
    text-overflow: ellipsis ;
    white-space: nowrap ;
    z-index: 1;
    order: 2;
    margin-top: -4em;
}

.img-container {
    width: 100vh;
    height: 70vh;
    background-color: #f5f5f7;
    z-index: 0;
    order: 1;
}

.carousel-item {
    position: relative;
    margin: auto;
    display: none;
}

.carousel-item:nth-child(1) {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: auto;
    margin: auto;
    position: relative;
    padding-top: 80px;
}


/* Faint animation */
.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.4s;
    animation-name: fade;
    animation-duration: 1.4s;
  }
  
  @-webkit-keyframes fade {
    from {opacity: 0}
    to {opacity: 2}
  }
  
  @keyframes fade {
    from {opacity: 0}
    to {opacity: 2}
  }


.container {
    width: 100%;
}

h1,h2,h3,h4,h5,h6,p {
    font-family: Helvetica, sans-serif;
    font-size: 24px;
    font-weight: 300;
    color: #000000;
    line-height: 1.2;
}

h1 {
    font-size: 2.5em;
    font-weight: 500;
    line-height: 1;
}

h2, a {
    font-size: 0.75em;
    font-weight: 900;
    color: #DB30AD;
    text-transform: uppercase;
    text-decoration: none;
}


h3 {
    color: #000;
    font-size: 1.75em;
    font-weight: 500;
    line-height: 1.2;
    font-style: italic;
    margin-bottom: 10px;
}

h4 {
    color: #000;
    font-size: 1.25em;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 5px;
}

h5 {
    color: #585858;
    font-size: 1em;
    line-height: 1.2;
    font-weight: 100;
}

p {
    color: #000;
    font-size: 1.25em;
    line-height: 1.3;
    font-weight: 100;
    margin-bottom: 1em;
}

a p {
    color: #DB30AD;
    font-size: 1.25em;
    line-height: 1.3;
    font-weight: 500;
    text-transform: none;
}

.chevron::before {
	border-style: solid;
	border-width: 0.2em 0.2em 0 0;
	content: '';
	display: inline-block;
	height: 0.45em;
	left: 0.15em;
	position: relative;
	top: 0.25em;
	transform: rotate(45deg);
	vertical-align: top;
	width: 0.45em;
}

.chevron.right:before {
	left: 0;
}

button {
    background-color: #0080ff;
    color: #fff;
    font-family: Helvetica, sans-serif;
    font-size: 24px;    
    font-weight: 900;
    border-radius: 100px;
    padding: 8px 28px;
    border: none;
}

.intro {
    height: 100%;
    display: flex;
    text-align: left;
    align-items: center;
    justify-content: center;
    padding: 4em 2em;
    padding-top: 3em;
}

.services {
    height: 100%;
    background-color: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4em 2em;
}

.services-blurb {
    padding-bottom: 3em;
}

.gallery {
    padding: 3em 2em;
    text-align: center;
}

.gallery h3 {
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2,auto);
    grid-auto-rows: 100px;
    gap: 10px;
    margin-bottom: 30px;
}

.gallery-grid-item {
    background-color: #F5F5F7;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 2em;
    background-position: 50% 50%;
    background-size: contain;
    background-repeat: no-repeat;
    overflow: hidden;
}

.contact {
    height: 100%;
    background-color: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4em 2em;
    border-bottom: 1px solid #b5b5b5;
}

.contact-blurb {
    max-width: 70%;
    margin-bottom: 20px;
}

.contact-cta p {
    margin-bottom: 20px;
}

footer {
    width: 100%;
    height: 50px;
    padding: 0 2em;
    display: flex;
    background-color: #F5F5F7;
    justify-content: space-between;
    align-items: center;
}

footer h6 {
    display: flex;
    color: #000;
    font-size: 12px;
}

footer img {
    width: 24px;
    height: auto;
}





/* ABOUT */



.subpage-landing {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index:0;
    display:flex;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: hidden;
}

.about-text-container {
    width: 100%;
    height: auto;
    padding: 2em;
    padding-top: 10em;
    order: 1;
    z-index: 2;
}

#heading {
    padding-top: 0em;
}

.about-img-container {
    position: relative;
    width: 100%;
    height: 50vh;
    padding: 2em;
    order: 2;
    z-index: 1;
    overflow: hidden;
}


.bg {
    margin: 0 auto;
    width: 100%;
    height: 100%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.subpage-text {
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: center;
    justify-content: center;
    padding: 4em 2em;
    padding-top: 1em;
}

.about-text-container h1 {
    padding-bottom: 0.25em;
}


/* SERVICES */

.subpage-services-list {
    padding-top: 2em;
}

.subpage-services-list h5 {
    color: #DB30AD;
}

#services-design {
    padding-bottom: 4em;
}



/* PORTFOLIO */
#portfolio.subpage-landing {
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
}

.portfolio-grid-1, .portfolio-grid-2, .portfolio-grid-3 {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-auto-rows: 10em;
    gap: 1em;
    padding: 1em 2em;
    padding-top: 0;
}

.portfolio-grid-3 {
    padding-bottom: 2em;
}

.portfolio-item {
    background-color: #f5f5f7;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    background-position: 50% 50%;
    background-size: contain;
    background-repeat: no-repeat;
    overflow: hidden;
    position: relative;
    max-width: 100%;
}

.grid-text {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
}

.grid-text h4 {
    color: white;
    font-weight: 900;
    font-size: 1em;
    text-align: center;
    max-width: 50%;
}

.portfolio-item:hover > div.grid-text {
    display: flex;
}


.portfolio-item:nth-child(1) {
    grid-column: 1/2;
    grid-row: 1/3;
}

.portfolio-item:nth-child(2) {
    grid-column: 2/3;
    grid-row: 1/2;
}

.portfolio-item:nth-child(3) {
    grid-column: 1/2;
    grid-row: 3/4;
}

.portfolio-item:nth-child(4) {
    grid-column: 2/3;
    grid-row: 2/4;
}

.portfolio-item:nth-child(5) {
    grid-column: 1/2;
    grid-row: 4/6;
}

.portfolio-item:nth-child(6) {
    grid-column: 2/3;
    grid-row: 4/5;
}

.portfolio-item:nth-child(7) {
    grid-column: 1/2;
    grid-row: 6/7;
}

.portfolio-item:nth-child(8) {
    grid-column: 2/3;
    grid-row: 5/7;
}

.portfolio-grid-3 .portfolio-item:nth-child(5) {
    grid-column: 1/3;
    grid-row: 4/6;
}


/* PRODUCTS */

#portfolio.subpage-landing {
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
}

.products {
    padding: 1em 2em;
}

/* CONTACT */

#contact .container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.contact-inner-container {
    width: 100%;
}

#contact .subpage-landing {
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.contact-text-container {
    width: 100%;
    height: auto;
    padding: 2em;
}

.contact-form-container {
    width: 100%;
    height: auto;
    padding: 2em;
}

/* Style inputs with type="text", select elements and textareas */
input[type=text], select, textarea {
    width: 100%; /* Full width */
    height: 3em;
    padding: 1em; /* Some padding */  
    background-color: #f5f5f7;
    border: none;
    box-sizing: border-box; /* Make sure that padding and width stays in place */
    resize: vertical; /* Allow the user to vertically resize the textarea (not horizontally) */
    font-family: Helvetica, sans-serif;
    font-size: 1em;
}

/* Style the submit button with a specific background color etc */

.contact-form-buttons {
    display: flex;
    flex-direction: row;
    margin-top: 10px;
    gap: 20px;
}

input[type=submit], input[type=reset] {
    background-color: #fff;
    color: #DB30AD;
    font-size: 1em;
    padding: 1em 2em;
    border: 1px solid #DB30AD;
    cursor: pointer;
    width: 100%;
}

input[type=reset] {
    background-color: #F5F5F7;
    color: #585858;
    border: 1px solid #585858;
}

/* When moving the mouse over the submit button, add a darker green color */
input[type=submit]:hover, input[type=reset]:hover {
    background-color: #DB30AD;
    color: #fff;
    border: none;
}


/* MESSAGE SENT */

#message-sent .container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#message-sent .subpage-landing {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 2em;
}

#message-sent .message-sent-text-container {
    text-align: center;
}





/* Extra Extra Small. Above 24rem (384) */
@media only screen and (min-width : 24rem) {
    h1 {
        font-size: 3em;
    }

    h2, a {
        font-size: 1em;
    }

    h3 {
        font-size: 2em;
    }

    h4 {
        font-size: 1.5em;
    }

    h5 {
        font-size: 1.25em;
    }

    p {
        font-size: 1.5em;
    }

    a p {
        font-size: 1.5em;
    }

    .intro {
        padding: 5em 2em;
        padding-top: 3em;
    }

    .services {
        padding: 5em 2em;
    }

    .gallery {
        padding: 5em 2em;
    }

    .contact {
        padding: 5em 2em;
    }


    .subpage-text {
        padding: 5em 2em;
    }

}

/* Extra Small. Above 32rem (512px) */
@media only screen and (min-width : 32rem) {

}

/* Medium. Above 48rem (768px) */
@media only screen and (min-width: 48rem) {


    h1 {
        font-size: 5em;
    }
    
    h2, a {
        font-size: 1em;
    }

    #landing {
        position: relative;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        overflow: hidden;
        width: 100vw;
        height: 100vh;
        z-index:0;
        display:flex;
        align-items: flex-end;
        justify-content: flex-end;
    }
    
    .text-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100vw;
        height: 100vh;
        padding: 3em;
        overflow: visible;
        text-overflow: ellipsis ;
        white-space: nowrap ;
        z-index: 1;
        order: 1;
        margin-top: 4em;
    }
    
    .img-container {
        width: 80vh;
        height: 100vh;
        background-color: #f5f5f7;
        z-index: 0;
        order: 2;
        white-space: nowrap;
        position: absolute;
    }


    .hidden-sm {
        display: none;
    }

    .intro {
        padding: 10em;
    }

    .intro-blurb {
        max-width: 70%;
    }

    .services {
        padding: 10em 4em;
    }

    .services-blurb {
        max-width: 80%;
    }


    .gallery {
        padding: 8em 4em;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(4,auto);
        grid-auto-rows: 200px;
        gap: 10px;
        margin-bottom: 30px;
    }

    .contact {
        padding: 10em 6em;
        gap: 4em;
        display: flex;
    }

    .contact .row {
        align-items: center;
    }

    .contact-blurb {
        padding-right: 4em;
        margin-bottom: 0;
    }

    .contact-blurb h3 {
        margin: 0;
    }

    .contact-cta {
        padding-left: 4em;
        margin-bottom: none;
    }


    /* ABOUT */

    .subpage-landing {
        height: 100vh;
        align-items: center;
        padding: 2em;
    }

    .subpage-text {
        padding: 10em 4em;
        padding-bottom: 4em;
    }


    .about-text-container {
        padding: 0;
        padding-right: 4em;
        padding-top: 6em;
    }

    .about-img-container {
        width: 100%;
        height: 80%;
        padding: 0;
    }


    #contact h1 {
        font-size: 4em;
    }



    #contact .subpage-landing {
        flex-direction: row;
        align-items: flex-end;
    }

    .contact-form-container {
        padding-top: 4em;
    }

}

/* Large. Above 64rem (1024px) */
@media only screen and (min-width: 64rem) {

    h1 {
        font-size: 6.5em;
    }


    h3 {
        font-size: 2.5em;
        margin-bottom: 10px;
    }

    p {
        font-size: 1.5em;
    }

    #landing {
        position: relative;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        overflow: hidden;
        width: 100vw;
        height: 100vh;
        z-index:0;
        display:flex;
        align-items: flex-end;
        justify-content: flex-end;
    }
    
    .text-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100vw;
        height: 100vh;
        padding: 6em;
        overflow: visible;
        text-overflow: ellipsis ;
        white-space: nowrap ;
        z-index: 1;
        order: 1;
        margin-top: 4em;
    }
    
    .img-container {
        width: 100vh;
        height: 100vh;
        background-color: #f5f5f7;
        z-index: 0;
        order: 2;
        white-space: nowrap;
        position: relative;
    }

    .carousel-item {
        position: relative;
        margin: auto;
        display: none;
    }

    .carousel-item img {
        width: 60%;
        float: right;
        height: auto;
        margin: auto;
        position: relative;
        margin-right: 10em;
    }

    .hidden-sm {
        display: block;
    }

    .intro {
        padding: 10em 14em;
    }

    .services {
        padding: 10em 8em;
    }

    .services-blurb {
        padding-right: 6em;
    }

    .gallery-grid {
        grid-auto-rows: 300px;
    }

    .gallery h3 {
        margin-bottom: 64px;
    }

    .gallery h2 {
        margin-top: 64px;
    }




    /* ABOUT */

    .subpage-landing {
        height: 100vh;
        align-items: center;
        padding: 6em;
    }

    .subpage-text {
        padding: 8em;
        padding-top: 4em;
        width: 100%;
    }

    #about .subpage-text {
        width: 90%;
        padding: 10em;
    }

    /* SERVICES */
    .services-text {
        justify-content: center;
        align-items: center;
    }

    #services-h1 {
        padding-top: 0;
    }

    .subpage-services-list {
        padding-left: 8em;
    }

    .subpage-services-list h5 {
        font-size: 1.5em;
    }

    #services-design {
        padding-bottom: 8em;
    }


/* PORTFOLIO */

    #portfolio.subpage-landing {
        padding-top: 10em;
    }

    .portfolio-grid-1, .portfolio-grid-2, .portfolio-grid-3 {
        display: grid;
        grid-template-columns: repeat(9,1fr);
        grid-auto-rows: 20em;
        gap: 2em;
        padding: 2em 6em;
        padding-top: 0;
        max-width: 100%;
    }


    .grid-text h4 {
        font-size: 2em;
    }

    .portfolio-grid-3 {
        padding-bottom: 6em;
    }

    .portfolio-item:nth-child(1) {
        grid-column: 1/5;
        grid-row: 1/2;
    }

    .portfolio-item:nth-child(2) {
        grid-column: 5/7;
        grid-row: 1/2;
    }

    .portfolio-item:nth-child(3) {
        grid-column: 7/10;
        grid-row: 1/2;
    }

    .portfolio-item:nth-child(4) {
        grid-column: 1/7;
        grid-row: 2/3;
    }

    .portfolio-item:nth-child(5) {
        grid-column: 7/10;
        grid-row: 2/4;
    }

    .portfolio-item:nth-child(6) {
        grid-column: 1/2;
        grid-row: 3/4;
        display: none;
    }

    .portfolio-item:nth-child(7) {
        grid-column: 1/3;
        grid-row: 3/4;
    }

    .portfolio-item:nth-child(8) {
        grid-column: 3/7;
        grid-row: 3/4;
    }

    .portfolio-grid-3 .portfolio-item:nth-child(5) {
        grid-column: 7/10;
        grid-row: 2/3;
    }


    #contact h1 {
        font-size: 6.5em;
    }

    #contact .subpage-landing {
        align-items: flex-end;
    }

    .contact-form-container {
        padding-top: 4em;
    }

    /* PRODUCTS */

    .products {
        padding: 2em 6em;
    }


}

/* Extra large. Above 80rem (1280px) */
@media only screen and (min-width: 80rem) {

    .subpage-text {
        padding: 10em;
        padding-top: 4em;
    }

    #about .subpage-text {
        width: 90%;
        padding: 10em 14em;
    }



}