/* CONTENT:
 * - font definition
 * - page layout
 * - header
 * - main
 *   - tree-box component
 *   - panel-box component
 * - footer
 * - backtround layout images
 */

/* || font definition */

@font-face {
    font-family: rubik;
    font-style: normal;
    font-weight: 400;
    src: url(Rubik-Regular.ttf);
}

@font-face {
    font-family: rubik-bold;
    font-style: normal;
    font-weight: 700;
    src: url(Rubik-Bold.ttf);
}

/* || page layout */

body {
    font-family: rubik, sans-serif;
    font-size: 1.125rem;    
    color: #1D241F;    
    line-height: 26px;
    
    max-width: 1920px;
    margin: -2px auto -18px auto;
    padding: 0px;

    overflow-x: hidden;    
}

.container {    
    max-width: 832px;
    margin-left: auto;
    margin-right: auto;    
}

.bg-layer div {
    width: 100%;
    position: absolute; 
    background-repeat: no-repeat;        
}

@media only screen and (max-width: 931px) {
    .container {    
        max-width: 540px;
        margin-left: auto;
        margin-right: auto;    
    }
}

@media only screen and (min-width: 1921px) {
    .bg-layer div {
        width: 1920px;
        margin-left: auto;
        margin-right: auto;
        position: absolute; 
        background-repeat: no-repeat;        
    }
}

/* || header */

#top-logo {
    position: relative;  
    float: left;  
    z-index: -10;
    margin-left: 50px;
    margin-top: 60px;
    min-width: 150px;
    min-height: 48px;
    background-image: url(../images/logo-green.svg);   
    background-repeat: no-repeat;    
}

nav {
    font-family: rubik-bold, sans-serif;
    font-size: 1.25rem;
    color: #FFFFFF;         
   
    margin-top: 55px;
    margin-right: 50px;
    float: right;
}

nav ul {
    list-style-type: none;
}

nav li {
    margin-left: 32px;
    display: inline;
}

nav a {    
    color:#FFFFFF;
    text-decoration: none;
}

nav a:hover {
    color: #1D241F;
}


h1 {
    font-family: rubik-bold, sans-serif;
    font-size: 3.75rem;
    letter-spacing: -1.2px;
    line-height: 67px;
    
    padding-top: 100px;
    margin-bottom: 10px;      
    
    clear: both;  
}

@media only screen and (max-width: 931px) {
    #top-logo {
        position: relative;    
        float: right;
        z-index: -10;
        margin-right: 50px;
        margin-top: 60px;
        min-height: 48px;
        background-image: url(../images/logo-white.svg);   
        background-repeat: no-repeat;    
    }

    nav {
        font-family: rubik-bold, sans-serif;
        font-size: 1.25rem;
        color: #FFFFFF;         
       
        margin-top: -18px;       
        margin-right: 50px;
        clear: right;
        float: right;
    }

    h1 {
        padding-top: 65px;
    }
}

/* || main */

main h2 {
    font-family: rubik-bold, sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.6px;
    line-height: 24px;
    text-transform: uppercase;

    
    padding-top: 30px;
}

main > section:nth-of-type(n + 2) {
    margin-top: 100px;
}

main .green-section h2 {
    color: #2EC25C;
}

main .blue-section h2 {
    color: #47D4F3;
}

main h3 {
    font-family: rubik-bold, sans-serif;
    font-size: 1.875rem;
    text-align: center;

    margin-top: 100px;
    margin-bottom: 80px;
}

main h4 {
    font-family: rubik-bold, sans-serif;
    font-style: 1.125rem;

    margin-bottom: 8px;
}

.ta-right {
    text-align: right;
}

.p-left {
    max-width: 76%;    
}

.p-right {
    max-width: 76%;
    margin-left: auto;
    text-align: right;
}

@media only screen and (max-width: 931px) {
    .ta-right {  
        text-align: left;     
    }
    
    .p-left {
        max-width: 100%;    
    }
    
    .p-right {
        max-width: 100%;        
        text-align: left;    
    }
}

/* || tree-box component */

.tree-box p {
    font-size: 1.0rem;
    line-height: 24px;
    margin-top: 4px;    
}

.tree-box-left {    
    text-align: right;  
    max-width: 356px;  
}

.tree-box-right {    
    text-align: left;
    margin-left: auto;
    max-width: 356px;
}

.tree-box-icon {
    position: absolute;
    transform: translate(390px, -12px) 
}

.tree-box-rust-trunk {
    background-image: url(../images/rust-trunk.svg);
    background-repeat: repeat-y; 
    background-position-x: 377px;
}

.tree-box-rust-part {
    position: absolute;
    z-index: -1;
    width: 78px;
    height: 100px;
    transform: translate(377px, 50%);
    background-image: url(../images/rust.svg);
    background-repeat: no-repeat;    
}

.tree-box-rust-part-1 {
    background-position-y: -25px;
}

.tree-box-rust-part-2 {
    background-position-y: -130px;
}

.tree-box-rust-part-3 {
    background-position-y: -230px;
}

.tree-box-rust-part-4 {
    background-position-y: -350px;
}

.tree-box-rust-part-end {
    position: absolute;
    z-index: -1;
    width: 78px;
    height: 161px;
    transform: translate(377px, -17px);
    background-image: url(../images/rust.svg);
    background-position-y: -425px;
    background-repeat: no-repeat;    
}

@media only screen and (max-width: 931px) {
    .tree-box-left {    
        text-align: left;
        margin-left: 120px;       
        max-width: 420px;  
    }
    
    .tree-box-right {    
        text-align: left; 
        margin-left: 120px;     
        max-width: 420px;
    }

    .tree-box-icon {
        position: absolute;
        transform: translate(34px, -5px) 
    }
    
    .tree-box-rust-trunk {
        background-image: url(../images/rust-trunk.svg);
        background-repeat: repeat-y; 
        background-position-x: 21px;
    }
    
    .tree-box-rust-part {
        position: absolute;
        z-index: -1;
        width: 78px;
        height: 100px;
        transform: translate(21px, 50%);
        background-image: url(../images/rust.svg);
        background-repeat: no-repeat;    
    }

    .tree-box-rust-part-end {
        position: absolute;
        z-index: -1;
        width: 78px;
        height: 161px;
        transform: translate(21px, -17px);
        background-image: url(../images/rust.svg);
        background-position-y: -425px;
        background-repeat: no-repeat;    
    }
}

/* || panel-box component */

.panel-box-container {
    display: flex;
    flex-flow: row wrap; 
    justify-content: space-between;
    align-items: center;
}

.panel-box p {
    font-size: 1.0rem;
    line-height: 24px;    
}

.panel-box {
    width: 336px;
    border: 2.5px solid #47D4F3;
    border-radius: 5px;
    padding: 24px 24px 42px;
    box-shadow: 0px 0px 10px #D0F3FB;
    margin: 0px 16px 38px 0px;
    background-color: #FFFFFF;
}

.panel-box-move-up {
    transform: translateY(-75px);
}

.panel-box-icon {
    position: absolute;
    transform: translate(-50px, -50px);
}

.panel-box-align-self-start {
    align-self: flex-start;
}

.panel-box-align-self-end {
    align-self: flex-end;
}

@media only screen and (max-width: 931px) {
    .panel-box-container {
        display: flex;
        flex-flow: column nowrap;         
        align-items: center;
    }  

    .panel-box-move-up {
        transform: translateY(0px);
    }

    .panel-box-align-self-start {
        align-self: auto ;
    }
    
    .panel-box-align-self-end {
        align-self: auto ;
    }    
}

/* || footer */

footer {
    background-color: #1D241F;

    font-family: rubik, sans-serif;
    font-size: 0.9375rem;    
    color: #848B86;
    line-height: 24px; 

    margin-top: 80px;
    padding-top: 110px;
    padding-bottom: 120px;
}

footer > :not(.bg-layer) {
    z-index: 1;
    position: relative; 
}

footer h2 {
    color: #FFFFFF;
    font-family: rubik-bold, sans-serif;
    font-size: 2.5rem;
    text-align: left;   
}

footer h3 {
    color: #2EC25C;;
    font-family: rubik-bold, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.36px;
    line-height: 14px;
    text-transform: uppercase;   
    margin-bottom: 8px;
}

footer address {
    font-style: normal;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}

footer a {
    text-decoration: underline;
    color: #848B86
}

footer a:hover {    
    color: #FFFFFF
}

.footer-contacts {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

.footer-contacts > div {
    width: 270px;
}

@media only screen and (max-width: 931px) {
    .footer-contacts {       
        flex-flow: column nowrap;                                       
    } 
}

/* || backtround layout images */

#top-left-cloud {   
    z-index: -14;   
    min-height: 800px;    
    background-image: url(../images/top-left-cloud.svg);   
    background-position: calc(50% - 205px) top;    
}

#top-left-rust {    
    z-index: -13;
    top: 423px;
    min-height: 460px;   
    background-image: url(../images/top-left-rust.svg);       
    background-position: calc(50% - 812px) top;    
}

#top-right-cloud {   
    z-index: -12;    
    min-height: 525px;        
    background-image: url(../images/top-right-cloud.svg);   
    background-position: calc(50% + 360px) top;    
}

#top-right-rust {   
    z-index: -11;   
    min-height: 845px;     
    background-image: url(../images/top-right-rust.svg);   
    background-position: calc(50% + 403px) top;   
}

#vision-cloud{
    z-index: -12;   
    min-height: 473px;   
    background-image: url(../images/vision-cloud.svg);   
    background-position: calc(50% + 116px) top;
    transform: translateY(170px);
}

#vision-rust{
    z-index: -11;   
    min-height: 334px;   
    background-image: url(../images/vision-rust.svg);   
    background-position: calc(50% + 830px) top;   
    transform: translateY(410px);
}

#bottom-rust{  
    z-index: 0; 
    min-height: 344px;
    min-width: 428px;
    background-image: url(../images/bottom-rust.svg);   
    background-position: calc(50% + 746px) top;  
    transform: translateY(-111px)  
}