body {
    margin: 0px;
    padding: 0px;
    background-color: rgb(15, 15, 18);
    color: oklch(0.985 0 0);
    font-family: "Geist", sans-serif;
    height: 100vh;
    overflow-x: hidden;
}

* {
    font-family: "Geist", sans-serif;
}

nav {
    background-color: rgb(15, 15, 18);
    height: 80px;
    width: 100%;
    position: fixed;
    top: 0px;
    left: 0px;
    border-bottom: 1px solid rgb(35, 35, 38);
    z-index: 999;
}

nav a {
    color: #fff;
    text-decoration: none;
    width: fit-content;
}

nav .branding {
    height: 80px;
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    justify-content: center;
}

nav .branding a {
    height: 80px;
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    justify-content: center;
}

nav .branding svg {
    height: 50px;
    width: 50px;
}

nav .branding svg {
    margin-top: 6px;
}

.topics {
    width: 100%;
    height: 35px;
    position: fixed;
    top: 81px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-bottom: 1px solid rgb(35, 35, 38);
    background-color: rgb(15, 15, 18);
    z-index: 999;
}

.crypto-loop {
    width: 100%;
    height: 50px;
    margin-top: 117px;
    border-bottom: 1px solid rgb(35, 35, 38);
    background-color: rgb(20, 20, 23);
    z-index: 999;
    display: flex;
    align-items: center;
    overflow: hidden;        
    margin-bottom: -117px;
}

.crypto-loop .crypto-track {
  display: inline-flex;
  gap: 10px;
  animation: crypto-marquee 60s linear infinite;
}

.crypto-loop:hover .crypto-track {
  animation-play-state: paused;
}

.crypto-loop .coin {
  display: flex;
  background-color: black;
  height: calc(100% - 10px);
  padding: 5px 10px;
  gap: 5px;
  font-size: 0.8rem;
  border-radius: 5px;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
}

.crypto-loop .coin img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.crypto-loop .coin .up,
.crypto-loop .coin .down {
  display: flex;
  font-size: 0.7rem;
  align-items: center;
  gap: 3px;
}

.crypto-loop .coin .up {
  color: rgb(49, 128, 39);
}

.crypto-loop .coin .down {
  color: rgb(128, 39, 39);
}

.crypto-loop .coin .up svg,
.crypto-loop .coin .down svg {
  width: 1rem;
  height: 1rem;
}

@keyframes crypto-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .crypto-loop {
    display: none;
  }
}

.topics a {
    font-size: 0.9rem;
    padding: 5px;
    padding-top: 2px;
    padding-bottom: 2px;
    border-radius: 5px;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
}

.topics a.selected-nav {
    border-bottom: 1px solid white;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.topics a:hover {
    background-color: rgb(35, 35, 38);
}

button.search-icon {
    position: fixed;
    left: 20px;
    top: 21.2px;
    color: #ffffffad;
    background: none;
    border: none;
    outline: none;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
}

button.search-icon:hover {
    background-color: rgb(35, 35, 38);
    color: white;
}

button.search-icon svg {
    width: 29px;
    height: 29px;
}

main {
    padding: 10px;
    padding-top: 126px;
    max-width: 940px;
    margin: auto;
}

main h1 {
    font-family: "Libre Baskerville", serif;
    margin-bottom: -10px;
}

.articles {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.articles article {
    width: 300px;
    cursor: pointer;
    padding-bottom: 20px;
    margin-top: 40px;
    position: relative;
    height: 100%;
}

.articles article img {
  width: 100%;
  aspect-ratio: 16 / 9; /* or whatever ratio you want */
  object-fit: cover;     /* crop to fill */
  object-position: center; /* center the focus */
  border-radius: 3px;
  display: block;
}

.articles a {
    color: #fff;
    text-decoration: none;
}

.articles article .text h2 {
    font-size: 1.1rem;
    margin: 0px;
    margin-top: 5px;
    font-family: "Libre Baskerville", serif;
    color: #fff;
}

.articles article .text p {
    font-size: 0.9rem;
    margin: 0px;
    margin-top: 5px;
    color: #ffffffa1;
}

.articles article:hover .text h2 {
    text-decoration: underline;
}

.articles article .bias {
    width: 100%;
    height: 15px;
    background-color: transparent;
    display: flex;
    margin-top: 10px;
    border-radius: 3px;
    overflow: hidden;
    font-size: 0.8rem;
    position: absolute;
    bottom: 45px;
    border: 1px solid rgba(255, 255, 255, 0.404);
}

.bias .left {
    height: 100%;
    background-color: rgb(32, 73, 134);
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
}

.bias .right {
    height: 100%;
    background-color: rgb(128, 39, 39);
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
}

.bias .center {
    background-color: white;
    color: black;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
}

main .load-more-button {
    margin-top: 70px;
    margin-bottom: 40px;
    width: calc(100% - 20px);
    font-size: 1.2rem;
    background: none;
    outline: none;
    border: none;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    text-align: center;
    text-decoration: none;
    background-color: rgb(21, 21, 26);
    border: 1px solid rgb(35, 35, 38);
    font-family: "Libre Baskerville", serif;
}

#article-contents {
    margin-bottom: 50px;
}

#article-contents .image-holder {
    position: relative;
}

#article-contents .image-holder .credits {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background-color: rgba(0, 0, 0, 0.486);
    padding: 10px;
    padding-top: 3px;
    padding-bottom: 3px;
    border-radius: 10px;
    user-select: none;
}

#article-contents .image-holder img {
  width: 100%;
  max-height: 350px;
  aspect-ratio: 16 / 9; /* or whatever ratio you want */
  object-fit: cover;     /* crop to fill */
  object-position: center; /* center the focus */
  border-radius: 3px;
  display: block;
  margin-top: 20px;
}

#article-contents .bias {
    width: 100%;
    height: 15px;
    background-color: transparent;
    display: flex;
    margin-top: 10px;
    border-radius: 3px;
    overflow: hidden;
    font-size: 0.8rem;
    bottom: 45px;
    border: 1px solid rgba(255, 255, 255, 0.404);
}

#article-contents .timestamp {
    color: #ffffffa1;
}

#article-contents .article-content-text {
    font-size: 1.4rem;
}

#article-contents .sources-box {
    padding: 20px;
    background-color: rgb(35, 35, 38);
    border-radius: 10px;
}

#article-contents .sources-box b {
    font-size: 1.3rem;
}

#article-contents .sources-box .content-source {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 1.3rem;
    cursor: pointer;
    width: fit-content;
    max-width: 100%;
    color: #fff;
    text-decoration: underline;
}


#article-contents .sources-box .content-source img {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
}

#article-contents .sources-box .content-source .source-url {
    display: block;            
    white-space: nowrap;  
    overflow: hidden;           
    text-overflow: ellipsis;    
    max-width: 100%;       
    font-weight: 600;  
}

.fancy-font {
    font-family: "Libre Baskerville", serif;
}

#article-contents .warning {
    margin-top: 20px;
    font-size: 0.8rem;
}

.breaking-box {
    margin-top: 50px;
}

.breaking-box h2 {
    margin-bottom: 10px;
}

.breaking-box article {
    width: calc(100% - 15px);
    cursor: pointer;
    padding-bottom: 20px;
    margin-top: 40px;
    position: relative;
    height: 100%;
}

.breaking-box article img {
  width: 100%;
  aspect-ratio: 16 / 9; /* or whatever ratio you want */
  object-fit: cover;     /* crop to fill */
  object-position: center; /* center the focus */
  display: block;
  max-height: 200px;
  border-radius: 7px;
}

.breaking-box article .bias {
    width: 100%;
    height: 15px;
    background-color: transparent;
    display: flex;
    margin-top: 10px;
    border-radius: 3px;
    overflow: hidden;
    font-size: 0.8rem;
    bottom: 45px;
    border: 1px solid rgba(255, 255, 255, 0.404);
}

.breaking-box a {
    color: #fff;
    text-decoration: none;
}

.breaking-box article .text h2 {
    font-size: 1.1rem;
    margin: 0px;
    margin-top: 5px;
    font-family: "Libre Baskerville", serif;
    color: #fff;
}

.breaking-box article .text p {
    font-size: 0.9rem;
    margin: 0px;
    margin-top: 5px;
    color: #ffffffa1;
}

.breaking-box article:hover .text h2 {
    text-decoration: underline;
}

.drawer {
    position: fixed;
    left: 0px;
    top: 0px;
    height: 100vh;
    background-color: rgb(23, 23, 27);
    border-right: 1px solid rgb(35, 35, 38);
    z-index: 999999;
    overflow: hidden;
    width: 0px;
    display: none;
}

.drawer .options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    font-size: 1.2rem;
    padding-left: 10px;
}

.drawer .options a {
    color: #fff;
    text-decoration: none;
    padding-left: 10px;
}

.drawer .options a.selected-nav {
    border-left: 1px solid white;
}


.drawer.active {
    width: 350px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px;
    padding-top: 20px;
    display: inline-block;
}

.drawer.active #close-drawer {
    background: none;
    outline: none;
    border: none;
    color: #ffffffcc;
}

.drawer.active #close-drawer svg {
    width: 30px;
    height: 30px;
}

.drawer.active #close-drawer:hover svg {
    color: #fff;
    cursor: pointer;
}

.drawer .search-results article {
    width: calc(100% - 40px);
    padding-left: 20px;
    cursor: pointer;
    padding-bottom: 20px;
    margin-top: 40px;
    position: relative;
}

.drawer .search-results article img {
  width: 100%;
  aspect-ratio: 16 / 9; 
  object-fit: cover;   
  object-position: center; 
  border-radius: 3px;
  display: block;
}

.drawer .search-results a {
    color: #fff;
    text-decoration: none;
}

.drawer .search-results article .text h2 {
    font-size: 1.1rem;
    margin: 0px;
    margin-top: 5px;
    font-family: "Libre Baskerville", serif;
    color: #fff;
}

.drawer .search-results article .text p {
    font-size: 0.9rem;
    margin: 0px;
    margin-top: 5px;
    color: #ffffffa1;
}

.drawer .search-input {
    width: calc(100% - 55px);
    margin-top: 20px;
    margin-left: 20px;
    margin-right: 10px;
    padding: 5px;
    padding-left: 10px;
    outline: none;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.404);
    background-color: rgba(15, 15, 18, 0.247);
    color: #fff;
    font-size: 1.1rem;
}

.drawer #drawer-loading {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 50px;
    padding-bottom: 50px;
}

.drawer #drawer-notfound {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 50px;
    padding-bottom: 50px;
    font-family: "Libre Baskerville", serif;
    text-align: center;
    width: 100%;
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.drawer #drawer-loading svg {
    animation: spin 1s linear 0s infinite;
}

.drawer .search-results article:hover .text h2 {
    text-decoration: underline;
}

.drawer .search-results article .bias {
    width: 100%;
    height: 15px;
    background-color: transparent;
    display: flex;
    margin-top: 10px;
    border-radius: 3px;
    overflow: hidden;
    font-size: 0.8rem;
    bottom: 45px;
    border: 1px solid rgba(255, 255, 255, 0.404);
}

footer {
    padding: 10px;
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: black;
}

footer .footer-contents {
    max-width: 940px;
    margin: auto;
    width: 100%;
}

footer .footer-contents .branding {
    height: 80px;
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    color: #fff;
    text-decoration: none;
}

footer .footer-contents .branding a {
    height: 80px;
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    justify-content: center;
    color: #fff;
    text-decoration: none;
}

footer .footer-contents .branding svg {
    height: 50px;
    width: 50px;
}

footer .footer-contents .branding svg {
    margin-top: 6px;
}

footer .footer-contents .copyright-notice {
    margin-top: 10px;
    color: #ffffffa4;
}

footer .footer-contents .copyright-notice a {
    color: #ffffffc9;
}

footer .footer-contents .copyright-notice a:hover {
    color: #fff;
}

footer .footer-contents .links {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #ffffff64;
}

footer .footer-contents .links a {
    color: #ffffffc9;
}

footer .footer-contents .links a:hover {
    color: #fff;
}

@media screen and (max-width: 1000px) {
  .articles {
    width: 100%;
    max-width: 100%;
  }
  .articles a {
    width: calc(50% - 10px);
  }
  .articles a article {
    width: 100%;
  }
  .topics {
    display: none;
  }
  .crypto-loop {
    margin-top: 81px;
    margin-bottom: -100px;
  }
  main {
    margin-top: -40px;
  }
  main .load-more-button {
    width: calc(100% - 20px);
  }
}

@media screen and (max-width: 550px) {
  .articles {
    width: 100%;
    max-width: 100%;
  }
  .breaking-box article {
    padding-bottom: 50px;
    margin-bottom: 25px;
    width: 100%;
    border-bottom: 1px solid rgb(35, 35, 38);
  }
  .articles a {
    width: 100%;
  }
  .articles a article {
    width: 100%;
  }
  main .load-more-button {
    width: calc(100% - 20px);
  }
}

.cookie-banner {
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: calc(100% - 70px);
    background-color: rgb(33, 33, 33);
    z-index: 999;
    padding: 20px;
    padding-right: 50px;
    font-size: 1.1rem;
}

.cookie-banner a {
    color: #ffffff9e;
    font-weight: 600;
}

.cookie-banner a:hover {
    color: #fff;
}

.cookie-banner #close-cookie-banner {
    position: absolute;
    right: 10px;
    top: 20px;
    background-color: transparent;
    border: none;
    outline: none;
    color: #ffffffb6;
    cursor: pointer;
}

.cookie-banner #close-cookie-banner:hover {
    color: #fff;
}

.staff-box button {
    width: 100%;
    font-size: 1rem;
    background: none;
    outline: none;
    border: none;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    text-align: center;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.418);
    border: 1px solid rgb(35, 35, 38);
    font-family: "Libre Baskerville", serif;
}

.staff-box .input-form {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    margin-bottom: 15px;
}

.staff-box .input-form .input-title {
    font-size: 1rem !important;
}

.staff-box .input-form input {
    margin-top: 5px;
    width: calc(100% - 20px);
    padding: 5px;
    padding-left: 10px;
    outline: none;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.404);
    background-color: rgba(15, 15, 18, 0.247);
    color: #fff;
    font-size: 1.1rem;
}

.staff-box button:hover {
    background-color: rgba(0, 0, 0, 0.637);
}

.admin-warning {
    color: #e99739;
    padding: 20px;
    background-color: rgb(35, 35, 38);
    width: calc(100% - 40px);
    margin-top: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.admin-warning #delete-button {
    width: 100%;
    font-size: 1rem;
    background: none;
    outline: none;
    border: none;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    text-decoration: none;
    background-color: rgba(224, 7, 7, 0.418);
    border: 1px solid rgb(255, 56, 56);
    font-family: "Libre Baskerville", serif;
    margin-bottom: 10px;
}

.admin-warning #tiktok-button {
    width: 100%;
    font-size: 1rem;
    background: none;
    outline: none;
    border: none;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    text-decoration: none;
    background-color: rgba(137, 7, 224, 0.418);
    border: 1px solid rgb(192, 56, 255);
    font-family: "Libre Baskerville", serif;
}

.admin-warning #tiktok-button svg {
    animation: spin 1s linear 0s infinite;
}

.admin-warning #delete-button svg {
    animation: spin 1s linear 0s infinite;
}