/* #region Start of General Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Assistant', sans-serif;
}

/* #endregion End of General Styles */

/* #region Start of Header Styles */

.navigation {
    margin-bottom: 1em;
}

.nav-brand {
    float: left;
}

.nav-links {
    float: right;
}

.nav-brand > a {
    text-decoration: none;
    font-weight: 300;
    padding: 0em 0.5em;
    font-family: 'Julius Sans One', sans-serif;
}

.nav-links > a {
    text-decoration: none;
    padding: 0em 0.5em;
    font-weight: 200;
}

/* #endregion End of Header Styles */

/* #region Start of Main Styles */

.root {
    height: 100%;
    max-width: 60rem;
    min-width: 410px;
    margin: 0 auto;
    min-height: 100vh;
    overflow-x: hidden;
}

.root > * {
    padding: 2em;
}

img {
    max-width: 100%;
}

/* #endregion End of Main Styles */

/* #region Start of Repository And Post Styles */

.repository, .post {
    height: 30em;

	margin: 2em;
	padding: 2em;

    display: flex;
    align-items: end;

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;   
}

.metadata {    
    padding: 2em;
    border-left-style: solid;
    border-left-width: 0.01em;
    width: 75%;
}

.metadata > h2, .metadata > span, .metadata > p, .metadata > h2 > a {
	text-decoration: none;
	padding: 0.5em 0em;
    margin: 0 auto;
}
/* #endregion End of Repository And Post Styles */

/* #region Start of Complete Article Styles */
.complete-article {
    text-align: left;
    font-weight: 200;
}

.complete-article > .content-article > * {
    text-decoration: none;
    margin: 1.25em 0em;
}
.complete-article > .content-article > ul, .complete-article > .content-article > ol {
    text-decoration: none;
    margin: 2em;
}


.complete-article > .header-article > h1 {
    font-size: 3em;
    font-weight: 300;
    margin: 0.5em 0em;
}

.complete-article > .header-article > h2 {
    font-size: 1.5em;
    font-weight: 300;
    margin: 0.5em 0em;
}

.complete-article > .header-article > h3, .complete-article > .header-article > p {
    font-size: 1.25em;
    font-weight: 300;
    margin: 0.5em 0em;
}

.image-header {
    background-image: linear-gradient(to right top, #0e0e0e, #1e2e2e, #2e3e3e, #3e4e4e, #4e5e5e);
    height: 30em;
    width: 100%;
    padding: 0em;
    margin: 0em;
    
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;    
}

/* #endregion End of Complete Article Styles */

/* #region Start of Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1em 0em;
}

.pagination > * {
    margin: 0em 0.5em;
}

.highlight {
    overflow: auto;
}

/* #endregion End of Pagination Styles */

/* #region Start of Table Styles */

table {
    width: 100%;
    border-collapse: collapse; /* Eliminar espacios entre celdas */
    margin: 1em 0; /* Espacio arriba y abajo de la tabla */
    font-family: 'Assistant', sans-serif; /* Fuente para la tabla */
}

th, td {
    padding: 12px; /* Espaciado dentro de las celdas */
    text-align: left; /* Alinear texto a la izquierda */
    border-bottom: 1px solid #ddd; /* Línea separadora entre filas */
}

th {
    background-color: #000; /* Fondo ligero para el encabezado */
    font-weight: bold; /* Negrita en el encabezado */
    color: white; /* Color del texto */
}

caption {
    caption-side: top; /* Colocar el título de la tabla en la parte superior */
    font-size: 1.5em; /* Tamaño del texto del título */
    margin: 0.5em 0; /* Espaciado arriba y abajo del título */
}
/* #endregion End of Table Styles */

/* #region Start of Footer Styles */

footer > p {
    text-align: center;
}

/* #endregion End of Footer Styles */

/* #region Start of light of dark theme */
@media (max-width: 1000px) {
    .metadata {
        width: 100%;
        height: 100%;

        padding: 6em 2em;

        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .repository, .post {
        margin: 2em 0em;
    }
}

@media (prefers-color-scheme: light) {
    body {
        background-color: #ffffff;
    }

    .root {
        background: #ffffff;
        box-shadow:  -20px -20px 60px #d9d9d9,
                     20px 20px 60px #ffffff;
    }

    .nav-brand > a {
        color: #303030;
    }

    .nav-links > a {
        color: #000000;
    }

    .nav-links > a:visited, footer > a:visited {
        color: #a13cff;
    }

    .nav-links > a:hover, footer > a:hover {
        color: #000000;
    }

    .repository, .post {
        background-image: linear-gradient(to left bottom, #ffffff, #e0e0e0);
    }

    .metadata {
        background: #f0f0f0aa;
        color: #000000;
        border-left-color: #000000;
    }

    .metadata > h2, .metadata > span, .metadata > p, .metadata > h2 > a {
        color: #000000;
        overflow: hidden;
    }

    .complete-article > .content-article, h1, h2, h3, a, p {
        color: #000000;
    }

    tr:hover {
        background-color: #dfdfdf; /* Color de fondo al pasar el mouse sobre la fila */
    }

    footer > p {
        color: #000000;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #1e1e1e;
    }

    .root {
        background: #1e1e1e;
        box-shadow:  -20px -20px 60px #0c0c0c,
                     20px 20px 60px #0c0c0c;
    }

    .nav-brand > a, footer > a {
        color: #e0e0e0;
    }

    .nav-links > a, footer > a {
        color: #e0e0e0;
    }

    .nav-links > a:hover, footer > a:hover {
        color: #ffffff;
    }

    .nav-links > a:visited, footer > a:visited {
        color: #b96dff;
    }

    .repository, .post {
        background-image: linear-gradient(to right top, #0e0e0e, #1e2e2e, #2e3e3e, #3e4e4e, #4e5e5e);
    }

    .metadata {
        background: #000A;
        color: white;
        border-left-color: white;    
    }

    .metadata > h2, .metadata > span, .metadata > p, .metadata > h2 > a {
        color: #ffffff;
    }

    .complete-article > .content-article, h1, h2, h3, a, p {
        color: #ffffff;
    }

    tr:hover {
        background-color: #393939; /* Color de fondo al pasar el mouse sobre la fila */
    }

    footer > p {
        color: #ffffff;
    }
}
/* #endregion End of light of dark theme */


/* #region Start of Highlight Styles */
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #228B22 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #8B008B; font-weight: bold } /* Keyword */
.highlight .cm { color: #228B22 } /* Comment.Multiline */
.highlight .cp { color: #1e889b } /* Comment.Preproc */
.highlight .c1 { color: #228B22 } /* Comment.Single */
.highlight .cs { color: #8B008B; font-weight: bold } /* Comment.Special */
.highlight .gd { color: #aa0000 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.highlight .gi { color: #00aa00 } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { color: #8B008B; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #8B008B; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #8B008B; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #8B008B; font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { color: #8B008B; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #a7a7a7; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #B452CD } /* Literal.Number */
.highlight .s { color: #CD5555 } /* Literal.String */
.highlight .na { color: #658b00 } /* Name.Attribute */
.highlight .nb { color: #658b00 } /* Name.Builtin */
.highlight .nc { color: #008b45; font-weight: bold } /* Name.Class */
.highlight .no { color: #00688B } /* Name.Constant */
.highlight .nd { color: #707a7c } /* Name.Decorator */
.highlight .ne { color: #008b45; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #008b45 } /* Name.Function */
.highlight .nn { color: #008b45; text-decoration: underline } /* Name.Namespace */
.highlight .nt { color: #8B008B; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #00688B } /* Name.Variable */
.highlight .ow { color: #8B008B } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #B452CD } /* Literal.Number.Float */
.highlight .mh { color: #B452CD } /* Literal.Number.Hex */
.highlight .mi { color: #B452CD } /* Literal.Number.Integer */
.highlight .mo { color: #B452CD } /* Literal.Number.Oct */
.highlight .sb { color: #CD5555 } /* Literal.String.Backtick */
.highlight .sc { color: #CD5555 } /* Literal.String.Char */
.highlight .sd { color: #CD5555 } /* Literal.String.Doc */
.highlight .s2 { color: #CD5555 } /* Literal.String.Double */
.highlight .se { color: #CD5555 } /* Literal.String.Escape */
.highlight .sh { color: #1c7e71; font-style: italic } /* Literal.String.Heredoc */
.highlight .si { color: #CD5555 } /* Literal.String.Interpol */
.highlight .sx { color: #cb6c20 } /* Literal.String.Other */
.highlight .sr { color: #1c7e71 } /* Literal.String.Regex */
.highlight .s1 { color: #CD5555 } /* Literal.String.Single */
.highlight .ss { color: #CD5555 } /* Literal.String.Symbol */
.highlight .bp { color: #658b00 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #00688B } /* Name.Variable.Class */
.highlight .vg { color: #00688B } /* Name.Variable.Global */
.highlight .vi { color: #00688B } /* Name.Variable.Instance */
.highlight .il { color: #B452CD } /* Literal.Number.Integer.Long */ 
/* #endregion End of Highlight Styles */

/* #region Start of Cookie Consent Theme Adaptation */
/* Default light theme styles for cookie consent */
#cc-main {
    font-family: 'Assistant', sans-serif !important;
}

#cc-main .cm {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #e0e0e0 !important;
    color: #303030 !important;
}

#cc-main .cm__title {
    color: #000000 !important;
}

#cc-main .cm__btn {
    border-radius: 4px !important;
    font-weight: 300 !important;
    transition: all 0.3s ease !important;
}

#cc-main .cm__btn--primary {
    background: #a13cff !important;
    border-color: #a13cff !important;
    color: white !important;
}

#cc-main .cm__btn--secondary {
    background: transparent !important;
    border-color: #303030 !important;
    color: #303030 !important;
}

/* Dark theme styles for cookie consent */
@media (prefers-color-scheme: dark) {
    #cc-main .cm {
        background: rgba(30, 30, 30, 0.95) !important;
        border: 1px solid #404040 !important;
        color: #e0e0e0 !important;
    }

    #cc-main .cm__title {
        color: #ffffff !important;
    }

    #cc-main .cm__btn--primary {
        background: #a13cff !important;
        border-color: #a13cff !important;
        color: white !important;
    }

    #cc-main .cm__btn--secondary {
        background: transparent !important;
        border-color: #e0e0e0 !important;
        color: #e0e0e0 !important;
    }
}

/* Hover effects */
#cc-main .cm__btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

@media (prefers-color-scheme: dark) {
    #cc-main .cm__btn:hover {
        box-shadow: 0 2px 8px rgba(255,255,255,0.1) !important;
    }
}
/* #endregion End of Cookie Consent Theme Adaptation */

/* #region Start of Privacy Policy Styles */
.complete-article {
    max-width: none;
    line-height: 1.6;
}

.complete-article header {
    text-align: center;
    margin-bottom: 3em;
    padding-bottom: 2em;
    border-bottom: 1px solid #e0e0e0;
}

.complete-article h1 {
    font-family: 'Julius Sans One', sans-serif;
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.complete-article h2 {
    font-family: 'Julius Sans One', sans-serif;
    font-size: 1.5em;
    margin: 2em 0 1em 0;
    color: #a13cff;
}

.complete-article h3 {
    font-size: 1.2em;
    margin: 1.5em 0 0.8em 0;
    font-weight: 300;
}

.complete-article section {
    margin-bottom: 2.5em;
}

.complete-article ul {
    margin: 1em 0;
    padding-left: 2em;
}

.complete-article li {
    margin-bottom: 0.5em;
}

.complete-article a {
    color: #a13cff;
    text-decoration: none;
}

.complete-article a:hover {
    text-decoration: underline;
}

.policy-footer {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    color: #666;
}

.policy-footer hr {
    display: none;
}

/* Dark theme for privacy policy */
@media (prefers-color-scheme: dark) {
    .complete-article header {
        border-bottom-color: #404040;
    }
    
    .complete-article h2 {
        color: #a13cff;
    }
    
    .complete-article a {
        color: #a13cff;
    }
    
    .policy-footer {
        border-top-color: #404040;
        color: #ccc;
    }
}
/* #endregion End of Privacy Policy Styles */
