@import url("normalize.css");
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,800&subset=cyrillic-ext');
@import url("animate.css");

/*Typography */

html {
    font-size: 0.75rem;
}

body {
  background-color: white;
  font-family: 'Open Sans', serif;
  font-weight: 400;
  line-height: 1.25;
}

p {
    margin:0;
    margin-bottom:1.414rem;
    font-size:1.414rem;
}

h1, h2, h3, h4 {
  margin: 1.414em 0 0.5em;
  font-weight: inherit;  
}

h1 {
  margin-top: 0;
  font-size: calc(2rem + 5vw);
  font-weight: 800;
  text-align:right;
  line-height: 1.1;
}

.title h1 span {
    text-decoration: line-through;
}

h2 {font-size: 4.236rem;
    text-transform:uppercase;}

h3 {
    font-size: 2.618rem;
    margin:0;
   }

h4 {font-size: 1.618rem;
    margin:0;
text-align:center;}

small, .font_small {font-size: 0.618em;}

a {
    color:hsl(0, 0%, 100%);
}

.blog-block-txt a {
    color:hsla(0, 0%, 0%, 1);
    position:absolute;
    bottom:0;
    right:0;
}

/*HEADER*/

section {
    margin-bottom:5vh;
}

header {
    background-color:hsla(0, 0%, 0%, 0.9);
    color:hsla(0, 0%, 100%, 0.9);
    background-image:url("../img/backheader.png");
}

.container {
    display: grid;
    grid-template-columns: repeat(12,1fr);
    margin:0 auto;
    width:75%;
}

.header-container {
    grid-template-rows:15vh 1fr 15vh;
    align-items:center;
    justify-items:center;
    height:100vh;

    width:75%;
    margin:0 auto;
    padding:1rem 0;
}

.title, .social-bar {
    grid-column:span 12;
    align-self:center;
    justify-self:center;   
}

.social-bar-contacts i{
    color:hsla(0, 0%, 0%, 0.9);
    margin-right:1rem;
    font-size:1.414rem;
}

.title-hidden, .menu {
    grid-column:span 6;
    color:hsl(0, 0%, 100%);
}

.social-bar {
    justify-self:start;
    align-self:center;
    font-size: 1.618rem;
}

.social-bar i {
    margin-right:0.5rem;
}

.social-bar-contacts {
    align-self:end;
}

.logo, .menu-bars {
    grid-column:span 6;
    justify-self:start;
    align-self:center;
    cursor: pointer;
    font-size: 2.618rem;
}

footer .logo {
    grid-column:span 12;
    justify-self:center;
}

.menu-bars {
    justify-self:end;
}

.overlay-content .closebtn {
    justify-self:end;
}

.overlay-content .logo {
    grid-column:span 6;
    align-self:center;
    justify-self:start;
}

/*HAMBURGER */

.overlay {
    width: 0;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    background-color: hsl(0, 0%, 0%);
    overflow-x: hidden;
    transition: 0.5s;
    background-image:url("../img/backheader.png");
}

.overlay-content {
    
    width:75%;
    height:100vh;
    margin:0 auto;
    padding:1rem 0;
    text-align: center;

    display:grid;
    grid-template-rows:15vh 1fr 15vh;
    align-items:center;
}

.overlay a {
    padding: 0.5rem;
    text-decoration: none;
    font-size: 2rem;
    color: hsl(0, 0%, 100%);
    display: block;
    transition: 0.3s;
}

.divider {
    height:0.25rem;
    width:10%;
    margin:0.5rem auto;
    background-color:hsl(0, 0%, 50%);
}

.overlay a:hover, .overlay a:focus {
    color: hsl(0, 0%, 95%);
}

.overlay .closebtn {
    /*position: absolute;
    top: 1rem;
    right: 4rem;
    font-size: 3.75rem;*/
    grid-column:span 6;
}

.menu {
    display:grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    text-align:center;
}

/*Intro*/

img {
    width:100%;
}

.intro-container {
    width:75%;
    margin:0 auto;
}

.intro-block {
    grid-column:span 6;
}

#more {
    display: none;
}

#myBtn {
    border:0;
    color:hsl(240, 100%, 70%);
    background-color:hsla(0, 0%, 100%, 1);
}

/**/

.check-this-block {
    min-height:10vh;
    grid-column:span 4;
    position:relative;
    filter:grayscale(50%);
}

.check-this-block:nth-child(2) {
    grid-row: 3/span 2;
}

.check-this-block:nth-child(3) {
    grid-row:2/span 2;
    grid-column:7/span 6;
}

.check-this-block:nth-child(4) {
    grid-row: 4/span 2;
    grid-column:5/span 4;
}

.check-this-block:nth-child(5) {
    grid-row: 5/span 2;
    grid-column:9/span 4;
}

.check-this-block:nth-child(6) {
    grid-row: 6/span 2;
    grid-column:3/span 6;
}

.check-this-block:nth-child(9) {
    grid-row: 8/span 2;
    grid-column:span 3;
}

.check-this-block:nth-child(10) {
    grid-row: 9/span 2;
    grid-column:span 3;
}

.check-this-block:nth-child(11) {
    grid-row: 10/span 2;
    grid-column:span 3;
}



.check-this-container {
    width:75%;
    grid-gap:2rem;
}

figure {
    margin:0;
}

.check-this-block hgroup {
    position:absolute;
    top:0rem;
    right:-7rem;
}

/*READMORE CSS*/

.read-more-state {
    grid-column:span 12;
    opacity:0;
    justify-self:center;
  }




.read-more-target {
    display:none;
    animation: bounce 0.25s;
  }

  .read-more-state:checked ~ .read-more-target {
    display:block;
  }

  .read-more-state ~ .read-more-trigger:before {
    content: 'Show more';
  }
  
  .read-more-state:checked ~ .read-more-trigger:before {
    content: 'Show less';
  }

  .read-more-trigger {
    cursor: pointer;
    display: inline-block;
    padding: 0 .5rem;
    color: #666;
    font-size: 1rem;
    line-height: 2;
    border-bottom:2.5px solid hsla(0, 0%, 0%, 0.9);
    border-radius: .25em;
    justify-self:center;
    grid-column:span 12;
  }

/**/

.clients-block {
    padding:0.5rem 1rem;
    min-height:20vh;
    font-size:calc(2rem + 4vw);
}

.clients-block h3 {
    display:inline-block;
    font-size:calc(2rem + 2vw);
}

.clients-container {
    width:75%;
    grid-gap:2rem;
}


.clients-block {
    display:grid;
    align-content:center;
    justify-content:center;    
}

.clients-block:nth-child(2) {
    grid-column:span 4;
    background-color:hsla(0, 0%, 0%, 1);
    color:hsla(0, 0%, 100%, 1);
    grid-row:span 2;
}

.clients-block:nth-child(3) {
    grid-column:span 2;
    background-color:hsl(210, 50%, 60%);
    color:hsla(0, 0%, 100%, 1);
    grid-row:4;
}

.clients-block:nth-child(4) {
    grid-column:3/span 2;
    background-color:hsl(240, 33%, 70%);
    color:hsla(0, 0%, 100%, 1);
    grid-row:5;
}

.clients-block:nth-child(5) {
    grid-column:5/span 4;
    background-color:hsl(240, 50%, 60%);
    color:hsla(0, 0%, 100%, 1);
    grid-row:3/span 3;
}

.clients-block:nth-child(6) {
    grid-column:span 4;
    background-color:hsl(100, 60%, 50%);
    color:hsla(0, 0%, 100%, 1);
    grid-row:4;
}

.clients-block:nth-child(7) {
    grid-column:7/span 4;
    background-color:#cc6633;
    color:hsl(0, 0%, 100%);
    grid-row:6/span 2;
}

/*BLOG*/

.the-blog-container {
    width:75%;
    margin:0 auto;
    grid-gap:2rem;
}

.the-blog-block:nth-child(2) {
    grid-column:3/span 10;
}

.the-blog-block:nth-child(3) {
    grid-column:5/span 8;
}

.the-blog-block:nth-child(6) {
    grid-column:span 8;
    grid-row:4;
}

.the-blog-block {
    display:grid;
    grid-template-columns:3fr 2fr;
    grid-gap:2rem;
    position:relative;
}

.read-more-target {
    display:none;
    transition: .25s ease;
  }

.the-blog  .read-more-state:checked ~ .read-more-target {
    display:grid;
  }

.btn-blog {
    grid-column:span 12;
    justify-self:center;
}

.btn {
    border:none;
    font-size:1.414rem;
    background-color:hsl(0, 0%, 100%);
    cursor:pointer;
    margin:1rem 0;
    padding:0.25rem 0;
    border-bottom:2.5px solid black;
}


/*Get in touch*/

.get-in-touch-block:nth-child(2) {
    grid-column:span 4;
}

.get-in-touch-block:nth-child(3) {
    grid-column:span 8;
}

.address {
    font-size:1.414rem;
    font-style:italic;
}

.get-in-touch-block {
    display:grid;
}

footer {
    background-color:hsla(0, 0%, 0%, 0.9);
    color:hsl(0, 0%, 100%);
}

.footer-container {
    min-height:15vh;
    align-items:center;
    justify-items:center;
    text-align:center;
    padding:1rem 0;
}

.copyright {
    grid-column:span 12;
}



@media screen and (max-height: 600px) {
    .overlay-content {
        grid-template-rows:15vh 1fr 1fr 15vh;
    }

    .title-hidden, .menu {
        grid-column:span 12;
    }

    .title-hidden {
        justify-self:end;
    }

    h1, .menu a:nth-child(even) {
        text-align: right;
    }

    .menu a:nth-child(odd) {
        text-align: left;
    }

    .intro-container, .check-this-container, .clients-container, .the-blog-container, .get-in-touch-container {
        width:95%;
    }

    .intro-block, .check-this-block, .the-blog-block:nth-child(2), .the-blog-block:nth-child(3), .the-blog-block:nth-child(6) {
        grid-column:span 12;
    }

    .clients-block:nth-child(2), .clients-block:nth-child(3), .clients-block:nth-child(4),
    .clients-block:nth-child(5), .clients-block:nth-child(6), .clients-block:nth-child(7) {
        grid-column:span 6;
        grid-row:auto;
        min-height:45vh;
    }

    .check-this-block:nth-child(2), .check-this-block:nth-child(3), .check-this-block:nth-child(4), .check-this-block:nth-child(5),
    .check-this-block:nth-child(6), .check-this-block:nth-child(7), .check-this-block:nth-child(8), .check-this-block:nth-child(9),
    .check-this-block:nth-child(10), .check-this-block:nth-child(11), .get-in-touch-block:nth-child(3), .get-in-touch-block:nth-child(2) {
        grid-column:span 12;
        grid-row:auto;
    }

    .the-blog-block {
        grid-template-columns:auto;
    }

    .social-bar-contacts {
        margin:1rem 0;
    }

}

