/* ==========================================================

   Modern CSS Reset
   ========================================================== */


/* ==========================
   Box Sizing
========================== */

*,
*::before,
*::after{
    margin:0;
    padding:0;
    box-sizing:border-box;
}


/* ==========================
   Root
========================== */

html{
    font-size:16px;
    scroll-behavior:smooth;
    -webkit-text-size-adjust:100%;
}


/* ==========================
   Body
========================== */

body{
    min-height:100vh;
    text-rendering:optimizeLegibility;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}


/* ==========================
   Media
========================== */

img,
picture,
svg,
video,
canvas{
    display:block;
    max-width:100%;
}


/* ==========================
   Forms
========================== */

input,
button,
textarea,
select{
    font:inherit;
    border:none;
    outline:none;
    background:none;
}


/* ==========================
   Buttons
========================== */

button{
    cursor:pointer;
}


/* ==========================
   Links
========================== */

a{
    text-decoration:none;
    color:inherit;
}


/* ==========================
   Lists
========================== */

ul,
ol{
    list-style:none;
}


/* ==========================
   Tables
========================== */

table{
    border-collapse:collapse;
    border-spacing:0;
}


/* ==========================
   Headings
========================== */

h1,
h2,
h3,
h4,
h5,
h6{
    font-weight:inherit;
}


/* ==========================
   Paragraph
========================== */

p{
    overflow-wrap:break-word;
}


/* ==========================
   Text Selection
========================== */

::selection{
    background:var(--color-primary);
    color:var(--color-white);
}


/* ==========================
   Placeholder
========================== */

::placeholder{
    color:#999;
    opacity:1;
}


/* ==========================
   Disabled
========================== */

button:disabled,
input:disabled{
    cursor:not-allowed;
}


/* ==========================
   Focus
========================== */

:focus-visible{
    outline:2px solid var(--color-secondary);
    outline-offset:3px;
}


/* ==========================
   Scrollbar
========================== */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#f5f5f5;
}

::-webkit-scrollbar-thumb{
    background:#bdbdbd;
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#8b8b8b;
}


/* Firefox */

*{
    scrollbar-width:thin;
    scrollbar-color:#bdbdbd #f5f5f5;
}


/* ==========================
   Reduce Motion
========================== */

@media (prefers-reduced-motion: reduce){

    html{
        scroll-behavior:auto;
    }

    *,
    *::before,
    *::after{

        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;

        transition-duration:.01ms !important;

        scroll-behavior:auto !important;
    }

}