:root {
  /*Heat-it colors*/
  --bold_orange:#ff7f30;
  --pastel_orange:#ffa071;
  --bold_green:#cac731;
  --slight_beige:#f5f5dc;
  --smooth_beige:#f2e8c6;
  --bold_rose:#ee81a6;
  --pastel_blue:#b9e3c6;

  /*Text colors*/
  --text:#323232;

  /*Main colors*/
  --background:#f2e8c6;
  --module_background:#f5f5dc;
  --meta_background:var(--pastel_blue);

  /*Highlight colors*/
  --hover:var(--pastel_orange);
  --active:var(--pastel_orange);
  --bodymap_muscle_hover:var(--pastel_orange);

  /*Bodymap colors*/
  --bodymap_container_background:#b9e3c6;
  --bodymap_skin_color:#f5f5dc;
  /*--bodymap_muscle_groups:;*/

  /*Other colors*/
  --header_color: white;
  --raspberry: #d81e5c;
  --delft_blue: #23395b;
  --mindaro: #fffd98;
  --mint: #59c9a5;
  --celadon: #b9e3c6;
  --rose: #ee81a6;
  --beige: #f2e8c6;
  --creme: #dad4b5;
  --terracotta: #792418;
}
/*Global elements properties*/
html {
  font-family: "Bricolage Grotesque", sans-serif;
  font-optical-sizing: auto;
  font-weight: auto;
  font-style: normal;
  font-size:1.1rem;
  scroll-behavior: smooth;
}
body {
  background-color: var(--background);
}
p{
  font-family: "Bricolage Grotesque", sans-serif;
  color:var(--text);
  font-weight:400;
  font-size: 1.1rem;
  
}
span{
  color:var(--text);
}
h1, h2, h3, h4{
  color:var(--text);
}
a {
  text-decoration: none;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
a:hover {
  color: var(--text);
}
button {
  -webkit-tap-highlight-color: transparent;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
/*Page container scope properties*/
.module{
  border-radius: 1rem;
  background-color: var(--module_background);
}
.content_container {
  grid-area: content;
  padding: 2rem;
  padding-top: 1rem;
  justify-content: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: 40% 60%;
  grid-template-areas:
    "introduction introduction"
    "sidebar exercises"
    ". exercises";
}
/*Header scope properties*/
.header_placeholder{
  grid-area:header;
  height:4rem;
  background-color: var(--background);
  width: auto;
}
#nav_elem_exercises{
  display: none;
}
#nav_elem_help{
  display: none;
}
header{
  position:fixed;
  top:0;
  background-color: var(--background);
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  width:100%;
  max-height: 4rem;
}
.mobile_navbar_container {
  display: none;
}
.navbar_container {
  display: flex;
  flex-direction: row;
}
#logo{
  padding:1rem 0 1rem 1.5rem;
  width:9%;
}
.site_title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 1rem;
  white-space: nowrap;
}
header .nav_elem {
  display: flex;
  gap: 0.5rem;
  font-size: 1.1rem;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  padding: 1rem;
  border-radius: 0.5rem;
}
header .nav_elem:hover {
  transition: 200ms;
  background-color: var(--hover);
  font-weight: bold;
}
/*Introduction container scope properties*/
.introduction_container {
  grid-area: introduction;
  padding: 1rem;
  border-radius: 1rem;
}
.introduction_title {
  font-size: 2rem;
  font-weight: 700;
  padding-bottom: 1rem;
}
.topic_title span{
  font-size: 2rem;
  font-weight: 500;
  padding-bottom: 0.5rem;
}
.introduction_text {
  padding-bottom: 1rem;
}
::-webkit-scrollbar {
  display: none;
}
.cat_container {
  display: flex;
  gap: 0.5rem;
  overflow: scroll;
}
.muscle_category {
  padding: 0.5rem;
  width: auto;
  text-align: center;
  background-color: var(--meta_background);
  border-radius: 1rem;
  font-weight: bold;
}
.topic_category {
  display: flex;
  gap:0.25rem;
  align-items: center;
  padding: 0.5rem;
  width: auto;
  text-align: center;
  background-color: var(--meta_background);
  border-radius: 2rem;
  font-weight: bold;
}
/*Exercises container scope properties*/
.exercises_container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.exercise_placeholder{
  border-radius: 1rem;
  padding: 1rem;
  height: fit-content;
  width: 100%;
}
.exercise {
  border-radius: 1rem;
  padding: 1rem;
  height: fit-content;
  width: fit-content;
}
.exercise_link {
  height: fit-content;
  border-radius: 1rem;
}
.exercise_link:hover {
  transition: 200ms;
  -webkit-box-shadow: 0px 0px 20px 6px rgba(0, 0, 0, 0.3);
  box-shadow: 0px 0px 20px 6px rgba(0, 0, 0, 0.3);
}
.illustration {
  max-width: 100%;
  height: auto;
  border-radius: 0.9rem;
}
.exercise_meta_container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1rem;
  align-items: start;
}
.category_name_container{
  font-weight: 600;
  display: flex;
  flex-direction: row;
  gap:0.5rem;
  padding-top: 0.25rem;
  align-items: center;
}
.category_name_container p{
  font-weight: 600;
}
.category_meta_container{
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
}
.exercise_title {
  font-size: 1.5rem;
  font-weight: bold;
  padding-bottom: 0.5rem;
}

.difficulty {
  padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  width: auto;
  text-align: center;
  background-color: var(--meta_background);
  border-radius: 1rem;
}
.meta {
  padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  width: auto;
  text-align: center;
  font-weight:500;
  background-color: var(--meta_background);
  border-radius: 1rem;
}
.exercise_description {
  letter-spacing: 0.01rem;
  line-height: 1.15;
  overflow: hidden;
}

/*********************************/
/************************Exercise page scope properties**********************/
/**Page scope**/
.sidebar-topics_container{
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  height:fit-content;
  gap:1rem;
}
#exercise_intro{
  height:fit-content;
}
#exercise_page_content_container {
  grid-area: content;
  padding: 2rem;
  padding-top: 2rem;
  justify-content: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: 40% 60%;
  grid-auto-rows: auto ;
  grid-template-areas:
    "sidebar exercises"
    "sidebar exercises"
    "sidebar exercises";
}

/**Exercise introduction**/
.return_button{
  padding:1rem;
  display:flex;
  gap:0.5rem;
  align-items: center;
  border-radius: 1rem;
  border-style: none;
}
.return_button:hover{
  transition: 200ms;
 background-color: var(--pastel_orange);
}
.exercise-intro_meta_container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1rem;
  align-items: start;
}

.meta_category{
  display: flex;
  align-items: center;
  flex-direction: row;
  gap:0.5rem;
}
.topic{
  width:100%;
}
.video_embed{
  height:25rem;
  width: 100%;
  border-radius:0.9rem;
}
/**Topics**/
.topic_title{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap:0.5rem;
  
}
.topic_title {
  font-size: 1.5rem;
  font-weight: 700;
  padding-bottom: 0.5rem;
}
.instructions{
  padding-left:1.5rem;
  list-style:decimal;
  font-size: 1.1rem;
}
.instructions > li{
  padding:0 0 0.5rem 0.5rem;
}
ol > li::marker{
font-weight: bold;
}
.illustration{
  width: 100%;
}
/*Sidebar container scope properties*/
.sidebar_container{
  grid-area: sidebar;
  display:grid;
  grid-template-rows: [row1-start] auto [row1-end row2-start] 50% [row2-end] ;
  grid-template-areas: 
  "bodymap"
  ".";
}
.bodymap_container {
  grid-area: bodymap;
  display: flex;
  justify-content: center;
  background-color: var(--bodymap_container_background);
  padding: 1rem;
  border-radius: 1rem;
}
.bodymap {
  width:50%;
}
/*Footer scope properties*/
footer {
  grid-area: footer;
  display: grid;
  padding: 4rem;
}
#topBtn {
  /* Hidden by default */
  transition: 200ms;
  display: none;
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 2; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: var(--module_background); /* Set a background color */
  color: var(--text); /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px; /* Some padding */
  border-radius: 100%; /* Rounded corners */
  font-size: 18px; /* Increase font size */
  -webkit-box-shadow: 0px 0px 20px 6px rgba(0, 0, 0, 0.3);
  box-shadow: 0px 0px 20px 6px rgba(0, 0, 0, 0.3);
}
#topBtn span {
  padding: 0;
  margin: 0;
}
#topBtn:hover {
  background-color: var(--hover); /* Add a dark-grey background on hover */
}
#topBtn:active{
  background-color: var(--active);
}
/*********Start page scope properties************/
/******Content container*********/
#start_container{
  padding:2rem;
  
  grid-template-columns: 33%;
  grid-template-areas:
    "introduction introduction introduction"
    "exercises exercises exercises";
}
#directions_container{
  flex-wrap: nowrap;
 grid-area:exercises;
}
.direction{
  height: 25rem;
  width:25rem;
}
/*SVG scope properties*/
g#body-muscle-groups > a:hover * {
  transition: all 0.25s ease-out;
  fill: var(--bodymap_muscle_hover);
}
#body-background {
  fill: var(--bodymap_skin_color);
}
/*MEDIA QUERIES*/
@media screen and (max-width: 640px) {
  html {
    outline: none;
  }
  #logo{
    padding:0.5rem;
    width:33%;
    align-items: center;
    justify-content: center;
  }
  #exercise_page_content_container{
    display: flex;
    flex-direction: column;
    padding: 1rem;
  }
  .video_embed{
    height:13rem;
    width: 100%;
  }
  .content_container {
    display: flex;
    flex-direction: column;
    padding: 1rem;
  }
  .bodymap_container {
    display: flex;
    justify-content: center;
  }
  .exercises_container{
    display: flex;
  }
  .exercise-intro_meta_container {
    display: flex;
    display: scroll;
    flex-direction:column;
    gap: 1rem;
    padding-bottom: 1rem;
    align-items: start;
  }
  #to-topic_container{
    display:flex;
  }
  header {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    padding: 0.5rem;
    position:fixed;
    left:0;
    right:0;
    width:auto;
  }
  .header_placeholder{
    width: 100%;
  }
  .navbar_container {
    display: none;
  }
  .mobile_navbar_container {
    visibility: visible;
    background: var(--module_background);
    position: fixed;
    z-index: 1;
    bottom: 0;
    left:0;
    height: 4.5rem;
    width: 100%;
    display: flex;
    gap: 0.1rem;
    justify-content: center;
    align-items: center;
  }
  .mobile_navbar_container a {
    display: flex;
    font-weight: 600;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.5rem 1rem 0.5rem 1rem;
    border-radius: 0.5rem;
  }
  .mobile_navbar_container a:active {
    background-color: var(--active);
  }
  footer {
    padding: 5rem;
  }
  footer p {
    display: none;
  }
  #topBtn {
    bottom: 90px;
    right: 30px;
  }
  .container_mobile{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .cards_mobile{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }
}
@media screen and (min-width: 640px) and (max-width: 1200px) {
}
@media screen and (min-width: 1200px) and (max-width: 1900px) {
}
@media screen and (min-width: 1900px) {
}
/***TEST***/
.container {
  padding:2rem;
  padding-top:1rem;
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-areas:
  "intro intro intro"
  "cards cards cards";
  gap: 1rem;
}

.module_test {
  grid-area: intro;
  padding: 1rem;
}

.cards {
  grid-area: cards;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem;
  height:fit-content;
}

.card img{
  width:100%;
  border-radius: 0.9rem;
}
.card p{
  padding:1rem 0 1rem 0;
}
.card span{
align-self: flex-end;
}