@view-transition {
    navigation: auto;
}

:root {
    --font-monospace: "Reddit Mono", ui-monospace, "SFMono-Regular", "SF Mono",
        Menlo, Consolas, "Liberation Mono", monospace;

    --color-primary: #88b8ff;

    --radius-small: 6px;
    --radius-large: 1em;
}

* {
    box-sizing: border-box;
}

body {
    background: #1e1f1f;
    font-family: Inter, "Noto Color Emoji";
    margin: 0;
    color: #ededed;
    color-scheme: dark;
    accent-color: var(--color-primary);
}

a {
    color: var(--color-primary);
}

header {
    background: #181919;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2em;

    padding: 0.667em;
    font-size: 13px;
}

header .ui--rounded {
    border-radius: 1em;
}

header .ui--header-left {
    display: flex;
    align-items: center;
    gap: 1em;
}
header .ui--header-left a {
    display: inline-block;
    line-height: 1;
}

select,
input[type="text"] {
    font-family: inherit;
    border-radius: var(--radius-large);
    border: 1px solid #6b6b6b;
    padding: 0.667em 1em;
}
button,
select {
    font-family: inherit;
}

.wrap--body {
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 1em;
}
.wrap--body.wrap--body-fullwidth {
    max-width: 100%;
    padding: 0;
}

.ui--grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 2em;

    margin: 2em 0;
}

.ui--grid-item--span-3 {
    grid-column: span 3;
}

@media screen and (max-width: 768px) {
    .ui--grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ui--grid-item--span-3 {
        grid-column: span 2;
    }
}
@media screen and (max-width: 480px) {
    .ui--grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .ui--grid-item--span-3 {
        grid-column: span 1;
    }
}

.ui--card-palette,
.ui--card-content {
    background-color: #181919;
    padding: 0.667em;
    border-radius: 6px;
}

.ui--card-palette-colors {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 1fr);
    height: 200px;
    grid-gap: 0;

    border-radius: 6px;
    overflow: auto;
}
.ui--card-palette-colors .ui--card-palette-color {
    position: relative;
}

.ui--card-palette-colors .ui--card-palette-color .copy-btn {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    z-index: 1;
    transition: all 0.2s ease;
}

.ui--card-palette-colors .ui--card-palette-color .copy-btn:hover {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ui--card-palette-details {
    font-size: 14px;
    font-weight: 500;

    margin-top: 0.667em;
    display: flex;
    justify-content: space-between;
}

.ui--card-content img {
    border-radius: var(--radius-small);
}
.ui--card-content p {
    font-size: 13px;
    opacity: 0.62;
    text-wrap: pretty;
}

.ui--logo-text {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.334em;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 1em;
    width: 100%;
    height: 100%;
    background: #181919;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0.667em 0;
}

.modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-body .ui--card-palette-colors {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(var(--rows, 4), 1fr);
    grid-gap: 0;
    height: auto;
}

.modal-body .ui--card-palette-color {
    position: relative;
}

.modal-body .ui--card-palette-color .copy-btn {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    border: 0 none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 16px;
    z-index: 1;
    transition: all 0.2s ease;
    background: transparent;
    width: 100%;
    height: 100%;
    font-family: inherit;
}

.modal-body .ui--card-palette-color:hover .copy-btn {
    display: block;
}

.modal-body .ui--card-palette-color .copy-btn:hover {
    background: transparent;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.modal-close {
    cursor: pointer;
}

.modal-close:hover {
    color: var(--color-primary);
}

.ui--preview img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-small);
    display: block;
}

#carbonads {
    border-radius: 6px;
    overflow: auto;
    background-color: rgba(255, 255, 255, 0.5);
    height: 100%;
    backdrop-filter: blur(4px);
}
#carbon-responsive .carbon-poweredby {
    text-transform: uppercase;
    margin: 0 1em;
}

section {
    background-color: #1e1f1f;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: -1;
}

ul#shape {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

ul#shape li {
    position: absolute;
    display: block;
    list-style: none;
    width: 40px;
    height: 40px;
    background-color: #3742fa80;
    bottom: -200px;

    animation: floating 25s infinite linear;
}

ul#shape li:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 25%;
    animation-delay: 0.1s;
}

ul#shape li:nth-child(2) {
    width: 20px;
    height: 20px;
    left: 95%;
    animation-delay: 10s;
}

ul#shape li:nth-child(3) {
    width: 70px;
    height: 70px;
    left: 75%;
    animation-delay: 18s;
}

ul#shape li:nth-child(4) {
    width: 30px;
    height: 30px;
    left: 10%;
    animation-delay: 5s;
}

ul#shape li:nth-child(5) {
    width: 40px;
    height: 40px;
    left: 60%;
    animation-delay: 8s;
}

ul#shape li:nth-child(6) {
    width: 90px;
    height: 90px;
    left: 84%;
    animation-delay: 1s;
}

ul#shape li:nth-child(7) {
    width: 50px;
    height: 50px;
    left: 50%;
    animation-delay: 15s;
}

ul#shape li:nth-child(8) {
    width: 100px;
    height: 100px;
    left: 40%;
    animation-delay: 6s;
}

@keyframes floating {
    from {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    to {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 80%;
    }
}

/**
 * Header menu
 */
.dropdown,
.dropdown li,
.dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.dropdown {
    position: relative;
    display: flex;
    gap: 0.334em;
    align-items: center;
    _justify-content: space-between;
    width: 100%;
}
.dropdown a {
    text-decoration-color: color-mix(in srgb, currentColor, transparent 75%);
    text-decoration-thickness: 2px;

    transition: color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
        text-decoration-color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.dropdown a:hover {
    color: #ffffff;
    text-decoration-color: color-mix(in srgb, currentColor, transparent 50%);
}
.dropdown ul {
    position: absolute;
    top: 100%;
    left: 0;
    visibility: hidden;
    opacity: 0;
    z-index: 2;
    min-width: 320px;
    max-width: 480px;
    background: #181919;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 1em;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
    transition: opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
        transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
        visibility 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.dropdown ul ul {
    top: 0;
}
.dropdown li {
    position: relative;
}
.dropdown li:hover {
    z-index: 910;
}
.dropdown ul:hover,
.dropdown li:hover > ul,
.dropdown a:hover + ul,
.dropdown a:focus + ul {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.dropdown ul li {
    display: block;
    width: 100%;
    padding: 1em;
}
.dropdown .edge ul {
    left: auto;
    right: 0;
}

.dropdown hr {
    height: 1px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    margin: 1em 0;
}

.squircle {
    clip-path: url(#squircleClip);
    width: 20px;
    height: 20px;
    object-fit: cover;
}

.ui--button {
    background-color: #d9ff42;
    color: #000000;
    text-align: center;
    cursor: pointer;
    background-image: none;
    border: 0 none;
    border-radius: var(--radius-large);
    padding: 1em 1.5em;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-block;
    box-shadow: 0 4px 4px #08080814, 0 1px 2px #08080833,
        inset 0 6px 12px #ffffff1f, inset 0 1px 1px #fff3;
}
.ui--button:hover {
    background-color: #bbe124;
}

.ui--button-small {
    padding: 0.334em 0.667em;
    font-weight: 400;
    font-size: 13px;
}

.ui--button-secondary {
    color: #ffffff;
    background-color: #2d2d2d;

    box-shadow: 0 4px 4px #08080814, 0 1px 2px #08080833,
        inset 0 6px 12px #6b6b6b1f, inset 0 1px 1px #6b6b6b33;
}
.ui--button-secondary:hover {
    color: #ffffff;
    background-color: #191919;
}
