@tailwind base;
@tailwind components;
@tailwind utilities;

body {
    background: black;
}

html {
    scroll-behavior: smooth;
}

img {
    user-select: none;
    pointer-events: none;
}

.gradient-text {
    background: linear-gradient(180deg, #fff 0%, #525252 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-primary {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0px 0px 10px 0px rgba(255, 255, 255, 0.5) inset;
    transition: all 0.2s ease;
}
.btn-primary-orange {
    border: 1px solid rgba(255, 134, 53, 0.1);
    background: rgba(255, 134, 53, 0.1);
    box-shadow: 0px 0px 10px 0px rgba(255, 134, 53, 0.5) inset;
    transition: all 0.2s ease;
  }
  
  .btn-primary-teal {
    border: 1px solid rgba(20, 184, 166, 0.1);
    background: rgba(20, 184, 166, 0.1);
    box-shadow: 0px 0px 10px 0px rgba(20, 184, 166, 0.5) inset;
    transition: all 0.2s ease;
  }
  
  .btn-primary-purple {
    border: 1px solid rgba(168, 85, 247, 0.1);
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0px 0px 10px 0px rgba(168, 85, 247, 0.5) inset;
    transition: all 0.2s ease;
  }
  
  .btn-primary-red {
    border: 1px solid rgba(244, 63, 94, 0.1);
    background: rgba(244, 63, 94, 0.1);
    box-shadow: 0px 0px 10px 0px rgba(244, 63, 94, 0.5) inset;
    transition: all 0.2s ease;
  }
  
.btn-primary:hover {
    box-shadow: 0px 0px 10px 0px rgba(255, 255, 255, 1) inset;
}

.resend-font-effect-hero {
    /* #Resend */
    -webkit-text-fill-color: transparent;
    text-shadow: -1px -1px 0 hsla(0, 0%, 100%, .15), 1px 1px 0 rgba(0, 0, 0, .1);
}

.border-gradient {
    /* Mark as important to override react flow styling */
    background: linear-gradient(black, black) padding-box,
        linear-gradient(to bottom, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.15)) border-box !important;
    border: 1px solid transparent !important;
}

.radial-background-1 {
    background-image: radial-gradient(at 170% 0%, rgb(49, 46, 129) 0, transparent 69%), radial-gradient(at 0% -30%, rgb(21, 94, 117) 0, transparent 50%);
}

.after-gradient::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .8) 47.92%, rgba(255, 255, 255, 0));
}

.lower-gradient {
    background-image: linear-gradient(to top,
            rgba(255, 255, 255, 0.03),
            rgba(255, 255, 255, 0));
    height: 20vh;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.fading-hr {
    position: relative;
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            hsla(0, 0%, 0%, 0.1),
            hsla(0, 0%, 0%, 0.2),
            hsla(0, 0%, 0%, 0.2),
            hsla(20, 0%, 0%, 0.1),
            transparent);
}

.fading-hr-dark {
    position: relative;
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.2),
            rgba(255, 255, 255, 0.2),
            rgba(255, 255, 255, 0.1),
            transparent);
}

/* Used for code / table formatting within messages */
/* pre {
    @apply overflow-auto rounded-lg;
}

.window-heights {
    @apply h-[14em] overflow-y-auto overflow-x-hidden sm-h:h-[17em] md-h:h-[22em] lg-h:h-[30em];
}

.link {
    @apply cursor-pointer text-sky-500 underline hover:text-sky-300;
}

table {
    @apply w-full rounded-lg text-white;
    background-color: #0d1117;
}

th,
td {
    @apply rounded-lg border border-gray-700 px-4 py-2;
} */

th {
    background-color: #161b22;
}

tr:nth-child(even) {
    background-color: #1c2028;
}


/* range input track style */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-ms-track {
    width: 100%;
    cursor: pointer;

    /* Hides the slider so custom styles can be added */
    background: transparent;
    border-color: transparent;
    color: transparent;
}

/* input[type=range] {
    @apply bg-slate-11 rounded-md;
    height: 0.5rem;
} */

/* Customize website's scrollbar like Mac OS
Not supports in Firefox and IE */
/* total width */
*::-webkit-scrollbar {
    border-radius: 12px;
    background-color: #889096;
    width: 12px;
}

/* scrollbar itself */
*::-webkit-scrollbar-thumb {
    background-color: #D7DBDF;
    /* @apply rounded-lg; */
    border: 2px solid #889096;
    /* This creates the illusion of padding inside the track */
}

/* set button(top and bottom of the scrollbar) */
*::-webkit-scrollbar-button {
    display: none;
}

/*  disappearing animation */
.animation-hide {
    animation: hide 1s cubic-bezier(0.4, 0, 0.2, 1) 0s 1 forwards;
}

@keyframes hide {
    to {
        opacity: 0;
    }
}

@keyframes border-pulse-animation {
    0% {
        border-color: rgba(216, 180, 254, 0.3);
    }

    50% {
        border-color: rgba(216, 180, 254, 0.4);
    }

    100% {
        border-color: rgba(216, 180, 254, 0.3);
    }
}

.animate-border-pulse {
    animation: border-pulse-animation 2s infinite;
}

@keyframes moveBackground {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100% 0;
    }
}

.bg-stars {
    animation: moveBackground 30s linear infinite;
    background: url("/stars.svg");
    background-size: cover;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
}