html {
    color-scheme: light;

    --col-primary: #002f65;
    --col-secondary: #7d98ab;
}

body {
    font-size: 14px;
    line-height: 1.5;
    overflow: scroll;
}

* {
    font-family: "Poppins", sans-serif, system-ui;
}

main {
    border: 1px lightgrey solid;
    padding: 15px;
    margin-bottom: 20px;
}

nav {
    margin-bottom: 15px;
    width: 100%;

    background: var(--col-primary);
    display: flex;

    flex-direction: row;
    flex-wrap: wrap;
}

nav > a {
    text-align: center;
    border: 1px darkgray solid;
    flex: auto;
    color: white;
    padding: 5px;
    text-decoration: none;
}

input {
    border: 1px var(--col-secondary) solid;
    outline: none;
    width: calc(100% - 7.5px);
    height: 20px;
}

dialog {
    /*border: 2px var(--col-primary) solid;*/
    max-width: 50ch;
    border: 0;
    box-shadow: 0 0 1em rgb(0 0 0 / .3);

    & > * {
        margin: 0 0 0.5rem 0;
    }
}

dialog::backdrop {
    background: rgb(0 0 0 / .4);
}

img,
svg,
video {
    max-width: 100%;
    display: block;
}

#alert {
    color: red;
    padding-top: 10px;
}

.primary-button {
    border: 1px var(--col-secondary) solid;
    outline: none;
    margin-top: 5px;
    width: calc(100% - 1px);
    height: 30px;
    background: var(--col-primary);
    color: white;
    font-size: medium;
    font-weight: 500;
}

.primary-button:hover {
    background: var(--col-secondary);
    cursor: pointer;
}

.box {
    width: min(80ch, 100% - 4rem);
    margin-inline: auto;
    overflow: hidden;
}

.copyright {
    margin-top: 10px;
    font-size: smaller;
    text-align: center;
}

.bottom-box {
    width: 100%;
    display: flex;
}

.bottom-row {
    flex: 1;
    font-size: 12px;
}

.bottom-row-container {
    margin-right: 3px;
    margin-left: 3px;
}

.bottom-row-container > div {
    padding: 5px;
    border: 1px solid gray;
    border-top: none;
}

.bottom-row-container > div.bottom-title {
    border-top: 1px solid gray;
    background-color: darkgray;
    color: white;
    text-align: center;
}

.bottom-row-container > div > a {
    text-decoration: none;
    color: #111111;
}

.nav-hover > a:hover:not(.flag) {
    background: var(--col-secondary);
}

.secondary-button {
    color: white;
    background: darkgray;
    padding: 3px;
    text-decoration: none;
    outline: none;
    border: gray 1px solid;
    margin-right: 5px;
}

.secondary-button:hover {
    background: var(--col-primary);
}

.post-title {
    margin: 0;
    color: var(--col-primary);
}

.post-date {
    margin: 0;
    font-weight: 400;
    font-size: small;
    color: gray;
}

.selected {
    background: var(--col-secondary);
}

.grow-wrap {
    display: grid;
}
.grow-wrap::after {
    content: attr(data-replicated-value) " ";
    white-space: pre-wrap;
    visibility: hidden;
}
.grow-wrap > textarea {
    resize: none;
    overflow: hidden;
    outline: none;
}
.grow-wrap > textarea,
.grow-wrap::after {
    border: 1px solid var(--col-secondary);
    padding: 0.5rem;
    font: inherit;
    grid-area: 1 / 1 / 2 / 2;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.dashboard-table > tbody > tr > td {
    border: 1px solid gray;
    padding: 5px;
}

.dashboard-table > thead > tr > td {
    border: 1px solid gray;
    padding: 5px;
    color: white;
    background-color: var(--col-primary);
}

.align-right {
    text-align: right;
}

.max-width {
    width: 100%;
}

.secret {
    filter: blur(5px);
    background: whitesmoke;
    padding: 5px;
    text-align: center;
    transition: ease-in .1s;
    border: darkgray 1px solid;

    text-decoration: none;
    color: black;
    outline: none;
}

.secret:hover {
    background: white;
    filter: none;
}

.secret:active {
    background: var(--col-secondary);
    
}

.secret::selection {
    background: transparent;
}

.flag-hu {
    background-image: url("../img/hu-flag.png");
}

.flag-en {
    background-image: url("../img/en-flag.webp");
}

.flag {
    background-size: cover;
    background-position: center;
    min-width: 65px;
}

.desc > h3 {
    color: var(--col-primary);
    margin-bottom: 0;
}

.desc > ul {
    margin-top: 0;
    padding-left: 20px;
}

.desc {
    margin-bottom: 15px;
}