* {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: "Poppins", sans-serif;
}

html {
     scroll-behavior: smooth;
}

:root {
     --main-bg-color: #0f141c;
     --para-color: #b6bcc9;
     --heading-color: #f9fafb;
     --border-color: #ffffff28;
}

body {
     font-family: "Poppins", sans-serif;
     background-color: var(--main-bg-color) !important;
     margin: 1rem 0;
     overflow-x: hidden;
     width: 100%;
}

.layout {
     /* display: flex; */
     flex-direction: column;
     min-height: 100vh;
     width: 100%;
}

/* Main Content */
.main-content {
     width: 78%;
     /* width: auto; */
     position: relative;
     left: 20%;
     top: 2.3rem;
     overflow: auto;
     overflow-x: hidden;
     color: #b6bcc9;
     line-height: 2.5;
     margin: 1rem 0;
     padding-bottom: 1rem;
     font-size: 1.12rem;
     text-align: left;
     background-color: #0e121ba6;
     padding: 2rem 2rem 0rem;
     border: 1px solid #2c2c2c;
}

.main-content ul li {
     list-style: circle;
     margin: 1rem 1.3rem;
     font-size: 1.1rem;
}

.btn {
     padding: 0.25rem 0.35rem;
     border: 1px solid #8c8f9281;
     background-color: white;
     color: #000;
     border-radius: 5px !important;
     font-size: 0.9rem;
     font-weight: 400;
}

.btn i {
     color: #fff;
     padding: 0rem 0.25rem;
     font-size: 0.75rem;
}

.btn:hover {
     cursor: pointer;
     /* color: #007acc; */
     box-shadow: 1px 1px 5px #ffffff;
}

.btn-group {
     width: 95%;
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 30vw;
     margin: 2rem 0rem;
     font-size: 1rem;
     padding: 2rem 0rem;
}

.btn-group .previous {
     border: 1px solid #8c8f9281 !important;
     color: #fff !important;
     background-color: #d1d6dc00 !important;
     padding: 0.5rem 1rem !important;
     width: auto !important;
}

.previous i {
     color: #fff !important;
}

.next {
     background-color: white !important;
     color: #000 !important;
     font-weight: 500 !important;
}

.next i {
     color: #000;
}

.next:hover {
     box-shadow: 1px 1px 10px #0fe !important;
}

.main-content h1 {
     font-size: 2.3rem;
     font-weight: 700;
     padding-top: 0.75rem;
     padding-bottom: 0.75rem;
     color: #f3f4f6;
     margin: 2rem 0;
}

.main-content h2 {
     font-size: 1.75rem;
     font-weight: 600;
     padding-top: 0.75rem;
     padding-bottom: 0.75rem;
     color: #f3f4f6;
     margin: 2rem 0;
}

.main-content h3 {
     font-size: 1.3rem;
     font-weight: 600;
     padding: 0.5rem 0;
     color: #f3f4f6;
     margin: 1.5rem 0;
}

.main-content h4 {
     font-size: 1.1rem;
     font-weight: 600;
     padding: 0.5rem 0;
     color: #f3f4f6;
     margin: 1.5rem 0;
}

.main .btn-group .btn {
     color: #fff;
}

.btn-group a {
     text-decoration: none;
}

pre {
     line-height: 2;
     text-wrap: wrap;
     /* padding: 0 1rem; */
     margin: 1rem auto;
}

video {
     margin: 1.5rem 0;
     width: 70%;
}

.right-html-content .html-code {
     height: 300px;
     width: 374px;
     font-family: Consolas, Menlo, "courier new", monospace;
     background-color: rgb(21, 32, 43);
     color: white;
     border-left: 4px solid #04aa6d;
     border-left-color: rgb(40, 44, 52);
     font-size: 15px;
     margin-top: 16px !important;
     margin-bottom: 16px !important;
     padding: 8px 12px;
     word-wrap: break-word;
     line-height: 1.5;
}

.right-html-content .html-code::before {
     box-sizing: inherit;
}

.right-html-content .html-code::after {
     box-sizing: inherit;
}

.selector-color {
     color: #f99;
}

.tagcolor {
     color: #8cb;
}

.css-code-property {
     color: #c5a5c5;
}

.such-that {
     color: #fff;
}

.css-code-pro-value {
     color: #88c999;
}

.semi-colon {
     color: #fff;
}

.css-brecut {
     color: #fff;
}

table {
     width: 100%;
     border-collapse: collapse;
     margin: 20px 0;
}

table,
th,
td {
     border: 1px solid #ddd;
}

th,
td {
     padding: 10px;
     text-align: left;
}

/* Code Editor Section Btn */

.code-editor-sec {
     display: flex;
     align-items: center;
     justify-content: center;
     padding-top: 2rem;
}

@keyframes glow {
     0% {
          box-shadow: 0 0 5px #00f;
     }

     50% {
          box-shadow: 0 0 20px #0ff;
     }

     100% {
          box-shadow: 0 0 5px #00f;
     }
}

.code-editor-sec .try-it-btn {
     padding: 12px 24px;
     background-color: #1a202c;
     color: white !important;
     border: 2px solid #00f;
     border-radius: 10px;
     cursor: pointer;
     animation: glow 1.5s infinite;
     margin: 20px auto;
     display: block;
     width: fit-content;
     font-weight: bold;
}

.code-editor-sec i {
     font-size: 1.1rem;
}

.main-content p {
     color: #b6bcc9;
     font-size: 1.12rem;
     margin: 1rem 0rem !important;
     font-size: 1.12rem;
     line-height: 1.5;
}

p a {
     text-decoration: underline;
     color: #7c7cf6;
     margin: 1rem 0;
     font-size: 1.12rem;
}

p a:hover {
     color: #e5e7eb;
}

strong {
     color: #e5e5e5;
     font-weight: 500 !important;
     font-family: Poppins, sans-serif !important;
}

.main-content li strong {
     color: #e5e5e5;
     font-weight: 600 !important;
     font-family: Poppins, sans-serif !important;
}

img {
     border-radius: 1rem;
     border: 1px solid #ffffff62;
     margin: 1.75rem 0;
}

.box {
     border: 1px solid #ffffff62;
     padding: 0.65rem;
     margin: 0.65rem;
}

/* Html-Page-Structure */

.tag {
     color: #9cdcfe;
}

.content {
     margin-left: 1.25rem;
}

.inner-box {
     border: 1px solid #3a3a3a;
     margin: 0.65rem;
     padding: 0.65rem;
}

.line {
     margin: 0.25rem 0;
}

/*  ✅ CSS Styling  */

.code-box {
     position: relative;
     background-color: #1e293b8b;
     color: #f8f8f2c6;
     padding: 1.25rem;
     border-radius: 0.65rem;
     font-family: "Courier New", monospace;
     overflow-x: auto;
     border: 1px solid #555;
     margin: 1rem 0rem;
}

.tag-text {
     color: white;
     font-weight: 500;
}

.tag-name-1 {
     color: rgb(178, 9, 9);
}

.small-cbox {
     position: relative;
     background: #1e1e2f;
     color: #f8f8f2;
     border-radius: 0.65rem;
     font-family: "Courier New", monospace;
     overflow-x: auto;
     border: 1px solid #555;
     padding: 1rem;
     margin-bottom: 0.5rem;
}

.section {
     border: 1px solid #c4c4c455;
     border-radius: 0.5rem;
     padding: 1rem;
     margin: 1.5rem 0rem;
     font-size: 1.12rem;
     background-color: #111827;
}

.tag-name {
     color: #004080;
     font-weight: bold;
     font-size: 1.1rem;
     margin-bottom: 0.5rem;
}

.tag-description {
     font-size: 1rem;
     color: #000000;
     line-height: 1.6;
     font-weight: 500;
}

/* Html-Tags-Style */

.html-tag-bg-color {
     color: #fff;
     padding: 4px 5px;
     border-radius: 0.25rem;
     background-color: #222a39;
}

/* Responsive Code */

@media screen and (max-width: 1280px) {
     .main-content {
          width: 85%;
          position: relative;
          left: 30%;
          right: 2%;
          padding: 1rem 1rem 0rem;
          flex-wrap: wrap;
          text-wrap: wrap;
     }

     img {
          width: 80%;
          height: 50%;
          text-align: left;
     }

     .btn-group {
          gap: auto;
     }

     .btn-group .previous {
          font-size: 0.8rem !important;
          padding: 0.5rem 1rem !important;
     }

     .previous i {
          color: #fff !important;
     }

     .next {
          font-size: 0.8rem !important;
          padding: 0.5rem 1rem !important;
     }

     .next i {
          color: #000;
     }

     .next:hover {
          box-shadow: 1px 1px 5px #0fe !important;
     }
}

@media screen and (max-width: 1140px) {
     .main-content {
          width: 65%;
          position: relative;
          left: 30%;
          right: 2%;
          padding: 1rem 1rem 0rem;
     }
}

@media screen and (max-width: 1000px) {
     .main-content {
          width: 75%;
          position: relative;
          left: 33%;
          right: 5%;
          overflow-x: hidden;
     }
}

@media (max-width: 800px) {
     .main-content {
          width: 100%;
          position: relative;
          left: 5%;
          right: 5%;
          text-wrap: wrap;
          transition: all 0.3s ease;
     }

     img {
          margin: 0 auto;
          width: 75vw;
     }

     video {
          margin: 0 auto;
     }

     pre {
          text-wrap: wrap;
     }

     .main-content h1 {
          font-size: 1.5rem;
          font-weight: 500;
     }

     .main-content h2 {
          font-size: 1.25rem;
          font-weight: 450;
     }

     .main-content h3 {
          font-size: 1.15rem;
          font-weight: 450;
     }

     .main-content h4 {
          font-size: 1rem;
          font-weight: 450;
     }

     li {
          font-size: 0.8rem;
          font-weight: 400;
          text-align: left;
     }

     pre {
          line-height: 2;
          text-wrap: wrap;
     }

     p {
          font-weight: 400;
          font-size: 0.8rem;
          margin: 1rem 0;
     }

     p a {
          font-size: 0.8rem;
     }

     strong {
          color: #ebebeb;
          font-size: 0.8rem;
     }

     video {
          width: 95%;
     }
}

@media (max-width: 516px) {
     .btn-group {
          /* flex-wrap: wrap; */
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          gap: 2rem;
          color: #000;
     }

     .main-content li,
     p {
          font-size: 0.7rem;
          text-align: left;
     }
}
