/* --------------------------------------------

	

	main.css : this is the main style file of the theme.
	

	---

	

	CONTEXT:

	

	1. BASE (@base)

	2. TYPOGRAPHY (@typo)

	3. HELPERS (@helpers)

	4. LAYOUT (@layout)

	5. ELEMENTS (@elements)

	5. MEDIA QUERIES (@media)

	

 -------------------------------------------- */

/*  --------------------------------------------



	1. BASE (@base) - base html elements

	

    -------------------------------------------- */

html,
body {
    
    width:              100%;
    padding:            0;
    
    margin:             0;
    
    -webkit-box-sizing: border-box;
    
    box-sizing:         border-box;
    
}

* {
    
    -webkit-box-sizing: border-box;
    
    box-sizing:         border-box;
    
}

body {
    
    background-color: #e6e8eb;
    
}

/* Loader */

html {
    
    overflow: hidden;
    
}

html.loaded {
    
    overflow: auto;
    
}

html.loaded:after {
    
    display: none;
    
}

body {
    
    -webkit-transition: all .6s cubic-bezier(0.77, 0, 0.175, 1);
    
    -o-transition:      all .6s cubic-bezier(0.77, 0, 0.175, 1);
    
    transition:         all .6s cubic-bezier(0.77, 0, 0.175, 1);
    
    opacity:            0;
    
}

html.loaded body {
    
    opacity: 1;
    
}

.mobile {
    display: none;
}

img {
    max-width: 100%;
}

/*  --------------------------------------------



	2. TYPOGRAPHY (@typo) - typographic styles

	

    -------------------------------------------- */

@font-face {
    font-family: "BrandingMedium";
    src: url('../fonts/BrandingMedium/font.woff2') format('woff2'), url('../fonts/BrandingMedium/font.woff') format('woff');
}

@font-face {
    font-family: "BrandingBlack";
    src: url('../fonts/BrandingBlack/font.woff2') format('woff2'), url('../fonts/BrandingBlack/font.woff') format('woff');
}

@font-face {
    font-family: 'Radeil';
    src: url('../fonts/RadeilRounded-Regular/RadeilRounded-Regular.eot');
    src: url('../fonts/RadeilRounded-Regular/RadeilRounded-Regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/RadeilRounded-Regular/RadeilRounded-Regular.woff2') format('woff2'),
         url('../fonts/RadeilRounded-Regular/RadeilRounded-Regular.woff') format('woff'),
         url('../fonts/RadeilRounded-Regular/RadeilRounded-Regular.ttf')  format('truetype'),
         url('../fonts/RadeilRounded-Regular/RadeilRounded-Regular.svg#Radeil') format('svg');
}

html {
    font-size:   24px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "National Park", sans-serif;
	font-weight: 800;
	font-style: normal;
    margin:  1em 0 .66em 0;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
    
    margin-top: 0;
    
}

h1 {
    
    margin: 10px 0 0;
    
}

h2 {
    font-size:   1.2rem;
    margin:      0;
    color: #5482eb;
}


h1 {
    
    display:               -webkit-box;
    
    display:               -ms-flexbox;
    
    display:               flex;
    
    -webkit-box-orient:    vertical;
    
    -webkit-box-direction: normal;
    
    -ms-flex-direction:    column;
    
    flex-direction:        column;
    
    -webkit-box-align:     center;
    
    -ms-flex-align:        center;
    
    align-items:           center;
    
}


p:last-child {
    
    margin-bottom: 0;
    
}

body {
    
	font-family: "National Park", sans-serif;
	font-weight: 400;
	font-style: normal;
    color:       #40404c;
    font-size:   1rem;
    line-height: 1.3;
}

strong {
    font-family: "National Park", sans-serif;
	font-weight: 700;
	font-style: normal;
}

a {
    color:              #5482eb;
    text-decoration:    underline;
    transition: 0.5s ease;
}

a:hover {
    color: #ff9f6b;
}

.copyright {
	font-family: "National Park", sans-serif;
	font-weight: 300;
	font-style: normal;
    font-size:0.8rem;
    padding-bottom: 25px;
}

.characters {
    font-family: 'Radeil';
	font-style: normal;
    color: #75b0f9;
    font-size:1.3rem;
	text-transform: uppercase;
}

/*  --------------------------------------------



	2. LAYOUT (@layout) - layout styles

	

    -------------------------------------------- */

/* CONTENT */

body {
    background-color: white;
}

.content-wrap {
    width:       100%;
}

.header {
    background-color: white;
    margin:           25px 0 0 0;
}

.content {
    position: relative;
    text-align: center;
    max-width:  1100px;
    width:      95%;
    margin:     0 auto;

}

.content-wrap .content{
    display: flex;
    row-gap: 25px;
    flex-direction: column;
    z-index:100;
}

.row {
    width:100%;
}
.logo {
    height:150px;
}

.illustration {
    background-color: #5482eb;
    position: relative;
}

.projects {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap:2%;
}

.portrait-video {
    width:29%;
}

.landscape-video {
    width:69%;
}

.full-video {
    width:100%;
}


.video {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 20px;
}

.bottom-illustration {
    position: relative;
}

.clouds-1 {
    background: no-repeat url("../images/stroygraphica__clouds-1.png");
    background-size: cover;
    width: 100%;
    height:130px;
    background-position: top left;
    animation: move-clouds 500s infinite;
}

.clouds-2 {
    background: no-repeat url("../images/stroygraphica__clouds-2.png");
    background-size: cover;
    width: 100%;
    height:320px;
    background-position: top left;
    animation: move-clouds 600s infinite;
    position: absolute;
    bottom:0;
    z-index: 100;
}

.characters {
    width: 100%;
    position: relative;
    z-index: 90;
}

.characters .left {
    position: absolute;
    left: 5%;
    top:20%;
    text-align: center;
}

.characters .center {
    padding-bottom:10px;
}

.characters .right {
    position: absolute;
    top:20%;
    right: 3%;
    text-align: center;
}

.clouds-3 {
    background: no-repeat url("../images/stroygraphica__clouds-3.png");
    background-size: cover;
    width: 100%;
    height:320px;
    background-position: top left;
    animation: move-clouds 300s infinite;
    position: absolute;
    bottom:0;
    z-index: 80;
}

.clouds-4 {
    background: no-repeat url("../images/stroygraphica__clouds-4.png");
    background-size: cover;
    width: 100%;
    height:320px;
    background-position: top left;
    animation: move-clouds 400s infinite;
    position: absolute;
    bottom:0;
    z-index: 70;
}

@keyframes move-clouds {
    50% {background-position: top right;}
}

/*  --------------------------------------------



	6. MEDIA QUERIES (@media) - base html elements

	

    -------------------------------------------- */

/* TABLETS */

/* DESKTOPS */

@media screen and (max-width: 1199px) {
    .logo {
        height:100px;
    }
    
    .clouds-1 {
        height:65px;
    }
    
    .clouds-2,
    .clouds-3,
    .clouds-4 {
        height:160px;
    }
}

/* DESKTOPS HIGH RES */

@media screen and (max-width: 768px) {
    
    html {
        font-size: 16px;
    }
    .logo {
        height:75px;
    }
    
    .clouds-1 {
        height:50px;
    }
    
    .clouds-2,
    .clouds-3,
    .clouds-4 {
        height:120px;
    }
    
    .content-wrap .content {
        row-gap: 10px;
    }

    .projects {
        flex-direction: column;
        gap: 25px;
    }

    .portrait-video,
    .landscape-video {
        width:100%;
    }
}

@media screen and (max-width: 550px) {
    
    .characters {
        font-size: 1rem;
    }
    
    .characters .left,
    .characters .right {
        top: 5%;
    }
}

@media screen and (max-width: 400px) {

}