
:root {
    --dark: #202020;
    --light: #ffffe0;
    --primary : #9eb9d4;
    --secondary: #6f4e37;
    --white: #e6e6e6;
    --nav-height: 5rem;
    --footer-height: 3rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

html {
    scroll-padding-top: var(--nav-height);
}

hr {
    max-width: 70%;
    margin: auto;
    margin-block: 1rem;
}


* {
    padding: 0;
    margin: 0;
}

body {
    font-family: Verdana, Geneva, sans-serif;
}

#nav-bar {
    width: 100%;
    min-height: var(--nav-height);
    background-color: #ffff;
    color: var(--dark);
    position: sticky;
    top: 0;
    z-index: 20;
}

a {
    color:rgb(32, 32, 32);
}

ul.nav-items {
    list-style-type: none;
}

.nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.nav-item-label {
    font-size: 18px;
}

.nav-item-label:hover {
    text-decoration: underline solid rgb(32, 32, 32);
}

.lang-select {
    width: fit-content;
    margin-right: 2rem;
    padding-top: 1rem;
    margin-left: auto;
    font-size: x-large;
    position: relative;
    min-height: 2rem;
}

.logo {
    font-size: 28px;
}

.logo:hover {
    text-decoration: none;
}

.category-tag {
    font-size: 0.9rem;
    font-weight: bold;
    color: #000000;
    border: 2px solid #c4c4c4;
    border-radius: 20px;
    padding-inline: 15px;
    padding-block: 5px;
    background-color:#f5f5f5;
    font-style: normal;
    text-wrap: nowrap;
}


main {
    line-height: 1.6;
    margin-block: 2rem;
    min-height: calc(100vh - var(--nav-height) - var(--footer-height));
}


footer {
    background-color: var(--dark);
    height: var(--footer-height);
    color: var(--white);
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 100%;
    padding-inline: 2%;
    align-items: center;
}

.footer-content a {
    color: var(--white);
}

.story-card:hover .story-header,
.story-card:has(a:focus) .story-header {
    text-decoration: underline solid rgb(32, 32, 32);
}

.story-card:hover img {
    filter: contrast(1.3);
}

.story-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 10px;
    gap: 1rem;
}

.story-card:hover {
    background-color: #f7f7f7;
}

.story-card img {
    z-index: 10;
    cursor: pointer;
    height: auto;
    max-width: 100%;
    filter: contrast(1.2);
    border-radius: 10px;
}

.story-meta {
    font-style: italic;
    color: rgb(82, 82, 82);
    margin-block: 1rem;
}

.story-text {
    max-width: 30rem;
    text-align: left;
    margin-inline: 3rem;
}

.story-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: "";
}

.story-header {
    font-weight: 300;
    z-index: 10;
}
