/*#region -- RESET CSS */
/*
  1. Use a more-intuitive box-sizing model.
*/
*, *::before, *::after {
    box-sizing: border-box;
  }
  /*
    2. Remove default margin
  */
  * {
    margin: 0;
  }
  /*
    Typographic tweaks!
    3. Add accessible line-height
    4. Improve text rendering
  */
  body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  /*
    5. Improve media defaults
  */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }
  /*
    6. Remove built-in form typography styles
  */
  input, button, textarea, select {
    font: inherit;
  }
  /*
    7. Avoid text overflows
  */
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }
  /*
    8. Create a root stacking context
  */
  #root, #__next {
    isolation: isolate;
  }  
  /* #endregion */
  
/* #region -- FONT */
.poppins-thin {
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.poppins-extralight {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.poppins-light {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.poppins-regular {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.poppins-medium {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.poppins-semibold {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.poppins-bold {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.poppins-extrabold {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: normal;
}

.poppins-black {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.poppins-thin-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: italic;
}

.poppins-extralight-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: italic;
}

.poppins-light-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.poppins-regular-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.poppins-medium-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: italic;
}

.poppins-semibold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: italic;
}

.poppins-bold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.poppins-extrabold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: italic;
}

.poppins-black-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: italic;
}
/* #endregion */

/* #region -- ROOT */
:root{
    --default-color: rgb(255, 255, 255);
    --clicked-color: rgb(207, 207, 207);
    --header-color: rgb(62, 62, 63);

    --rInput-color: red;
    --gInput-color: green;
    --bInput-color: blue;

    --border-thickness: 2px;

    --title-background-color: rgba(0,0,0,0.1);
    --snackbar-background-color: rgba(0,0,0,0.5);
    --box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.2);
}
/* #endregion */

body{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75em;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    user-select: none;
}

button{
    border: none;
    border-radius: 5px;
    padding: 0.6em 1.5em;
    font-weight: 600;
    background-color: var(--default-color);
}

button:hover:not('disabled'){
    cursor: pointer;
}

button:active:not('disabled'){
    background-color: var(--clicked-color);
}

input[type="number"]{
    outline: none;
    border-radius: 5px;
    border: var(--border-thickness) solid var(--default-color);
    background-color: var(--default-color);
    padding: 0.3em 0.5em;
}

input[type="number"]:focus{
    border: var(--border-thickness) solid var(--header-color);
}

input[type="range"]{
    width: 100%;
}

input[type="range"].rRange{
    accent-color: var(--rInput-color);
}

input[type="range"].gRange{
    accent-color: var(--gInput-color);
}

input[type="range"].bRange{
    accent-color: var(--bInput-color);
}

body .hidden{
    display: none;
}

header{
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0.2em 0.5em;
    background-color: var(--header-color);
    box-shadow: var(--box-shadow);
    color: var(--default-color);
}

header > div:first-child{
    display: flex;
    gap: 0.2em;
}

header > div:nth-child(2){
    display: flex;
    gap: 0.2em;
    justify-content: start;
}

header div:last-child div{
    min-width: 70px;
}

.menu{
    z-index: 1;
    position: absolute;
    right: 0.2em;
    top: 2em;
    padding: 0.5em;
    border-radius: 5px;
    background-color: var(--header-color);
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    min-width: 8em;
    box-shadow: var(--box-shadow);
}

.menu > div{
    display: flex;
    gap: 0.5em;
}

body>div{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75em;
    width: 100%;
}

.triedColor{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100px;
    height: 100px;
    border-radius: 5px;
    color: #000;
    background-color: var(--default-color);
    box-shadow: var(--box-shadow);
}

.title{
    border-radius: 5px;
    padding: 1em 2em;
    background-color: var(--title-background-color);
    width: max-content;
}

label{
    display: flex;
    align-items: center;
    gap: 0.75em;
}

.titleColor{
    width: 8em;
    text-align: end;
}

.reminderContainer{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center; 
    border-radius: 5px;
    background-color: var(--title-background-color);
    padding: 1em 4em;
    max-width: 95%;
    text-align: center;
}

.copyButton{
    position: absolute;
    top: 0.2em;
    right: 0.2em;
    color: rgba(255,255,255,0.25);
}

.iconButton:hover{
    cursor: pointer;
}

[type="number"].rInput:not('disabled'){
    border-color: var(--rInput-color);
}

[type="number"].gInput:not('disabled'){
    border-color: var(--gInput-color);
}

[type="number"].bInput:not('disabled'){
    border-color: var(--bInput-color);
}

.colorInputContainer{
    width: 100%;
    padding: 0em 1em;
}

.sliderContainer{
    display: flex;
    width: 100%;
    gap: 1em;
}

#snackbar {
    visibility: hidden;
    max-width: 200px;
    margin-left: -100px;
    background-color: var(--snackbar-background-color);
    color: var(--default-color);
    text-align: center;
    border-radius: 5px;
    padding: 0.5em;
    position: fixed;
    z-index: 1;
    top: 2em;
    right: 0.3em;
}

#snackbar.show {
    visibility: visible;
}

body dialog{
    margin: auto auto;
    border: none;
    outline: none;
    border-radius: 5px;
}

dialog::backdrop{
    background-color: var(--snackbar-background-color);
}

.disabledSVG{
    color: rgba(255,255,255,0.25);
}

.disabledSVG:hover{
    cursor: default;
}