/* Font definitions here */

/* Samsung Sharp Sans */
@font-face {
  font-family: "Title";
  src: url("title.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* OneUI Sans (from OneUI 8) */
@font-face {
  font-family: "Everything";
  src: url("everything.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Cascadia Code */
@font-face {
    font-family: "Code";
    src: url("code.woff2") format("woff2");
}

@media (min-width: 1024px) {
  body {
    zoom: 1.5;
  }
}

body {
    background-color: #000;
    color: #fafaff;
    font-family: "Everything";
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

hr {
    border: 1px solid #fafaff;
}

.logo {
    height: 1em;
    width: auto;
    vertical-align: middle;
}

.link {
    display: flex;
    flex-direction: row;
    gap: 20px;
    text-align: center;
    justify-content: center;
}

a {
    color: #387aff;
    text-decoration: none;
}

h1, h2, h3 {
    font-family: "Title";
}

button {
    zoom: 105%;
    font-family: "Everything";
    padding: 10px;
    padding-left: 24px;
    padding-right: 24px;
    border-radius: 9999px;
    border: none;
    background-color: #387aff;
    color: #fafaff;
    font-weight: bold;
    transition: transform 0.166s ease-out,
                background-color 0.166s ease-out;
}

input[type="search"] {
    zoom: 120%;
    font-family: "Everything";
    padding: 10px;
    padding-left: 24px;
    padding-right: 24px;
    border-radius: 9999px;
    border: none;
    background-color: #3a3a3d;
    color: #fafaff;
    transition: width 0.2s ease,
                zoom 0.2s ease;
    width: 66%;
    font-weight: bold;
}

input[type="search"]::placeholder {
  color: #a3a3a7;
}

input[type="search"]:focus {
  outline: none;
  width: 100%;
  zoom: 105%;
}

button:active {
    transform: scale(0.94);
    background-color: #326ee5;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;

    width: 24px;
    height: 24px;
    border-radius: 100%;

    background-color: #3a3a3d;
    transition: background-color 0.2s ease;
}

input[type="checkbox"]:checked {
    background-color: #387aff;
}

progress {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border: none;
    border-radius: 999px;
    overflow: hidden;
}

/* Chrome / Edge */
progress::-webkit-progress-bar {
    background: #3a3a3d;
    border-radius: 999px;
}

progress::-webkit-progress-value {
    background: linear-gradient(to right, #387aff, rgb(21, 244, 244), rgb(184, 44, 244));
    border-radius: 999px;
}

/* Firefox */
progress::-moz-progress-bar {
    background: #387aff;
    border-radius: 999px;
}

table {
    width: 90%;
    margin: 0 auto;
    border-collapse: separate;
    text-align: left;
    border-radius: 20px;
    padding: 12px 16px;
    background-color: #17171a;
    border-spacing: 0px;
}
td, th {
    padding: 8px;
    margin: 0px;
}
td {
    border-top: 1.5px solid #3a3a3d;
}

.readme {
    margin: 30px auto;
    line-height: 1.6;
    overflow-wrap: anywhere;
    text-align: left;
    border-radius: 20px;
    padding: 12px 16px;
    background-color: #17171a;
}

.readme pre,
.readme pre *,
.readme code {
    background: #0d0d0d !important;
    padding: 5px;
    border-radius: 5px;
    color: #e5e5e5 !important;
    font-family: "Code", monospace !important;
    font-variant-ligatures: contextual;
    font-feature-settings: "calt" 1, "liga" 1, "clig" 1;
}

.readme pre {
    display: block !important;
    padding: 16px !important;
    border-radius: 12px;
    overflow-x: auto;
}