@keyframes fade {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

* {
    margin: 0;
}

html {
    background: #000000;
}

body {
    background-color: #000000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    overflow: hidden;
}

.fadeAnimation {
    animation: fade 1s linear 0s 1 reverse both paused;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    user-select: none;
}

.background:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(#00000088,#00000044,#00000011,#00000000,#00000000, #00000000, #00000000, #00000011, #00000044);
}

.clock {
    position: absolute;
    top: 1em;
    right: 1em;
    margin: -.5em 0 0 0;
    font-size: 6em;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    font-weight: 300;
    color: #ffffff;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    background: #000;
    animation: fade 1s linear 0s 1 normal both paused;
    z-index: 31337;
}

.credit {
    margin: 0;
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: rgba(255,255,255,0.5) !important;
    font-weight: 500;
    font-size: 0.8em;
}

.credit a {
    color: rgba(255,255,255,0.7) !important;
    text-decoration: none;
    transition: color 0.2s;
}

.credit a:hover {
    color: rgba(255,255,255,1) !important;
}

.themeButton {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    fill: #ffffff;
    cursor: pointer;
    border-radius: 100%;
    transition: fill 0.2s;
}

.themeButton:hover {
    fill: #aaccff;
}

.themeButton svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.themes {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: #ffffff;
    margin-right: -400px;
    overflow: hidden;
    transition: margin-right 0.3s;
}

.themes.show {
    margin-right: 0px;
}

.themes h2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    padding-top: 10px;
    text-align: center;
    font-size: 30px;
    color: #333333;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -2px;
    text-transform: uppercase;
    box-shadow: 0 0 15px 0 rgba(0,0,0,0.4);
    z-index: 100;
}
/*
.themes::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(#ffffffff, #ffffff00);
    z-index: 5;
}
.themes::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(#ffffff00, #ffffffff);
    z-index: 5;
}
.themeList > :first-child {
    margin-top: 60px;
}

.themeList > :last-child {
    margin-bottom: 60px;
}
*/
.themeList {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    background: #222;
    overflow-y: auto;
}

.theme {
    position: relative;
    width: 100%;
    padding: 30px 0;
    cursor: pointer;
    float: left;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    filter: grayscale(50%);
    transition: filter 0.2s;
}

.theme:hover {
    filter: grayscale(0%);
}

.theme p {
    width: fit-content;
    margin-left: 40px;
    float: left;
    font-weight: 700;
    font-size: 1.3em;
    color: #ffffff;
    text-shadow: 0 0 2px rgba(0,0,0,0.4);
}

.settingsButton {
    position: absolute;
    bottom: 20px;
    right: 80px;
    width: 50px;
    height: 50px;
    fill: #ffffff;
    cursor: pointer;
    border-radius: 100%;
    transition: fill 0.2s;
}

.settingsButton:hover {
    fill: #aaccff;
}

.settingsButton svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.settings {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: #ffffff;
    margin-right: -400px;
    overflow: hidden;
    transition: margin-right 0.3s;
}

.settings.show {
    margin-right: 0px;
}

.settings h2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    padding-top: 10px;
    text-align: center;
    font-size: 30px;
    color: #333333;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -2px;
    text-transform: uppercase;
    box-shadow: 0 0 15px 0 rgba(0,0,0,0.4);
    z-index: 100;
}

.bookmarks {
    position: absolute;
    top: 20px;
    left: 20px;
    max-width: calc(100% - 400px);
}

.bookmarksList {
    vertical-align: top;
    float: left;
}

.bookmarksOther {
    vertical-align: top;
    float: left;
}

.bookmark {
    display: inline-block;
    position: relative;
    top: 0;
    width: 100px;
    height: 100px;
    background: rgba(0,0,0,0.2);
    margin: 0 10px 20px 0;
    vertical-align: top;
    border-radius: 6px;
    cursor: pointer;
}

.bookmark > a > div {
    width: 100%;
    height: 100%;
}

.bookmark > .removeBookmark {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 30px;
    height: 30px;
    background: #ffffff;
    color: #000000;
    border-radius: 100%;
    transform: scale(0);
    transition: transform 0.2s;
}

.bookmark > .removeBookmark:before {
    content: "x";
    position: absolute;
    font-family: Tahoma, Geneva, Verdana, sans-serif;
    font-size: 22px;
    font-weight: 800;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: -3px;
}

.bookmark:hover > .removeBookmark {
    transform: scale(1);
}

.bookmark img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
}

.bookmark svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    transform: translate(-50%, -50%);
    fill: #ffffff;
}










.cookieBackground {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    margin: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    background-image: url("https://images.unsplash.com/photo-1422207239328-29f83832206c?fit=crop&w=1280&h=720");
    filter: blur(1vw);
}

.cookiesBox {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 120px;
    transform: translate(-50%, -50%);
    color: #000000;
    border-radius: 0;
    background: linear-gradient(to right, rgba(255,255,255,0) 20%,rgba(255,255,255,0.8) 50%,rgba(255,255,255,0) 80%);
}

.cookiesBox p {
    position: absolute;
    top: 14px;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    font-weight: 400;
    font-size: 1.2em;
    color: #222;
}

.acceptCookies {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 22px;
    border: 2px solid #0ad;
    outline: none;
    box-shadow: 0 0 10px 0 rgba(0,0,0,0.15);
    color: #0ad;
    background: transparent;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.acceptCookies:hover {
    background: #0ad;
    color: #ffffff;
}