@-webkit-keyframes slidein {
    from { -webkit-transform: scaleX(0); transform: scaleX(0); }
    to   { -webkit-transform: scaleX(1); transform: scaleX(1); }
  }

@keyframes slidein {
    from { -webkit-transform: scaleX(0); transform: scaleX(0); }
    to   { -webkit-transform: scaleX(1); transform: scaleX(1); }
  }

:root {
   --color-primary: #2D2D2D;
   --color-secondary: #737373;
   --color-bg: #C4C4C4; 
}

html, body {
    margin: 0;
    padding: 0;

    font-size: 100%;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
    color: var(--color-primary);

    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;

    -webkit-box-sizing: border-box;

            box-sizing: border-box;
}

/* Type
***************************************************/

h1, h2, h4, h5, h6, span, p {
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 2rem;
    font-weight: 300;
    text-transform: uppercase;
}

h2 {
    font-size: 2rem;
    font-weight: 200;
    text-transform: uppercase;
}

h4 {
    font-size: 1.5rem;
    font-weight: 300; 
}

h5 {
    font-size: 1.125rem;
    font-weight: 300;
}

h6 {
    font-size: 1.125rem;
    font-weight: 500;
}

span.strong {
    font-weight: 700;
}

span.italic {
    font-style: italic;
}

/* Link
***************************************************/

a {   
    display: inline;
        
    text-decoration: none;

    border-bottom: 1px solid transparent;

    -webkit-transition: border-bottom  0.25s;

    -o-transition: border-bottom  0.25s;

    transition: border-bottom  0.25s;
}

a:hover {
    border-bottom: 1px solid var(--color-primary);
}

a,
a:hover,
a:active,
a:visited,
a:link {

    color: var(--color-primary);
}

/* Button***********************************************/

a.btn {
    border: 2px solid var(--color-primary);
    background-color: rgba(0, 0, 0, 0);
    padding: 0.5rem 1rem;
    margin-top: 1rem;

    font-size: 1.125rem;
    font-weight: 400;

    
    cursor: pointer;

    -webkit-transition: background-color 0.25s, color 0.25s;

    -o-transition: background-color 0.25s, color 0.25s;

    transition: background-color 0.25s, color 0.25s;
}

a.btn:hover,
a.btn:active {
    background-color: var(--color-primary);
    color: #ffffff;
}

/* Header
***************************************************/

body.other-pages header {
    position: fixed;
    top: 2rem;
    left: 2rem;

    z-index: 11;
}

header {
    position: absolute;
    top: 2rem;
    left: 2rem;

    z-index: 18;
}

header h1 {
    margin-bottom: 3.5rem;
    margin-right: 1.5rem;
    
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
}

header img {
    width: 2rem;
    cursor: pointer;

    -webkit-transition: all .5s;

    -o-transition: all .5s;

    transition: all .5s;

    z-index: 0;
}



/* Element for all other pages
*********/

header .page-title {
    font-weight: 300;
}


a.back-to {
    position: absolute;
    top: 4rem;
    right: 2rem;
}


/* Menu
***************************************************/

header nav {
    position: fixed;
    top: 0;
    left: -100vw;
    z-index: 10;

    width: 25vw;
    height: 100vh;

    padding: 2rem 0 0 2rem;

    background-image: url(../images/menu-bg.png);
    background-position: center;
    background-size: cover;
    background-color: #ffffff;
    border-right: 2px solid var(--color-primary);


    -webkit-transition: left 0.5s;


    -o-transition: left 0.5s;


    transition: left 0.5s;
}

.show {
    position: fixed;
    left: 0;
}

.bg-dark {
    background-color: rgba(0, 0, 0, 0.75);
}

header nav a {
    font-size: 1.125rem;
    font-weight: 400;
    text-transform: uppercase;

    margin-bottom: 1.5rem;

    border: none;

    -webkit-transition: all .5s;

    -o-transition: all .5s;

    transition: all .5s;
}

header nav a.active,
header nav a:hover {
    font-weight: 700;
    border: none;
}

header nav div.menu {
    position: absolute;
    top: 50%;
    left: 2rem;

    -webkit-transform: translateY(-50%);

        -ms-transform: translateY(-50%);

            transform: translateY(-50%);

    display: -webkit-box;

    display: -ms-flexbox;

    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}

header nav div a.break {
    margin-bottom: 3.5rem;
}

header nav img {
    width: 1.5rem;

    margin-bottom: 4rem;
    margin-top: 2rem;
    
    cursor: pointer;

    -webkit-transition: all .5s;

    -o-transition: all .5s;

    transition: all .5s;
}


header nav img#menuClose:hover,
header img#menuOpen:hover {
    -webkit-transform: scale(1.125);
        -ms-transform: scale(1.125);
            transform: scale(1.125);
}

/* Body
***************************************************/


body#index {
    width: 100vw;
    height: 100vh;
    overflow-y: hidden;
}

img.bg {
    position: fixed;
    bottom: 0;
    right: 0;

    width: 100vw;

    background-image: url(images/index.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: none;

    z-index: -2;
}

div.tagline {
    position: absolute;
    right: 2rem;
    top: 50%;

    -webkit-transform: translateY(-50%);

        -ms-transform: translateY(-50%);

            transform: translateY(-50%);

    width: 30vw;
    
    text-align: right;
}

div.tagline h2 {
    margin-bottom: 2rem;
}

div.tagline h4 {
    margin-bottom: 1rem;
}

div.tagline a.btn {
    display: inline-block;
    margin-top: 2rem; 
}

div.tagline a.btn a:hover,
div.tagline a.btn a:active {
    color: #ffffff;
}



/* Footer
***************************************************/

footer {
    position: fixed;
    bottom: 0;
    right: 0;

    width: 100%;
    margin: 0;
    padding: 0;

    background-color: #ffffff;

    z-index: 8;
}

footer div {   
    display: -webkit-box;   
    display: -ms-flexbox;   
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;

    float: right;

    margin: 0;
    padding: .75rem 2rem .75rem 0;
    width: 50vw;
}

/* Footer seetings for index page
***************************************************/

footer#index {
    position: fixed;
    bottom: 2rem;
    right: 2rem;

    width: 30vw;

    display: -webkit-box;

    display: -ms-flexbox;

    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;

    background-color: transparent;
}


/* Media query
***************************************************/

@media (min-width: 1300px) {
    :root, html, body {
        font-size: 120%;
    }
    img.bg {
        width: 115vw;
        min-height: 100vh;
    }
}

@media (max-width: 1050px) {

    header, body.other-pages header {
        width: 100%;
        top: 0;
        left: 0;
        padding: 2rem 2rem 0 2rem;

        position: absolute;

        -webkit-box-sizing: border-box;

                box-sizing: border-box;
    }
    
    header img#menuOpen {
        position: absolute;
        right: 2rem;
        top: 2rem;
        
    }

    header img {
        width: 3rem;
    }

    
    header img#menuClose {
        width: 2rem;
    }

    img.bg {
        bottom: auto;
        top: 0;

        -webkit-transform: translateX(15%);

            -ms-transform: translateX(15%);

                transform: translateX(15%);

        min-height: 100%;
        width: auto;
    }

    header nav div.menu a {
        font-size: 1.5rem;
    }

    footer, footer#index {
        width: 100%;
        padding: 0 2rem 0 2rem;
        
        right: 0;

        -webkit-box-sizing: border-box;

                box-sizing: border-box;
    }

    section.obra footer {
        padding: 0;
    }

    footer div {
        width: 100%;
        padding: 0;
    }

}

@media (max-width: 800px) {
    header nav {
        width: 50vw;
    }
}

@media (max-width: 700px) {

    header, body.other-pages header {
        padding: 1rem 1rem 0 1rem;
    }

    header nav {
        width: 50%;
        padding: 1rem 0 0 1rem;
    }
    
    header nav div.menu {
        left: 1rem;
    }

    header nav img {
        margin-top: 0;
    }

    header img#menuOpen {
        right: 1rem;
        top: 1rem;
    }

    img.bg {
        height: 100%;
        width: auto;
        -webkit-transform: translateX(20%);
            -ms-transform: translateX(20%);
                transform: translateX(20%);
    }

    div.tagline {
        right: 1rem;
    }

    a.back-to {
        right: 1rem;
    }
}

@media (max-width: 450px) {
    div.tagline {
        width: 50%;
    }

    header h1 {
        width: 55vw;
    }

    header .page-title {
        margin-left: 0;
        margin: 0;
        padding: 0;
    }

    footer, footer#index {
        padding: 0 1rem 0 1rem;
    }
}

 @media (max-height: 450px) {

    header nav img {
        margin-top: 0;
    }

    header nav div.menu a {
        font-size: 1rem;
    }
    
    img.bg {
        width: 140%;
        height: auto;
        -webkit-transform: translateX(5%);
            -ms-transform: translateX(5%);
                transform: translateX(5%);
    }

    div.tagline {
        top: 18rem;
        margin-bottom: 7.5rem;

        width: 50%;
    }

    footer#index {
        left: 0;
        right: auto;
        width: 50%;
    }
}