@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600');

@font-face {
    font-family: 'Computer Modern Serif';
    src: url('./font/cmunti.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Latin Modern Serif';
    src: url('./font/latinmodern.otf') format('otf');
    font-weight: normal;
    font-style: normal;
}

html, body {
    overflow-x: hidden;
}

/* General Styles */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure the body takes at least the full viewport height */
    justify-content: flex-end;
}

img, svg, .project-thumbnail {
    max-width: 100%;
    height: auto;
}

/* Content Wrapper */
.content-wrapper {
    flex: 1; /* Allow the content to grow and push the footer to the bottom */
    display: flex;
}

/* Fixed Sidebar (Visible on Large Screens) */
.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #ececec;
    color: rgb(0, 0, 0);
    padding: 20px;
    position: fixed;
    top: 70px;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1000;
    border-radius: 100px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
    background-color: rgb(98, 0, 255);
}

.profile h1 {
    margin: 10px 0;
    font-size: 24px;
}

.profile p {
    margin: 0;
    font-size: 16px;
    color: #000000;
}

.my-info {
    margin-top: 20px;
}

.my-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.my-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.my-info ul li {
    margin: 10px 0;
}

.my-info ul li a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 14px;
}

.my-info ul li a:hover {
    color: #1e90ff;
}

.my-links li a img {
    width: 80px;
    height: 20px;
}

.my-links li a img:hover {
    transform: perspective(1px) scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow on hover */
}



/* Fixed Menu */
header {
    position: fixed;
    top: 0;
    left: 0px; /* Same as sidebar width */
    width: calc(100%);
    background-color: #ffffff;
    z-index: 1000;
    display: flex;
    /*justify-content: space-evenly;*/
    align-items: center;
    /*padding: 10px 20px;*/
}

/* .logo img {
    height: 20px;
} */

.logo-svg {
    height: 40px;
    position: relative;
}

.navbar {
    display: flex;
    justify-content: flex-end;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar ul li {
    margin: 0 15px;
    position: relative;
}

.navbar ul li a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    display: block;
}

.navbar ul li a:hover {
    background-color: #555;
}

/* Dropdown Menu Fix */
.navbar ul li.dropdown {
    position: relative;
}

.navbar ul li.dropdown .dropdown-content {
    display: none; /* Hide dropdown by default */
    position: absolute;
    top: 100%; /* Position below the parent link */
    left: 0;
    background-color: #444;
    min-width: 160px;
    z-index: 1;
}

.navbar ul li.dropdown:hover .dropdown-content {
    display: block; /* Show dropdown on hover */
}

.navbar ul li.dropdown .dropdown-content li {
    margin: 0;
}

.navbar ul li.dropdown .dropdown-content li a {
    padding: 10px;
    display: block;
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.navbar ul li.dropdown .dropdown-content li a:hover {
    background-color: #555;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-icon .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
}

.exit-btn {
    margin-bottom: 1em;
    margin-top: -1.3em;
    text-align: right;
    padding: 0 1.4em;
}

.exit-btn img {
    width: 15px;
    cursor: pointer;
}

.hide-mobile {
    display: none;
}

a, u {
    text-decoration: none;
    color: #333;
}

a:hover, u:hover {
    color:#9d31fe
}

/* Scrollable Main Content */
.main-content {
    margin-left: 350px; /* Same as sidebar width */
    margin-top: 80px; /* Same as header height */
}

/* Profile Section (Visible on Small Devices) */
.profile-section {
    display: none; /* Hidden by default */
    text-align: center;
    margin-bottom: 40px;
}

/* Main Sections */
section {
    margin-bottom: 40px;
}

section h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

section p {
    font-size: 16px;
    line-height: 1.6;
}

#math_symbol {
    /* color: red; */
    font-family: "Latin Modern Serif";
    font-style: italic;
}

pre {
    /* line-height: 1.5em; */
    background-color: #f4f4f4;
    /* padding: 1em; */
    margin-bottom: 0;
    border-radius: 10px;
    font-size: 90%;
    display: block;
    overflow-x: auto;
}

pre > code {
    white-space: pre;
    display: block;
}

.code-container {
    position: relative; /* Ensures the button is positioned relative to this container */
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    line-height: 1.5;
    overflow-x: auto;
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    /* background-color: #f4f4f4; */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 100%;
    text-align: justify;
    text-justify: inter-word;
}


code {
    font-family: "Courier New", monospace;
    color: #d63384;
}

.copy-btn {
    position: absolute;
    top: 10px; /* 10px from the top of the container */
    right: 10px; /* 10px from the right of the container */
    /* background-color: #007bff; */
    background: linear-gradient(90deg, #009bff, #7052d5);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    z-index: 10; /* Ensures it stays above other elements in the container */
}

.pre {
    margin-top: 10px; /* Adds spacing to avoid overlap with the button */
    overflow-x: auto; /* Ensures code stays scrollable if it's too wide */
}


.copy-btn:hover {
    /* background-color: #0056b3; */
    background: linear-gradient(90deg, #7052d5, #009bff);
}

.language-python {
    position: relative;
}


/* Projects Section */
#projects {
    margin-bottom: 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px; /* Space between grid items */
    margin-right: calc((100% - 1000px) / 2);

}

.project-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* transform: skewY(-2deg); */
    height: 350px;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px) skewY(-2deg); /* Lift card on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow on hover */
}

.project-thumbnail {
    /* width: 100%;
    height: 80%; */
    object-fit: cover; /* Ensure the image covers the area */
}


.project-card img {
    /* margin: 15px 7.5% 10px; */
    margin: auto;
    width: 250px;
    display: flex;
    padding: 35px;
    align-items: center;

}

.project-card h3 {
    margin: 15px 15px 10px;
    font-size: 18px;
}

.project-card p {
    margin: 0 15px 15px;
    font-size: 14px;
    color: #555;
}

.wrapper-contact {
    /* background-color: #e6e6e6; */
    margin-top: -150px;
    padding-top: 100px;
}

.container-contact {
    width: 100%;
    /* background: top -220px center no-repeat #ffffff; */
    color: #000000;
    margin-top: 10%;
    padding: 1em 0 1em;
    border-radius: 50px;
    transform: skewY(-2deg);
    text-align: center;
}

.container-contact-texts {    
    /* transform: skewY(2deg); */
    margin-bottom: 10px;
    margin-left: -50px;
}

.grid-contact-buttons {
    display: flex;
    /* grid-template-columns: 1fr; */
    justify-items: center;
    /* transform: skewY(2deg); */
    margin-bottom: 10px;
    grid-row-gap: 15px;
    grid-column-gap: 15px;
    justify-content: center;
    margin-left: -50px;
}

.btn-contact {
    background-color: #ffffff;
    padding: 20px 30px 20px 30px;
    width: 120px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;    
    border: solid 5px transparent;
    background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)), linear-gradient(to right,#9d31fe,#04e7e9);    
    background-origin: border-box;
    background-clip: content-box, border-box;
    box-shadow: 2px 1000px 1px #fff inset;
    
}
.btn-contact:hover {
    box-shadow: none;
    color: white;
}

/*New Styles - Begin*/
.notebook-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
    
.notebook-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}
    
.notebook-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 300;
}
    
.notebook-header h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    opacity: 0.9;
}
    
.objectives {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    margin-bottom: 30px;
}
    
.objectives h3 {
    color: #007bff;
    margin-bottom: 15px;
}
    
.objectives ul {
    list-style-type: none;
    padding-left: 0;
}
    
.objectives li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}
    
.objectives li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
}
    
.content-section {
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
    
.content-section h2 {
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
    
.content-section h3 {
    color: #495057;
    margin-top: 30px;
    margin-bottom: 15px;
}
    
.math-formula {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    margin: 15px 0;
    border-left: 3px solid #17a2b8;
}
    
.code-container {
    position: relative;
    margin: 20px 0;
    padding-top: 35px;
}
    
pre {
    background: #2d3748;
    color: #e53e3e;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 0;
}
    
.highlight-box {
    background: #e7f3ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    margin: 20px 0;
}
    
.highlight-box h4 {
    color: #007bff;
    margin-bottom: 10px;
}
    
.key-innovation {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-style: italic;
    font-weight: 500;
}
    
.parameter-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}
    
.parameter-list strong {
    color: #007bff;
}
    
.output-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    border-left: 3px solid #28a745;
}
    
.toc {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}
    
.toc h3 {
    color: #007bff;
    margin-bottom: 15px;
}
    
.toc ul {
    list-style-type: none;
    padding-left: 0;
}
    
.toc li {
    margin: 8px 0;
    padding-left: 15px;
}
    
.toc a {
    color: #495057;
    text-decoration: none;
}
    
.toc a:hover {
    color: #007bff;
    text-decoration: underline;
}
/*New Styles - End*/

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto; /* Push the footer to the bottom */
    /* width: 100%;
    margin-left: 250px; */
    /* align-content: flex-end; */
    margin-left: -60px;
    /* margin-top: calc(100vh - 10px); */
    transform: skewY(-2deg);
    border-radius: 10px;
    margin-bottom: -35px;
}

footer p {
    margin: 5px 0;
    font-size: 14px;
}

footer a {
    color: #1e90ff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.back-footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto; /* Push the footer to the bottom */
    /* width: 100%;
    margin-left: 250px; */
    /* align-content: flex-end; */
    margin-left: -60px;
    height: 25px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        display: none; /* Hide sidebar on small devices */
    }

    header {
        left: 0;
        width: 100%;
    }

    .main-content {
        margin-left: 20px;
        margin-right: 20px;
        margin-top: 60px; /* Adjusted for header */
        width: calc(100% - 40px); /* Ensure content fits within the viewport */
    }

    .profile-section {
        display: block; /* Show profile section on small devices */
    }

    .navbar {
        display: none;
    }

    /* .navbar {
        display: none;
        flex-direction: column;
        color: white;
        background-color: #444;
        position: fixed;
        top: 77px;
        right: 0;
        width: 200px;
        padding-top: 20px;
    }

    .navbar.active {
        display: flex;
    }

    .navbar ul {
        flex-direction: column;
    }

    .navbar ul li {
        margin: 15px 0;
    }

    .navbar ul li a {
        color: #ffffff;
    } */

    .dropdown-content {
        position: static;
    }

    .menu-icon {
        display: flex;
        margin-left: calc(100% - 300px);
    }

    .profile {
        margin-top: 25px;
        display: flexbox;
    }

    /* footer {
        align-content: flex-end;
        margin-left: -50px;
        margin-right: 0px;
    } */

    .projects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
        gap: 20px; /* Space between grid items */
        margin: 15%;
        justify-items: stretch;
    
    }

    .projects-grid .project-card img {
        width: calc(100% - 100px);

    }

    .container-contact {
        margin-left: 0; /* Remove negative margin */
        /* padding: 1em 20px; Add padding for better spacing */
        /* padding: 1em 20px; */
    }
    .container-contact-texts, .grid-contact-buttons {
        margin-left: 0; /* Remove negative margin */
    }

    footer, .back-footer {
        margin-left: -20px; /* Remove negative margin */
        width: 100%; /* Ensure footer spans the full width */
        border-radius: 50; /* Optional: Remove rounded corners for full-width footer */
    }
}

.dropdown-menu {
    display: none; /* Initially hidden */
    position: absolute;
    top: 60px; /* Adjust based on the height of the menu icon */
    right: 10px; /* Align to the right of the menu icon */
    background-color: #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1000;
    overflow: hidden;
    width: 200px;
}

.dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-menu ul li {
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
}

.dropdown-menu ul li:last-child {
    border-bottom: none;
}

.dropdown-menu ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    display: block;
    font-weight: bold;
}

.dropdown-menu ul li a:hover {
    background-color: #f5f5f5;
}

/* Show dropdown when active */
.dropdown-menu.active {
    display: block;
}

/* Submenu is hidden by default */
.submenu {
    display: none; /* Ensure it's hidden by default */
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #cc0606;
    border: 1px solid #ddd;
    position: absolute;
    top: 100%; /* Position below the parent */
    left: 0;
    z-index: 1000; /* Ensure it appears above other elements */
    width: 200px; /* Match the width of the parent */
}

/* Submenu item styling */
.submenu li {
    margin: 0;
    padding: 10px;
}

.submenu li a {
    color: #333;
    text-decoration: none;
    padding: 10px;
    display: block;
}

.submenu li a:hover {
    background-color: #ddd;
}

/* Display submenu when active */
.submenu.active {
    display: block; /* Make submenu visible */
}

@media only screen and (min-width: 768px)  {

    .hide-desktop {
        display: none;
    }
}

@media only screen and (min-width: 1024px)  {

    .show-desktop {
        display: flex;
        /* margin: 0 auto 10% auto; */
    }

    .scroll-see-more {
        width: 45px;
        animation: move 1s infinite alternate;
    }

    @keyframes move {
        from {
            transform: translateY(0px);
        }
        to {
            transform: translateY(20px);
        }
    }
}

/*Newest Style - Begin*/

.notebook-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    /* Ensure content doesn't overflow */
    overflow-x: hidden;
    word-wrap: break-word;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .notebook-content {
        padding: 10px;
        margin: 0;
        max-width: 100%;
    }
}

.notebook-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

@media (max-width: 768px) {
    .notebook-header {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
}

.notebook-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 300;
}

@media (max-width: 768px) {
    .notebook-header h1 {
        font-size: 2em;
    }
}

.notebook-header h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .notebook-header h2 {
        font-size: 1.2em;
    }
}

.objectives {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .objectives {
        padding: 15px;
        margin-bottom: 20px;
    }
}

.objectives h3 {
    color: #007bff;
    margin-bottom: 15px;
}

.objectives ul {
    list-style-type: none;
    padding-left: 0;
}

.objectives li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
    word-wrap: break-word;
}

.objectives li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.content-section {
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    /* Prevent overflow */
    overflow-x: hidden;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .content-section {
        margin-bottom: 25px;
        padding: 15px;
    }
}

.content-section h2 {
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
    word-wrap: break-word;
}

.content-section h3 {
    color: #495057;
    margin-top: 30px;
    margin-bottom: 15px;
    word-wrap: break-word;
}

/* Math formula responsive styling */
.math-formula {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    margin: 15px 0;
    border-left: 3px solid #17a2b8;
    /* Critical for mobile math formulas */
    overflow-x: auto;
    overflow-y: hidden;
    word-wrap: break-word;
    /* Ensure MathJax content can scroll horizontally on mobile */
    white-space: nowrap;
}

@media (max-width: 768px) {
    .math-formula {
        padding: 10px;
        font-size: 0.9em;
        /* Allow horizontal scrolling for long formulas */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* MathJax specific responsive fixes */
.MathJax {
    font-size: 1em !important;
}

@media (max-width: 768px) {
    .MathJax {
        font-size: 0.85em !important;
    }
    
    /* Ensure MathJax containers can scroll */
    .MathJax_Display {
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }
    
    /* Fix for inline math */
    .MathJax_Preview {
        display: none !important;
    }
}

/* Fix for very small screens */
@media (max-width: 480px) {
    .MathJax {
        font-size: 0.75em !important;
    }
}

.code-container {
    position: relative;
    margin: 20px 0;
    padding-top: 35px;
    /* Prevent code overflow */
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .code-container {
        margin: 15px 0;
        padding-top: 30px;
    }
}

pre {
    background: #2d3748;
    color: #e53e3e;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 0;
    /* Improve mobile scrolling */
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    pre {
        padding: 15px;
        font-size: 0.85em;
    }
}

.highlight-box {
    background: #e7f3ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    margin: 20px 0;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .highlight-box {
        padding: 15px;
        margin: 15px 0;
    }
}

.highlight-box h4 {
    color: #007bff;
    margin-bottom: 10px;
}

.key-innovation {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-style: italic;
    font-weight: 500;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .key-innovation {
        padding: 15px;
        margin: 15px 0;
        font-size: 0.95em;
    }
}

.parameter-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .parameter-list {
        padding: 12px;
    }
}

.parameter-list strong {
    color: #007bff;
}

.parameter-list ul {
    margin: 0;
    padding-left: 20px;
}

.parameter-list li {
    margin: 8px 0;
    word-wrap: break-word;
}

.output-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    border-left: 3px solid #28a745;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .output-section {
        padding: 12px;
    }
}

.toc {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .toc {
        padding: 15px;
        margin-bottom: 20px;
    }
}

.toc h3 {
    color: #007bff;
    margin-bottom: 15px;
}

.toc ul {
    list-style-type: none;
    padding-left: 0;
}

.toc li {
    margin: 8px 0;
    padding-left: 15px;
    word-wrap: break-word;
}

.toc a {
    color: #495057;
    text-decoration: none;
}

.toc a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* General responsive improvements */
* {
    box-sizing: border-box;
}

/* Ensure all text content can wrap properly */
p, li, div, span {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure images and other media are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Copy button responsive positioning */
.copy-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8em;
    cursor: pointer;
}

@media (max-width: 768px) {
    .copy-btn {
        padding: 4px 8px;
        font-size: 0.75em;
    }
}

/* Sidebar adjustments for mobile if needed */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* Footer responsive */
footer {
    padding: 20px;
    text-align: center;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    footer {
        padding: 15px;
    }
    
    footer p {
        font-size: 0.9em;
        margin: 10px 0;
    }
}

/*Newest Style - END*/