@font-face {
    font-family: DynaPuff;
    src: url('../res/dynapuff.ttf');
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: "DynaPuff", system-ui;
}

body::selection {
    background-color: var(--text-color);
    color: var(--background-color);
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1 {
    font-size: 10em;
    text-shadow: 10px 10px 0 var(--primary-color);
    margin-bottom: 0;
}

h2 {
    text-shadow: 0 0 5px var(--secondary-color);
}

#date {
    margin-bottom: 100px;
}

#search {
    border: none;
    font-size: larger;
    border-radius: 50px;
    border-color: var(--text-color);
    border-width: 1px;
    border-style: solid;
    background-color: transparent;
    padding: 20px;
    width: 100%;
    color: var(--text-color);
}

#search:focus {
    border-width: 2px;
    padding: 19px;
}

#searchDiv {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
}

#searchIcon {
    position: absolute;
    right: 20px;
    cursor: pointer;
}

#rssFeed {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3.35em;
    padding: 24px;
    margin-top: 100px;
}

.newsCard {
    width: fit-content;
    max-width: 30%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.newsDesc {
    flex-grow: 1;
}

.newsTitle {
    flex-grow: 1;
}

a {
    color: var(--primary-text-color);
}

a:hover {
    color: var(--secondary-text-color);
}