/* =====================================================================
   CSS custom properties
   ===================================================================== */
:root {
    --font-header: 'Passion One', sans-serif;
    --font-sans:   'Roboto', sans-serif;
    --font-mono:   'Roboto Mono', monospace;

    --color-purple:         #7a43b6;
    --color-pink:           #c3325f;
    --color-green:          #46a546;
    --color-body-bg:        #613195;  /* darken(saturate(purple,5),10) */
    --color-gradient-start: #5f00c6;  /* darken(saturate(purple,100),10) */
    --color-gradient-end:   #9a284b;  /* darken(pink,10) */
    --color-link:           #fff;

    --radius:     6px;
    --transition: all linear 0.4s;
}

/* =====================================================================
   Reset (Eric Meyer / Clearize)
   ===================================================================== */
html, body { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address,
cite, code, del, dfn, em, img, q, s, samp, small, strike, strong, sub,
sup, tt, var, dd, dl, dt, li, ol, ul, fieldset, form, label, legend,
button, table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0; padding: 0; border: 0;
    font-weight: normal; font-style: normal; font-size: 100%;
    line-height: 1; font-family: inherit; text-align: left;
}
table { border-collapse: collapse; border-spacing: 0; }
ol, ul { list-style: none; }
q:before, q:after, blockquote:before, blockquote:after { content: ""; }

/* =====================================================================
   Base
   ===================================================================== */
html, body {
    background-color: var(--color-body-bg);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
}

body {
    background-attachment: fixed;
    background-color: var(--color-gradient-end);
    background-image: url(stripe.png), linear-gradient(var(--color-gradient-start), var(--color-gradient-end));
    background-repeat: repeat;
    color: #fff;
    text-rendering: optimizeLegibility;
    text-shadow: 0 1px 2px rgba(0,0,0,.5);
    transition: var(--transition);
}

img {
    border: 0;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media only screen and (max-width: 767px) {
    #container {
        width: 95% !important;
    }
    h1 {
        display: block;
        width: 99%;
        margin-top: 0 !important;
        text-align: center;
        float: none !important;
    }
    td:nth-child(3), th:nth-child(3), nav, #searchform {
        display: none !important;
    }
    a.mobile {
        display: inline !important;
    }
}

a.mobile {
    display: none;
}

/* =====================================================================
   Links
   ===================================================================== */
a, a:visited {
    font-weight: bold;
    color: var(--color-link);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--color-link);
    text-shadow: 0 0 10px rgba(255,255,255,.75);
}

/* =====================================================================
   Typography
   ===================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 10px;
    font-family: var(--font-header);
}

h1 {
    font-size: 50px;
    float: left;
}

/* =====================================================================
   Layout
   ===================================================================== */
#container {
    width: 90%;
    margin: 0 auto;
}

.clearfix {
    clear: both;
}

/* =====================================================================
   Header
   ===================================================================== */
#header {
    padding-top: 10px;
}
#header h1 {
    margin-top: 30px;
}
#header > span {
    line-height: 4em;
}
#header span a:hover, a:hover span.icon, a.icon:hover {
    color: rgba(0,0,0,.3);
}

#reclama {
    float: left;
    margin-left: 100px;
}
#searchform {
    margin-top: 30px;
    float: right;
}

/* =====================================================================
   Table
   ===================================================================== */
table {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 20px;
    width: 100%;
}

thead tr:first-child {
    background-color: rgba(0,0,0,.3);
    background-image: linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,0));
}

thead td:first-child {
    width: 80px;
}

th {
    padding: 10px;
    text-align: center;
}

td:nth-child(2) a, td:last-child a, #footer li a.currentpage, input[type=text] {
    background-color: rgba(0,0,0,.3);
    background-image: linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,0));
    text-shadow: 0 1px 1px rgba(0,0,0,.25);
    box-shadow: inset 0 1px 3px rgba(0,0,0,.25), 0 1px 0 rgba(255,255,255,.25);
}

td:nth-child(2) a {
    margin: 20px 0;
    padding: 5px;
    color: #fff;
    border-radius: var(--radius);
}

tr td:nth-child(2) {
    width: 125px !important;
    overflow: hidden;
}

td:nth-child(3) a {
    text-overflow: ellipsis;
    word-wrap: break-word;
    line-height: 1em;
}

td:first-child, td:nth-child(2) {
    text-align: center;
}

td:last-child {
    width: 100px;
}

td:last-child a {
    padding: 2px;
    margin: 2px 0;
    border-radius: var(--radius);
    width: 150px;
    min-height: 100px;
    display: block;
}

td:last-child a img {
    vertical-align: middle;
    margin-left: auto;
    margin-right: auto;
    width: auto;
    display: block;
}

td:nth-child(2) a:hover, #footer li a.currentpage:hover {
    box-shadow: 0 0 10px rgba(255,255,255,.75);
}

/* =====================================================================
   Dev tools row
   ===================================================================== */
.devel {
    padding-top: 5px;
}

button.label.danger {
    border: 1px solid red;
}

/* =====================================================================
   Search / form
   ===================================================================== */
form {
    padding-top: 10px;
}

input[type=text] {
    font-family: var(--font-mono);
    font-size: 1.5em;
    font-weight: bold;
    line-height: 20px;
    color: #fff;
    border: none;
    display: block;
    float: right;
    padding: 2px;
    margin: 2px 0;
    border-radius: var(--radius);
}

input[type=text]:focus {
    box-shadow: 0 0 10px rgba(255,255,255,.75);
    outline: none;
    outline-offset: 0;
}

/* =====================================================================
   Icon font
   ===================================================================== */
@font-face {
    font-family: 'icomoon';
    src: url('fonts/icomoon.eot?h9kcuy');
    src: url('fonts/icomoon.eot?#iefixh9kcuy') format('embedded-opentype'),
         url('fonts/icomoon.woff?h9kcuy') format('woff'),
         url('fonts/icomoon.ttf?h9kcuy') format('truetype'),
         url('fonts/icomoon.svg?h9kcuy#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
}

[class^="icon-"], [class*=" icon-"], .icon {
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon {
    font-size: 32px;
    font-weight: normal;
    padding: 0;
    margin: 0;
    vertical-align: middle;
}

button.icon {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    text-shadow: inherit;
}

.icon-spinner:before   { content: "\e600"; }
.icon-close:before     { content: "\e601"; }
.icon-last:before      { content: "\e602"; }
.icon-first:before     { content: "\e603"; }
.icon-forward:before   { content: "\e604"; }
.icon-backward:before  { content: "\e605"; }
.icon-previous:before  { content: "\e606"; }
.icon-next:before      { content: "\e607"; }
.icon-play:before      { content: "\e608"; }
.icon-bubble:before    { content: "\e609"; }
.icon-lightning:before { content: "\e60a"; }
.icon-signup:before    { content: "\e60b"; }
.icon-globe:before     { content: "\e60c"; }
.icon-earth:before     { content: "\e60d"; }
.icon-flag:before      { content: "\e60e"; }
.icon-fire:before      { content: "\e60f"; }
.icon-tab:before       { content: "\e610"; }
.icon-feed:before      { content: "\e611"; }

/* =====================================================================
   Footer
   ===================================================================== */
#footer ul {
    text-align: center;
    vertical-align: middle;
    line-height: 150px;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}
#footer li {
    display: inline;
    width: 20px;
    margin: auto;
}
#footer li a {
    font-size: 64px;
    font-family: var(--font-header);
    border-radius: var(--radius);
}
#footer li a.currentpage {
    border-radius: var(--radius);
    padding-left: 10px;
    padding-right: 10px;
}

/* =====================================================================
   Calendar widget
   ===================================================================== */
.calendar {
    width: 75px;
    font-size: 14px;
    line-height: 20px;
    font-family: var(--font-sans);
    background: #eee;
    border: 1px solid;
    border-radius: 5px;
    box-shadow: 0 0 5px #eee;
    margin: 0 auto;
}

.calendar > span {
    display: block;
}

.calendar > .month {
    text-align: center;
    padding: 2px 5px 7px 0;
    border-radius: 5px 5px 0 0;
    background-image: linear-gradient(var(--color-green), #000);
}

.calendar > .day {
    text-align: center;
    font-weight: bold;
    font-size: 2.5em;
    text-shadow: 0 1px #555;
    padding: 0;
    margin: 0;
    font-family: var(--font-header);
    background: #000;
    color: #eee;
}

.calendar > .time {
    text-align: center;
    padding: 5px 5px 2px 0;
    border-radius: 0 0 5px 5px;
    background-image: linear-gradient(#000, var(--color-green));
}

.calendar > .month, .calendar > .time {
    color: #fff;
    font-weight: bold;
    text-shadow: 0 1px #000;
}

/* =====================================================================
   Modal (<dialog>)
   ===================================================================== */
dialog.modal {
    border: 1px solid #555;
    border-radius: 4px;
    padding: 0;
    max-width: 820px;
    width: 90vw;
    max-height: 80vh;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    overflow: hidden;
}
dialog.modal[open] {
    display: flex;
    flex-direction: column;
}
dialog.modal::backdrop {
    background: rgba(0,0,0,0.6);
}
.modal-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 6px 8px;
    border-bottom: 1px solid #555;
    background: #222;
    flex-shrink: 0;
}
.modal-toolbar button {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.2em;
    cursor: pointer;
    padding: 0 4px;
}
.modal-toolbar button:hover {
    color: #fff;
}
.modal-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    white-space: pre-wrap;
    font-family: monospace;
    overscroll-behavior: contain;
}
iframe.modal-frame {
    display: block;
    width: 100%;
    height: 480px;
    border: none;
}

/* =====================================================================
   Lightgallery overrides
   ===================================================================== */
.lg-backdrop {
    background-color: rgba(30, 30, 30, 0.9);
}
