text: import { createGlobalStyle } from 'styled-components'
  
  import * as font from '../assets/fonts'
  import { BREAKPOINT } from '../utils/constants'
  
  export const GlobalStyles = createGlobalStyle`
    :root {
      /* --accent-color: hsla(197, 100%, 55%); */
      --accent-color: tomato;
      --dark-color: hsl(0, 0%, 15%);
      --dark-color-light: hsla(0, 0%, 15%, 0.9);
      --dark-color-lighter: hsla(00, 0%, 15%, 0.7);
      --light-color: hsl(0, 0%, 99%);
      --light-color-translucent: hsla(0, 0%, 99%, 0.92);
      --sides-padding-desktop: 3%;
      --sides-padding-mobile: 5%;
    }
  
    [data-theme="dark"] {
      --accent-color: lightyellow;
      --dark-color: hsl(0, 0%, 99%);
      --dark-color-light: hsla(0, 0%, 99%, 0.9);
      --dark-color-lighter: hsla(0, 0%, 99%, 0.92);
      --light-color: hsl(0, 0%, 15%);
      --light-color-translucent: hsla(0, 0%, 15%, 0.9);
    }
  
  
    @font-face {
      font-display: block;
      font-family: "Raleway";
      src: url('${font.RalewayRegular}');
      font-weight: 400;
    } 
  
    @font-face {
      font-display: block;
      font-family: "Junge";
      src: url('${font.JungeRegular}');
      font-weight: 400;
    } 
  
    @font-face {
      font-display: block;
      font-family: "Kaushan Script";
      src: url('${font.KaushanScriptRegular}') format("woff2");
      font-weight: 400;
    }
  
    h1, h2, h3, h4, h5 {
      font-family: 'Junge', serif;
    }
  
    body {
      background-color: var(--light-color);
      color: var(--dark-color);
      font-family: 'Raleway', sans-serif;
      font-size: 19px;
      font-weight: 400;
      height: 100%;
      padding-top: 20vh;
  
    @media (max-width: ${BREAKPOINT}px) {
        font-size: 17px;
        padding-top: 15vh;
      }
    }
  
    div a {
      color: var(--accent-color);
      text-decoration: underline;
      text-decoration-skip-ink: auto;
    }
  
    /* CSS Reset */
  
    /* Box sizing rules */
    *,
    *::after,
    *::before {
      box-sizing: border-box;
    }
  
    /* Set core body defaults */
    body {
      line-height: 1.5;
      min-height: 100vh;
      scroll-behavior: smooth;
      text-rendering: optimizeSpeed;
      -moz-osx-font-smoothing: grayscale;
      -webkit-font-smoothing: antialiased;
    }
  
    /* Remove list styles on ul, ol elements with a class attribute */
    ul[class],
    ol[class] {
      list-style: none;
    }
  
    /* A elements that have a class get default styles */
    a[class] {
      color: inherit;
      text-decoration: none;
    }
  
    /* Make images easier to work with */
    img {
      display: block;
      max-width: 100%;
    }
  
    /* Natural flow and rhythm in articles by default */
    article > * + * {
      margin-top: 1em;
    }
  
    /* Inherit fonts for inputs and buttons */
    button,
    input,
    select,
    textarea {
      font: inherit;
    }
  
    /* Remove all animations and transitions for people that prefer not to see them */
    @media (prefers-reduced-motion: reduce) {
      * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
      }
    }
  `
  