:root {
    --bg: #121212;
    --text: #ffffff;
    --card: rgba(0, 0, 0, 0.1);
    --border: rgba(255, 255, 255, 0.2);
    --link: gold;
    --snow: rgba(255, 255, 255, 0.85);
}


:root[data-theme="light"] {
    --bg: #f7f7f7;
    --text: #111111;
    --card: rgba(0, 0, 0, 0.06);
    --border: rgba(0, 0, 0, 0.15);
    --link: gold;
    --snow: rgba(90, 100, 115, 0.55);
}

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

.logo img{
    display: block;
    width: 50px;
}

body {
    background: var(--bg);
    color: var(--text);
    max-width: 850px;
    margin: auto;
    text-align: left;
    font-family:
    "Adwaita Sans",
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
    padding: 40px;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

* {
    padding: 0;
    margin: 0;
}

hr::before {
    content: "❤ ❤ ❤";
}

hr {
    margin: auto;
    border: none;
    outline: none;
}

a,
a:visited {
   color: var(--link);
}

::selection {
    background: gold;
    color: black;
}



h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
}

h4:not(:first-child),
h5:not(:first-child) {
    padding-top: 30px;
}

ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

code {
    font-family:
    ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas,
    "DejaVu Sans Mono", monospace;
}

:not(pre) > code {
    padding: 2px 4px;
}

pre:has(code) {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;

    padding: 12px 24px;
    color: black;
    font-size: 1.2em;
    overflow-x: scroll;
}

article {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;

    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

table {
    margin-top: 10px;
    margin-bottom: 10px;
    border-collapse: collapse;
    overflow: hidden;
}

th,
td {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 5px;
    border-radius: 10px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.reviews-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.reviews-button::before {
    content: "❥";
    color: gold;
    font-size: 0.85rem;
}

.reviews-button:hover {
    background: var(--card);
    color: gold;
    border-color: gold;
}

.post-info {
    font-family: "Adwaita Mono", monospace;
    opacity: 0.8;
}

.theme-switch {
    position: relative;
    width: 60px;
    height: 34px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #242424;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #bebebe;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.slider{
  border-radius: 34px;
}

.slider:before{
  border-radius: 50%;
}

.review-post {
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.review-poster {
    width: 140px;
    aspect-ratio: 2 / 3;

    object-fit: cover;
    border-radius: 10px;

    flex-shrink: 0;
}

.review-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.rating {
    color: gold;
    font-weight: bold;
    font-family: "Adwaita Mono", monospace;
}

@media (max-width: 700px) {
    .review-post {
        flex-direction: column;
        align-items: center;
    }

    .review-content {
        text-align: center;
    }

    .review-poster {
        width: 200px;
    }
}

.tag {
    border-radius: 999px;
    padding: 20px 4px 10px;
    font-size: .9rem;

    background-color: white;
    color: black;

    width: fit-content;
    padding: 1px 6px;
}

.error{
    margin: auto;
    padding: 30px;
    outline: 2px dashed red;

    max-width: 600px;
    margin-top: 200px;

    text-align: center;
    font-family: "Adwaita Mono", monospace, system-ui;
}

.nada{
	position: fixed;
	top: 40%;
	left: 50%;
	transform: translate(-50%, -50%);
    opacity: 60%;
}

.creation-date {
    padding: 1px 6px;
}

.tag::before {
    content: "❥";
    opacity: 0.6;
    margin-right: 5px;
}

.snow-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.snowflake {
    position: absolute;
    top: -10vh;
    color: var(--snow);
    animation-name: snow-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

@keyframes snow-fall {
    from {
        transform: translateY(-10vh) rotate(0deg);
    }
    to {
        transform: translateY(110vh) rotate(360deg);
    }
}

.nijika-gif {
	position: fixed;
	bottom: 15px;
	left: 15px;
	z-index: 1000;
}

.nijika-gif img {
	width: 120px;
	height: auto;
	display: block;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.post-date {
    opacity: 0.6;
}
