﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Custom styling */

:root {
    --margin: 20px;
    --margin-l: calc(var(--margin) * 2);
    --margin-xl: calc(var(--margin-l) * 2);
    --content-margin: var(--margin-l) var(--margin-xl);
    --main-color: #e9e9e9;
    --secondary-color: #f1f1f1;
    --highlight-color: #6c479d;
    --detail-color: #d3d3d3;
}

* {
    font-family: 'Albert Sans', 'Trebuchet MS', Helvetica, sans-serif;
    letter-spacing: 0.4px;
    line-height: 1.4;
}

.nav-item form button {
    padding-top: 0.4rem;
}

main {
    margin-left: var(--margin);
    margin-right: var(--margin);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.overlay img {
    position: relative;
    max-height: 90%;
    max-width: 90%;
    cursor: pointer;
}

#top-content {
    background-color: var(--highlight-color);
    color: var(--secondary-color);
}

.form-group {
    margin: 10px 0;
}

#top-content .page-title, #footer-content .section-1 {
    display: flex;
    justify-content: center;
}

.articles-flex-section {
    flex: 1;
    padding: var(--margin);
    background-color: var(--secondary-color);
    font-size: 14px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    flex-direction: column;
}

.articles-flex-section > a {
  text-decoration: none;
  color: inherit;
}

tr.article-presentation-row td {
    border: none;
}

footer {
    width: 100%;
    height: 60px;
    position: relative;
    white-space: nowrap;
    line-height: 60px;
    background-color: var(--detail-color);
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}
