* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;}
html, body {
    height: 100%;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    overflow-y: visible;
    scroll-behavior: smooth;
}
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}
ul, ol {list-style: none;}
a {
    text-decoration: none;
    color: inherit;}
img {
    max-width: 100%;
    height: auto;}
table {
    border-collapse: collapse;
    width: 100%;}
button {
    border: none;
    background: none;
    cursor: pointer;}

@font-face {
    font-family: "Natasha";
    src: url("../assets/fonts/Natasha/Natasha.woff") format("woff2"),
    url("../assets/fonts/Natasha/Natasha.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

:root {
    --white: #ffffff;
    --black: #000000;

    --gray: #cccccc;
    --orange: #E55137;
    --red_usssr: #b02d23;
    --red_light: #c93227;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 100%;
}

.background {
    animation: background-animation 3s both;
    overflow: hidden;
}
@keyframes background-animation {
    0% {
        background-position: 50% 50%;
        transform: scale(1.3);
    }
    100% {
        background-position: 50% 70%;
        transform: scale(1.2);
    }
    
}

.nav-wrap {
    border-bottom: none;
}

.nav-wrap::before {
    content: none;
}

.logo-container {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    justify-content: center;
    align-items: center;
}

.logo-container .logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: logo-wrap 1.5s ease;
}
@keyframes logo-wrap {
    0% {opacity: 0%; transform: translateX(-100px);}
    100% {opacity: 100%; transform: translateX(0);}
}

.logo-container .logo-wrap label {
    font-family: 'Gotham Pro Bold', Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 5.9em;
    font-weight: 100;
    letter-spacing: 0.7px;
    text-wrap: nowrap;
    margin: 10px 0;
    color: rgb(205,19,45);
    user-select: none;
}

.logo-container h1 {
    text-align: center;
    margin: 40px;
    max-width: 400px;
    font-family: 'Natasha', Arial, sans-serif;
    font-size: 1.6em;
    font-weight: 100;
    letter-spacing: 0.7px;
    text-wrap: pretty;
	animation: text-open 1.5s ease;
    align-self: flex-end;
}
@keyframes text-open {
    0% {opacity: 0%; transform: translateX(100px);}
    100% {opacity: 100%; transform: translateX(0);}
}
@media (max-width: 920px) {
    main {
        top: 0;
        left: 0;
    }
    .logo-container {
        padding: 0;
        margin: 0;
        flex-direction: column;
        align-items: center;
    }
    .logo-container h1 {
        margin: 0 15px;
        font-size: 1.25em; 
    }
    
}

.buttons-flex-wrap {
    margin-top: 60px;
    display: flex;
    flex-wrap: wrap;
}

#donate-bottom-button,
#sign-in-bottom-button {
    text-wrap: nowrap;
    width: fit-content;
    height: 50px;
    background-color: var(--black);
    color: var(--white);
    margin: 0 60px;
    text-align: center;
    padding: 2px 8px;
    font-size: 1.5em;
    font-family: 'Natasha', Arial, sans-serif;
    letter-spacing: 0.7px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    border: 2px solid transparent;
    transition: background-color 0.15s ease, border 0.15s ease;
	animation: bottom-slide 1.5s ease 1.7s both;
}
@keyframes bottom-slide {
    0% {opacity: 0%; transform: translateY(50px);}
    100% {opacity: 100%; transform: translateY(0);}
}
@media (max-width: 740px) {

    #donate-bottom-button,
    #sign-in-bottom-button {
        margin: 5px 0;
    }

    .buttons-flex-wrap {
        flex-direction: column;
        align-items: center;
    }
    
}

#donate-bottom-button:hover,
#sign-in-bottom-button:hover {
    background-color: rgb(205,19,45);
    border: 2px solid var(--red_usssr);
}

@media (max-height: 730px) {
    html {
        overflow: auto;
    }
}

.news-feed {
    margin-top: 100px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 770px;
}

.news-feed h2 {
    font-family: 'Natasha', Arial, sans-serif;
    font-size: 1.5em;
    color: var(--black);
    margin-bottom: 20px;
}

.news-item {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.news-item h3 {
    font-family: 'Natasha', Arial, sans-serif;
    font-size: 1.5em;
    color: var(--black);
    margin-bottom: 5px;
}

.news-item .post-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

.news-item p {
    font-size: 1.1em;
    color: var(--black);
    margin-bottom: 15px;
    line-height: 1.4;
}

.read-more-button,
#read-more-button {
    padding: 10px 20px;
    background-color: var(--black);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Natasha', Arial, sans-serif;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.read-more-button:hover,
#read-more-button:hover {
    background-color: rgb(205,19,45);
}

.loading,
.error,
.no-posts {
    padding: 20px;
    font-size: 1.2em;
    color: var(--black);
    font-family: 'Natasha', Arial, sans-serif;
}

.error {
    color: rgb(205,19,45);
}

#all-posts-button {
    padding: 10px 20px;
    background-color: var(--black);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Natasha', Arial, sans-serif;
    font-size: 1.2em;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

#all-posts-button:hover {
    background-color: rgb(205,19,45);
}