body {
    background-color: #000;
    margin: 0;
    padding: 0;
    font-family: 'Fira Code', monospace;

    color: #eee;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding-top: 40px;
}

.main_container {
    max-width: 900px;
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.header_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 20px;
    padding: 10px 15px;
    border: 1px solid #3b3b3b;
    font-size: 0.85rem;
    gap: 10px;
    box-sizing: border-box;
}

.header_top table {
    display: table;
    width: 100%;
}


.left-section, .right-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.menu-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 8px;
    border-radius: 4px;
}

.menu-link:hover {
    color: #a70000;
    opacity: 1;
    background-color: rgba(255, 0, 51, 0.1);
}

.menu-link::before {
    content: ' > ';
    position: absolute;
    left: -13px;
    color: #fff;
    opacity: 0;
    transition: all 0.3s ease;
}


.menu-link:hover::before {
    opacity: 1;
    left: -10px;
}

.glitch-text {
    font-family: 'Fira Code', monospace;
    font-weight: bold;
    color: #a70000;
    text-shadow: 0 0 10px #a70000;
    display: inline-block;
}

.content {
    display: flex;
    flex-direction: column;
    padding: 0;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    color: #ddd;
}

.content h1,
.content h2,
.content h3 {
    font-weight: 900;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    color: #a70000;
}

.content h1 {
    font-size: 2.5rem;
    padding-bottom: 6px;
}

.content h2 {
    font-size: 1.8rem;
    padding-bottom: 4px;
}

.content h3 {
    font-size: 1.4rem;
}

.content p {
    line-height: 1.6;
    font-size: 1rem;
    margin: 1em 0;
}

.content strong {
    color: #a70000;
    font-weight: 700;
}

.content em {
    font-style: italic;
    color: #a70000;
}

.content del {
    text-decoration: line-through;
    color: #777;
}

blockquote {
    border-left: 4px solid #b30000;
    padding-left: 16px;
    margin: 1.5em 0;
    color: #a70000;
    font-style: italic;
    background-color: #111111;
    border-radius: 4px;
    padding: 2px 0 2px 18px;
}



ul, ol {
    margin: 1em 0 1em 1.5em;
}

ul li, ol li {
    margin-bottom: 0.5em;
}

pre {
    padding: 15px 20px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 1.5em 0;
    border: 1px solid rgba(255, 255, 255, 0.36); 
}



pre > code {
    padding: 0;
    background: transparent;
    display: block;
}

:not(pre) > code {
    font-family: 'Fira Code', monospace;
    background-color: #151515;
    color: #a70000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95rem;
}



.content a {
    color: #a70000;
    text-decoration: none;
    word-break: break-word;
    transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.content a:hover {
    color: #cc0000;
    opacity: 1;
    text-decoration: underline;
    transform: translateY(-2px);
}


.content img {
    max-width: 100%;
    height: auto;
    margin: 1.5em 0;
    border-radius: 8px;
    box-shadow: 0 0 5px #a70000;
    transition: transform 0.3s ease;
    min-width: 900px;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5em 0;
    font-size: 0.9rem;
}

table th,
table td {
    border: 1px solid #333;
    padding: 10px 15px;
    text-align: left;
}

table thead th {
    background-color: #4e0000;
    color: #fff;
}

hr {
    border: 0;
    border-top: 1px solid #a70000;
    margin: 2em 0;
}

.back-link {
    display: block;
    margin: 30px auto 0 auto; 
    font-size: 0.9rem;
    opacity: 0.8;
    color: #a70000 !important;;
    text-decoration: none;
    transition: opacity 0.3s ease;
    text-align: center; 
    padding: 15px 0;
}

.back-link:hover {
    opacity: 1;
    text-decoration: underline;
}


.footer {
    background-color: #000;
    width: 100%;
    color: #eee;
    padding: 20px 10px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #353535;
    user-select: none;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.footer-link {
    color: #a70000;
    text-decoration: none;
    transition: color 0.3s ease;
    text-shadow: 0 0 10px #a70000;
}

.footer-link:hover {
    color: #fff;
    text-shadow: 0 0 10px #fff;
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.footer-separator {
    opacity: 0.5;
}

@media (max-width: 600px) {
    body {
        padding-top: 20px;
        align-items: flex-start;
    }

    .content {
        padding-inline: 2px; 
    }
    .menu-link {
        font-size: 0.95rem; 
    }
    .main_container {
        padding: 20px 15px;
        margin: 0 10px 30px;
    }

    .header_top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .left-section, .right-section {
        justify-content: center;
        width: 100%;
        gap: 10px;
    }

    .menu-link {
        font-size: 1rem;
        padding: 8px 10px;
    }

    .content h1 {
        font-size: 2rem;
    }

    .content h2 {
        font-size: 1.5rem;
    }

    .content h3 {
        font-size: 1.2rem;
    }

    .back-link {
        max-width: 100%;
        font-size: 0.95rem;
        padding: 10px 0;
    }

    .content img {
        min-width: auto;
        box-shadow: 0 0 3px #a70000;
    }

    .footer-content {
        flex-direction: column;
        gap: 6px;
    }

    .footer-separator {
        display: none;
    }
}


:root{
  --space: clamp(12px, 2.5vw, 20px);
  --fs-body: clamp(0.95rem, 1.2vw, 1rem);
  --fs-h1: clamp(1.6rem, 4.5vw, 2.5rem);
  --fs-h2: clamp(1.3rem, 3.2vw, 1.8rem);
  --fs-h3: clamp(1.1rem, 2.6vw, 1.4rem);
}

.content { font-size: var(--fs-body); }
.content h1 { font-size: var(--fs-h1); }
.content h2 { font-size: var(--fs-h2); }
.content h3 { font-size: var(--fs-h3); }

.content, .header_top, .glitch-text,
.content h1, .content h2, .content h3,
.content p, .menu-link, .back-link {
  overflow-wrap: anywhere;
  word-break: break-word;
}


.main_container {
  padding-inline: clamp(12px, 4vw, 20px);
}


.content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.content table thead th,
.content table tbody td {
  white-space: nowrap;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

:not(pre) > code {
  overflow-wrap: anywhere;
  white-space: normal;
}


.header_top {
  gap: clamp(8px, 2vw, 15px);
  padding: 10px clamp(10px, 3vw, 15px);
}
.left-section, .right-section {
  gap: clamp(8px, 2vw, 15px);
}


@media (hover: hover) and (pointer: fine) {
  .menu-link:hover {
    transform: translateY(-2px);
  }
  .content a:hover {
    transform: translateY(-2px);
  }
}


@media (max-width: 600px) {

}


blockquote {
  margin: 1.25em 0;
  padding-left: 16px;
}
ul, ol { margin: 0.9em 0 0.9em 1.25em; }

