@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@400;500;600&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0%;
    box-sizing: border-box;
    font-family: 'Orbitron', 'Courier New', 'Monaco', 'Consolas', 'Liberation Mono', monospace !important;
    font-weight: medium;
}

a {
    text-decoration: inherit;
}


:root {
    --color-v-purple: 124, 77, 255;
    --color-v-purple-h: 101, 31, 255;
    --color-v-cyan: 0, 188, 212;
    --color-v-cyan-h: 0, 172, 193;
    --color-v-green: 76, 175, 80;
    --color-v-green-h: 67, 160, 71;
    --color-v-primary: 232, 234, 246;
    --color-v-text: 255, 255, 255;
    --color-v-accent: 179, 157, 219;

    --color-purple: #7C4DFF;
    --color-purple-h: #651FFF;
    --color-cyan: #00BCD4;
    --color-cyan-h: #009baf;
    --color-green: #4CAF50;
    --color-green-h: #43A047;
    --color-primary: #E8EAF6;
    --color-text: #FFFFFF;
    --color-accent: #B39DDB;

    --color-lime: oklch(84.1% 0.238 128.85);
    --color-lime-h: oklch(76.8% 0.233 130.85);
    --color-yellow: oklch(85.2% 0.199 91.936);
    --color-yellow-h: oklch(79.5% 0.184 86.047);
    --color-blue: oklch(74.6% 0.16 232.661);
    --color-blue-h: oklch(68.5% 0.169 237.323);
    --color-red: oklch(70.4% 0.191 22.216);
    --color-red-h: oklch(63.7% 0.237 25.331);

    color: var(--color-text);
}


body {
    overflow-y: scroll;
    font-family: 'Orbitron', 'Courier New', 'Monaco', 'Consolas', 'Liberation Mono', monospace !important;
}

p {
    line-height: 1.4;
}

/* scrollbar styling */
::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #2191FB80;
    border-radius: 10px;
}

.frame,
.frame-wide {
    width: 15rem;
    height: 5rem;
    white-space: no-wrap;
    background-color: var(--color-purple);
    background-image: url('../resources/frame.svg'), linear-gradient(to bottom, var(--color-purple-h) 1rem, var(--color-purple) 1rem);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;

    /* Apply mask */
    -webkit-mask-image: url('../resources/frame_mask.svg');
    mask-image: url('../resources/frame_mask.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 99%;
    mask-size: 99%;
    -webkit-mask-position: center;
    mask-position: center;

    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.frame-wide {
    width: 17rem;
    height: 3.6rem;
    background-image: url('../resources/frame_wide.svg'), linear-gradient(to bottom, var(--color-purple-h) .8rem, var(--color-purple) .8rem);
    -webkit-mask-image: url('../resources/frame_wide_mask.svg');
    mask-image: url('../resources/frame_wide_mask.svg');
}

.btn-group {
    display: flex;
    gap: 1rem;
}


.btn-ghost,
.btn-primary,
.btn-secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    outline: none;
    transition: all 0.3s ease;
    z-index: 1;
    overflow: hidden;
    text-transform: uppercase;
    width: 9rem;
    height: 3.25rem;
}

/* Outer decorative corners */
.btn-primary::before,
.btn-secondary::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../resources/corners.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

/* Inner border effect */
.btn-ghost::after,
.btn-primary::after,
.btn-secondary::after {
    content: "";
    position: absolute;
    inset: 9px 7px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.btn-primary {
    color: var(--color-text);
    background: var(--color-cyan);
}

.btn-primary::after {
    box-shadow: 0 0 0 3px var(--color-cyan-h), 0 0 0 10px var(--color-cyan);
}

/* Hover state: swap gradient direction */
.btn-primary:hover {
    transform: scale(1.02);
}

.btn-secondary {
    color: var(--color-text);
    background: var(--color-purple);
}

.btn-secondary::after {
    box-shadow: 0 0 0 3px var(--color-purple-h), 0 0 0 10px var(--color-purple);
}

/* Hover state: swap gradient direction */
.btn-secondary:hover {
    transform: scale(1.02);
}

.btn-ghost {
    color: var(--color-text);
    background-color: #ffffff20;
}

.btn-ghost::after {
    box-shadow: 0 0 0 3px #ffffff50, 0 0 0 10px #ffffff00;
}

.btn-ghost:hover {
    background-color: #ffffff40;
}

.btn-ghost.btn-med,
.btn-secondary.btn-med,
.btn-primary.btn-med {
    width: calc(9rem * 0.8);
    height: calc(3.25rem * 0.8);
    padding: 0.4rem .8rem;
    font-size: .9rem;
}


.btn-link {
    width: fit-content;
    height: 3.15rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 0.4rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    text-align: center;
    background: transparent;
    border: none;
    outline: none;
    transition: all 0.3s ease;
    z-index: 1;
    overflow: hidden;
    text-transform: uppercase;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-icon {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 200;
    background-color: transparent;
    border: none;
    outline: none;
    border-radius: .25rem;
    color: #fff;
    transition: all 150ms ease-in-out;
    font-size: 1.1rem;
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    display: grid;
    place-content: center;
}

.btn-icon:hover {
    background-color: #ffffff20;
}

.dropdown {
    position: relative;
    display: inline-block;
    background-color: transparent;
    border-radius: .5rem;
}

.dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    padding: .75rem .75rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: .5rem;
    top: 100%;
    background: #222;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    min-width: 12rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: .5rem;
    overflow: hidden;
    z-index: 1000;
}

.dropdown:hover {
    background-color: 3ffffff20;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: .75rem 1rem;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    border-radius: .5rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.dropdown-item:hover {
    color: var(--color-cyan);
    background-color: #ffffff10;
}