#blueback {
    max-width: 1100px;
    width: 100%;
    text-align: center;
    padding: 20px;
    background: #161b22;
    color: #f0f6fc;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back p,
.back li,
.back ul,
.section-content p,
.section-content ul,
.section-content li {
  text-align: justify;
  font-size: inherit;
  line-height: inherit;
  font-family: inherit;
}

ul.list-unstyled a {
        font-size: 22px !important; /* Added !important to ensure the rule is applied */
    }

    .side-image {
        max-width: 100%;  /* Ensures responsiveness */
        width: 500px;  /* Adjust as needed */
        height: auto;  
    }
    
    #container p {
        text-align: justify;
      }   
      
/* Main Title */
.text {
    font-size: 1.5rem;           /* Large font size */
    font-weight: bold;         /* Strong weight */
    color: #6cb4f9;            /* Muted blue accent */
    letter-spacing: 1px;       /* Slight spacing */
    margin-top: 1.5em;         /* Negative space above */
    margin-bottom: 0.75em;     /* Negative space below */
    text-shadow: 0 2px 8px rgba(0,0,0,0.15); /* Soft shadow for depth */
}

.sidetext {
    font-size: 1.0rem;           /* Large font size */
    font-weight: bold;         /* Strong weight */
    color: #5bc0de;            /* Muted blue accent */
    letter-spacing: 1px;       /* Slight spacing */
    margin-top: 1.5em;         /* Negative space above */
    margin-bottom: 0.75em;     /* Negative space below */
    text-shadow: 0 2px 8px rgba(0,0,0,0.15); /* Soft shadow for depth */
}

.text-accent {
    color: #6cb4f9; /* muted friendly blue */
}


/* Subtext */
.section-content {
    max-width: 100%;  
    color: white;
    margin-bottom: 1rem;  
    padding-left: 10px; /* Add some spacing to avoid sticking to left */
    padding-right: 10px; /* Add some spacing to avoid sticking to left */
    text-align: left;  /* Left-align text */
}

/* Adjust pre code box */
pre[class*="language-"],
code[class*="language-"] {
    background: #282c34 !important; /* Use !important to ensure it overrides */
}

/* You might also need to override the inline background on the `code` element in some themes */
pre > code[class*="language-"] {
    background: transparent !important; /* Make the code background transparent if the pre has the desired color */
}



/* Links Section */
#challenge-links {
    text-align: center;
    margin: 20px 0;
}

#challenge-links ul {
    list-style-type: none;
    padding: 0;
    display: inline-block;
    text-align: left; 
}

#challenge-links li {
    margin: 10px 0;
}

#challenge-links a {
    text-decoration: underline;  /* Add underline */
    color: #00ffcc;
    font-size: 1.4rem;
    font-weight: bold;
}

#challenge-links a:hover {
    color: #ffcc00;
}
.h4-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }
  
  .copy-btn {
    background-color: #19927e;        /* dark background */
    color: #ffffff;                      /* light text */
    border: 1px solid #444;           /* subtle border */
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  .copy-btn:hover {
    background-color: #3a3a3a;
    color: #fff;
    border-color: #666;
  }
  

#back {
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  background: #1e1e1e;
  color: #ffffff;
}


.code-screenshot {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;               /* smooth corners */
    box-shadow: 0 6px 20px rgba(0,0,0,0.3); /* subtle shadow */
    margin: 30px auto;                 /* center and add spacing */
    transition: transform 0.3s ease;
  }
  
  /* Hover effect for some spice */
  .code-screenshot:hover {
    transform: scale(1.02);
  }
  
#toc {
    display: flex;            /* Make the container a flexbox */
    justify-content: center;  /* Center it horizontally */
}

#toc .section-content {
    text-align: center;       /* Center text inside */
}

#toc ul {
    list-style-type: disc; /* Add bullet points */
    padding-left: 1.5rem;  /* Push bullets a bit from the left */
    display: inline-block; /* Keep bullets centered with text */
    text-align: left;      /* Align the bullets with the text */
}

#ref ul li a{
    color: #5eead4;
}

#toc a:hover {
    color: #5eead4;
    text-decoration: underline; /* Optional: underline only on hover */
}
#toc ul li a {
    color: #5eead4  !important; /* Force red-pink color */
    text-decoration: none !important;
}

#toc ul li a:hover {
    color: #5eead4 !important; /* Hover color */
    text-decoration: underline !important;
}


@media (max-width: 768px) {
    .code-screenshot {
        max-width: 100%;
        border-radius: 10px;
        margin: 20px auto;
      }

    #back {
        margin-bottom: 1.3%;
      }

      
    #blueback {
        display: contents;
    }
    pre {
        font-size: 0.9rem; /* Decrease font size for smaller screens */
        padding: 10px;  /* Reduce padding for smaller screens */
        width: 100%;
    }

    pre code {
        font-size: 0.9rem; /* Adjust the font size of code inside pre */
    }

    .copy-btn {
        font-size: 0.8rem; /* Make the copy button smaller on mobile */
        padding: 4px 8px; /* Smaller padding for mobile view */
    }

    #challenge-links a {
        font-size: 1.2rem; /* Adjust link font size for mobile */
    }

    h3 {
    font-size: 1.3rem; /* Smaller size for tablets & phones */
  }

    
}

@media (max-width: 480px) {

    .code-screenshot {
        max-width: 100%;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
      }

    .text {
        font-size: 1.1rem;  /* Smaller font size for mobile */
    }

    .sidetext {
        font-size: 0.9rem;
    }

    ul.list-unstyled a {
        font-size: 19px !important; /* Added !important to ensure the rule is applied */
    }

    #challenge-links ul {
        padding-left: 0; /* Remove padding from the list */
    }

    #challenge-links li {
        margin: 5px 0; /* Adjust margin for smaller devices */
    }

    h3 {
    font-size: 1.1rem; /* Even smaller on small phones */
  }
}

