body {
    margin: 0;
    padding: 0;
    font-family: 'Caveat', cursive;
    font-family: 'Nunito Sans', sans-serif;
}

@font-face {
    font-family: 'Caveat', cursive;
    font-family: 'Nunito Sans', sans-serif;
    src: url('../fonts/Caveat/Caveat-Bold.ttf');
    src: url('../fonts/Caveat/Caveat-Regular.ttf');
    font-family: 'Oswald', sans-serif;
}
.logo {
    height: auto;
    width: 55px;
    border-radius: 100px;
}
#a_logo {
    padding: 0;
    position: relative;
    top: 4px;
}
header {
    min-height: 600px;
    max-width: 1200px;
    margin: 0 auto;
    background-image: url(../img/briks.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #f2f2f2;
    position: relative;
}
.block1 {
    background-image: url(../img/Jhon3_16.jpg);
    background-size: contain;
    margin: 0;
    padding: 0;
    height: 213px;
    width: 276px;
    position: absolute;
    top: 56px;
    left: 40px;
    transform: rotate(-30deg);
}
@media screen and (max-width: 900px){
    .block1 {
    position: absolute;
    height: 170px;
    width: 221px;
    left: 30px;
    top: 50px;
    }

    #title1, #title2 {
        font-size: 65px;
        margin: 0;
    }
}
.flex_wrap {
    max-width: 770px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding-top: 198px;

}
#title1, #title2 {
    color: #ffff;
    font-weight: 900;
    font-family: 'Caveat', cursive;
}
@media screen and (max-width: 830px) {
    #title1, #title2 {
        font-size: 60px;
        margin: 0;
    }
    .flex_wrap {
        padding-top: 250px;
    }
}
.uppercase {
    text-transform: uppercase;
}

.block2 {
    background-image: url(../img/Jhon8_32.jpg);
    background-size: cover;
    margin: 0;
    padding: 0;
    height: 185px;
    width: 145px;
    position: absolute;
    top: 382px;
    left: 880px;
    transform: rotate(30deg);
}
@media screen and (max-width: 960px){
    .block2 {
        height: 185px;
        width: 145px;
        position: absolute;
        top: 382px;
        left: 744px;
    }
}
@media screen and (max-width: 1000px){
    .block2 {
        height: 185px;
        width: 145px;
        position: absolute;
        top: 382px;
        left: 787px;
    }
}
@media screen and (max-width: 1064px){
    .block2 {
        height: 185px;
        width: 145px;
        position: absolute;
        top: 382px;
        left: 810px;
    }
}

@media screen and (max-width: 910px){
    .block2 {
    position: absolute;
    height: 155px;
    width: 122px;
    left: 582px;
    top: 426px;
    }
}
@media screen and (max-width: 735px){
    .block2 {
    position: absolute;
    height: 155px;
    width: 122px;
    left: 481px;
    top: 62px;
    }
    .flex_wrap {
        padding-top: 290px;
    }
    .block1 {
        position: absolute;
        height: 171px;
        width: 217px;
        left: 81px;
        top: 71px;
        }
}
@media screen and (max-width: 635px){
    .block2 {
    position: absolute;
    height: 155px;
    width: 122px;
    left: 360px;
    top: 62px;
    }
    
    .block1 {
        position: absolute;
        height: 171px;
        width: 217px;
        left: 34px;
        top: 71px;
        }
        #title1, #title2 {
            font-size: 51px;
            margin: 0;
        }
}
@media screen and (max-width: 550px){
    .block2 {
    position: absolute;
    height: 155px;
    width: 122px;
    left: 360px;
    top: 62px;
    }
    
    .block1 {
        position: absolute;
        height: 171px;
        width: 217px;
        left: 34px;
        top: 71px;
        }
        #title1, #title2 {
            font-size: 46px;
            margin: 0;
        }
}
@media screen and (max-width: 515px){
    .block2 {
    position: absolute;
    height: 133px;
    width: 103px;
    left: 310px;
    top: 62px;
    }
    
    .block1 {
        position: absolute;
        height: 134px;
        width: 174px;
        left: 34px;
        top: 71px;
        }
        #title1, #title2 {
            font-size: 38px;
            margin: 0;
        }
}
@media screen and (max-width: 440px){
    .block2 {
    position: absolute;
    height: 133px;
    width: 103px;
    left: 250px;
    top: 79px;
    }
    
    .block1 {
        position: absolute;
        height: 134px;
        width: 174px;
        left: 52px;
        top: 38px;
        }
        #title1, #title2 {
            font-size: 38px;
            margin: 0;
        }
}
@media screen and (max-width: 381px){
    .block2 {
    position: absolute;
    height: 115px;
    width: 89px;
    left: 222px;
    top: 75px;
    }
    
    .block1 {
        position: absolute;
        height: 134px;
        width: 174px;
        left: 20px;
        top: 38px;
        }
        #title1, #title2 {
            font-size: 38px;
            margin: 0;
        }
}
@media screen and (max-width: 338px){
    .block2 {
    position: absolute;
    height: 115px;
    width: 89px;
    left: 180px;
    top: 112px;
    }
    
    .block1 {
        position: absolute;
        height: 134px;
        width: 174px;
        left: 20px;
        top: 38px;
        }
        #title1, #title2 {
            font-size: 38px;
            margin: 0;
        }
}

@media (max-width: 420px) {
    .flex_wrap {
        flex-direction: column;
        padding-top: 222px;
    }
    #title1, #title2 {
        margin: 20px;
    }
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Caveat', cursive;
}
/* Add a black background color to the top navigation */
.topnav {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgb(235, 232, 232);
    overflow: hidden;
    display: flex;
}

/* Style the links inside the navigation bar */
.topnav a {
    /* float: left; */
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 18px;
    text-decoration: none;
    font-size: 28px;
    color: black;
}

/* Change the color of links on hover */
.topnav a:hover {
    background-color: #ddd;
    color: black;
}

/* Add an active class to highlight the current page */
.active {
    background-color: #ff8c20;
    opacity: 0.8;
    color: white;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
    display: none;
}

/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 740px) {
    .topnav a:not(:first-child) {display: none;}
    .topnav a.icon {
      float: right;
      display: block;
    }
}
  
/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
  @media (max-width: 1050px) {
      .topnav a {
        font-size: 22px;
        padding: 16px 8px;
    }
  }
  @media screen and (max-width: 740px) {
    .topnav.responsive {position: relative;}
    .topnav.responsive a.icon {
      position: absolute;
      right: 0;
      top: 0;
    }
    .topnav.responsive a {
      /* float: none; */
      display: block;
      text-align: left;
    }
    .topnav.responsive {
    
        flex-direction: column;
        
        }
}
/* #youtube {
    position: relative;
    padding-right: 45px;
}
#youtube img {
    position: absolute;
    top: 19px;
    left: 171px;
}
@media (max-width: 990px) {
    #youtube img {
      left: 134px;
    }
  } */

    #youtube {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    
     flex: 2;
    
    padding-right: 18px;
    
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    }
    
    @media (max-width: 1050px) {
      #youtube {
          font-size: 17px;
      }
    }
    
    @media (max-width: 740px) {
      #youtube {
          font-size: 15px;
      }
    }
    
    #youtube img {
     
      padding-right: 5px;
      width: 31px;
    
    }
    










hr {
    max-width: 800px;
    margin: 35px auto;
    border: 1px solid silver;
    border-radius: 3px;
}

article {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    font-family: 'Caveat', cursive;
    font-size: 70px;
    text-align: center;
    margin-bottom: 40px;
}

.main_img {
    height: 350px;
    float: right;
    margin-right: 15px;
    margin-left: 30px;
    margin-top: 20px;
    margin-bottom: 80px;
}

p {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 22px;
    font-weight: 300;
    line-height: 40px;
    margin-bottom: 40px;
}

@media (max-width: 1200px) {
    p {
        margin-left: 10px;
        margin-right: 10px;
    }
}

@media (max-width: 800px) {
    article {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    h1 {
        
        font-size: 60px;
        margin: 40px auto;
    }
    .main_img {
        height: 200px;
        width: 200px;
        border-radius: 100px;
        margin: 30px auto;
    }
     p {
        font-size: 22px;
        line-height: 32px;
        margin: 40px 20px;
        text-align: justify;
    }
     hr {
        max-width: 500px;
    }
    .flex2 {
        
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 550px) {
    header {
        min-height: 450px;
    }
    article {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    h1 {
        font-size: 34px;
        margin: 40px auto;
    }
    
    .main_img {
        height: 200px;
        width: 200px;
        border-radius: 100px;
        margin: 30px auto;
    }
     
    p {
        font-size: 22px;
        line-height: 32px;
        margin: 40px 20px;
        text-align: justify;
    }
     hr {
        max-width: 300px;
    }
    .flex2 {
        flex-direction: column;
        text-align: center;
        }

    a {
        font-size: 18px;
    }
    
}
h4 {
    font-family: 'Caveat', cursive;
    text-align: center;
    margin: 20px auto;
    font-size: 45px;
}
@media screen and (max-width: 800px) {
    h4 {
        font-size: 35px;
    }
}
@media (max-width: 550px) {
    h4 {
        font-size: 30px;
    }
}
.facebook {
    max-width: 1400px;
    min-height: 70px;
    margin: 0 auto;
    text-align: center;
    font-family: 'Caveat', cursive;
    padding: 30px 0;
}
@media (max-width: 800px) {
    .facebook {
        padding: 10px 0;
    }
}
a {
    text-decoration: none;
    font-size: 28px;
   
    color: black;
    
}

.fb_icon {
    position: relative;
    margin-right: 20px;
    top: 5px;
}

.flex2 {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    font-family: 'Caveat', cursive;
    background: white;
}
li {
    
    list-style-type: none;
    
}
.line2 {
    font-weight: 300;
    font-size: 20px;
    font-family: 'Nunito Sans', sans-serif;
}

.cont {
    font-size: 22px;
    line-height: 30px;
}

.cont:hover {
    font-size: 26px;
    transition: 5ms all ease;
}

.title_line2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 20px;
}

.contacts {
    padding-bottom: 30px;
    padding-left: 0;
    padding-right: 0;
}
@media screen and (max-width: 800px) {
    .contacts {
        margin: 0;
    }
    .title_line2 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    .line2 {
        font-size: 15px;
    }
    
}
@media screen and (max-width: 550px) {
    .contacts {
        padding-left: 10px;
        padding-right: 10px;
        text-align: center;
        margin: 0;
    }
}

.quote {
    font-family: 'Caveat', cursive;
    min-height: 50px;
    max-width: 100%;
    margin: 0 auto;
    padding: 30px;
    font-size: 28px;
    text-align: center;
    background: rgb(185, 185, 185);
}
@media screen and (max-width: 800px) {
    .quote {
        font-size: 24px;
    }
}

.copyright {
    font-family: 'Caveat', cursive;
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 10px;
    font-size: 12px;
    background: rgb(185, 185, 185);
    text-align: center;

}








