:root {
    --engine-selector-pos: to right;
}

body {
    background-color: rgb(236, 241, 251);
}

body.dark {
    background: linear-gradient(rgb(5, 13, 25), rgb(5, 5, 5)) no-repeat fixed;
}

.none {
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
}

.logo-bar {
    box-sizing: border-box;
    height: 50px;
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-top: 8px;
}

.page-logos {
    height: 100%;
    display: flex;
    align-items: center;
}

.page-logos img {
    height: 100%;
    margin-right: 12px;
}

.normal-a {
    height: 100%;
}

.haaretz-icon {
    height: 90px;
    margin-top: 16px;
}

.offline-icon {
    display: none;
    height: 100px;
    position: fixed;
    bottom: 24px;
    opacity: 0.6;
}

.offline .offline-icon {
    display: inline-block;
}

.body-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-container {
    display: flex;
    flex-direction: column;
    width: min(1024px, calc(100% - 32px));
}

.searchbar-container {
    display: flex;
    width: 100%;
    gap: 12px;
    align-items: center;
    margin-top: 48px;
    position: relative;
}

.article-search {
    box-sizing: border-box;
    height: 60px;
    padding-inline: 12px;
    width: 100%;
    border-radius: 16px;
    border: 1px solid lightgray;
    background: white;
    font-size: 18px;
    color: black;
}

.dark .article-search {
    background: black;
    color: white;
}

.search-btn {
    position: absolute;
    left: 16px;
    margin: 0;
    border: 0;
    padding: 0;
    background: transparent;
}

.search-btn img {
    width: 32px;
    height: 32px;
}

.dark-mode-btn {
    background-color: transparent;
    margin: 0 0 0 12px;
    border: 0;
    padding: 0;
}

.dark-mode-btn img {
    width: 48px;
    height: 48px;
}

.dark-icon {
    display: none;
}

.dark .dark-icon {
    display: initial;
    filter: invert(0.8) sepia(1) saturate(2) hue-rotate(180deg);
}

.light-icon {
    display: initial;
}

.dark .light-icon {
    display: none;
}

.js-icon {
    opacity: 0.4;
}
.enable_js .js-icon {
    opacity: 1;
}

.no-entry {
    width: 200px;
    margin-inline: auto;
}

.send-btn {
    background-color: dodgerblue;
    color: white;
    border: 0;
    padding: 0;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    height: 60px;
    padding-inline: 12px;
}

.send-icon {
    width: 28px !important;
    height: 28px !important;
}

.engines-container {
    display: flex;
    gap: 32px;
    margin-top: 24px;
    border: 2px solid gray;
    border-radius: 30px;
    padding: 8px;
    height: 32px;
    position: relative;
    width: fit-content;
    margin-inline: auto;
}

.engines-container-ov {
    box-sizing: border-box;
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 30px;
    margin: 4px;
    z-index: -1;
    background-image: linear-gradient(var(--engine-selector-pos), #a5d1df 0%, #a5d1df 50%, transparent 50%, transparent 100%);
}

.dark .engines-container-ov {
    background-image: linear-gradient(var(--engine-selector-pos), #444 0%, #444 50%, transparent 50%, transparent 100%);
}

.engines-container-btn {
    width: 32px;
    height: 100%;
}

.engines-container-spacer {
    height: 100%;
    width: 2px;
    background-color: gray;
}

.dark .engines-container-spacer {
    background-color: white;
}

.engines-container-btn img {
    width: 100%;
    height: 100%;
}

.dark .saved-articles-container {
    color: white;
}

.saved-articles-container {
    width: 100%;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.saved-articles-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-container {
    margin-top: 16px;
}

.saved-articles-desc {
    font-size: 16px;
    border: 4px solid gray;
    border-radius: 8px;
    padding-left: 8px;
}

.saved-articles-desc ul {
    margin: 0;
    margin-block: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.offline a[data-online] {
    pointer-events: none;
    opacity: 0.6;
}

.subtitle {
    text-decoration: underline;
    font-weight: bold;
    font-size: 20px;
}

.subtitle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.subtitle-header button {
    background-color: orangered;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    height: 24px;
    padding-inline: 12px;
}

.saved-article {
    border: 1px solid gray;
    border-radius: 8px;
    padding-block: 4px;
    padding-inline: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.delete-btn img {
    width: 22px;
    height: 22px;
}

.saved-article-title {
    color: black;
    font-size: 16px;
    font-weight: 600;
}

.dark .saved-article-title {
    color: white;
}

.saved-article-right {
    display: flex;
}

.saved-article-img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 10px;
    margin-left: 8px;
}

.offline .saved-article-img[data-online] {
    display: none;
}

.history-search {
    height: 40px;
    border-radius: 10px;
}

@media (max-height: 650px) {
    .haaretz-icon {
        height: 30px;
        position: absolute;
        top: 8px;
    }

    .no-entry {
        display: none;
    }

    .spacer {
        height: 12px !important;
    }
}