/* Estilos Glassmorphism com tons terrosos
body {
    font-family: 'Victor Mono', monospace; /* Fonte nerd moderna */
    /*background-color: #f0e9e0; /* Cor de fundo terrosa clara */
   /*color: #5c4033; /* Cor do texto marrom escuro */
    /*display: flex;
    flex-direction: column;
    max-width: 800px; /* Limit the width */
    /*min-height: 100vh;
    /*margin: 20px auto; /* Center the container */
    /*margin: 0;8*/
    /*font-size: 14px; /* Tamanho da fonte padrão
}*/

body {
    font-family: 'Victor Mono', monospace;
    background-image: url("/app/static/images/waves.webp"); /* Relative path to the image */
    color: #5c4033;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100vw;
    min-height: 100vh;
    margin: 0;
    font-size: 14px;
    position: relative;
}

blockquote {
    background: #ead8e7;
    border-left: 10px solid #ccc;
    margin: 1.5em 10px;
    padding: 0.5em 10px;
    font-style: normal;
    color: #555;
}
blockquote p {
    margin: 0;
}

/*.container {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
    width: 90%;
    overflow: hidden;
}

/* Adicionando um fundo translúcido para realçar o efeito */
.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: -1;
}
/* Updated Container
.container {
    backdrop-filter: blur(10px); /* Glassmorphism effect */
    /*background-color: rgba(255, 255, 255, 0.2); /* Transparent background */
    /*border-radius: 10px; /* Rounded corners */
    /*border: 1px solid rgba(255, 255, 255, 0.5); /* Subtle border */
    /*box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); /* Soft shadow */
    /*padding: 20px; /* Inner spacing */
    /*margin: 20px auto; /* Center the container */
    /*max-width: 800px; /* Limit the width */
    /*width: 90%; /* Ensure responsiveness on smaller screens */
    /*text-align: justify; /* Justify text for better readability */
    /*overflow: hidden; /* Prevent content overflow
} */

h1, h2, h3 {
    color: #a0522d; /* Cor do título marrom avermelhado */
    font-size: 1.5em; /* Tamanho da fonte dos títulos */
}

h4 {
    font-weight: bold;
   font-size: 1.2em;
   color: #333;
   text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);  /* Sombra suave para dar profundidade*/
   margin-top: 20px;
   margin-bottom: 10px;}

   h6 {
    font-weight: bold;
    font-size: 1.2em;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);  /* Sombra suave para dar profundidade */
    margin-top: 20px;
    margin-bottom: 10px;
}

p {
    font-size: 1em; /* Tamanho da fonte dos parágrafos */
    text-align: justify; /* Justify text */
}

.p-styled {
    font-size: 1em;
    color: #5c4033;
    text-align: justify;
    margin-top: -10px;
    margin-bottom: 20px;
}

.code-block {
    display: block;
    margin: 10px 0;
}

.spaced-pre {
    padding-bottom: 20px; /* Adds spacing below */
}

.spaced-p {
    padding-top: 20px; /* Adds spacing above */
}


img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Ensure images marked with .img-full are responsive and do not distort */
.img-full {
    display:block;
    max-width:100%;
    height:auto;
}

/* Accessibility helper: visually hidden but available to screen readers */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.image-description {
    font-size: 1em; /* Ensure consistency */
    color: #5c4033;
    text-align: justify; /* Justify text */
    margin-top: -10px;
    margin-bottom: 20px;
}

.image-container {
    position: relative;
    display: inline-block;
}

.image-container .hover-text {
    visibility: hidden;
    width: 500px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: justify;
    border-radius: 5px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 100%; /* Position the tooltip above the image */
    left: 50%;
    transform: translateX(-50%); /* Center the tooltip */
    opacity: 0;
    transition: opacity 0.3s;
}

.image-container:hover .hover-text {
    visibility: visible;
    opacity: 1;
}

.special-note {
    background-color: #fff3cd;
    border-left: 6px solid #ffeeba;
    padding: 10px;
    margin-bottom: 20px;
}

.special-note h2 {
    margin-top: 0;
}

pre[class*="language-"], code[class*="language-"] {
    background-color: #2d2d2d !important;
    color: #f8f8f2 !important;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9em;
}
/* Custom styles for Mermaid / gitGraph */
.code-box {
    background-color: #ead8e7;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-top: 20px;
    /*box-shadow: 0 4px 8px rgba(129, 101, 101, 0.1);*/
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    text-align: justify; /* Justify text */
}
.code-box code {
    display: block;
    white-space: pre-wrap;
    text-align: justify; /* Justify text */

}


/* Custom styles for Prism.js tokens */
span.token.function {
    color: #00ff00 !important; /* Change function color to green */
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        margin: 10px;
    }
}

/* Styling for the navigation bar */
.styled-nav ul {
    list-style-type: none; /* Remove bullet points */
    padding: 0;
    margin: 0;
    display: flex; /* Make the list horizontal */
    justify-content: center; /* Center the navigation items */
    background-color: #333; /* Dark background for the nav bar */
    border-radius: 5px; /* Rounded corners */
    overflow: hidden;
}

.styled-nav li {
    margin: 0;
}

.styled-nav a {
    display: block;
    padding: 10px 20px; /* Add spacing around links */
    text-decoration: none; /* Remove underline */
    color: white; /* White text color */
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover effect */
}

.styled-nav a:hover {
    background-color: #575757; /* Change background on hover */
    color: #ffd700; /* Optional: Change text color on hover */
}

/* Custom style for introduction page paragraphs */
.intro-page .p-styled.spaced-p {
    font-size: 1.2em; /* Increase font size */
    line-height: 1.4; /* Improve readability */

}

.mermaid {
    background-color: black; /* Adds black background to mermaid div */
    color: white; /* Ensures text color is readable */
    padding: 10px; /* Adds padding for better readability */
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on wide screens */
    gap: 20px; /* Space between cards */
    padding: 20px;
}

.nav-card {
    display: flex; /* allow link to stretch */
    align-items: stretch;
    justify-content: center;
    background-color: #ead8e7; /* Light background for cards */
    border: 1px solid #ddd; /* Subtle border */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow */
    text-align: center; /* Center text */
    padding: 8px; /* keep internal spacing, link provides main hit area */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}

.nav-card:hover {
    transform: translateY(-5px); /* Lift the card on hover */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

.nav-card a {
    text-decoration: none; /* Remove underline */
    color: #333; /* Dark text color */
    font-weight: bold;
    font-size: 1.1em;
    display: inline-flex; /* inline-flex to center content */
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 24px 16px; /* Increase touch target (vertical x horizontal) */
    min-height: 56px; /* Enforce minimum size to satisfy target-size audits */
    box-sizing: border-box;
}

.nav-card a:hover {
    color: #007BFF; /* Highlight link on hover */
}

/* Make the nav responsive: fewer columns on smaller screens so each target gets wider */
@media (max-width: 900px) {
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .nav-grid {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 12px;
    }
    .nav-card a {
        padding: 20px 12px;
        min-height: 56px;
    }
}

/* Under-construction include helpers */
.construction-section {
    display: flex;
    gap: 16px;
    align-items: center;
}
.construction-section .construction-image {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
}
.construction-section h2 {
    margin: 0 0 10px 0;
    color: #f14e32;
}
.construction-section p {
    margin: 0;
    color: var(--neutral);
    line-height: 1.5;
}

.table-container {
    width: 470px;
    height: 180px;
    overflow: hidden; /* Remove scrollbar */
}
table {
    width: 470px; /* Set table width */
    height: 180px; /* Set table height */
    border-collapse: collapse;
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
}
th {
    background-color: #f2f2f2;
}
tr:nth-child(even) {
    background-color: #f5f5f5;
}

/* Custom styles for the program.html */

/* Course Program Section */
.program-container {
    background-color: whitesmoke; /* Light background for readability */
    border-radius: 13px; /* Rounded corners for a modern look */
    padding: 20px; /* Add padding for spacing */
    margin: 20px auto; /* Center the container */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    max-width: 800px; /* Limit the width for better readability */
}

.program-title {
    font-family: 'Victor Mono', monospace; /* Fonte nerd moderna */
    font-size: 24px;
    color: #150839; /* Dark purple for the title */
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase; /* Make the title uppercase */
    letter-spacing: 1px; /* Add spacing between letters */
}

.program-list {
    list-style-type: none; /* Remove default bullets */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margins */
}

.program-list li {
    background-color: lavender; /* Light background for each item */
    border-radius: 8px; /* Rounded corners for each item */
    margin-bottom: 10px; /* Space between items */
    padding: 15px; /* Add padding inside each item */
    font-family: 'Victor Mono', monospace; /* Fonte nerd moderna */
    font-size: 18px;
    color: #333; /* Dark text color */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.program-list li:hover {
    background-color: #e95d74; /* Highlight on hover */
    color: white; /* Change text color on hover */
    cursor: pointer; /* Show pointer cursor on hover */
}

.program-list li strong {
    color: #150839; /* Highlight important text */
}

.program-list li code {
    background-color: peachpuff; /* Highlight code snippets */
    color: #180202;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace; /* Use monospace font for code */
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* Container */
.container {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
    width: 90%;
    overflow: hidden;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 20px;
}

.banner-message {
    font-size: 2rem;
    margin: 20px 0;
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

/* Navigation */
.nav ul, .mynav ul {
    list-style: none;
    padding: 0;
}

.nav li, .mynav li {
    margin: 10px 0;
}

.nav a, .mynav a {
    color: #007BFF;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav a:hover, .mynav a:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* Course Topics */
.main-topic {
    display: block;
    background-color: #f8f9fa;
    padding: 12px;
    margin: 8px 0;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.main-topic:hover {
    background-color: #e9ecef;
}

.content {
    display: none;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    margin-bottom: 10px;
}

input[type="checkbox"]:checked + .main-topic + .content {
    display: block;
}

/* Buttons */
.form-btn, .auth-buttons button {
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.3s;
}

.form-btn:hover, .auth-buttons button:hover {
    background-color: #0056b3;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(234, 216, 231, 0.8);
    border-radius: 8px;
}

/* Code Styling */
.code-style {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .banner-message {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 10px auto;
        padding: 10px;
    }

    .banner-message {
        font-size: 1.5rem;
    }

    .auth-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .auth-buttons button {
        width: 200px;
    }

    .header img {
        width: 120px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .banner-message {
        font-size: 1.2rem;
    }

    .container {
        width: 98%;
        padding: 8px;
    }

    .main-topic {
        font-size: 0.9rem;
        padding: 10px;
    }

    .content {
        padding: 10px;
    }

    .auth-buttons button {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .auth-buttons, .footer {
        display: none;
    }

    .container {
        box-shadow: none;
        background: white;
    }
}
