﻿body {
    background-color: #00CC22 !important;
}

a {
    text-decoration: none;
    padding: 0px !important;
}

p {
    font-size: 22px;
    text-align: justify;
    color: #6a6a6a;
    margin: 18px 0;
}

ul {
    font-size: 22px;
    text-align: justify;
    color: #6a6a6a;
    margin: 18px 0;
    list-style: decimal;
}

h2 {
    font-size: 22px;
    font-weight: 700;
    border-bottom: 1px solid #6a6a6a;
    margin: 0px;
    margin-bottom: 15px;
}

.size-14 {
    font-size: 14px;
}

.size-18 {
    font-size: 18px;
}

.size-22 {
    font-size: 22px;
}

.size-24 {
    font-size: 24px;
}

.size-28 {
    font-size: 28px;
}

.weight-700 {
    font-weight: 700;
}

.after-img {
    margin-top: 20px;
}

.padded {
    padding: 0 10px;
    margin: 0;
}

.topped {
    margin-top: 30px;
}

#the-header {
    background: #FFF;
    margin: 15px 25px 0px 25px;
}

#the-footer {
    margin: 0 25px;
}

.footer-subtext {
    display: block;
    padding-bottom: 5px;
}

.menu-inline {
    display: inline-block;
}

/*
  The Header
  Logo y título de la exposición juntos a la izquierda (el título empieza donde acaba el logo, sea cual sea su
  ancho); idiomas, búsqueda y menú a la derecha. Todo alineado por abajo.
 */
#the-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    /* El mismo espacio bajo la cabecera que dejaba la línea vacía de .inline-justify */
    padding-bottom: 20px;
}

    /* La línea vacía de .inline-justify no hace falta en flex */
    #the-header.inline-justify:after {
        content: none;
    }

#div-menu-logo {
    flex: none;
}

    /* En bloque: en línea, la imagen se apoya en la línea base del enlace y deja un hueco debajo. */
    #div-menu-logo img {
        display: block;
    }

#logo-footer {
    font-size: 12px;
    font-weight: 700;
    padding-top: 5px;
}

#div-menu-text {
    flex: 1;
    min-width: 0;
    padding: 0 20px 0 30px;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
}

#div-menu-opt {
    flex: none;
    width: 50%;
    margin-left: auto;
}

/* Idiomas, botones para compartir (opcionales) y búsqueda en una línea: la búsqueda ocupa lo que queda. */
#div-menu-opt > div:first-child {
    display: flex;
    align-items: flex-end;
    gap: 0 16px;
}

#div-menu-language,
#div-menu-social {
    display: block;
    flex: none;
}

    #div-menu-language > nav li {
        padding-right: 12px;
        white-space: nowrap;
    }

        #div-menu-language > nav li:last-child {
            padding-right: 0;
        }

    #div-menu-social > nav li {
        padding: 0 6px;
        text-align: center;
        vertical-align: bottom;
    }

    #div-menu-social img {
        display: block;
    }

#div-menu-search {
    display: block;
    flex: 1;
    min-width: 0;
    text-align: right;
}

    #div-menu-search input {
        width: 100%;
        box-sizing: border-box;
    }

#search {
    width: 90%;
    margin: 0px;
    text-align: right;
}

#div-menu-footer {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 15px;
    border-top: 1px solid #6a6a6a;
}

    /* Pie de enlaces en columnas del mismo ancho (pie propio del cliente cnc) */
    #div-menu-footer.footer-links > nav {
        table-layout: fixed;
    }

        #div-menu-footer.footer-links > nav li {
            padding: 5px 10px;
            text-align: center;
            font-size: 16px;
        }

#div-menu-main {
    border-top: 1px solid #6a6a6a;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
}

    #div-menu-language > nav,
    #div-menu-social > nav,
    #div-menu-main > nav,
    #div-menu-footer > nav {
        display: table;
        width: 100%;
        border-collapse: collapse;
        border: none;
    }

        #div-menu-language > nav ul,
        #div-menu-social > nav ul,
        #div-menu-main > nav ul,
        #div-menu-footer > nav ul {
            display: table-row;
        }

        #div-menu-language > nav li,
        #div-menu-social > nav li,
        #div-menu-main > nav li,
        #div-menu-footer > nav li {
            display: table-cell;
            margin: 0;
        }

#presentation-img {
    width: 934px;
    height: 452px;
    border: 1px solid #6a6a6a;
}

.current-language {
    text-decoration: underline;
}


/*
    Mosaicos de categorías y de ejes temáticos (Categories.cshtml y Themes.cshtml)
 */
.expo-theme-wrapper-link {
    display: inline-block;
    width: 33%;
    height: 220px;
    padding: 0px;
    margin: 10px 0;
    margin-bottom: 65px;
    vertical-align: top;
}

.expo-theme {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.expo-theme-title {
    padding: 0px;
    text-align: center;
    margin: 0.5em 0;
}

/* Título de cada exposición en la página de categoría */
.category-expo-title {
    width: 20%;
    display: inline-block;
    vertical-align: top;
}

/* Número de documentos bajo el título de la exposición, p. ej. "(12 elements)". */
.category-expo-count {
    font-size: 16px;
    text-align: left;
    margin: 4px 0 0 0;
}

/*
    The Theme
 */
#theme-list-div {
    text-align: center;
}

#theme-list {
    list-style: none;
}

    #theme-list > li {
        display: inline-block;
        padding: 0 10px;
    }

.document-list-separator {
    display: inline-block;
    border-top: 1px solid #6a6a6a;
    width: 100%;
    padding: 10px 0;
}

.document-list-title {
    text-align: left;
    font-size: 18px;
    font-weight: 700;
    margin: 0px;
}

/* Título, año y páginas de cada documento en la lista del eje */
.document-list-info {
    display: inline-block;
    width: 25%;
    vertical-align: top;
}

.document-list-image {
    width: 95px;
    height: 145px;
    display: inline-block;
    background-size: cover;
    background-position: center;
    vertical-align: middle;
}

#presentation-theme-img {
    width: 936px;
    max-height: 452px;
}

.theme-menu {
    border-bottom: 1px solid #6a6a6a;
}

    .theme-menu > a,
    .theme-menu > span {
        padding-left: 15px !important;
    }
/*
    The info
 */
#biblio-list > li {
    padding: 5px 0px;
}

/*
    The document
 */
.wheel-controller {
    font-size: 16px;
    margin-top: 25px;
    text-align: center;
}

/* Color de títulos, menús y enlaces destacados. Se configura en appsettings.json
   (Appearance:TitleColor); este valor solo se usa si no se configura. */
.cnc-blue {
    color: #000;
}

.cnc-gray {
    color: #6a6a6a;
}

.document-layer {
    margin: 2px 0;
    font-size: 16px;
    margin-bottom: 20px;
    white-space: pre-line;
}

#document-selector {
    text-align: right;
}

#document-content {
    margin: auto 0;
}

#document-content-left {
    vertical-align: top;
    margin-right: 10px;
    width: 35%;
}

#document-content-img {
    vertical-align: top;
    margin-right: 10px;
    width: 100%;
}

#document-content-right {
    display: inline-block;
    width: 63%;
}


/*
  The main layout
 */
html, body {
    height: 100%;
    margin: 0pt;
    font-family: 'Droid Sans', sans-serif !important;
    background-color: #CCCCCC !important;
    background-repeat: repeat-y;
    background-position-x: center;
}

#the-body {
    margin: 0 25px;
    text-align: left;
}

.Frame {
    display: table;
    height: 100%;
    /* 934 + 50 + 2 */
    width: 986px;
    margin: 0 auto;
}

.Row {
    display: table-row;
    height: 1px;
    background-color: #FFF;
}

    .Row.Expand {
        height: auto;
    }

/*
  Others
 */

.box-more {
    width: 95px;
    height: 100px;
    display: inline-block;
    vertical-align: bottom;
    background-color: #CCC;
}

    .box-more > div {
        display: table;
        width: 100%;
        height: 100%;
    }

        .box-more > div > * {
            display: table-cell;
            text-align: center;
            vertical-align: middle;
            font-size: 18px;
        }

.inline-justify {
    text-align: justify;
    /* IE7 bullshit */
    *width: 100%;
    *-ms-text-justify: distribute-all-lines;
    *text-justify: distribute-all-lines;
}

    .inline-justify:after {
        content: '';
        display: inline-block;
        width: 100%;
        height: 0;
        font-size: 0;
        line-height: 0;
    }

p.MsoNormal {
    font-family: inherit !important;
    font-size: 18px !important;
    margin: 0 !important;
}

span.DefaultParagraphFont {
    font-size: inherit !important;
    font-family: inherit !important;
}

span.MsoHyperlink {
    font-size: inherit !important;
    color: #6a6a6a !important;
    font-family: inherit !important;
}
