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


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

@font-face {
    font-family: 'Mamenchisa';
    src: url('../../public/fonts/mamenchisa/Mamenchisa.otf') format('opentype');
}

body {
    transition: all 0.10s linear;
}

.light {
    --primary: 39, 39, 39;
    --secondary: 250, 121, 0;
    --pure: 255, 255, 255;
    --switch-wrapper: 39, 39, 39;
    --switch-button: 255, 255, 255;
    --cta-text: 250, 250, 250;
    --background: 250, 250, 250;
    --active-link: 242, 242, 242;
    --stroke: 214, 214, 214;
    --input-select: 245, 245, 245;
    --input-disabled: 235, 235, 235;
    --true: 35, 197, 94;
    --warning: 255, 193, 7;
    --false: 220, 38, 38;
    --bg-only-light: 255, 255, 255;
}

.dark {
    --primary: 250, 250, 250;
    --secondary: 250, 121, 0;
    --pure: 0, 0, 0;
    --switch-wrapper: 255, 255, 255;
    --cta-text: 250, 250, 250;
    --switch-button: 39, 39, 39;
    --background: 18, 18, 18;
    --active-link: 242, 242, 242;
    --stroke: 214, 214, 214;
    --input-select: 24, 24, 24;
    --input-disabled: 112, 112, 112;
    --true: 35, 197, 94;
    --false: 220, 38, 38;
    --warning: 255, 193, 7;
    --bg-only-light: 44, 44, 44;

}

input[type="color"] {
    -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  width: 100%;
  height: 30;
  border: none;
  cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 10px;
    border: none;
}

input[type=file]::file-selector-button {
    margin-right: 8px;
    border: none;
    border-radius: 6px;
    background: rgb(var(--secondary));
    padding: 6px 12px;
    color: #fff;
    cursor: pointer;
    width: fit-content;
  }

/* Navbar */

.burger-menu {
    display: none;
}

.mobile-nav {
    display: none;
}

@media screen and (max-width: 1023px) {

    /* Burger button */
    .burger-menu {
        position: relative;
        z-index: 60;
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 10px;
        background-color: rgb(var(--primary));
        transition: all 0.15s linear;
    }

    .burger-menu::before, .burger-menu::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 2px;
        border-radius: 10px;
        left: 0;
        background-color: rgb(var(--primary));
        transition: all 0.15s linear;
    }

    .burger-menu::before {
        top: -7px;
        transition: all 0.15s linear;
    }

    .burger-menu::after {
        top: 7px;
        transition: all 0.15s linear;
    }

    .burger-menu.active {
        background-color: transparent;

    }

    .burger-menu.active::before {
        transform: rotate(45deg);
        top: 0;
        transition: all 0.15s linear;
    }

    .burger-menu.active::after {
        transform: rotate(-45deg);
        top: 0;
        transition: all 0.15s linear;
    }

    /* Mobile navbar */
    .mobile-nav-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        opacity: 0;
        z-index: 59;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        transform: translateX(-100%);
        transition: opacity 0.1s linear, transform 0.05s 0.1s linear;
    }

    .mobile-nav {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        max-width: 320px;
        min-width: 320px;
        height: 100vh;
        background-color: rgb(var(--background));
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
        z-index: 1000;
    }

    .mobile-nav-wrapper.active {
        transform: translateX(0);
        opacity: 1;
        transition: transform 0.05s linear, opacity 0.1s 0.05s linear;
    }
    
}