20";display:block;height:0;overflow:hidden}.clearfix:after{clear:both}.tie-container,#tie-wrapper{height:100%;min-height:650px}.tie-container{position:relative;overflow:hidden}#tie-wrapper{background:#fff;position:relative;z-index:108;height:100%;margin:0 auto}.container-wrapper{background:#fff;border:1px solid rgba(0,0,0,.1);border-radius:2px;padding:30px}#content{margin-top:30px}@media (max-width:991px){#content{margin-top:15px}}.site-content{-ms-word-wrap:break-word;word-wrap:break-word}.theme-header{background:#fff;position:relative;z-index:999}.theme-header:after{content:"";display:table;clear:both}.theme-header.has-shadow{box-shadow:rgba(0,0,0,.1) 0px 25px 20px -20px}#menu-components-wrap{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:100%;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.logo-row{position:relative}#logo{margin-top:40px;margin-bottom:40px;display:block;float:left}#logo img{vertical-align:middle}#logo a{display:inline-block}@media (max-width:991px){#theme-header.has-normal-width-logo #logo{margin:14px 0!important;text-align:left;line-height:1}#theme-header.has-normal-width-logo #logo img{width:auto;height:auto;max-width:190px}}@media (max-width:479px){#theme-header.has-normal-width-logo #logo img{max-width:160px;max-height:60px!important}}@media (max-width:991px){#theme-header.mobile-header-centered #logo{float:none;text-align:center}}.components{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:end;-ms-flex-pack:end;justify-content:end}.components>li{position:relative}.components>li.social-icons-item{margin:0}.components>li>a{display:block;position:relative;width:30px;text-align:center;font-size:16px;white-space:nowrap}@media (max-width:991px){.logo-container{border-width:0;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:row nowrap;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}}.mobile-header-components{display:none;z-index:10;height:30px;line-height:30px;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-flex:1 1 0%;-ms-flex:1 1 0%;flex:1 1 0%}.mobile-header-components .components{float:none;display:-webkit-flex!important;display:-ms-flexbox!important;display:flex!important;-webkit-justify-content:stretch;-ms-flex-pack:stretch;justify-content:stretch}.mobile-header-components .components li.custom-menu-link{display:inline-block;float:none}.mobile-header-components .components li.custom-menu-link>a{width:20px;padding-bottom:15px}.mobile-header-components [class^=tie-icon-],.mobile-header-components [class*=" tie-icon-"]{font-size:18px;width:20px;height:20px;vertical-align:middle}.mobile-header-components .tie-mobile-menu-icon{font-size:20px}.mobile-header-components .tie-icon-grid-4{-webkit-transform:scale(1.75);-ms-transform:scale(1.75);transform:scale(1.75)}#mobile-header-components-area_1 .components li.custom-menu-link>a{margin-right:15px}#mobile-header-components-area_2 .components{-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}#mobile-header-components-area_2 .components li.custom-menu-link>a{margin-left:15px}@media (max-width:991px){.logo-container:before,.logo-container:after{height:1px}#tie-body #mobile-container,.mobile-header-components{display:block}#slide-sidebar-widgets{display:none}}.top-nav{background-color:#fff;position:relative;z-index:10;line-height:40px;border:1px solid rgba(0,0,0,.1);border-width:1px 0;color:var(--base-color);clear:both}.main-nav-below.top-nav-above .top-nav{border-top-width:0}.top-nav a:not(.button):not(:hover){color:var(--base-color)}.topbar-wrapper{display:-webkit-flex;display:-ms-flexbox;display:flex;min-height:40px}.top-nav .tie-alignleft,.top-nav .tie-alignright{-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;position:relative}.top-nav.has-breaking-news .tie-alignleft{-webkit-flex:1 0 100px;-ms-flex:1 0 100px;flex:1 0 100px}.top-nav.has-breaking-news .tie-alignright{-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0;z-index:1}.topbar-today-date{float:left;padding-right:15px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}@media (max-width:991px){.topbar-today-date,.theme-header .components{display:none}}.breaking{display:none}.main-nav-wrapper{position:relative;z-index:4}.main-nav{background-color:var(--main-nav-background);color:var(--main-nav-primary-color);position:relative;border:1px solid var(--main-nav-main-border-color);border-width:1px 0}.main-menu-wrapper{position:relative}@media (min-width:992px){.header-menu .menu{display:-webkit-flex;display:-ms-flexbox;display:flex}.header-menu .menu a{display:block;position:relative}.header-menu .menu>li>a{white-space:nowrap}.header-menu .menu .sub-menu a{padding:8px 10px}.header-menu .menu ul:not(.sub-menu-columns):not(.sub-menu-columns-item):not(.sub-list):not(.mega-cat-sub-categories):not(.slider-arrow-nav){box-shadow:0 2px 5px rgba(0,0,0,.1)}.header-menu .menu ul li{position:relative}.header-menu .menu ul a{border-width:0 0 1px}#main-nav{z-index:9;line-height:60px}.main-menu .menu>li>a{padding:0 14px;font-size:14px;font-weight:700}.main-menu .menu>li>.menu-sub-content{border-top:2px solid var(--main-nav-primary-color)}.main-menu .menu ul{line-height:20px;z-index:1}.main-menu .menu-sub-content{background:var(--main-nav-background);display:none;padding:15px;width:230px;position:absolute;box-shadow:0 3px 4px rgba(0,0,0,.2)}.main-menu .menu-sub-content a{width:200px}nav.main-nav.menu-style-default .menu>li.tie-current-menu{border-bottom:5px solid var(--main-nav-primary-color);margin-bottom:-5px}nav.main-nav.menu-style-default .menu>li.tie-current-menu>a:after{content:"";width:20px;height:2px;position:absolute;margin-top:17px;left:50%;top:50%;bottom:auto;right:auto;-webkit-transform:translateX(-50%) translateY(-50%);-ms-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);background:#2c2f34}nav.main-nav.menu-style-solid-bg .menu>li.tie-current-menu>a{background-color:var(--main-nav-primary-color);color:var(--main-nav-contrast-primary-color)}.main-nav .menu a,.main-nav .components li a{color:var(--main-nav-text-color)}.main-nav-dark{--main-nav-background:#1f2024;--main-nav-secondry-background:rgba(0,0,0,.2);--main-nav-primary-color:var(--brand-color);--main-nav-contrast-primary-color:var(--bright-color);--main-nav-text-color:#fff;--main-nav-secondry-text-color:rgba(225,255,255,.5);--main-nav-main-border-color:rgba(255,255,255,.07);--main-nav-secondry-border-color:rgba(255,255,255,.04)}.main-nav-dark .main-nav{border-width:0}}@media (min-width:992px){header .menu-item-has-children>a:before{content:'';position:absolute;right:10px;top:50%;bottom:auto;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-family:'tiefonticon'!important;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;content:"\f079";font-size:11px;line-height:1}.menu>.menu-item-has-children:not(.is-icon-only)>a{padding-right:25px}}@media (min-width:992px){.main-nav-boxed .main-nav{border-width:0}.main-nav-boxed .main-menu-wrapper{float:left;width:100%;background-color:var(--main-nav-background);padding-right:15px}}.main-nav-boxed .main-nav:not(.fixed-nav){background:0 0!important}@media only screen and (min-width:992px) and (max-width:1100px){.main-nav .menu>li:not(.is-icon-only)>a{padding-left:7px;padding-right:7px}.main-nav .menu>li:not(.is-icon-only)>a:before{display:none}}@media (max-width:991px){#tie-wrapper header#theme-header{box-shadow:none;background:0 0!important}.logo-container{border-width:0;box-shadow:0 3px 7px 0 rgba(0,0,0,.1)}.logo-container{background-color:#fff}.header-layout-3 .main-nav-wrapper{display:none}.main-menu-wrapper .main-menu-wrap{width:100%}}@media (max-width:767px){.magazine1:not(.has-builder):not(.error404) .main-content,.magazine1:not(.has-builder):not(.error404) .sidebar{padding-left:0;padding-right:0}}textarea,input{border:1px solid rgba(0,0,0,.1);color:var(--base-color);font-size:13px;outline:none;padding:10px 12px;line-height:23px;border-radius:2px;max-width:100%;background-color:transparent}textarea,input:not([type=checkbox]):not([type=radio]){-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none}textarea{width:100%}@media (max-width:767px){input:not([type=submit]),textarea{font-size:16px!important}}.button,[type=submit]{width:auto;position:relative;background-color:var(--tie-buttons-color,var(--brand-color));color:var(--tie-buttons-text,var(--bright-color));border-radius:var(--tie-buttons-radius,2px);border:var(--tie-buttons-border-width,0) solid var(--tie-buttons-border-color,var(--brand-color));padding:10px 25px;margin:0;font-weight:600;font-size:14px;display:inline-block;text-align:center;line-height:21px;text-decoration:none;vertical-align:middle;-webkit-appearance:none;-moz-appearance:none;appearance:none}@media (min-width:992px){.sidebar-right .main-content{float:left}.sidebar-right .sidebar{float:right}.sidebar-right.magazine1 .main-content{padding-right:3px}}.post-thumb{position:relative;height:100%;display:block;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0)}.post-thumb img{width:100%;display:block}.post-thumb .post-cat-wrap{position:absolute;bottom:10px;margin:0;right:10px}.post-meta{margin:10px 0 8px;font-size:12px;overflow:hidden}.post-meta,.post-meta a:not(:hover){color:#666}.post-meta .meta-item{margin-right:8px;display:inline-block}.post-meta .meta-item.tie-icon:before{padding-right:3px}.post-meta .meta-item.date:before{content:"\f017"}.post-meta .meta-item.meta-comment:before{content:"\f086"}.post-meta .tie-alignright .meta-item:last-child{margin:0!important}@media (max-width:767px){.main-content .post-meta>span,.main-content .post-meta>div{float:left}}.post-cat-wrap{position:relative;z-index:3;margin-bottom:5px;font-weight:400;font-family:inherit!important;line-height:0;display:block}.post-cat{display:inline-block;background:var(--brand-color);color:var(--bright-color);padding:0 11px;font-size:13px;line-height:2em;margin-right:4px;position:relative;white-space:nowrap;word-wrap:normal;letter-spacing:0;border-radius:4px}.post-cat:first-child:last-child{margin:0}#breadcrumb{margin:50px 0 0}#breadcrumb,#breadcrumb a:not(:hover){color:#666}#breadcrumb .delimiter{margin:0 3px;font-style:normal}.entry-header-outer #breadcrumb{margin:0 0 20px;padding:0}@media (max-width:767px){.single-post #breadcrumb .current,.single-post #breadcrumb em:last-of-type{display:none}}.social-icons-item{float:right;margin-left:6px;position:relative}.social-icons-item .social-link span{color:var(--base-color);line-height:unset}.social-icons-widget .social-icons-item .social-link{width:24px;height:24px;line-height:24px;padding:0;display:block;text-align:center;border-radius:2px}.top-nav .components>li.social-icons-item .social-link:not(:hover) span{color:var(--base-color)}.social-icons-item .facebook-social-icon{background-color:#4080ff!important}.social-icons-item .facebook-social-icon span{color:#4080ff}.social-icons-item .twitter-social-icon{background-color:#000!important}.social-icons-item .twitter-social-icon span{color:#000}.social-icons-item .pinterest-social-icon{background-color:#e13138!important}.social-icons-item .pinterest-social-icon span{color:#e13138}.social-icons-item .instagram-social-icon{background-color:#c13584!important}.social-icons-item .instagram-social-icon span{color:#c13584}.social-icons-item .youtube-social-icon{background-color:#ef4e41!important}.social-icons-item .youtube-social-icon span{color:#ef4e41}.social-icons-item .tiktok-social-icon{background-color:#ee1d52!important}.social-icons-item .tiktok-social-icon span{color:#ee1d52}.social-icons-item .tumblr-social-icon{background-color:#35465c!important}.social-icons-item .tumblr-social-icon span{color:#35465c}ul:not(.solid-social-icons) .social-icons-item a:not(:hover){background-color:transparent!important}.solid-social-icons .social-link{background-color:var(--base-color)}.dark-skin .solid-social-icons .social-link{background-color:#27292d;border-color:#27292d}.solid-social-icons .social-link span{color:#fff!important}.trending-post.tie-icon-bolt{width:22px;height:22px;line-height:22px;text-align:center;font-size:12px;background:#f64e4e;color:#fff;border-radius:100%;z-index:4;display:inline-block}.thumb-meta .trending-post{margin-right:7px}.centered-title-slider .trending-post{display:block;margin:5px auto!important;width:35px;height:35px;line-height:35px;font-size:18px}.entry-header{padding:30px 30px 0;margin-bottom:20px}@media (max-width:991px){.entry-header{padding:20px 20px 0}}@media (max-width:767px){.container-wrapper{padding:20px 15px}}.tab-content{padding:30px;display:none}.tab-content{position:relative}@media (max-width:767px){.tab-content{padding:20px}}.tab-content-elements li{opacity:0}.thumb-overlay{position:absolute;width:100%;height:100%;top:0;left:0;padding:30px;border-radius:2px}.thumb-overlay .thumb-content{position:absolute;bottom:0;left:0;padding:0 30px 20px;z-index:3;width:100%;-webkit-backface-visibility:hidden;backface-visibility:hidden}.thumb-overlay .thumb-title a{color:#fff!important}.thumb-overlay .thumb-title{font-size:30px;color:#fff}.thumb-overlay .thumb-meta{margin:0 0 5px}.thumb-overlay{-webkit-backface-visibility:hidden;backface-visibility:hidden}.thumb-overlay:after{content:"";position:absolute;z-index:1;left:0;right:0;bottom:0;height:65%;background-image:linear-gradient(to bottom,transparent,rgba(0,0,0,.75));-webkit-backface-visibility:hidden;backface-visibility:hidden}.wide-slider-wrapper .thumb-overlay:after{height:85%}.slider-area .post-cat-wrap{float:left}.slider-area .post-cat-wrap{-webkit-backface-visibility:hidden;backface-visibility:hidden}.main-slider .slide{position:relative;overflow:hidden;background-repeat:no-repeat;background-position:center top;background-size:cover}.main-slider .tie-slick-slider:not(.slick-initialized) .slide{display:none}.main-slider .thumb-meta{color:#fff}@media (max-width:479px){.main-slider .thumb-title{font-size:16px!important}}@media (max-width:320px){.main-slider .post-cat,.main-slider .thumb-meta{display:none}}.all-over-thumb-link{position:absolute;width:100%;height:100%;top:0;z-index:2}.block-head-1 .the-global-title{position:relative;font-size:17px;padding:0 0 15px;border-bottom:2px solid rgba(0,0,0,.1);margin-bottom:20px}.block-head-1 .the-global-title:after{content:"";background:#2c2f34;width:40px;height:2px;position:absolute;bottom:-2px;left:0}.block-head-1 .the-global-title:before{content:"";width:0;height:0;position:absolute;bottom:-5px;left:0;border-left:0;border-right:5px solid transparent;border-top:5px solid #2c2f34}.block-head-1 .dark-skin .widget-title:after{background:#fff}.block-head-1 .dark-skin .widget-title:before{border-top-color:#fff}.block-head-1 .dark-skin .the-global-title{color:#fff;border-bottom-color:rgba(255,255,255,.1)}.wide-slider-wrapper .slide{height:400px}.wide-slider-wrapper .thumb-overlay{padding:40px}.wide-slider-wrapper .thumb-overlay .container{position:relative;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);z-index:2}.wide-slider-wrapper .thumb-overlay .container:before{clear:both}.wide-slider-wrapper .thumb-title{font-size:40px;color:#fff;line-height:1.2}.wide-slider-wrapper span.post-cat-wrap{float:none;clear:both}@media (min-width:992px){.wide-slider-wrapper .thumb-title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;max-height:4em}}@media (max-width:767px){.wide-slider-wrapper .slide{height:300px}.wide-slider-wrapper .thumb-overlay{padding:40px 60px 0}.wide-slider-wrapper .thumb-title{font-size:25px}}@media (max-width:479px){.wide-slider-wrapper .slide{height:220px}.wide-slider-wrapper .thumb-overlay{padding:40px 40px 0}}.centered-title-slider .slide .container{width:100%}.centered-title-slider .thumb-overlay .container{top:42%;text-align:center}.centered-title-slider div.thumb-content{width:100%;top:0;position:relative;padding:0}.centered-title-slider .thumb-title{max-width:450px;margin:0 auto 15px}.centered-title-slider .post-cat-wrap{margin-bottom:20px;width:100%}@media (max-width:767px){.centered-title-slider .post-cat-wrap{margin-bottom:20px}.centered-title-slider .thumb-meta{display:none}}.wide-slider-with-navfor-wrapper .thumb-title{max-width:850px;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}@media (min-width:768px){.wide-slider-with-navfor-wrapper .thumb-title{max-height:2.5em;-webkit-line-clamp:2;font-size:30px}}.side-aside{position:fixed;top:0;z-index:111;visibility:hidden;width:350px;max-width:100%;height:100%;background:#fff;background-repeat:no-repeat;background-position:center top;background-size:cover;overflow-y:auto}@media (min-width:992px){.side-aside{right:0;-webkit-transform:translate(350px,0);-ms-transform:translate(350px,0);transform:translate(350px,0)}}.site-footer .widget-title-icon{display:none}.dark-skin{--lazyload-loading-color:#161717}.dark-skin{background-color:var(--tie-dark-skin-bg-main,#1f2024);color:#fff}.dark-skin input:not([type=submit]){color:#ccc}.dark-skin a:not(:hover){color:#fff}.dark-skin .post-meta{color:#ccc!important}.dark-skin input:not([type=submit]){border-color:rgba(255,255,255,.1)}.dark-skin .container-wrapper{background-color:var(--tie-dark-skin-bg-main,#1f2024);border-color:rgba(255,255,255,.1)}.dark-skin .widget a:not(:hover),.dark-skin .widget-title{color:#fff}.dark-skin .widget-title-icon{color:#ccc}.sidebar .container-wrapper{margin-bottom:30px}@media (max-width:991px){.sidebar .container-wrapper{margin-bottom:15px}}@media (max-width:991px){.has-sidebar .sidebar{margin-top:15px}}.widget-title{position:relative}.widget-title .the-subtitle{font-size:15px;min-height:15px}.widget-title-icon{position:absolute;right:0;top:1px;color:#b9bec3;font-size:15px}.widget-title-icon:before{content:"\f08d"}.post-widget-body{padding-left:125px}.post-widget-body .post-title{font-size:14px;line-height:1.4;margin-bottom:5px}.post-widget-thumbnail{float:left;margin-right:15px;position:relative}.post-widget-thumbnail img.tie-small-image{width:110px}.widget li{padding:6px 0}.widget li:first-child{padding-top:0}.widget li:last-child{padding-bottom:0;border-bottom:0}.widget li:after{clear:both;display:table;content:""}.widget .post-meta{margin:2px 0 0;font-size:11px;line-height:17px}.posts-list .widget-title-icon:before{content:"\f0f6"}.posts-list-big-first .posts-list-items li:first-child{padding-bottom:20px}.posts-list-big-first li:first-child .post-widget-thumbnail{width:100%;margin-right:0;margin-bottom:10px}.posts-list-big-first li:first-child .post-widget-thumbnail a{min-height:40px}.posts-list-big-first li:first-child .post-widget-body{padding-left:0}.posts-list-big-first li:first-child .post-title{font-size:18px}@media (max-width:991px){.posts-list-big-first .posts-list-items{overflow:hidden}.posts-list-big-first li{width:48%;float:left}.posts-list-big-first li:nth-child(2){padding-top:0}.posts-list-big-first li:nth-child(2n){float:right}.posts-list-big-first li:nth-child(2n+1){clear:both}.posts-list-big-first li:nth-child(2),.posts-list-big-first li:nth-child(3){float:right;clear:none}.posts-list-big-first li:nth-child(n+5){display:none}}@media (max-width:670px){.posts-list-big-first li{width:100%}.posts-list-big-first li:nth-child(2){padding-top:12px}.posts-list-big-first li:nth-child(n+5){display:block}}form.search-form{overflow:auto;position:relative;width:100%;margin-top:10px}.search-field{float:left;width:73%;padding:8px 15px}.search-submit[type=submit]{float:right;padding:10px 5px;margin-left:2%;width:25%}.login-widget .widget-title-icon:before{content:"\f023"}.login-widget form input[type=text],.login-widget form input[type=password]{width:100%;float:none;margin-bottom:15px}.login-widget .pass-container{position:relative}.login-widget .pass-container input[type=password]{padding-right:70px}.login-widget .forget-text{position:absolute;right:15px;line-height:45px;top:0;font-size:12px}.login-widget .forget-text:not(:hover){color:#666}.login-widget .rememberme{display:block;margin-bottom:15px}.widget_recent_comments .widget-title-icon:before{content:"\f086"}li.widget-post-list{padding:7px 0;position:relative}.widget_categories .widget-title-icon:before{content:"\f07b"}.social-icons-widget .widget-title-icon:before{content:"\f1e0"}.social-icons-widget ul{margin:0 -3px}.social-icons-widget .social-icons-item{float:left;margin:3px;border-bottom:0;padding:0}.social-icons-widget .social-icons-item .social-link{width:40px;height:40px;line-height:40px;font-size:18px}@media (max-width:479px){.social-icons-widget .social-icons-item{float:none;display:inline-block}}.widget-posts-list-container{position:relative}@media (min-width:992px){.theme-header .logo-row>div{height:auto!important}.header-layout-3 .stream-item-top-wrapper{float:right}}.breaking{float:left;width:100%;display:block!important}.breaking-title{padding:0 10px;display:block;float:left;color:#fff;font-size:12px;position:relative}.breaking-title span{position:relative;z-index:1}.breaking-title span.breaking-icon{display:none}@media (max-width:600px){.breaking-title span.breaking-icon{display:inline-block}.breaking-title .breaking-title-text{display:none}}.breaking-title:before{content:"";background:#f05555;width:100%;height:100%;position:absolute;left:0;top:0;z-index:0}.breaking-news{display:none}#mobile-container{display:none;padding:10px 30px 30px}#mobile-menu{margin-bottom:20px;position:relative;padding-top:15px}#mobile-social-icons{margin-bottom:15px}#mobile-social-icons ul{text-align:center;overflow:hidden}#mobile-social-icons ul .social-icons-item{float:none;display:inline-block}#mobile-social-icons .social-icons-item{margin:0}#mobile-social-icons .social-icons-item .social-link{background:0 0;border:none}#mobile-search .search-form{overflow:hidden;position:relative}#mobile-search .search-form:after{position:absolute;content:"\f002";font-family:'tiefonticon';top:4px;right:10px;line-height:30px;width:30px;font-size:16px;border-radius:50%;text-align:center;color:#fff}#mobile-search .search-field{background-color:rgba(0,0,0,.05);border-color:rgba(255,255,255,.1);color:#fff;width:100%;border-radius:50px;padding:7px 45px 7px 20px}#mobile-search .search-submit{background:0 0;font-size:0;width:35px;height:38px;position:absolute;top:0;right:5px;z-index:1}#mobile-search input::-webkit-input-placeholder{color:rgba(255,255,255,.6)}#mobile-search input::-moz-placeholder{color:rgba(255,255,255,.6)}#mobile-search input:-moz-placeholder{color:rgba(255,255,255,.6)}#mobile-search input:-ms-input-placeholder{color:rgba(255,255,255,.6)}#tie-wrapper:after{position:absolute;z-index:1000;top:-10%;left:-50%;width:0;height:0;background:rgba(0,0,0,.2);content:'';opacity:0}@media (max-width:991px){.side-aside.appear-from-left{left:0;-webkit-transform:translate(-100%,0);-ms-transform:translate(-100%,0);transform:translate(-100%,0)}.side-aside.is-fullwidth{width:100%}}.is-desktop .side-aside .has-custom-scroll{padding:50px 0 0}.side-aside:after{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.2);content:'';opacity:1}.side-aside .container-wrapper{padding:30px!important;border-radius:0;border:0;background:0 0;box-shadow:none!important}a.remove{position:absolute;top:0;right:0;display:block;speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:20px;height:20px;display:block;line-height:20px;text-align:center;font-size:15px}a.remove:before{content:"\e117";font-family:'tiefonticon';color:#e74c3c}a.remove.big-btn{width:25px;height:25px;line-height:25px;font-size:22px}a.remove.light-btn:not(:hover):before{color:#fff}.side-aside a.remove{z-index:1;top:15px;left:50%;right:auto;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.side-aside a.remove:not(:hover):before{color:#111}.side-aside.dark-skin a.remove:not(:hover):before{color:#fff}.tie-popup a.remove{-webkit-transform:scale(.2);-ms-transform:scale(.2);transform:scale(.2);opacity:0;top:15px;right:15px;z-index:1}.theiaStickySidebar:after{content:"";display:table;clear:both}.side-aside,.has-custom-scroll{overflow-x:hidden;scrollbar-width:thin}.side-aside::-webkit-scrollbar,.has-custom-scroll::-webkit-scrollbar{width:5px}.side-aside::-webkit-scrollbar-track,.has-custom-scroll::-webkit-scrollbar-track{background:0 0}.side-aside::-webkit-scrollbar-thumb,.has-custom-scroll::-webkit-scrollbar-thumb{border-radius:20px;background:rgba(0,0,0,.2)}.dark-skin .has-custom-scroll::-webkit-scrollbar-thumb{background:#000}.tie-popup{position:fixed;z-index:99999;left:0;top:0;height:100%;width:100%;background-color:rgba(0,0,0,.5);display:none;-webkit-perspective:600px;perspective:600px}.tie-popup-container{position:relative;z-index:100;width:90%;max-width:420px;margin:10em auto 0;border-radius:2px;box-shadow:0 0 20px rgba(0,0,0,.2);will-change:transform,opacity;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5);opacity:0}.tie-popup-container .login-submit{padding-top:15px;padding-bottom:15px}.tie-popup-container .container-wrapper{padding:60px;background-color:#fff!important;border-radius:5px}@media (max-width:479px){.tie-popup-container .container-wrapper{padding:30px}}.pop-up-live-search{will-change:transform,opacity;-webkit-transform:scale(.7);-ms-transform:scale(.7);transform:scale(.7);opacity:0}.tie-popup-search-wrap::-webkit-input-placeholder{color:#fff}.tie-popup-search-wrap::-moz-placeholder{color:#fff}.tie-popup-search-wrap:-moz-placeholder{color:#fff}.tie-popup-search-wrap:-ms-input-placeholder{color:#fff}.tie-popup-search-wrap form{position:relative;height:80px;margin-bottom:20px}.popup-search-wrap-inner{position:relative;padding:80px 15px 0;margin:0 auto;max-width:800px}input.tie-popup-search-input{width:100%;height:80px;line-height:80px;background:rgba(0,0,0,.7)!important;font-weight:500;font-size:22px;border:0;padding-right:80px;padding-left:30px;color:#fff;border-radius:5px}button.tie-popup-search-submit{font-size:28px;color:#666;position:absolute;right:5px;top:15px;background:0 0!important}#tie-popup-search-mobile .popup-search-wrap-inner{padding-top:50px}#tie-popup-search-mobile input.tie-popup-search-input{height:50px;line-height:1;padding-left:20px;padding-right:50px}#tie-popup-search-mobile button.tie-popup-search-submit{font-size:16px;top:9px;right:0}#autocomplete-suggestions{overflow:auto;padding:20px;color:#eee;position:absolute;display:none;width:370px;z-index:9999;margin-top:15px}.tie-icon-tiktok:before{content:"\e90b"}.tie-icon-messenger:before{content:"\f39f"}.tie-icon-facebook:before{content:"\f09a"}.tie-icon-search:before{content:"\f002"}.tie-icon-author:before{content:"\f007"}.tie-icon-home:before{content:"\f015"}.tie-icon-tags:before{content:"\f02c"}.tie-icon-bookmark:before{content:"\f02e"}.tie-icon-random:before{content:"\f074"}.tie-icon-twitter:before{content:"\e90f"}.tie-icon-navicon:before{content:"\f0c9"}.tie-icon-pinterest:before{content:"\f0d2"}.tie-icon-linkedin:before{content:"\f0e1"}.tie-icon-bolt:before{content:"\f0e7"}.tie-icon-youtube:before{content:"\f16a"}.tie-icon-instagram:before{content:"\f16d"}.tie-icon-tumblr:before{content:"\f173"}.tie-icon-reddit:before{content:"\f1a1"}.tie-icon-paper-plane:before{content:"\f1d8"}.tie-icon-whatsapp:before{content:"\f232"}.tie-icon-grid-4:before{content:"\e908"}.tie-icon-moon:before{content:"\f10d"}.post-content.container-wrapper{padding:0}.entry-header{font-size:45px;line-height:1.2}@media (max-width:767px){.entry-header{font-size:28px}}.entry-header .entry-title{margin-bottom:15px}@media (max-width:767px){.entry-header .entry-title{font-size:28px}}.entry-header .post-is-trending{margin:15px 0 10px;font-size:14px;font-weight:700}.entry-header .trending-post{margin-right:5px}.entry-header .post-cat{margin-bottom:6px}.meta-author-avatar img{width:30px;height:30px;margin-right:3px;margin-top:-5px;vertical-align:middle;border-radius:50%}.post-layout-1 .entry-header-outer{padding:30px 30px 20px}@media (max-width:767px){.post-layout-1 .entry-header-outer{padding:20px}}.post-layout-1 .entry-header{padding:0;margin:0}.post-bottom-meta-title{float:left;padding:0 6px;margin:5px 5px 0 0;background:#2c2f34;border:1px solid rgba(0,0,0,.1);border-radius:2px}.post-bottom-meta-title{color:#fff}.post-tags-modern .post-bottom-meta-title{display:none}.share-buttons{padding:18px 28px;line-height:0}@media (max-width:767px){.share-buttons{padding:15px}}@media (min-width:768px){.share-buttons-top{padding-bottom:0}}.post-layout-1 .share-buttons-top{padding-bottom:18px}.share-links a{color:#fff}.share-links{overflow:hidden;position:relative}.share-links .share-btn-icon{font-size:15px}.share-links a{display:inline-block;margin:2px;height:40px;overflow:hidden;position:relative;border-radius:2px;width:40px}.share-links a,.share-links a:before{background-color:#444}.share-links a .share-btn-icon{width:40px;height:40px;float:left;display:block;text-align:center;line-height:40px}.share-links a.facebook-share-btn,.share-links a.facebook-share-btn:before{background:#4080ff}.share-links a.twitter-share-btn,.share-links a.twitter-share-btn:before{background:#000}.share-links a.linkedin-share-btn,.share-links a.linkedin-share-btn:before{background:#238cc8}.share-links a.pinterest-share-btn,.share-links a.pinterest-share-btn:before{background:#e13138}.share-links a.reddit-share-btn,.share-links a.reddit-share-btn:before{background:#ff4500}.share-links a.tumblr-share-btn,.share-links a.tumblr-share-btn:before{background:#35465c}.share-links a.whatsapp-share-btn,.share-links a.whatsapp-share-btn:before{background:#43d854}.share-links a.telegram-share-btn,.share-links a.telegram-share-btn:before{background:#08c}.share-links a.messenger-share-btn,.share-links a.messenger-share-btn:before{background:#0078ff}@media (min-width:768px){a.whatsapp-share-btn,a.telegram-share-btn{display:none!important}}@media (min-width:768px){a.messenger-mob-share-btn{display:none!important}}@media (max-width:767px){a.messenger-desktop-share-btn{display:none!important}}#related-posts .related-item{position:relative;float:left;width:33.333%;padding:0 15px;margin-bottom:20px}@media (max-width:767px){#related-posts .related-item{padding:0 8px}}#related-posts .related-item .post-thumb{margin-bottom:10px}#related-posts .related-item .post-title{font-size:14px;line-height:19px}#related-posts .related-item .post-meta{margin:4px 0 0}.has-sidebar .site-content #related-posts .related-item:nth-child(3n+1){clear:both}@media (max-width:767px){#related-posts .related-item{width:50%!important;clear:none!important}}#related-posts.has-extra-post .related-item:last-child{clear:none!important;display:none}@media only screen and (min-width:320px) and (max-width:767px){#related-posts.has-extra-post .related-item:last-child{display:block}}#cancel-comment-reply-link{float:right;line-height:18px}#respond p{margin-bottom:10px}#respond p:last-of-type{margin-bottom:0}#respond label{line-height:30px;font-weight:700}#respond label:after{content:"";display:table;clear:both}#respond textarea{vertical-align:top;resize:none}#reading-position-indicator{display:block;height:5px;position:fixed;bottom:0;left:0;background:var(--brand-color);box-shadow:0 0 10px rgba(0,136,255,.7);width:0;z-index:9999;max-width:100%}#check-also-box{position:fixed;background-color:#fff;z-index:999;bottom:15px;right:-1px;-webkit-transform:translatex(100%);-ms-transform:translatex(100%);transform:translatex(100%);width:340px;padding:30px;border:1px solid rgba(0,0,0,.1);border-radius:2px;border-top-right-radius:0;border-bottom-right-radius:0}#check-also-box .has-first-big-post .post-widget-body{clear:both}#check-also-box .posts-list-big-first li{padding-bottom:0}#check-also-box .posts-list-big-first li .post-title{font-size:18px;line-height:1.3em}@media (max-width:991px){#check-also-box{display:none}}#post-extra-info{display:none}.entry ol li{list-style:decimal}.entry ul li,.entry ol ul li{list-style:disc;list-style-image:none}.entry li{margin:0 0 5px}#main-nav .main-menu>ul>li>a{text-transform:capitalize}@media (max-width:991px){.side-aside.normal-side{background:#2f88d6;background:-webkit-linear-gradient(135deg,#5933a2,#2f88d6);background:-moz-linear-gradient(135deg,#5933a2,#2f88d6);background:-o-linear-gradient(135deg,#5933a2,#2f88d6);background:linear-gradient(135deg,#2f88d6,#5933a2)}}.uagb-block-63d186ac .uagb-toc__list .uagb-toc__list{list-style-type:disc!important}p{font-size:20px}
Interfacing PIR Sensor with ESP8266 and EasyIoT
Interfacing PIR Sensor with ESP8266 and EasyIoT Motion sensors are high-tech security devices that you see nowadays in movies too. Now not only in movies, but we will also build the same kind of device today. So in this tutorial, we are Interfacing PIR Sensor with ESP8266 and monitor the sensor data from the EasyIoT Cloud Platform . At the end of this tutorial, you will learn to make your own powerful motion tracking device.
Interfacing PIR Sensor with ESP8266 Components Required We are going to interface PIR (Passive Infrared) Motion sensor with the ESP8266 Module. So here is the list of all the components that are required to build a motion-tracking device.
ESP8266 ESP-01 WiFi Module Passive Infrared (PIR) Motion Sensor Micro USB Cable Few jumpers wire Passive Infrared (PIR) Motion Sensor In this project, we are going to use a Passive Infrared (PIR ) Sensor. It allows you to sense motion. Generally used to detect whether a human has moved away or came to the sensors range. PIR sensor is small, inexpensive, and has low power consumption.
PIR Motion Sensor For that reason, the PIR sensor is commonly found in appliances and gadgets that we use in daily life. Further, it is also known by the name PIR , “Passive Infrared”, “Pyroelectric”, or “IR motion” sensors.
More IoT based Projects:
How this PIR Sensor Works?
When a motion is triggered the Digital Pulse is High i.e 3Volt (When Motion Detected ). Similarly, the Digital Pulse is low when there is no motion detected . Basically, the Pulse lengths are determined by resistors and capacitors on the module. The sensitivity range of PIR Sensor : up to 20 feet (6 meters) which is about 110 degrees and 70 degrees detection range.
Interfacing PIR Sensor with ESP8266 Now lets Interface PIR sensor with ESP8266-01 Module . You can also use the devices like NodeMCU development board for this tutorial. In our case, we use the ESP8266-01 module. Actually, the PIR sensor is powered by 5V , but if we look at the circuit diagram , you will see that 3.3 V is used inside. Since the ESP8266 has 3.3 V, we can bypass the internal PIR regulator.
PIR Sensor Schematic The connection after the regulator can be found on pin 3 of the JP1 connector . In our case, we connected a 3.3 V power supply to this terminal, not 5V to the external power output. You can see this in the following circuit diagram:
Circuit Diagram of PIR Sensor With ESP8266 The following are the connections you need to make:
PIR Sensor ESP8266 3.3VCC 3.3V VCC GND GND OUT GPIO2 on ESP8266
Connecting PIR Sensor With ESP8266 More Arduino based projects that you may like:
Configure EasyIoT Cloud Platform Sign up for the EasyIoT Cloud service. If you do not receive a confirmation of registration by e-mail, check the spam folder. If it is not there, contact the owners of the resource and they will activate your account.
Then go to Configure-> Modules-> Add Module . Set Digital Input (DI) – digital input as the type of module and the name of its PIR sensor.
Then click on Sensor.Parameter1 . Set the “Description ” for the PIR and check the UI messages in order to receive real-time messages via the web interface:
Click the Save parameter button. After saving, you will see InstanceId / ParameterId . Write it down – we’ll need it later in the code:
Return to the configuration module and add two more parameters (via the Add parameter button). These are two options to specify the text in the module. The name of the first parameter Settings.StatusText1 , and the second Settings.StatusText2 . Set the value for the first as “Motion ” and for the second as “Ok “.
Next, set the image for the module. To do this, add two more parameters and name them Settings.Icon1 and Settings.Icon2 .
Now, Set the first parameter to “siren_2.png ” and similarly, the second parameter to “siren_1.png “. After adding all the parameters, the module configuration should look like below image:
Program sketch/Code The program is written in Arduino IDE Software. Refer to the Arduino ESP8266 IDE manual to learn how to connect the ESP8266 module to your computer to download the program. The program is available on GitHub. You will also need the EIoTCloudRestApi library . In the library, enter the Access Point Username and Password .
In the code, overwrite EIOT_CLOUD_INSTANCE_PARAM_ID :
#define EIOT_CLOUD_INSTANCE_PARAM_ID "xxxx"
Also, Set the InstanceId/ParameterId that you have set in your parameter configuration.
#include <ESP8266WiFi.h>
#include "EIoTCloudRestApi.h"
// EasyIoT Cloud definitions - change EIOT_CLOUD_INSTANCE_PARAM_ID
#define EIOT_CLOUD_INSTANCE_PARAM_ID "xxxx"
#define INPUT_PIN 2
EIoTCloudRestApi eiotcloud;
bool oldInputState;
void setup() {
Serial.begin(115200);
eiotcloud.begin();
pinMode(INPUT_PIN, INPUT_PULLUP);
oldInputState = !digitalRead(INPUT_PIN);
}
void loop() {
int inputState = digitalRead(INPUT_PIN);;
if (inputState != oldInputState)
{
eiotcloud.sendParameter(EIOT_CLOUD_INSTANCE_PARAM_ID, (inputState == 1));
oldInputState = inputState;
}
}
If you change the GPIO pin on the ESP8266, then change the GPIO pin in the program as well.
#define INPUT_PIN 2
Now compile your program and upload it to the board. But, make sure you have selected correct board and correct COM port.
Conclusion Finally, we have completed Interfacing PIR Sensor with ESP8266 and EasyIoT. Now, you have made your own powerful motion tracking device . I hope you found this project useful! Drop a comment below if you have any questions. l will do my best to answer them.
Read Next 4 weeks ago
IoT Temperature & Humidity Monitoring & Control System using ESP32 & Blynk 2.0 March 23, 2025
IoT Temperature Control System with ESP8266 & Blynk March 10, 2025
Temperature Control with ESP8266 & AsyncWebServer February 27, 2025
IoT Energy Meter using INA219 Sensor ESP8266 & Blynk
Back to top button
I am getting a error
Iotcloudtry:2:10: fatal error: EIoTCloudRestApi.h: No such file or directory
how to solve this