/* General Styling */
body {
    margin: 0;
    font-family: "Work Sans", sans-serif;
    background: linear-gradient (to right, #154360, #AFDDFF);
    /* #60B5FF*/
    /*background: linear-gradient(to right, #2471a3, #d0d3d4); */
    /*background: linear-gradient(to right, #2874a6, #00f2fe); */
    color: white;
    text-align: center;
}

.courier-font {
    font-family: "Courier New", Courier, monospace;
}

/*Lists*/
ul,
ol {
    text-align: left;
    font-family: "Work Sans", sans-serif;
    font-size: 1rem;
}

li {
    margin-bottom: 15px;
    /* Adjust value as needed */
}


/* Header Section */
header {
    /*overflow: hidden;*/
    /*background: rgba(0, 0, 0, 0.7);#5499c7*/
    background: linear-gradient(to left, #34495e, #2471a3);
    padding: 10px 0;
    /*height: 80px;*/
    height: auto;
    /* Adjust height dynamically */
    width: 100%;
    position: relative;
    /* Ensures it stays in place */
    z-index: 1000;
    /* Keeps it above other elements */
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    height: 60px;
    flex-wrap: wrap;
    /* Allows content to adapt on smaller screens */
}

/* Navigation Links */
/* Ensure menu aligns properly */
.header-right {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    /* Prevents items from overflowing */
}

.header-right a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 12px;
}

.header-right a:hover {
    background-color: #ddd;
    color: black;
}

.header-right a.active {
    background-color: dodgerblue;
    color: white;
}

h1,
h2,
h3,
h4 {
    color: #34495e;
    text-align: left;
}

h1 {
    font-size: 3.5em;
}

h2 {
    font-size: 2.5em;
}

h3 {
    font-size: 1.5em;
}

/* Logo */
.logo {
    height: 70px;
    width: auto;
    flex-shrink: 0;
}

/* Footer */
footer {
    /*background: rgba(0, 0, 0, 0.8);#2874a6*/
    background: #34495e;
    padding: 15px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.footera {
    color: white;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .header {
        flex-direction: column;
        justify-content: center;
        /* Centers items neatly */
        height: auto;
        /* Adjust height dynamically */
    }

    .header-right {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .logo {
        margin-bottom: 10px;
        /* Adds space below the logo */
    }
}

/*Video Background*/
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the video scales and fills the page */
}

.content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    font-size: 24px;
}

/*fontawesome*/
i {
    font-family: "Font Awesome 6 Free";
    /* Ensures icons use the correct font */
    font-style: normal;
    font-size: 18px;
    /* Adjust icon size */
    margin-right: 5px;
    /* Space between icon and text */
}

/*Link Styling*/
/*
a {
    color: #34495e;
	text-decoration: underline;
}
*/
/*a: link should remain at top. It should follow the order: LVHA*/
a:link {
	color: #34495e;
    background-color: transparent;
    text-decoration: underline;
}
a:visited {
  color: #6f42c1;
  text-decoration: underline;
}
a:hover {
    color: orange;
    background-color: transparent;
    text-decoration: underline;
}
a:active {
    color: yellow;
    background-color: transparent;
    text-decoration: underline;
}






/*Paragraph responsiveness*/
p {
    font-size: 1rem;
    /* Adjusts based on screen size */
    line-height: 1.6;
    /* Improves readability */
    word-wrap: break-word;
    /* Prevents overflow issues */
}

/* Adjust font size for smaller screens */
@media screen and (max-width: 768px) {
    p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    p {
        font-size: 0.9rem;
    }
}

/*Table of contents*/
.table-of-contents {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 20px;
    /*background-color: whitesmoke;*/
}

.toc-item {
    flex: 1;
    /*background-color: #f4f4f4;*/
    padding: 20px;
    text-align: center;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .table-of-contents {
        flex-direction: column;
    }
}

/*Table of contents ends*/

/*Back to Top*/
#myBtn {
    display: none;
    position: fixed;
    bottom: 15%;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: orange;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 4px;
}

#myBtn:hover {
    background-color: #555;
}

/*iframe*/
.iframe-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    /* Adjust height as needed */
}

iframe {
    border: none;
}

/* Table Starts*/
.table-container {
    width: 60%;
    overflow-x: auto;
    /* Enables horizontal scrolling */
}

table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    max-width: 90%;
    width: 100%;
    table-layout: fixed;
    font-size: 15px;
    border: 1px solid black;
    border-collapse: collapse;
}

td,
th {
    border: 1px solid #2E86C1;
    text-align: left;
    padding: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    word-break: break-word;
    max-width: 1px;
    /* This allows content to shrink inside */
}

tr:nth-child(even) {
    background-color: #CFD6E1;
}

@media screen and (max-width: 600px) {
    table {
        width: 100%;
    }

    td,
    th {
        font-size: 14px;
        /* Reduce font size for smaller screens */
        padding: 6px;
        /* Decrease padding */
    }
}

/*Table End*/
/*Scroll Starts*/
.code-scroll {
    max-width: 100%;
    overflow-x: auto;
}

/*Scroll Ends*/
/*Code block starts*/
.code-wrapper {
    display: flex;
    justify-content: center;
    margin: 2em 0;
}

.code-block {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1em;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: 'Courier New', monospace;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5em;
}

.code-title {
    font-weight: bold;
    font-size: 1rem;
    color: #333;
}

.copy-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background-color: #0056b3;
}

pre {
    margin: 0;
    overflow-x: auto;
}

code {
    display: block;
    white-space: pre;
    line-height: 1.5;
}

/*Code block ends*/
/*Cover Page starts*/
.cover-page {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    height: 300px;
    /* Fixed height */
    /*background-color: #f9f9f9;*/
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow-y: auto;
    box-sizing: border-box;
}

.column {
    /*background-color: #e0e0e0;*/
    padding: 1rem;
    border-radius: 4px;
    flex: 1 1 200px;
    /* Grow and shrink, min width of 200px */
    box-sizing: border-box;
}

/*Cover page ends*/
/*Like Button Starts*/
.like-box {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
    margin-right: 16px;
    color: #34495e;
}

#like-button {
    background-color: #ff4081;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px #c2185b;
    transition: all 0.1s ease-in-out;
}

#like-button:active {
    box-shadow: 0 2px #c2185b;
    transform: translateY(2px);
}

/*Like Button Ends*/