*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}




.container{
    
   width: 1200px;
    margin-left: auto;
    margin-right: auto;

   
}

@media (min-width: 768px) and (max-width: 1199px) {.container{
  width: 100%;
  padding: 0 30px;
}}

.header{
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
}
.header-components{
    display: flex;
    justify-content: space-between;
    border-bottom: solid #ffffff;
    border-width: 1px;
    padding: 10px 0;
    
}

.social-block{display: flex;
padding: 8px;

}

.svg-image{
    display: inline-block;
    padding:0 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    text-decoration: none;
    transition: transform 0.5s;
    
}
@media (min-width: 768px) and (max-width: 1199px) {.svg-image{
     padding: 7px;
      }}
    @media  (max-width: 767px) {.svg-image{
        padding: 5px;
      }}


.svg-image:hover{fill:#cd2122;
    transform: scale(1.3);}

.main {  
  background-image: url(open_house_background.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
      
  width: 100%;
  min-height: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 0;

}

.center-text {

   flex-direction: column;
    color: rgb(236, 226, 226);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 34px;
    text-align: center;
    margin: 0 auto;
    
}

   @media (min-width: 768px) and (max-width: 1199px) {
      .center-text{
        font-size: 25px;
      }}
    @media  (max-width: 767px) {
      .center-text{
        font-size: 18px;
      }}


.button-block{
    font-size: 14px;
    display: flex;
    min-width: 250px;
    margin-bottom: 60px;
   
}
 @media (min-width: 768px) and (max-width: 1199px) {
   .button-block {
        font-size: 14px;
      }}
    @media  (max-width: 767px) {
     .button-block {
        font-size: 14px;
      }}



.button{
   text-decoration: none;
   width: 200px;
  
   color:#ffffff;
    border-radius: 5px;
    text-align: center;
    padding: 10px;
    display: inline-block;
    margin-right: 40px;
    margin-top: 20px;
    background: linear-gradient(to bottom, #ff0000, #fc4b4b);
        overflow: hidden;
        text-shadow: none;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 1;
    transition: transform 0.5s; 
}
@media (min-width: 768px) and (max-width: 1199px) {
     .button {
        width: 180px;
        padding: 8px;
      }}


.button:hover{transform: scale(1.3);
background-color: rgb(255, 0, 0);
}

.main-text{
    margin: 10px;
    font-size: 50px;
    text-align: center;
    
}
@media (min-width: 768px) and (max-width: 1199px) {
  .main-text{font-size: 30px;}        
      }
    @media  (max-width: 767px) {
      .main-text{font-size: 20px;} 
      }
.logo{
    width: 218px;
    height: 32px;
    padding: 8px;
    transition: transform 0.5s;
}

.logo:hover{transform: scale(1.3)}

.logo img {
    padding: 8px;
    max-width: 100%;
    object-fit: cover;
    width: 100%;
    height: auto;
    cursor: pointer;
}

.telephone{
    display: inline-block;
    padding-left: 10px;
    color: white;
    text-decoration: none;
}

.sadsmiley{
    margin-left: 15px;
}
.sadsmiley img{
  width: 30px;
  height: 30px;
}
@media (min-width: 768px) and (max-width: 1199px) {
  .sadsmiley img{
    width: 20px;
  height: 20px;}        
      }
@media  (max-width: 767px) {
  .sadsmiley img{
    width: 15px;
  height: 15px;} 
  }

.button-learn-more{
    text-decoration: none;
   width: 200px;
   font-size: 14px;
   color:#ffffff;
    border-radius: 5px;
    text-align: center;
    padding: 10px;
    display: inline-block;
    margin-right: 40px;
    margin-top: 20px;
    background: linear-gradient(to bottom, #ff0000, #fc4b4b);
        overflow: hidden;
        text-shadow: none;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 1;
    transition: transform 0.5s;
 
  
}
@media (min-width: 768px) and (max-width: 1199px) {
  .button-learn-more{
  width: 150px;
  padding: 8px;
}}
.main-text-lern-more,
.text-lern-more{  margin: 5px;
    font-size: 20px;
    text-align: center;
   
    }
 @media (min-width: 768px) and (max-width: 1199px) {
 .main-text-lern-more,
.text-lern-more {
        font-size: 18px;
 }
  
      }
.button-learn-more:hover{transform: scale(1.3);
    background-color: rgb(255, 0, 0);
    }

   @media  (max-width: 900px) {
      .main{
        height: auto;
        min-height: 100vh;
      }}


    
    @media  (max-width: 767px) {
      .main{
        padding-top: 165px;
      }
   
    .container{
      width: 100%;
      padding:0 30px;
    }
    .social-block {
      display: flex;      
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
  }
    .center-text {
      padding: 30px 0;}
    .header-components {
      display: flex;
      justify-content: center;     
      flex-direction: column;
      align-items: center;
      row-gap: 10px;
    }
    .svg-image{
      padding-left:30px ;
    }
    .button-block{
      flex-direction: column;      
      justify-content: center;
      align-items: center;
      width: 100%;
      margin-bottom: 30px;
      font-size: 14px;
    }
 
    .button{
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 0;
      width: 170px;
    }
    .button-learn-more{
      font-size: 14px;
      padding: 10px;
      margin-right: 0;
      width: 150px;
    }

      }