body, html {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #FCFAFA;
}



/* Header Element */
.header-container {
    position: fixed;
    display: flex;
    z-index: 1000;
    background-color: #F7F2F2;
    box-shadow: 0px 4px 8px -3px rgba(138,135,138,0.84);
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    top: 0;
}

#logo {
    height: 60px;
    padding: 10px;
    margin-left: 40px;
    transition: 0.3s;
}

#logo:hover {
    transform: scale(1.04);
}

#search-bar-container {
    display: flex;
    align-content: flex-end;
    width: 250px;
    padding: 10px;
}

#search-bar {
    border-radius: 20px;
    background-color: #EDF2F4;
    border: none;
    padding: 6px;
    margin-right: 50px;
    width: 100%;
    box-shadow: inset 0px 0px 5px 1px rgba(153,153,153,1);
    transition: 0.3s;
}

#search-bar:hover {
    transform: scale(1.02);
}

/* Background Image and Content */
.background-image-container {
    display: flex;
    width: 100%;
    height: 463px;
    margin-top: 85px;
    background-image: url(images/background-image.svg);
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    justify-content: space-between;
    flex-wrap: wrap;
}

.background-image-titles {
    display: flex;
    flex-direction: column;
    margin-left: 100px;
    max-width: 100%;
}

.background-image-titles h1 {
    font-family: "Londrina Shadow", sans-serif;
    color: #FCFAFA;
    font-weight: 400;
    font-size: 48px;
    width: 603px;
    max-width: 100%;
}

.background-image-titles h2 {
    font-family: "Lilita One", sans-serif;
    color: #FCFAFA;
    font-weight: 400;
    width: 507px;
    font-size: 36px;
    max-width: 100%;
}

.background-image-currents {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 100%;
    margin-top: 130px;
    text-align: end;
}

.background-image-currents h2 {
    font-family: "Lilita One", sans-serif;
    color: #FCFAFA;
    font-weight: 400;
    font-size: 28px;
    max-width: 100%;
}

.background-image-currents img {
    height: 100px;
    margin-top: -20px;
}
/* News Board */
.news-board {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 20px;
}

.news-article {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 15px;
    width: 300px;
    height: 350px;
    background-color: #F7F2F2; 
    transition: 0.3s;
    align-items: end;
}

.news-article:hover {
    transform: scale(1.02);
    box-shadow: 0px 8px 15px -5px rgb(162, 162, 162);
    cursor: pointer;
}

.news-article h2 {
    font-family: "Libre Franklin", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 18px;
    color: black;
    padding-bottom: 10px;
    border-bottom: 0.5px solid black;
}

.news-article p {
    font-family: "Libre Franklin", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
    color: black;
    width: 80%;
    max-height: 140px;
    overflow-y: auto;
    word-wrap: break-word;
}

.news-article a {
    font-family: "Libre Franklin", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #2B2D42;
    text-decoration: none;
    transition: 0.3s;
    margin-right: auto;
}

.news-article a:hover {
    transform: scale(1.05);
    font-weight: 500;
}

/* Footer Section */
.footer-container {
    display: flex;
    flex-direction: column;
    background-color: #424242;
}

#footer-content {
    display: inherit;
    flex-direction: column;
    margin: 0 auto;
    padding: 10px;
    bottom: 0;
    text-align: center;
}

#footer-content img {
    height: 60px;
}

#footer-content h2 {
    font-family: "Lilita One", sans-serif;
    color: #FCFAFA;
}

/* Media Queries */
@media only screen and (max-width: 500px) {
    #search-bar-container {
        margin: 0 auto;
    }

    #title-container {
        margin: 0 auto;
    }

    #logo {
        margin: 0 auto;
    }

    #search-bar {
        margin: 0 auto;
    }

    .background-image-titles {
       margin: 0 auto;
       text-align: center;
    }
    

    .background-image-titles h1 {
        font-size: 36px;
    }
    
    .background-image-titles h2 {
        font-size: 24px;
    }


}

@media only screen and (max-width: 389px) {
    .background-image-container {
        margin-top: 120px;
    }
}

@media only screen and (max-width: 976px) {
    .background-image-currents {
        margin: 0 auto;
        text-align: center;
        margin-top: 30px;
    }

    /*.background-image-mediastack {
        display: none;
    }*/

    .background-image-titles {
        margin: 0 auto;
        text-align: center;
        margin-top: 30px;
    }

    .background-image-titles h1 {
        margin: 0 auto;

    }

    .background-image-titles h2 {
        margin: 0 auto;
    }
}

@media only screen and (max-width: 570px) {
    .background-image-currents {
        margin-top: -70px;
    }

}



