:root {
    --color-primary: hsl(200, 10%, 77%);
    --color-secondary: hsl(240, 49%, 10%);
    --color-tertiary: hsl(210, 100%, 50%);
    --color-accent: hsl(190, 40%, 30%)
}

body{
  background: var(--color-primary);
  color: var(--color-secondary);
}
a {
  color: var(--color-tertiary);
}

nav {
  font-family: sans-serif;
  position: fixed;
  z-index: 1;
  top: 140px;
  left: 10px;
  padding: 8px 0;
  width: 25%;
}

nav a {
  padding: 6px 8px 6px 16px;
  font-size: 20px;
  color: var(--color-accent);
  display: block;
  font-size: 0.807rem;
}

nav ul {
  list-style-type: none;
  margin: 0 ;
  padding: 0;
}

.content {
  padding: 2rem;
}

footer {
  padding: 0 2rem;
  width: 100%;
  text-align: center;
  margin-top: 5rem;
  margin-bottom: 2rem;
  font-size: 0.7rem;
  font-family: sans-serif;
}



/* Generic  */

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 4rem;
}

.p-2 {
    padding: 2rem;
}


/* Back to top button */

.arrow {
    border: solid black;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
}

.up {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
}

#backToTop {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Fixed/sticky position */
    bottom: 60px;
    /* Place the button at the bottom of the page */
    left: 30px;
    /* Place the button 30px from the right */
    z-index: 99;
    /* Make sure it does not overlap */
    border: none;
    /* Remove borders */
    outline: none;
    /* Remove outline */
    background-color: white;
    /* Set a background color */
    color: black;
    /* Text color */
    cursor: pointer;
    /* Add a mouse pointer on hover */
    padding: 25px;
    /* Some padding */
    border-radius: 25px;
    /* Rounded corners */
    font-size: 0px;
    /* Increase font size */
    border: 1px solid var(--color-accent)
}

#backToTop:hover {
    background-color: #555;
    /* Add a dark-grey background on hover */
}


/* Tooltips  */

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-top: 1.8rem ;
  margin-right: 0.5rem;
  font-size: 0.8rem;
}

.tooltiptext {
  visibility: hidden;
  width: 10rem;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

/* Checkboxes */

.emoji-checkbox {
    display: inline;
}

/* Masquer la checkbox par défaut */
.emoji-checkbox input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}

/* Style de l'emoji */
.emoji-checkbox label {
    font-size: 1rem;
    cursor: pointer;
    /* color: transparent; */
    opacity: 0.4;
    /* Par défaut, transparent */
}

/* Quand la checkbox est cochée, l'emoji devient visible */
.emoji-checkbox input[type="checkbox"]:checked+label {
    color: #000;
    opacity: 1;
    /* Couleur visible */
}

/* Media queries  */

@media screen and (max-height: 450px) {
  nav {
    padding-top: 15px;
  }

  nav a {
    font-size: 18px;
  }
}
@media screen and (max-width: 700px) {
  .tooltiptext {
    width: 7rem;
  }
}

@media screen and (max-width: 500px) {
  html {
    font-size: 100% !important;
  }
  nav {
    top: 90px;
  }
  .content {
    padding: 1rem;
  }
}
