/*
 * SPDX-FileCopyrightText: 2026 VnPower <vnpower@loang.net>
 *
 * SPDX-License-Identifier: GPL-3.0-or-later
 */

/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
*:not(dialog) {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

body {
    background: black;
    color: white;
    font-family: sans-serif;
}

a {
    color: skyblue;
    text-decoration: none;
}

label {
    display: inline-block;
    margin: .2rem 0;
}

input[type="text"], input[type="password"] {
    border-radius: 0;
    border-color: #888;
    color: white;
    padding: .25rem .375rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: white;
    background-color: #222;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    outline: none;
}

button[type="submit"] {
    background: #222;
    border: 1px solid #333;
    color: white;
    cursor: pointer;
}

.btn {
    margin: 2rem 0;
    border-radius: 0;
    padding: .2rem 1rem;
    font-size: .9rem;
}

.icon-caret-right {
    margin-left: .2rem;
    width: .5em;
}

.btn .icon {
    display: inline-block;
    vertical-align: -.3em;
}

#root {
    min-height: 100vh;
    width: 100%;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
}

.footer {
    text-align: center;
    font-size: 0.85em;
    margin-top: 50px;
}

.logo {
    margin: 30px auto;
}

.heading {
    margin-top: 1rem;
}

.note {
    display: block;
    padding: .5rem .6rem;
    margin: .5rem .6rem;
}

.notice {
    background: oklch(25.7% 0.09 281.288);
    border: 2px solid oklch(45.7% 0.24 277.023);
}

.error {
    background: oklch(25.8% 0.092 26.042);
    border: 2px solid oklch(50.5% 0.213 27.518);
}

.tags-box {
    padding: 2px 0;
    background: #222;
    margin-top: 2px;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    gap: 4px;
    margin: 0 4px;
}

.tag > img {
    width: 18px;
}

.block-content {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.block-content b {
    font-size: 1.15em;
}

.block-content p {
    font-size: 0.9em;
    overflow-x: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.block-grid {
    display: flex;
    justify-content: space-between;
    flex-flow: row wrap;
    gap: 1.2rem 0;
}

.block {
    width: 48.5%;
    background: #111;
    padding: .5rem .8rem;
    display: block;
    text-decoration: none;
    color: inherit;
}

@media screen and (max-width: 900px) {
    .block-grid {
	flex-flow: column nowrap;
    }

    .block {
	width: 90%;
	max-width: 500px;
	margin: 0 auto;
    }

    h2 {
	text-align: center;
    }
}

.block-logo {
    margin-top: 3px;
    margin-right: 8px;
}

.navidrome-cover {
    border-radius: 50%;
    border: 2px solid #444;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.chibi {
    display: inline-block;
}

.priestess {
    vertical-align: bottom;
}
