/*
Name: Pixll Apps
Author: Utsab Roy
Author URI: https://pixll.dev
*/

:root {
    /*Colors*/
    --c1: #000816;
    --c2: #FFFFFF;
    --c3: #6c41dc;
    --c4: #2d329c;
    --c5: #41AEE0;
    --c6: #A141E0;
    --bg1: rgba(0, 0, 0, 0.8);
    --bg2: hsl(218, 100%, 5%);
    --bg3: hsl(218, 75%, 10%);
    --bg4: hsl(218, 50%, 15%);
    --tc: var(--c2);
    --tc_h: var(--c3);
    --track: color-mix(in srgb, var(--pm_bg), #000 5%);

    /*Fonsts*/
    --heading_font:
        'DM Sans', sans-serif;
    --sub_heading_font:
        'OffBit', sans-serif;
    --body_font:
        'DM Sans', sans-serif;
    --body: 17px;
    --h1: 4rem;
    --h2: 3rem;
    --h3: 2rem;
    --h4: 1.6rem;
    --h5: 1.5rem;
    --caption: 0.83rem;
    --small: 0.69rem;
    --heading_lh: 1em;
    --body_lh: 1.4em;

    /*Spacing*/
    --gap: clamp(20px, 5vw, 30px);
    --gap_min: 10px;
    --radius: 5px;
    --radius_l: 10px;
    --redius_xl: 15px;
    --bezier: cubic-bezier(0.25, 0.8, 0.35, 0.9);
    --max_width: 800px;
}

* {
    margin: 0;
    padding: 0;
    position: relative;
}

*, *:before, *:after {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
}


html {
    box-sizing: border-box;
    font-size: var(--body);
    font-weight: 400;
    font-family: var(--body_font);
    scroll-behavior: smooth;
}

body {
    color: var(--tc);
    font-size: var(--body);
    background-color: var(--bg2);
    position: relative;
}

.h1, .h2, .h3, .h4, .h5,
h1, h2, h3, h4, h5 {
    color: var(--tc);
    font-family: var(--heading_font);
    line-height: var(--heading_lh);
    font-weight: 700;
}

:where(.h1, .h2, .h3, .h4, .h5, h1, h2, h3, h4, h5)+* {
    margin-top: 0.8em;
}

:where(.h1, .h2, .h3, .h4, .h5, h1, h2, h3, h4, h5) b,
:where(.h1, .h2, .h3, .h4, .h5, h1, h2, h3, h4, h5) strong {
    letter-spacing: 0.02em;
    font-family: var(--sub_heading_font);
}

b {
    font-weight: 800;
}

.h1, h1 {
    font-size: var(--h1) !important;
    text-wrap: balance;
}

.h2, h2 {
    font-size: var(--h2);
    text-wrap: balance;
}

.h3, h3 {
    font-size: var(--h3);
}

.has-large-font-size {
    font-size: var(--h3) !important;
}

.h4, h4 {
    font-size: var(--h4);
}

.h5, h5 {
    font-size: var(--h5);
}

a {}

:where(input[type="submit"], button, .btn) {
    cursor: pointer;
    color: var(--tc);
    background-color: var(--bg4);
    border: none;
    border-radius: 5px;
    display: block;
    font-size: 1em;
    line-height: 1.2em;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-align: center;
    padding: 0.5em 0.8em;
    position: relative;
}

:where(input[type="submit"], button, .btn).active,
:where(input[type="submit"], button, .btn):hover,
:where(input[type="submit"], button, .btn):has(input:checked),
:where(input[type="submit"], button, .btn):focus {
    transition: all 0.2s ease;
    color: var(--bg1);
    background-color: var(--c2);
}

.btn input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.btn-grp {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
}

.btn-grp.small :where(input[type="submit"], button, .btn) {
    font-size: 0.8em;
    padding: 0.5em;
}

.btn-grp>* {
    flex: 1 1 80px;
}

.srOnly {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

textarea,
select,
input[type="tel"],
input[type="url"],
input[type="text"],
input[type="email"],
input[type="number"],
input[type="select"],
input[type="password"],
input[type="textarea"] {
    padding: 0.5em 0.8em;
    line-height: 1.2em;
    width: 100%;
    border: solid 1px var(--bg3);
    color: var(--tc);
    font-size: 1rem;
    border-radius: var(--radius);
    background-color: var(--bg2);
}

input[type="color"] {
    padding: 0;
    width: 1em;
    height: 1em;
    border: none;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: solid 1px var(--bg3);
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 0.5em;
    background: hsla(218, 100%, 5%, 0.5);
    outline: none;
    border-radius: var(--radius);
    margin-top: 0.5em;
}

label:has(input[type="range"]) p {
    font-size: 0.8em;
    margin: 0.2em 0;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

legend {
    font-size: 0.6em;
    margin: 0 0 0.5em 0;
    width: 100%;
}

fieldset.col-simple {
    gap: 5px;
}

fieldset.col-simple input {
    flex: 1 1 calc(100% - 50px);
}

fieldset.col-simple button {
    padding: 10px;
    flex: 0 0 40px;
}

hr {
    border: none;
    border-top: 1px solid var(--bg2);
    margin: 1px 0;
    opacity: 0.4;
}

/*Helper Classes*/
.boxed {
    width: clamp(300px, 90%, var(--max_width));
    margin: 0 auto;
    z-index: 1;
}

:root {
    --col-2: repeat(2, 1fr);
    --col-3: repeat(3, 1fr);
    --col-4: repeat(4, 1fr);
}

.col-2,
.col-3,
.col-4,
.col-auto {
    display: grid !important;
    gap: var(--gap);
}

.col-2 {
    grid-template-columns: var(--col-2);
    gap: clamp(30px, 10vw, 100px);
}

.col-3 {
    grid-template-columns: var(--col-3);
}

.col-4 {
    grid-template-columns: var(--col-4);
}

.col-auto {
    grid-template-columns: repeat(auto-fit, minmax(var(--col-auto, 200px), 1fr));
}

@media only screen and (max-width: 1000px) {
    :root {
        --col-2: repeat(2, 1fr);
        --col-3: repeat(2, 1fr);
        --col-4: repeat(2, 1fr);
    }
}

.centered {
    min-height: 100dvh;
    display: grid;
    place-items: center;
}

/*Custom Classes*/
.header {
    margin-bottom: var(--gap);
}

.footer {
    margin-top: var(--gap);
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin: 0 auto 10px 0;
}

.boxed.styled {
    padding: var(--gap);
    border-radius: var(--redius_xl);
    background-color: rgba(255, 255, 255, 0.05);
}

.cards {
    gap: var(--gap_min);
}

.card {
    padding: var(--gap);
    border-radius: var(--radius_l);
    text-decoration: none;
    background-color: var(--bg3);
}

.card:hover {
    background-attachment: fixed;
    background-image: radial-gradient(circle at var(--x, 0) var(--y, 0),
            hsl(0 0% 100% / 0.1),
            hsl(0 0% 100% / 0.01) 10rem);
}

.card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: var(--radius_l);
    background-color: var(--bg4);
    background-attachment: fixed;
    background-image: radial-gradient(circle at var(--x, 0) var(--y, 0),
            hsl(0 0% 100% / 0.5),
            transparent 5rem);
    pointer-events: none;
    z-index: -1;
}