@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;800&display=swap");
@view-transition {
  navigation: auto;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'montserrat', sans-serif;
    color: #e6e6e6;
    background-color: #171f2b;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-y: visible; 
    overflow-x: hidden;
    
    display: flex;
    flex-direction: column;
}

.navigation-header {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
}

.inline-link {
  color: #5DADE2;
  text-decoration: none;
  border-bottom: 1px dotted #5DADE2;
  transition: color 0.2s;
}

.inline-link:hover {
  color: #fff;
  border-bottom-style: solid;
}

.navigation-header {
    width: 100%;
    max-width: 1300px;
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
}

.sub-title{
    color: #5DADE2;
}

.tab {
    padding-left: 40px;
}
.justified {
  text-align: justify;
  text-justify: inter-character;
}

.dmg-description {
    background-color: #1f293a;
    padding: 40px 50px;
    border-radius: 12px;
    max-width: 1300px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    line-height: 1.6;
}

.dmg-description h1, 
.dmg-description h2,
.dmg-description h3 {
    color: #ffcc00;
    margin-top: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.dmg-description h3 {
    margin-top: 50px;
}

.latex {
    text-align: center;
    padding: 20px 0;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin: 20px 0;
}

.latex-result {
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    padding: 20px 0;
    color: #5DADE2;
    text-shadow: 0 0 10px rgba(93, 173, 226, 0.3);
}

.latex-final {
    font-size: 2.5rem;
    text-align: center;
    margin: 40px 0;
    color: #5DADE2;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(93, 173, 226, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: #1a222e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

th, td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #2c3e50;
    color: #ccc;
}

th {
    background-color: #253243;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #5DADE2;
}

tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

tr:hover {
    background-color: rgba(93, 173, 226, 0.1);
}

td img {
    vertical-align: middle;
    max-width: 40px;
    height: auto;
}

table td img {
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 1;
    border-radius: 4px;
}

table td img:hover {
    z-index: 100;
    transform: scale(3) translateX(15px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

table tr:nth-child(2) td img:hover {
    transform: scale(3) translate(15px, 10px);
}

table tr:last-child td img:hover {
    transform: scale(3) translate(15px, -10px);
}

.ending {
    margin-top: 30px;
}

.conclusion-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.conclusion-list li {
    background-color: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #5DADE2;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 0 6px 6px 0;
}

.conclusion-list li strong {
    display: block;
    color: #5DADE2;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.conclusion-list li p {
    margin: 0;
    text-align: justify;
    color: #e0e0e0;
    line-height: 1.6;
}

.conclusion-list .MathJax_Display {
    margin: 0.5em 0 !important;
}

@media (max-width: 768px) {
    .dmg-description {
        padding: 20px;
    }

    .latex-final {
        font-size: 1.8rem;
    }
    .latex-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}