:root {
    --primary-color: #302AE6;
    --secondary-color: #536390;
    --font-color: #424242;
    --bg-color: #fff;
    --heading-color: #292922;
}

[data-theme="dark"] {
    --primary-color: #9A97F3;
    --secondary-color: #818cab;
    --font-color: #e1e1ff;
    --bg-color: #161625;
    --heading-color: #818cab;
}

.news_sharing_header {
    width: 50%;
    float:left;
}
.theme-switch-wrapper {
    width: 150px;
    text-align: right;
    float: right;
    padding-top: 30px;
}

/*Simple css to style it like a toggle switch*/
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 10px;
    font-size: 1rem;
}


.theme-switch {
    display: inline-block;
    height: 25px;
    position: relative;
    width: 52px;
}

    .theme-switch input {
        display: none;
    }

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

    .slider:before {
        background-color: #fff;
        bottom: 4px;
        content: "";
        height: 18px;
        left: 4px;
        position: absolute;
        transition: .4s;
        width: 18px;
    }

input:checked + .slider {
    background-color: #66bb6a;
}

    input:checked + .slider:before {
        transform: translateX(26px);
    }

.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }

body {
    background-color: var(--bg-color);
    color: var(--font-color);
    /*other styles*/    
}

h1 {
    color: var(--secondary-color);
    /*other styles*/    
}

a {
    color: var(--primary-color);
    /*other styles*/    
}
.search-item-content a {
    color: var(--font-color) !important;
}