@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root{
    --upl-main-bg-color:transparent;
    --upl-section-bg-color: #0b2c12;
    --upl-hover:#ff9907;
    --background-color : #e5e5f5;
  }
*{
    padding: 0;margin: 0;box-sizing: border-box;
    text-decoration: none;
    transition:0.5s all ease-in-out;
}
body{
    scroll-behavior: smooth;
    font-size: 62.5%;
    font-family: "Roboto", serif;overflow-x: hidden;
    background: #e5e5f2;
    overflow-x: hidden;
}
section{
    padding: 3em 10%;
}
.success-box{
    display: flex;
    align-items: center;
    justify-content: space-between;
    position:absolute;
    top: 100px;
    right: 10%;
    min-width: 250px;
    padding: 15px;
    border-radius: 3px;
    background: lightgreen;
    color: darkgreen;
    font-size: 16px;
    font-weight: bold;
    user-select: none;
    z-index: 1000;
    overflow: hidden;
    transition: all 0.5s;
}
.success-box.hide{
    transform: translateX(180%);
    transition: all 0.5s;
}
.success-box.show{
    transform: translateX(0%);
}

.success-box .time-line{
    position: absolute;
    width: 100%;
    transform-origin: right;
    height: 2px;
    background: darkgreen;
    bottom: 0;
    right: 0;
}
.success-box i{
    cursor: pointer;
}
.btn{
    border: none;
    outline: none;
    padding: 10px 12px;
    border-radius: 3px;
    background: #ff9907;
    color: #fff;
    text-wrap: nowrap;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}
.btn:hover{
    background: #f8b14e;
}
 .manu-icon{
    display: none;
 }
 header{
    z-index: 100;
 }
header .top-bar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    height: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}
.top-bar .left a span{
  color: #ff9907;
}
header p{
    font-size: 16px;
    text-align: center;
    margin: 0;
}
header .media{
    margin-right: 10px;
    font-size: 2em;
    border-radius: 3px;
    cursor: pointer;
    transition: 0.5s ease-in;
}
header .media:hover{
    color: #ff9907;
}

header .bottom-bar{
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 10%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    z-index: 1000;
}
.navbar{
    margin-top: 15px;
    z-index: 999;
}
.navbar * li{
    list-style: none;
    padding: 5px 0;
}
.navbar .manu{
    display: flex;
    gap: 20px;
}

.navbar .manu .submanu li:nth-child(4){
    border: none;
}
.navbar * a{
    text-decoration: none;
    color: #333;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transform: all 500ms;
}
.navbar .manu * a:hover,
.navbar a.active{
    text-underline-offset: 5px;
    text-decoration: underline 2px;
    color: #ff9907;
}
.navbar .manu * a:hover i,
.navbar .manu * a.active i{
    rotate: 90deg;
}
.navbar .manu .link{
    position: relative;
    padding-bottom: 10px;
}
.navbar .manu .submanu{
    max-height: fit-content;
    height: 0px;
    overflow: hidden;
    transition: all 0.5s ease-in;
}
.navbar .manu .link .submanu{
    position: absolute;
    top: 35px;
    padding: 10px 60px;
    width: initial;
    height: fit-content;
    left: -50px;
    display: none;
    background: #ebebeb;
}
.navbar .manu li:hover .submanu{
    display: block;
}

.navbar .manu .link .submanu * a{
    color: #777;
    white-space: nowrap;
}
.navbar .manu .link .submanu * a:hover{
    text-underline-offset: 5px;
    text-decoration: underline 2px;
    color: #ff9907;
}
/* .search form{

} */
.search .search-field{
    position: relative;
    width: 300px;
    height: 40px;
    border: 1px solid #111;
    padding: 0 10px;
    border-radius: 5px;
    transition: width 200ms;
}
.search .input{
    width: calc(100% - 30px);
    height: 100%;
    outline: none;
    border: none;
    background: transparent;
}
.search .input::placeholder{
    font-size: 16px;
}
.search  .search-field:has(.input:focus){
    box-shadow: 0 0 0 2px #ff9907;
}
.search .search-icon,
.search .x-icon{
    position: absolute;
    right: 80px;
    top: 50%;
    border: none;
    outline: none;
    border-radius: 3px;
    width: 25px;
    height: 25px;
    text-align: center;
    transform: translatey(-50%);
    font-size: 20px;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    cursor: pointer;
    padding-bottom: 6px;
}
.search-field button{
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    border-radius: 0 5px 5px 0;
}
.search .input:placeholder-shown + .search-icon,
.search .x-icon.visibal{
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}
.search .x-icon:hover{
    box-shadow: 0 0 0 2px blue;
}
#search-open{
    display: none;
}


/* user profile edit========================= */
#user-profile-content{
    position: relative;
    background:var(--upl-main-bg-color);
    height:100%;
    width: 100%;
    color: #000;
  }
  .user-profile-section{
    cursor: pointer;
    background:transparent;
    height: 100%;
    padding: 5px 10px;
    display:flex;
    position:relative;
    margin-bottom:1px;
  }  
  .user-profile-section span{
    border-radius:50%;
     background:orangered;
     text-align:center;
     padding: 11px 20px;
     font-size:20px;
     font-weight:bold;
     color:#fff;   
    }
  .user-profile-value{
    display:flex;
    flex-direction:column;
    width:100%;
    padding-top:3px;
  }
  .user-logo
  {
  /*  background:red; */
    font-size:40px;
  }
  .profile-value{
    padding-left:5px;
    width: 140px;
    text-overflow:ellipsis;
    overflow:hidden;
    white-space:nowrap;
    text-transform:capitalize;
  }
  .user-profile-list-section{
    color: #fff;
    position: absolute;
    background:transparent;
    padding:5px;
    width: 100%;
    display:flex;
    flex-direction:column;
    max-height: 0;
    overflow: hidden;
    transition:all 0.5s;
    z-index: 100;
  }
  .user-profile-section.profile-toggle {
    background: var(--upl-section-bg-color);
    color: #fff;
  }
  .user_image{
    box-shadow: inset 0 0 10px rgba(20, 255, 12, 0.5);
  }
  .user-profile-list-section.profile-toggle{
    max-height: 400px;
    background:var(--upl-section-bg-color);
  }
  .user-profile-list-item{
    user-select: none;
    display:flex;
    padding:10px;
    width:100%;
    align-content:center;
    cursor:pointer;
    overflow-x: hidden;
  }
  .upl-list-item-logo{
    font-size:16px;
    padding:0px 10px;
  }
  .upl-list-item-content :is(a,input){
    font-size:14px;
    width:100%;
    color: #fff;
  }
  .signout-input{
    background:inherit;
      border:none;
    font-size:14px;
  }
  .user-profile-list-item:hover{
      background:var(--upl-hover);
  }

/* user profile edit========================= */


/* Post edit  */
.main_blog_details img{
    width: 100%;
}
.thumb .img-fluid{
    width: 100%;   
}
/* header end =============================== */

/* max width 900px================================= */
@media screen and (max-width:900px){
    body{
        font-size: 55%;
    }
    .manu-icon{
        display:block;
        font-size: 40px;
        width: 40px;
        height: 40px;
        text-align: center;
        line-height: 40px;
        cursor: pointer;
     }
     .navbar .manu .link .submanu{
        position:static;
        height: 0;
        padding: 0;
        padding-left: 10px;
        background: #fff;
        display: block;
        transition: all 0.5s;
    }
    .navbar .manu .link:hover .submanu,
    .navbar .manu .link .submanu.active{
        height: 100%;
    }

    header .top-bar p{
        display: none;
    }
    header .bottom-bar{
        position: relative;
    }
    header .bottom-bar .navbar{
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        align-items: start;
        padding: 20px 0 0 10%;
        width: 100%;
        height: 600px;
        transform: translatex(-120%);
        background: #fff;
        z-index: 1000;
        transition:all 300ms;
    }
    header .bottom-bar .navbar.toggle{
        transform: translateY(0);
    }
    header .bottom-bar .navbar ul{
        display: block;
    }
    header .bottom-bar .navbar ul li{
        padding: 5px 0;
        border-bottom: solid 1px #999;
    }
    .main_blog_details img{
        width: 100%;
    }
}

/* max width 550px================================= */

@media screen and (max-width:550px){
    body{
        font-size: 45%;
        padding: 0 2%;
    }
    section{
        padding: 20px 3%;
    }
    header .top-bar{
        height: 50px;
        padding: 5px 3%;
    }
    header .bottom-bar{
        padding: 5px 3%;
    }
    div.code {
        white-space: pre;
        
    }
    .search{
        position: absolute;
        font-size: 30px;
        top: 0px;
        left:2% ;
        right: 3%;
        display: none;
        z-index: 1000;
    }
    .search.active{
        top: 70px;
        margin: 0;
        padding: auto;
        display: block;
    }
    .search .search-field{
        position: relative;
        width: 100%;
        height: 45px;
        background: #fff;
        border: 1px solid #000;
        padding-right:15px;
    }
    .search .search-field:has(.input:focus),
    .search .search-field:hover{
        width: 100%; 
    }
    .search .search-field .input{
        position: absolute;
        top: 0;
        left: 10px;
        font-size: 16px;
    }

    #search-open{
        display: block;
        font-size: 25px;
        font-weight: bold;
        flex-grow: 1;
        padding-left: 10px;
        cursor: pointer;
    }

    .user-profile-value{
        display: none;
    }
    .user-profile-section{
        margin-left: 150px;
    }
    .user-profile-section.profile-toggle{
        margin-left: 0;
    }
    .user-profile-section.profile-toggle .user-profile-value{
        display: block;
    }
    .main_blog_details .img-fluid{
        width: 100%;
        height: auto ;
    }
    .comment-set{
        align-items: start;
        justify-content: center;
        flex-direction: column;
        margin: 0;
        padding: 0;
        gap: 20px;
    }
    .main_blog_details h4{
        font-size: 20px;
    }
}