@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;800&family=Roboto+Mono:wght@300;400;500;700&family=Roboto:wght@400;900&family=Source+Sans+Pro:wght@400;900&family=Twinkle+Star&display=swap');
*,
*:before,
*:after {
	box-sizing: border-box;
}
ul {
    padding-inline-start: 0;
}
img {
    display: block;
    width: 100%;
    height: auto;
}
li {
    list-style: none;
}
a,
button {
    font-family: 'Roboto Mono', monospace;
    font-size: inherit;
    line-height: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    text-decoration: none;
    transition: all .25s ease-in;
    color: #CECCCC;
}
a:hover, button:hover{
    color: #40798C;
    transition: all .25s ease-in;
}
body {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    font-style: normal;
    height: 100%;
    background: #222831;
    color: #eeeeee;
}
.container {
    position: relative;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
}
.toggle{
    position: absolute;
    right: 0px;
    top: 105px;
}
.checkbox {
    opacity: 0;
    position: absolute;
}
.label {
    width: 50px;
    height: 26px;
    background-color:#111;
    display: flex;
    border-radius:50px;
    align-items: center;
    justify-content: space-between;
    padding: 2px 5px;
    position: relative;
    transform: scale(1.5);
}
.ball {
    width: 20px;
    height: 20px;
    background-color: white;
    position: absolute;
    top: 3px;
    left: 2px;
    border-radius: 50%;
    transition: transform 0.2s linear;
}
.checkbox:checked + .label .ball{
    transform: translatex(25px);
}
.fa-moon {
    color: pink;
}
.fa-sun {
    color: yellow;
}
.heading{
    position: relative;
    /* max-width: 700px; */
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-left: 0;
    padding: 25px 0;
}
h1{
    text-align: left;
    color: #FFC145;
}
.search-bar {
    width: 90%;
    background-color: transparent;
    border: 1px solid #40798C;
    color: #ddd;
    padding: 5px 10px;
    border-radius: 5px;
}
.search-bar:focus {
    outline: transparent;
}
.search-bar::placeholder {
    color: #BFC3BA;
}
.hidden {
    display: none;
}
.bookmark-list {
    position: relative;
}
.bookmark-box{
    padding: 15px;
}
.bookmark-main {
    font-size: 18px;
}
.bookmark-sub {
    padding: 10px 0 5px 25px;
    font-size: 14px;
}
.category {
    position: relative;
    padding-right: 20px;
    color: #70A9A1;
}
.category::after {
    position: absolute;
    content: " | ";
    font-size: 22px;
    top: -5px;
    right: 0;
    color: #CECCCC;
}
.bookmark-date {
    color: #BFC3BA;
}

body.light {
    background-color: #f7f7f7;
    color: #222831;
}
body.light h1 {
    color: #222831;
}
body.light a {
    color: #222831;
}
body.light a:hover {
    color: #40798C;
}
body.light .bookmark-date {
    color: #777;
}
body.light .search-bar::placeholder {
    color: #777;
}
body.light .search-bar {
    color: #222831;
}
/* ===== Scrollbar CSS ===== */
/* Firefox */
* {
scrollbar-width: none;
scrollbar-color: #ffc145 #40798C;
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
width: 8px;
}

*::-webkit-scrollbar-track {
background: #40798C;
}

*::-webkit-scrollbar-thumb {
background-color: #ffc145;
border-radius: 5px;
/* border: 1px solid #ffffff; */
}

@media(max-width:668px){
    .toggle {
        top: 0;
    }
    .heading {
        width: 100%;
        padding: 15px;
    }
    .heading h1 {
        font-size: 26px;
    }
    .search-bar::placeholder {
        font-size: 14px;
    }
    .bookmark-list {
        padding-top: 30px;
    }
    .bookmark-main {
        font-size: 16px;
    }
    .bookmark-sub {
        font-size: 14px;
    }
    .category::after {
        font-size: 18px;
        top: -2px;
    }
}